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 StringbuttonTextDOCUMENT ME!ColoremptyColorDOCUMENT ME!Fields inherited from class org.graffiti.plugin.editcomponent.AbstractValueEditComponent
showEmptyFields 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 JComponentgetComponent()Returns theValueEditComponent'sJComponent.voidsetEditFieldValue()Sets the current value of theAttributein the correspondingJComponent.voidsetValue()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, setShowEmptyMethods 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 theAttributein the correspondingJComponent. -
setValue
public void setValue()Sets the value of the displayable specified in theJComponent. But only if it is different.
-