org.argouml.uml.diagram.deployment.ui
Class SelectionComponentInstance

java.lang.Object
  extended by SelectionButtons
      extended by org.argouml.uml.diagram.ui.SelectionNodeClarifiers2
          extended by org.argouml.uml.diagram.deployment.ui.SelectionComponentInstance

public class SelectionComponentInstance
extends SelectionNodeClarifiers2


Field Summary
 
Fields inherited from class org.argouml.uml.diagram.ui.SelectionNodeClarifiers2
BASE, BOTTOM, LEFT, LOWER_LEFT, RIGHT, TOP
 
Constructor Summary
SelectionComponentInstance(Fig f)
          Construct a new SelectionComponentInstanceInstance 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 index)
           
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.
 
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

SelectionComponentInstance

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

Parameters:
f - The given Fig.
Method Detail

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.

getNewNode

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

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.

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