org.openbp.cockpit.modeler
Class ViewModeMgr

java.lang.Object
  extended by org.openbp.cockpit.modeler.ViewModeMgr

public final class ViewModeMgr
extends java.lang.Object

The view mode manager determines the way a process is being displayed in the Modeler. This includes the display mode of control and data links, parameters etc. This class is a singleton.

Author:
Heiko Erhardt

Method Summary
static ViewModeMgr getInstance()
          Gets the singleton instance of this class.
 int getTagState()
          Gets the tag state.
 int getTagState(DrawingEditorPlugin editor)
          Gets the tag state, considering the modeler type.
 int getTagState(VisualElement ve)
          Gets the tag state, considering the modeler type.
 boolean isControlAnchorVisible()
          Gets the control anchor visibility.
 boolean isControlAnchorVisible(VisualElement ve)
          Gets the control anchor visibility, considering the modeler type.
 boolean isControlLinkVisible()
          Gets the control link visibility.
 boolean isControlLinkVisible(VisualElement ve)
          Gets the control link visibility, considering the modeler type.
 boolean isDataLinkVisible()
          Gets the data link visibility.
 boolean isDataLinkVisible(VisualElement ve)
          Gets the data link visibility, considering the modeler type.
 void setControlAnchorVisible(boolean controlAnchorVisible)
          Sets the control anchor visibility.
 void setControlLinkVisible(boolean controlLinkVisible)
          Sets the control link visibility.
 void setDataLinkVisible(boolean dataLinkVisible)
          Sets the data link visibility.
 void setTagState(int tagState)
          Sets the tag state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ViewModeMgr getInstance()
Gets the singleton instance of this class.


isControlAnchorVisible

public boolean isControlAnchorVisible(VisualElement ve)
Gets the control anchor visibility, considering the modeler type. Always returns true in case of the component editor.


isControlAnchorVisible

public boolean isControlAnchorVisible()
Gets the control anchor visibility.


setControlAnchorVisible

public void setControlAnchorVisible(boolean controlAnchorVisible)
Sets the control anchor visibility.


isControlLinkVisible

public boolean isControlLinkVisible(VisualElement ve)
Gets the control link visibility, considering the modeler type. Always returns true in case of the component editor.


isControlLinkVisible

public boolean isControlLinkVisible()
Gets the control link visibility.


setControlLinkVisible

public void setControlLinkVisible(boolean controlLinkVisible)
Sets the control link visibility.


isDataLinkVisible

public boolean isDataLinkVisible(VisualElement ve)
Gets the data link visibility, considering the modeler type. Always returns true in case of the component editor.


isDataLinkVisible

public boolean isDataLinkVisible()
Gets the data link visibility.


setDataLinkVisible

public void setDataLinkVisible(boolean dataLinkVisible)
Sets the data link visibility.


getTagState

public int getTagState(VisualElement ve)
Gets the tag state, considering the modeler type. Always returns true in case of the component editor.


getTagState

public int getTagState(DrawingEditorPlugin editor)
Gets the tag state, considering the modeler type. Always returns true in case of the component editor.


getTagState

public int getTagState()
Gets the tag state.


setTagState

public void setTagState(int tagState)
Sets the tag state.



Copyright © 2011. All Rights Reserved.