Class LandmarkSliderComponent

All Implemented Interfaces:
EventListener, ChangeListener, AttributeListener, EdgeListener, GraphListener, NodeListener, TransactionListener, ValueEditComponent, SessionListener

public class LandmarkSliderComponent
extends AbstractValueEditComponent
implements SessionListener, ChangeListener
Slider component specially for selecting landmarks. Exponential scale with the opportunity to select all nodes.
  • Constructor Details

    • LandmarkSliderComponent

      public LandmarkSliderComponent​(Displayable 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
    • sessionChanged

      public void sessionChanged​(Session s)
      Description copied from interface: SessionListener
      This method is called when the session changes.
      Specified by:
      sessionChanged in interface SessionListener
      Parameters:
      s - the new Session.
    • sessionDataChanged

      public void sessionDataChanged​(Session s)
      Description copied from interface: SessionListener
      This method is called when the data (except the graph data) are changed.
      Specified by:
      sessionDataChanged in interface SessionListener
    • stateChanged

      public void stateChanged​(ChangeEvent e)
      Specified by:
      stateChanged in interface ChangeListener