y.view.hierarchy
Class ProxyAutoBoundsNodeRealizer

java.lang.Object
  |
  +--y.view.NodeRealizer
        |
        +--y.view.ShapeNodeRealizer
              |
              +--y.view.ProxyShapeNodeRealizer
                    |
                    +--y.view.hierarchy.ProxyAutoBoundsNodeRealizer
All Implemented Interfaces:
AutoBoundsFeature, NodeLayout

public class ProxyAutoBoundsNodeRealizer
extends ProxyShapeNodeRealizer
implements AutoBoundsFeature

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 delgegated 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.


Field Summary
 
Fields inherited from class y.view.ShapeNodeRealizer
DIAMOND, ELLIPSE, HEXAGON, OCTAGON, PARALLELOGRAM, RECT, RECT_3D, ROUND_RECT, shape, TRAPEZOID, TRAPEZOID_2, TRIANGLE
 
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.
 Insets getAutoBoundsInsets()
          This call will be delegated to the internal realizer, if that realizer implements the AutoBoundsFeature interface.
 Rectangle2D getMinimalAutoBounds()
          This call will be delegated to the internal realizer, if that realizer implements the AutoBoundsFeature interface.
 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(Insets insets)
          This call will be delegated to the internal realizer, if that realizer implements the AutoBoundsFeature interface.
 
Methods inherited from class y.view.ProxyShapeNodeRealizer
addLabel, addRealizer, calcUnionRect, calcUnionRect, contains, createNodeLabel, findBBIntersection, findIntersection, getBoundingBox, getCenterX, getCenterY, getFillColor, getFillColor2, getHeight, getLabel, getLabel, getLabelText, getLayer, getLineColor, getLineType, getPortCandidates, getRealizer, getRealizerDelegate, getShapeType, getWidth, getX, getY, hotSpotHit, intersects, isInBox, isSelected, isTransparent, isVisible, labelCount, moveBy, paint, paintHotSpots, paintLayer, paintLayerSloppy, paintNode, paintSloppy, paintText, read, realizerCount, removeLabel, removeRealizer, setCenter, setCenterX, setCenterY, setEdgesDirty, setFillColor, setFillColor2, setFrame, setFrame, setHeight, setLabel, setLabelText, setLayer, setLayer, setLineColor, setLineType, setLocation, setRealizer, setRealizerDelegate, setSelected, setShapeType, setSize, setTransparent, setVisible, setWidth, setX, setY, write
 
Methods inherited from class y.view.ShapeNodeRealizer
shapeTypeToStringMap
 
Methods inherited from class y.view.NodeRealizer
createCopy, getHotSpotColor, getNode, getSloppySelectionColor, setHotSpotColor, setSloppySelectionColor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyAutoBoundsNodeRealizer

public ProxyAutoBoundsNodeRealizer()

ProxyAutoBoundsNodeRealizer

public ProxyAutoBoundsNodeRealizer(NodeRealizer arg)
Method Detail

createCopy

public NodeRealizer createCopy(NodeRealizer nr)
Description copied from class: ShapeNodeRealizer
Creates a copy of this realizer type that will be initialized with the values found in the given realizer.

Overrides:
createCopy in class ProxyShapeNodeRealizer

getAutoBoundsInsets

public Insets getAutoBoundsInsets()
This call will be delegated to the internal realizer, if that realizer implements the AutoBoundsFeature interface. Otherwise empty Insets will be returned.

Specified by:
getAutoBoundsInsets in interface AutoBoundsFeature

setAutoBoundsInsets

public void setAutoBoundsInsets(Insets insets)
This call will be delegated to the internal realizer, if that realizer implements the AutoBoundsFeature interface. Otherwise calling this method has no effect.

Specified by:
setAutoBoundsInsets in interface AutoBoundsFeature

isAutoBoundsEnabled

public boolean isAutoBoundsEnabled()
This call will be delegated to the internal realizer, if that realizer implements the AutoBoundsFeature interface. Otherwise false will be returned.

Specified by:
isAutoBoundsEnabled in interface AutoBoundsFeature

setAutoBoundsEnabled

public void setAutoBoundsEnabled(boolean auto)
This call will be delegated to the internal realizer, if that realizer implements the AutoBoundsFeature interface. Otherwise calling this method has no effect.

Specified by:
setAutoBoundsEnabled in interface AutoBoundsFeature

getMinimalAutoBounds

public Rectangle2D getMinimalAutoBounds()
This call will be delegated to the internal realizer, if that realizer implements the AutoBoundsFeature interface. Otherwise bounds with negative size be returned.

Specified by:
getMinimalAutoBounds in interface AutoBoundsFeature

© Copyright 2000-2003,
yWorks GmbH.
All rights reserved.

2003