Class ColorChooserEditComponent
java.lang.Object
org.graffiti.plugin.editcomponent.ValueEditComponentAdapter
org.graffiti.plugin.editcomponent.AbstractValueEditComponent
org.graffiti.plugins.editcomponents.defaults.ColorChooserEditComponent
- All Implemented Interfaces:
EventListener
,AttributeListener
,EdgeListener
,GraphListener
,NodeListener
,TransactionListener
,ValueEditComponent
public class ColorChooserEditComponent extends AbstractValueEditComponent
This class provides an edit component for editing color attributes by
offering a
JColorChooser
.- Version:
- $Revision: 1.10 $
- See Also:
JColorChooser
,ColorAttribute
-
Field Summary
Fields Modifier and Type Field Description String
buttonText
DOCUMENT ME!Color
emptyColor
DOCUMENT ME!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 ColorChooserEditComponent(Displayable disp)
Constructs a newColorChooserEditComponent
. -
Method Summary
Modifier and Type Method Description JComponent
getComponent()
Returns theValueEditComponent
'sJComponent
.void
setEditFieldValue()
Sets the current value of theAttribute
in the correspondingJComponent
.void
setValue()
Sets the value of the displayable specified in theJComponent
.Methods inherited from class org.graffiti.plugin.editcomponent.AbstractValueEditComponent
getDisplayable, getShowEmpty, isEnabled, postAttributeChanged, preAttributeChanged, setDisplayable, setEnabled, setShowEmpty
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
-
Field Details
-
emptyColor
DOCUMENT ME! -
buttonText
DOCUMENT ME!
-
-
Constructor Details
-
ColorChooserEditComponent
Constructs a newColorChooserEditComponent
.- Parameters:
disp
- DOCUMENT ME!
-
-
Method Details
-
getComponent
Returns theValueEditComponent
'sJComponent
.- Returns:
- DOCUMENT ME!
-
setEditFieldValue
public void setEditFieldValue()Sets the current value of theAttribute
in the correspondingJComponent
. -
setValue
public void setValue()Sets the value of the displayable specified in theJComponent
. But only if it is different.
-