Class LabelAlignmentAttributeEditor
java.lang.Object
org.graffiti.plugin.editcomponent.ValueEditComponentAdapter
org.graffiti.plugin.editcomponent.AbstractValueEditComponent
de.ipk_gatersleben.ag_nw.graffiti.plugins.editcomponents.label_alignment.LabelAlignmentAttributeEditor
- All Implemented Interfaces:
EventListener
,AttributeListener
,EdgeListener
,GraphListener
,NodeListener
,TransactionListener
,ValueEditComponent
public class LabelAlignmentAttributeEditor extends AbstractValueEditComponent
- Author:
- Christian Klukas (c) 2004 IPK-Gatersleben
-
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 LabelAlignmentAttributeEditor(Displayable disp)
-
Method Summary
Modifier and Type Method Description JComponent
getComponent()
Returns theValueEditComponent
'sJComponent
.void
setEditFieldValue()
Sets the current value of theDisplayable
in the correspondingJComponent
.void
setShowEmpty(boolean showEmpty)
Called with a value of true when this component should display nothing instead of the value of its associated displayable.void
setValue()
Sets the value of theDisplayable
specified in theJComponent
.Methods inherited from class org.graffiti.plugin.editcomponent.AbstractValueEditComponent
getDisplayable, getShowEmpty, isEnabled, postAttributeChanged, preAttributeChanged, setDisplayable, setEnabled
Methods inherited from class org.graffiti.plugin.editcomponent.ValueEditComponentAdapter
postAttributeAdded, postAttributeRemoved, postDirectedChanged, postEdgeAdded, postEdgeRemoved, postEdgeReversed, postGraphCleared, postInEdgeAdded, postInEdgeRemoved, postNodeAdded, postNodeRemoved, postOutEdgeAdded, postOutEdgeRemoved, postSourceNodeChanged, postTargetNodeChanged, postUndirectedEdgeAdded, postUndirectedEdgeRemoved, preAttributeAdded, preAttributeRemoved, preDirectedChanged, preEdgeAdded, preEdgeRemoved, preEdgeReversed, preGraphCleared, preInEdgeAdded, preInEdgeRemoved, preNodeAdded, preNodeRemoved, preOutEdgeAdded, preOutEdgeRemoved, preSourceNodeChanged, preTargetNodeChanged, preUndirectedEdgeAdded, preUndirectedEdgeRemoved, setParameter, setValue, transactionFinished, transactionStarted
-
Constructor Details
-
LabelAlignmentAttributeEditor
-
-
Method Details
-
setShowEmpty
public void setShowEmpty(boolean showEmpty)Description copied from interface:ValueEditComponent
Called with a value of true when this component should display nothing instead of the value of its associated displayable. This is used when several displayables use this component but have different values. When set to false, the value of the displayable associated with this component is used.- Specified by:
setShowEmpty
in interfaceValueEditComponent
- Overrides:
setShowEmpty
in classAbstractValueEditComponent
-
getComponent
Description copied from interface:ValueEditComponent
Returns theValueEditComponent
'sJComponent
.- Returns:
- the
ValueEditComponent
'sJComponent
.
-
setEditFieldValue
public void setEditFieldValue()Description copied from interface:ValueEditComponent
Sets the current value of theDisplayable
in the correspondingJComponent
. IfshowEmpty
is set to true, this component should instead show only empty fields. -
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.
-