|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.view.ViewMode
y.view.HotSpotMode
y.view.hierarchy.HierarchyHotSpotMode
public class 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 | |
|---|---|
static byte |
FIXED_AUTOBOUNDS_INSETS
Group bounds policy specifier. |
static byte |
FIXED_MINIMUM_GROUP_BOUNDS
Group bounds policy specifier. |
| Fields inherited from class y.view.HotSpotMode |
|---|
BLOCK_UPON_MINIMUM_SIZE, DISCRETE_BLOCK_POLICY, FLIP_SIDES_UPON_MINIMUM_SIZE, NODE_CENTER_RESIZING_MODIFIER_MASK_PROPERTY, SEMI_BLOCK_UPON_MINIMUM_SIZE |
| Fields inherited from class y.view.ViewMode |
|---|
ACTIVE_PROPERTY, ACTIVE_VIEW_PROPERTY, CHILD_MODE_PROPERTY, EDITING_PROPERTY, GRAB_FOCUS_ENABLED_PROPERTY, lastClickEvent, lastDragEvent, lastMoveEvent, lastPressEvent, lastReleaseEvent, MODIFIER_MASK_PROPERTY, NAME_PROPERTY, originalX, originalY, PARENT_MODE_PROPERTY, view |
| Constructor Summary | |
|---|---|
HierarchyHotSpotMode()
Instantiates a new HierarchyHotSportMode. |
|
HierarchyHotSpotMode(ViewContainer vc)
Instantiates a new HierarchyHotSpotMode for a given ViewContainer |
|
| Method Summary | |
|---|---|
byte |
getGroupBoundsPolicy()
Returns the group bounds policy used when resizing the child nodes of a group. |
void |
mousePressedLeft(double x,
double y)
Initiates resizing of selected nodes. |
void |
mouseReleased(MouseEvent ev)
Perform additional cleanup. |
void |
setGroupBoundsPolicy(byte groupBoundsPolicy)
Sets the group bounds policy used when resizing the child nodes of a group. |
protected void |
updateNodeRealizerBounds(NodeRealizer vr,
double x,
double y,
double w,
double h)
Special handling of NodeRealizers that implement AutoBoundsFeature. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final byte FIXED_AUTOBOUNDS_INSETS
AutoBoundsFeature, the group node's
autoBoundsInsets will stay fixed. It's overall bounds can grow or shrink.
public static final byte FIXED_MINIMUM_GROUP_BOUNDS
AutoBoundsFeature, the group node's
bounds can grow but not shrink. Before a group node starts to grow
its autoBoundsInset will be reduced, first.
| Constructor Detail |
|---|
public HierarchyHotSpotMode(ViewContainer vc)
public HierarchyHotSpotMode()
| Method Detail |
|---|
public void mousePressedLeft(double x,
double y)
mousePressedLeft in class HotSpotModex - the x-coordinate of the mouse event in world coordinates.y - the y-coordinate of the mouse event in world coordinates.public void mouseReleased(MouseEvent ev)
mouseReleased in interface MouseListenermouseReleased in class ViewMode
protected void updateNodeRealizerBounds(NodeRealizer vr,
double x,
double y,
double w,
double h)
AutoBoundsFeature.
The bounds of such realizers are modified by changing their
autobounds insets.
updateNodeRealizerBounds in class HotSpotModevr - the realizer of the node whose bounds should 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.Also checks if the realizer provides a {@link SizeConstraintProvider} and adjusts the resizing
so that it will keep to the restrictions given by that provider.,
SizeConstraintProviderpublic byte getGroupBoundsPolicy()
FIXED_AUTOBOUNDS_INSETS and
FIXED_MINIMUM_GROUP_BOUNDS.public void setGroupBoundsPolicy(byte groupBoundsPolicy)
FIXED_AUTOBOUNDS_INSETS is set.
groupBoundsPolicy - one of FIXED_AUTOBOUNDS_INSETS and
FIXED_MINIMUM_GROUP_BOUNDS.
|
© Copyright 2000-2008, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||