uci.gef
Class SelectionNoop
java.lang.Object
|
+--uci.gef.Selection
|
+--uci.gef.SelectionNoop
- public class SelectionNoop
- extends Selection
Selection object that does not allow the user to do anything. This
might be useful for some special Figs. it is not used by the Figs
provided by GEF.
- See Also:
- Serialized Form
|
Constructor Summary |
SelectionNoop(Fig f)
Construct a new SelectionNoop around the given DiagramElement |
|
Method Summary |
void |
dragHandle(int mx,
int my,
int an_x,
int an_y,
Handle h)
SelectionNoop is used when there are no handles, so dragHandle
does nothing. |
void |
hitHandle(Rectangle r,
Handle h)
Returns -2 as a special code to indicate that the Fig cannot be moved. |
void |
paint(Graphics g)
Paint the selection. |
| Methods inherited from class uci.gef.Selection |
contains,
contains,
contains,
damage,
delete,
dispose,
endTrans,
getBounds,
getContent,
getContentBounds,
getLocation,
getLocked,
hit,
hitHandle,
keyPressed,
keyReleased,
keyTyped,
mouseClicked,
mouseDragged,
mouseEntered,
mouseExited,
mouseMoved,
mousePressed,
mouseReleased,
print,
reorder,
setcontent,
startTrans,
stuffBounds,
translate |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
SelectionNoop
public SelectionNoop(Fig f)
- Construct a new SelectionNoop around the given DiagramElement
paint
public void paint(Graphics g)
- Paint the selection.
- Overrides:
- paint in class Selection
dragHandle
public void dragHandle(int mx,
int my,
int an_x,
int an_y,
Handle h)
- SelectionNoop is used when there are no handles, so dragHandle
does nothing. Actually, hitHandle always returns -1 , so this
method should never even get called.
- Overrides:
- dragHandle in class Selection
hitHandle
public void hitHandle(Rectangle r,
Handle h)
- Returns -2 as a special code to indicate that the Fig cannot be moved.
- Overrides:
- hitHandle in class Selection