Class 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 Details

    • emptyColor

      public Color emptyColor
      DOCUMENT ME!
    • buttonText

      public String buttonText
      DOCUMENT ME!
  • Constructor Details

    • ColorChooserEditComponent

      public ColorChooserEditComponent​(Displayable disp)
      Constructs a new ColorChooserEditComponent.
      Parameters:
      disp - DOCUMENT ME!
  • Method Details

    • getComponent

      public JComponent getComponent()
      Returns the ValueEditComponent's JComponent.
      Returns:
      DOCUMENT ME!
    • setEditFieldValue

      public void setEditFieldValue()
      Sets the current value of the Attribute in the corresponding JComponent.
    • setValue

      public void setValue()
      Sets the value of the displayable specified in the JComponent. But only if it is different.