java.lang.Object
org.graffiti.plugin.editcomponent.ValueEditComponentAdapter
org.graffiti.plugin.editcomponent.AbstractValueEditComponent
de.ipk_gatersleben.ag_nw.graffiti.plugins.gui.enhanced_attribute_editors.EnhDoubleEditComponent
All Implemented Interfaces:
ActionListener, EventListener, AttributeListener, EdgeListener, GraphListener, NodeListener, TransactionListener, ValueEditComponent

public class EnhDoubleEditComponent
extends AbstractValueEditComponent
implements ActionListener
Represents a gui component, which handles double values. Can be left empty because superclass handles all primitive types.
See Also:
NumberEditComponent
  • Constructor Details

    • EnhDoubleEditComponent

      public EnhDoubleEditComponent​(Displayable disp)
      Parameters:
      disp -
  • Method Details

    • getComponent

      public JComponent getComponent()
      Description copied from interface: ValueEditComponent
      Returns the ValueEditComponent's JComponent.
      Specified by:
      getComponent in interface ValueEditComponent
      Returns:
      the ValueEditComponent's JComponent.
    • setEditFieldValue

      public void setEditFieldValue()
      Description copied from interface: ValueEditComponent
      Sets the current value of the Displayable in the corresponding JComponent. If showEmpty is set to true, this component should instead show only empty fields.
      Specified by:
      setEditFieldValue in interface ValueEditComponent
    • setValue

      public void setValue()
      Description copied from interface: ValueEditComponent
      Sets the value of the Displayable specified in the JComponent. Should only change the value if the value is really different otherwise too many events will be sent.
      Specified by:
      setValue in interface ValueEditComponent
    • actionPerformed

      public void actionPerformed​(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener