uci.uml.visual
Class SelectionState

java.lang.Object
  |
  +--uci.gef.Selection
        |
        +--uci.gef.SelectionResize
              |
              +--uci.uml.visual.SelectionNodeClarifiers
                    |
                    +--uci.uml.visual.SelectionWButtons
                          |
                          +--uci.uml.visual.SelectionState

public class SelectionState
extends SelectionWButtons

See Also:
Serialized Form

Field Summary
protected  boolean _showIncoming
           
protected  boolean _showOutgoing
           
static Icon trans
           
 
Fields inherited from class uci.uml.visual.SelectionWButtons
_paintButtons, _pressedButton, _showRapidButtons, IMAGE_SIZE, MARGIN, Num_Button_Clicks, PRESSED_COLOR
 
Fields inherited from class uci.gef.Selection
_content, BORDER_WIDTH, HAND_SIZE
 
Constructor Summary
SelectionState(Fig f)
          Construct a new SelectionState for the given Fig
 
Method Summary
 Object addIncomingTrans(MutableGraphModel mgm, State cls, State newCls)
           
 Object addOutgoingTrans(MutableGraphModel mgm, State cls, State newCls)
           
 void buttonClicked(int buttonCode)
           
 void dragHandle(int mX, int mY, int anX, int anY, Handle hand)
           
 void hitHandle(Rectangle r, Handle h)
           
 void mouseEntered(MouseEvent me)
           
 void paintButtons(Graphics g)
          Paint the handles at the four corners and midway along each edge of the bounding box.
 void setIncomingButtonEnabled(boolean b)
           
 void setOutgoingButtonEnabled(boolean b)
           
 
Methods inherited from class uci.uml.visual.SelectionWButtons
getBounds, hideButtons, hitAbove, hitBelow, hitLeft, hitRight, intersectsRect, mouseExited, mousePressed, mouseReleased, paint, paintButton, paintButtonAbove, paintButtonBelow, paintButtonLeft, paintButtonRight, toggleShowRapidButtons
 
Methods inherited from class uci.gef.Selection
contains, contains, contains, damage, delete, dispose, endTrans, getContent, getContentBounds, getLocation, getLocked, hit, hitHandle, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseMoved, print, reorder, setcontent, startTrans, stuffBounds, translate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

trans

public static Icon trans

_showIncoming

protected boolean _showIncoming

_showOutgoing

protected boolean _showOutgoing
Constructor Detail

SelectionState

public SelectionState(Fig f)
Construct a new SelectionState for the given Fig
Method Detail

setIncomingButtonEnabled

public void setIncomingButtonEnabled(boolean b)

setOutgoingButtonEnabled

public void setOutgoingButtonEnabled(boolean b)

hitHandle

public void hitHandle(Rectangle r,
                      Handle h)
Overrides:
hitHandle in class SelectionResize

paintButtons

public void paintButtons(Graphics g)
Paint the handles at the four corners and midway along each edge of the bounding box.
Overrides:
paintButtons in class SelectionWButtons

dragHandle

public void dragHandle(int mX,
                       int mY,
                       int anX,
                       int anY,
                       Handle hand)
Overrides:
dragHandle in class SelectionResize

buttonClicked

public void buttonClicked(int buttonCode)
Overrides:
buttonClicked in class SelectionWButtons

addOutgoingTrans

public Object addOutgoingTrans(MutableGraphModel mgm,
                               State cls,
                               State newCls)

addIncomingTrans

public Object addIncomingTrans(MutableGraphModel mgm,
                               State cls,
                               State newCls)

mouseEntered

public void mouseEntered(MouseEvent me)
Overrides:
mouseEntered in class SelectionWButtons