|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--y.view.ViewMode | +--y.view.HotSpotMode | +--y.view.hierarchy.HierarchyHotSpotMode
A specialized HotSpotMode
suitable for editing hierarchically organized graphs.
This modes uses a special resize policy for NodeRealizers that represent group
nodes and consequentially implement AutoBoundsFeature
. Such nodes may
be resized to a limited degree by changing their auto bounds insets.
Field Summary |
Fields inherited from class y.view.ViewMode |
lastClickEvent, lastDragEvent, lastPressEvent, lastReleaseEvent, originalX, originalY, view |
Constructor Summary | |
HierarchyHotSpotMode()
Instantiates a new HierarchyHotSportMode. |
|
HierarchyHotSpotMode(ViewContainer vc)
Instantiates a new HierarchyHotSpotMode for a given ViewContainer |
Method Summary | |
void |
mousePressedLeft(double x,
double y)
Initiates resizing of selected nodes. |
protected void |
updateNodeRealizerBounds(NodeRealizer vr,
double x,
double y,
double w,
double h)
Special handling of NodeRealizers that implement AutoBoundsFeature .
|
Methods inherited from class y.view.HotSpotMode |
getCursor, mouseDraggedLeft, mouseReleasedLeft |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HierarchyHotSpotMode(ViewContainer vc)
public HierarchyHotSpotMode()
Method Detail |
public void mousePressedLeft(double x, double y)
mousePressedLeft
in class HotSpotMode
x
- the x-coordinate of the mouse event in world coordinates.y
- the y-coordinate of the mouse event in world coordinates.protected void updateNodeRealizerBounds(NodeRealizer vr, double x, double y, double w, double h)
AutoBoundsFeature
.
The bounds of such realizers are modifed by changing their
autobounds insets.
updateNodeRealizerBounds
in class HotSpotMode
vr
- the realizer of the node whose bounds shoud change.x
- the desired x-coordinate of the node bounds.y
- the desired y-coordinate of the node bounds.w
- the desired width of the node.h
- the desired height of the node.AutoBoundsFeature
|
© Copyright 2000-2003, yWorks GmbH. All rights reserved. 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |