org.argouml.uml.diagram.activity.ui
Class SelectionActionState

java.lang.Object
  extended by SelectionButtons
      extended by org.argouml.uml.diagram.ui.SelectionNodeClarifiers2
          extended by org.argouml.uml.diagram.activity.ui.SelectionActionState
Direct Known Subclasses:
SelectionCallState

public class SelectionActionState
extends SelectionNodeClarifiers2


Field Summary
 
Fields inherited from class org.argouml.uml.diagram.ui.SelectionNodeClarifiers2
BASE, BOTTOM, LEFT, LOWER_LEFT, RIGHT, TOP
 
Constructor Summary
SelectionActionState(Fig f)
          Construct a new SelectionActionState for the given Fig.
 
Method Summary
protected  javax.swing.Icon[] getIcons()
          Get array of icons to use when drawing handles.
protected  java.lang.String getInstructions(int index)
          Get the "instructions" string to pass to GEF for the given handle number.
protected  java.lang.Object getNewEdgeType(int index)
          Get the edge type to create when dragging from the given handle number.
protected  java.lang.Object getNewNode(int arg0)
           
protected  java.lang.Object getNewNodeType(int index)
          Get the node type to create when dragging from the given handle number.
protected  boolean isReverseEdge(int index)
          Get the node type to create when dragging from the given handle number.
 void setIncomingAboveButtonEnabled(boolean b)
           
 void setIncomingButtonEnabled(boolean b)
           
 void setIncomingLeftButtonEnabled(boolean b)
           
 void setOutgoingBelowButtonEnabled(boolean b)
           
 void setOutgoingButtonEnabled(boolean b)
           
 void setOutgoingRightButtonEnabled(boolean b)
           
 
Methods inherited from class org.argouml.uml.diagram.ui.SelectionNodeClarifiers2
buttonClicked, createEdgeAbove, createEdgeLeft, createEdgeRight, createEdgeToSelf, createEdgeUnder, dragHandle, getButton, getNewModeCreateEdgeAndNode, hitHandle, isDraggableHandle, isEdgePostProcessRequested, paint, paintButtons, postProcessEdge2
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectionActionState

public SelectionActionState(Fig f)
Construct a new SelectionActionState for the given Fig.

Parameters:
f - The given Fig.
Method Detail

setOutgoingButtonEnabled

public void setOutgoingButtonEnabled(boolean b)
Parameters:
b - true if the button is enabled

setIncomingButtonEnabled

public void setIncomingButtonEnabled(boolean b)
Parameters:
b - true if the button is enabled

setIncomingLeftButtonEnabled

public void setIncomingLeftButtonEnabled(boolean b)
Parameters:
b - true if the button is enabled

setOutgoingRightButtonEnabled

public void setOutgoingRightButtonEnabled(boolean b)
Parameters:
b - true if the button is enabled

setIncomingAboveButtonEnabled

public void setIncomingAboveButtonEnabled(boolean b)
Parameters:
b - true if the button is enabled

setOutgoingBelowButtonEnabled

public void setOutgoingBelowButtonEnabled(boolean b)
Parameters:
b - true if the button is enabled

getNewNodeType

protected java.lang.Object getNewNodeType(int index)
Description copied from class: SelectionNodeClarifiers2
Get the node type to create when dragging from the given handle number.

Specified by:
getNewNodeType in class SelectionNodeClarifiers2
Parameters:
index - handle number that is being dragged from
Returns:
metatype for model element. Null to disallow drag.

getNewNode

protected java.lang.Object getNewNode(int arg0)
Overrides:
getNewNode in class SelectionNodeClarifiers2

getIcons

protected javax.swing.Icon[] getIcons()
Description copied from class: SelectionNodeClarifiers2
Get array of icons to use when drawing handles.

Specified by:
getIcons in class SelectionNodeClarifiers2
Returns:
icon or null

getInstructions

protected java.lang.String getInstructions(int index)
Description copied from class: SelectionNodeClarifiers2
Get the "instructions" string to pass to GEF for the given handle number.

Specified by:
getInstructions in class SelectionNodeClarifiers2
Parameters:
index - handle number that is being dragged from
Returns:
string or null

getNewEdgeType

protected java.lang.Object getNewEdgeType(int index)
Description copied from class: SelectionNodeClarifiers2
Get the edge type to create when dragging from the given handle number.

Specified by:
getNewEdgeType in class SelectionNodeClarifiers2
Parameters:
index - handle number that is being dragged from
Returns:
metatype for model element. Null to disallow drag.

isReverseEdge

protected boolean isReverseEdge(int index)
Description copied from class: SelectionNodeClarifiers2
Get the node type to create when dragging from the given handle number.

Overrides:
isReverseEdge in class SelectionNodeClarifiers2
Parameters:
index - handle number that is being dragged from
Returns:
true to reverse direction of assocation from direction of drag. eg. specialization instead of generalization. Default implementation always returns false.


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook