Class VisualState

java.lang.Object
org.eclipse.graphiti.platform.ga.VisualState
All Implemented Interfaces:
IVisualState

public class VisualState extends Object implements IVisualState
The Class VisualState, a simple implementation of IVisualState.
  • Constructor Details

    • VisualState

      public VisualState()
  • Method Details

    • addChangeListener

      public void addChangeListener(IVisualStateChangeListener listener)
      Description copied from interface: IVisualState
      Adds a change listener.
      Specified by:
      addChangeListener in interface IVisualState
      Parameters:
      listener - The change listener to add.
    • removeChangeListener

      public void removeChangeListener(IVisualStateChangeListener listener)
      Description copied from interface: IVisualState
      Removes a change listener.
      Specified by:
      removeChangeListener in interface IVisualState
      Parameters:
      listener - The change listener to remove.
    • fireVisualStateChanged

      protected void fireVisualStateChanged(VisualStateChangedEvent e)
      Propagates the visual state change to registered listeners.
      Parameters:
      e - the VisualStateChangedEvent event
    • getActionTargetFeedback

      public int getActionTargetFeedback()
      Description copied from interface: IVisualState
      Returns the action target feedback. It indicates, if a certain action (e.g. drag & drop) can be performed with this visual element as a target.
      Specified by:
      getActionTargetFeedback in interface IVisualState
      Returns:
      The action target feedback.
    • setActionTargetFeedback

      public void setActionTargetFeedback(int feedback)
      Description copied from interface: IVisualState
      Sets the action target feedback. It indicates, if a certain action (e.g. drag & drop) can be performed with this visual element as a target.
      Specified by:
      setActionTargetFeedback in interface IVisualState
      Parameters:
      feedback - The action target feedback to set.
    • getSelectionFeedback

      public int getSelectionFeedback()
      Description copied from interface: IVisualState
      Returns the selection feedback. It indicates if the visual element is selected.
      Specified by:
      getSelectionFeedback in interface IVisualState
      Returns:
      The selection feedback.
    • setSelectionFeedback

      public void setSelectionFeedback(int feedback)
      Description copied from interface: IVisualState
      Sets the selection feedback. It indicates if the visual element is selected.
      Specified by:
      setSelectionFeedback in interface IVisualState
      Parameters:
      feedback - The selection feedback to set.
    • setHoverFeedback

      public void setHoverFeedback(int feedback)
      Description copied from interface: IVisualState
      Sets the hover feedback. It indicates if the visual element is hovered.
      Specified by:
      setHoverFeedback in interface IVisualState
      Parameters:
      feedback - The selection feedback to set.
    • getHoverFeedback

      public int getHoverFeedback()
      Description copied from interface: IVisualState
      Gets the hover feedback.
      Specified by:
      getHoverFeedback in interface IVisualState
      Returns:
      the int hover feedback.