org.argouml.uml.diagram.static_structure.ui
Class SelectionGeneralizableElement

java.lang.Object
  extended by SelectionButtons
      extended by org.argouml.uml.diagram.ui.SelectionNodeClarifiers2
          extended by org.argouml.uml.diagram.static_structure.ui.SelectionGeneralizableElement

public abstract class SelectionGeneralizableElement
extends SelectionNodeClarifiers2

Buttons for a selected GeneralizableElement.


Field Summary
 
Fields inherited from class org.argouml.uml.diagram.ui.SelectionNodeClarifiers2
BASE, BOTTOM, LEFT, LOWER_LEFT, RIGHT, TOP
 
Constructor Summary
SelectionGeneralizableElement(Fig f)
          Construct a SelectionGeneralizableElement
 
Method Summary
protected  javax.swing.Icon[] getIcons()
          Get array of icons to use when drawing handles.
protected  java.lang.String getInstructions(int i)
          Get the "instructions" string to pass to GEF for the given handle number.
protected  java.lang.Object getNewEdgeType(int i)
          Get the edge type to create when dragging from the given handle number.
protected  boolean isEdgePostProcessRequested()
          Request post processing of edge by GEF after it is created using ModeCreateEdgeAndNode#ModeCreateEdgeAndNode(Editor, Object, Object, boolean)
protected  boolean isReverseEdge(int i)
          Get the node type to create when dragging from the given handle number.
 void mouseEntered(java.awt.event.MouseEvent me)
           
 
Methods inherited from class org.argouml.uml.diagram.ui.SelectionNodeClarifiers2
buttonClicked, createEdgeAbove, createEdgeLeft, createEdgeRight, createEdgeToSelf, createEdgeUnder, dragHandle, getButton, getNewModeCreateEdgeAndNode, getNewNode, getNewNodeType, hitHandle, isDraggableHandle, paint, paintButtons, postProcessEdge2
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectionGeneralizableElement

public SelectionGeneralizableElement(Fig f)
Construct a SelectionGeneralizableElement

Parameters:
f - Fig for which to construct the selection object
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 i)
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:
i - handle number that is being dragged from
Returns:
string or null

getNewEdgeType

protected java.lang.Object getNewEdgeType(int i)
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:
i - handle number that is being dragged from
Returns:
metatype for model element. Null to disallow drag.

isReverseEdge

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

Overrides:
isReverseEdge in class SelectionNodeClarifiers2
Parameters:
i - 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.

isEdgePostProcessRequested

protected boolean isEdgePostProcessRequested()
Description copied from class: SelectionNodeClarifiers2
Request post processing of edge by GEF after it is created using ModeCreateEdgeAndNode#ModeCreateEdgeAndNode(Editor, Object, Object, boolean)

Overrides:
isEdgePostProcessRequested in class SelectionNodeClarifiers2
Returns:
true if postprocessing requested

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent me)


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook