Class EdgeEditComponent
java.lang.Object
org.graffiti.plugin.editcomponent.ValueEditComponentAdapter
org.graffiti.plugin.editcomponent.AbstractValueEditComponent
org.graffiti.plugin.editcomponent.GraphComponentEditComponent
org.graffiti.plugin.editcomponent.SingleGraphElementEditComponent
org.graffiti.plugin.editcomponent.EdgeEditComponent
- All Implemented Interfaces:
EventListener
,AttributeListener
,EdgeListener
,GraphListener
,NodeListener
,TransactionListener
,ValueEditComponent
public class EdgeEditComponent extends SingleGraphElementEditComponent
This class provides an edit component for selecting a single edge.
- See Also:
Edge
,SingleGraphElementEditComponent
-
Field Summary
Fields inherited from class org.graffiti.plugin.editcomponent.AbstractValueEditComponent
showEmpty
Fields inherited from interface org.graffiti.plugin.editcomponent.ValueEditComponent
EMPTY_STRING
-
Constructor Summary
Constructors Constructor Description EdgeEditComponent(Displayable disp)
Constructs a newEdgeEditComponent
. -
Method Summary
Modifier and Type Method Description JComponent
getComponent()
Returns theValueEditComponent
'sJComponent
.void
setDisplayable(Displayable attr)
Sets the displayable.void
setGraphComponent()
Sets the graph component selectable by this edit component.void
setValue()
Sets the value of theDisplayable
specified in theJComponent
.Methods inherited from class org.graffiti.plugin.editcomponent.SingleGraphElementEditComponent
getCaption, setEditFieldValue, setGraphElement
Methods inherited from class org.graffiti.plugin.editcomponent.GraphComponentEditComponent
postAttributeAdded, postAttributeChanged, postAttributeRemoved, preAttributeAdded, preAttributeChanged, preAttributeRemoved, transactionFinished, transactionStarted
Methods inherited from class org.graffiti.plugin.editcomponent.AbstractValueEditComponent
getDisplayable, getShowEmpty, isEnabled, setEnabled, setShowEmpty
Methods inherited from class org.graffiti.plugin.editcomponent.ValueEditComponentAdapter
postDirectedChanged, postEdgeAdded, postEdgeRemoved, postEdgeReversed, postGraphCleared, postInEdgeAdded, postInEdgeRemoved, postNodeAdded, postNodeRemoved, postOutEdgeAdded, postOutEdgeRemoved, postSourceNodeChanged, postTargetNodeChanged, postUndirectedEdgeAdded, postUndirectedEdgeRemoved, preDirectedChanged, preEdgeAdded, preEdgeRemoved, preEdgeReversed, preGraphCleared, preInEdgeAdded, preInEdgeRemoved, preNodeAdded, preNodeRemoved, preOutEdgeAdded, preOutEdgeRemoved, preSourceNodeChanged, preTargetNodeChanged, preUndirectedEdgeAdded, preUndirectedEdgeRemoved, setParameter, setValue
-
Constructor Details
-
EdgeEditComponent
Constructs a newEdgeEditComponent
.- Parameters:
disp
- DOCUMENT ME!
-
-
Method Details
-
getComponent
Description copied from class:SingleGraphElementEditComponent
Returns theValueEditComponent
'sJComponent
.- Specified by:
getComponent
in interfaceValueEditComponent
- Overrides:
getComponent
in classSingleGraphElementEditComponent
- Returns:
- DOCUMENT ME!
- See Also:
ValueEditComponent.getComponent()
-
setDisplayable
Description copied from class:AbstractValueEditComponent
Sets the displayable.- Specified by:
setDisplayable
in interfaceValueEditComponent
- Overrides:
setDisplayable
in classAbstractValueEditComponent
- Parameters:
attr
- the object to connect to this component.
-
setGraphComponent
public void setGraphComponent()Sets the graph component selectable by this edit component. -
setValue
public void setValue()Description copied from interface:ValueEditComponent
Sets the value of theDisplayable
specified in theJComponent
. Should only change the value if the value is really different otherwise too many events will be sent.- See Also:
ValueEditComponent.setValue()
-