|
||||||||||
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.Graph2DNodeRealizer
A node realizer that can display a graph as its contents.
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 | |
Graph2DNodeRealizer()
Creates a new instance Graph2DNodeRealizer. |
|
Graph2DNodeRealizer(NodeRealizer nr)
Creates a new instance of Graph2DNodeRealizer as a copy of the given realizer. |
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. |
boolean |
getApplyClipping()
Returns whether or not to use clipping when drawing the inenr graph. |
boolean |
getApplyTransformation()
Returns whether or not to apply a best fit transformation to the graph before displaying it. |
Graph2D |
getInnerGraph()
returns the inner graph associatd with this realizer. |
boolean |
isExpanded()
Returns the expansion state of this realizer. |
protected void |
paintInnerGraph(Graphics2D gfx)
Paints the inner graph. |
protected void |
paintNode(Graphics2D g)
Paints the node. |
void |
paintSloppy(Graphics2D gfx)
Paints the realizer in a cheap, uniform and sloppy way on g . |
void |
read(ObjectInputStream in)
Reads in the serialized form of this realizer. |
void |
setApplyClipping(boolean c)
Sets the clipping policy used when displaying the inner graph. |
void |
setApplyTransformation(boolean t)
Sets the transformation policy used when displaying the inner graph. |
void |
setExpanded(boolean e)
Sets the expansion state of this realizer. |
void |
setInnerGraph(Graph2D g)
Sets the inner graph that this realizer should display as its contents. |
void |
write(ObjectOutputStream out)
Writes this realizer in a serialized form to the given stream. |
Methods inherited from class y.view.ShapeNodeRealizer |
contains, findIntersection, getShapeType, moveBy, setCenter, setLocation, setShapeType, setSize, shapeTypeToStringMap |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Graph2DNodeRealizer()
public Graph2DNodeRealizer(NodeRealizer nr)
Method Detail |
public void setApplyClipping(boolean c)
By default this feature is turned off.
public void setApplyTransformation(boolean t)
By default this feature is turned on.
public boolean getApplyTransformation()
Graph2DNodeRealizer.setApplyTransformation(boolean)
public boolean getApplyClipping()
Graph2DNodeRealizer.setApplyClipping(boolean)
public void setExpanded(boolean e)
public boolean isExpanded()
public void setInnerGraph(Graph2D g)
public Graph2D getInnerGraph()
protected void paintNode(Graphics2D g)
paintNode
in class ShapeNodeRealizer
public void paintSloppy(Graphics2D gfx)
NodeRealizer
g
. By default this call draws a
rectangle with this realizer's bounds and colors.
No label will be painted.
paintSloppy
in class NodeRealizer
protected void paintInnerGraph(Graphics2D gfx)
public NodeRealizer createCopy(NodeRealizer nr)
ShapeNodeRealizer
createCopy
in class ShapeNodeRealizer
public void write(ObjectOutputStream out) throws IOException
write
in class ShapeNodeRealizer
IOException
public void read(ObjectInputStream in) throws IOException, ClassNotFoundException
Graph2DNodeRealizer.write(ObjectOutputStream)
method.
read
in class ShapeNodeRealizer
IOException
ClassNotFoundException
|
© 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 |