|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.view.NodeRealizer y.view.ShapeNodeRealizer y.view.ProxyShapeNodeRealizer y.view.hierarchy.ProxyAutoBoundsNodeRealizer
public class ProxyAutoBoundsNodeRealizer
A proxy node realizer that implements the auto bounds feature. If the realizer delegate
of this class implements auto bounds feature as well, the corresponding interface calls will be delegated
to that realizer.
This realizer can be used to maintain different realizer each of which represents a different state of a
group node. Typically this realizer will maintain two realizers of type GroupNodeRealizer
. One realizer
will be used to represent an open group the other to represent a closed group.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface y.view.SizeConstraintProvider |
---|
SizeConstraintProvider.Default |
Field Summary |
---|
Fields inherited from class y.view.ShapeNodeRealizer |
---|
DIAMOND, ELLIPSE, FAT_ARROW, FAT_ARROW_2, HEXAGON, KEY_SLOPPY_RECT_PAINTING, OCTAGON, PARALLELOGRAM, PARALLELOGRAM_2, RECT, RECT_3D, ROUND_RECT, shape, STAR5, STAR6, STAR8, TRAPEZOID, TRAPEZOID_2, TRIANGLE, TRIANGLE_2, VALUE_SLOPPY_RECT_PAINTING_OFF |
Fields inherited from class y.view.NodeRealizer |
---|
height, HOTSPOT_E, HOTSPOT_N, HOTSPOT_NE, HOTSPOT_NONE, HOTSPOT_NW, HOTSPOT_S, HOTSPOT_SE, HOTSPOT_SW, HOTSPOT_W, width, x, y |
Constructor Summary | |
---|---|
ProxyAutoBoundsNodeRealizer()
|
|
ProxyAutoBoundsNodeRealizer(NodeRealizer arg)
|
Method Summary | |
---|---|
NodeRealizer |
createCopy(NodeRealizer nr)
Creates a copy of this realizer type that will be initialized with the values found in the given realizer. |
YInsets |
getAutoBoundsInsets()
This call will be delegated to the internal realizer, if that realizer implements the AutoBoundsFeature interface. |
YDimension |
getMaximumSize()
Returns the maximum size the realizer that implements this interface can have. |
java.awt.geom.Rectangle2D |
getMinimalAutoBounds()
This call will be delegated to the internal realizer, if that realizer implements the AutoBoundsFeature interface. |
YDimension |
getMinimumSize()
Returns the minimum size the realizer that implements this interface must have. |
boolean |
isAutoBoundsEnabled()
This call will be delegated to the internal realizer, if that realizer implements the AutoBoundsFeature interface. |
void |
setAutoBoundsEnabled(boolean auto)
This call will be delegated to the internal realizer, if that realizer implements the AutoBoundsFeature interface. |
void |
setAutoBoundsInsets(java.awt.Insets insets)
Deprecated. Use setAutoBoundsInsets(y.geom.YInsets) instead. |
void |
setAutoBoundsInsets(YInsets insets)
This call will be delegated to the internal realizer, if that realizer implements the AutoBoundsFeature interface. |
Methods inherited from class y.view.NodeRealizer |
---|
boundsChanged, calcUnionRectImpl, calcUnionRectLabels, calcUnionRectPorts, createCopy, getAutoBoundsFeature, getHotSpotColor, getNode, getSizeConstraintProvider, getSloppySelectionColor, labelBoundsChanged, paintPorts, repaint, setHotSpotColor, setSloppySelectionColor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProxyAutoBoundsNodeRealizer()
public ProxyAutoBoundsNodeRealizer(NodeRealizer arg)
Method Detail |
---|
public NodeRealizer createCopy(NodeRealizer nr)
ShapeNodeRealizer
createCopy
in class ProxyShapeNodeRealizer
nr
- the prototype realizer whose attributes will be copied.public YInsets getAutoBoundsInsets()
AutoBoundsFeature
interface. Otherwise empty Insets will be returned.
getAutoBoundsInsets
in interface AutoBoundsFeature
public void setAutoBoundsInsets(java.awt.Insets insets)
setAutoBoundsInsets(y.geom.YInsets)
instead.
AutoBoundsFeature
interface. Otherwise calling this method has no effect.
insets
- the insets to add to the minimal auto bounds.public void setAutoBoundsInsets(YInsets insets)
AutoBoundsFeature
interface. Otherwise calling this method has no effect.
setAutoBoundsInsets
in interface AutoBoundsFeature
insets
- the insets to add to the minimal auto bounds.public boolean isAutoBoundsEnabled()
AutoBoundsFeature
interface. Otherwise false
will be returned.
isAutoBoundsEnabled
in interface AutoBoundsFeature
public void setAutoBoundsEnabled(boolean auto)
AutoBoundsFeature
interface. Otherwise calling this method has no effect.
setAutoBoundsEnabled
in interface AutoBoundsFeature
public java.awt.geom.Rectangle2D getMinimalAutoBounds()
AutoBoundsFeature
interface. Otherwise bounds with negative size be returned.
getMinimalAutoBounds
in interface AutoBoundsFeature
public YDimension getMinimumSize()
SizeConstraintProvider
getMinimumSize
in interface SizeConstraintProvider
public YDimension getMaximumSize()
SizeConstraintProvider
getMaximumSize
in interface SizeConstraintProvider
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |