y.view
Class ProxyShapeNodeRealizer

java.lang.Object
  |
  +--y.view.NodeRealizer
        |
        +--y.view.ShapeNodeRealizer
              |
              +--y.view.ProxyShapeNodeRealizer
All Implemented Interfaces:
NodeLayout
Direct Known Subclasses:
ProxyAutoBoundsNodeRealizer

public class ProxyShapeNodeRealizer
extends ShapeNodeRealizer

A ShapeNodeRealizer that can act as a proxy to another internally used realizer. Also, this class can maintain a list of realizers, that will be copied, saved and restored when performing these operations on this class. Usually the held realizers define the set of possible delegation targets of this class.


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
ProxyShapeNodeRealizer()
          Creates instance of ProxyShapeNodeRealizer.
ProxyShapeNodeRealizer(NodeRealizer argNodeRealizer)
          Create instance of NodeRealizer and initialize it according to a given NodeRealizer.
 
Method Summary
 void addLabel(NodeLabel nl)
          Add the given label to this realizer.
 void addRealizer(NodeRealizer r)
          Adds a realizer to the list of realizers maintained by this class.
 void calcUnionRect(Rectangle2D r)
          Enlarges the given rectangle such that it will contain the bounding box of this realizer and the bounding box of the realizer label.
 void calcUnionRect(Rectangle2D r, byte layer)
          Enlarges the given rectangle such that it will contain the bounding box of this realizer and the bounding box of the realizer label.
 boolean contains(double x, double y)
          Evaluate hit test on the node realizer.
 NodeRealizer createCopy(NodeRealizer nr)
          Creates a copy of this realizer type that will be initialized with the values found in the given realizer.
 NodeLabel createNodeLabel()
          Creates a new node label that can be added to this realizer.
 boolean findBBIntersection(double ix, double iy, double ox, double oy, Point2D result)
          Returns true iff the coord (ix,iy) is identical with (getCenterX(),getCenterY()) and the coord (ox,oy), lies outside the bounding box of this realizer.
 boolean findIntersection(double ix, double iy, double ox, double oy, Point2D result)
          Special Intersection handling for some types of shape.
 Rectangle2D.Double getBoundingBox()
          Return the bounding box of this realizer.
 double getCenterX()
          Get X-Coordinate of the center of the node.
 double getCenterY()
          Get Y-Coordinate of the center of the node.
 Color getFillColor()
          Returns the fill color of this realizer.
 Color getFillColor2()
          Returns the fill color of this realizer.
 double getHeight()
          Returns the height of this realizer.
 NodeLabel getLabel()
          Returns the first label associated with this realizer.
 NodeLabel getLabel(int i)
          Returns the i-th label associated with this realizer.
 String getLabelText()
          Returns the text of the first label assiciated with this realizer.
 byte getLayer()
          Returns the logical graphical layer for this realizer.
 Color getLineColor()
          Returns the outline color of this realizer.
 LineType getLineType()
          Returns the line type of this realizer.
 YList getPortCandidates(double gridResolution)
          Returns a list of YPoint that contains absolute(!)
 NodeRealizer getRealizer(int i)
          Returns the i-th realizer from the list of realizers maintained by this class.
 NodeRealizer getRealizerDelegate()
          Returns the delegation target of this proxy realizer.
 byte getShapeType()
          Returns shape type of this realizier
 double getWidth()
          Returns the width of this realizer.
 double getX()
          Get X-Coordinate of the upper left corner of the node.
 double getY()
          Get Y-Coordinate of the upper left corner of the node.
 byte hotSpotHit(double hx, double hy)
          Returns one of the predefined hotspot type constants to signal which hotspot is hit by the given coords.
 boolean intersects(double rx, double ry, double rw, double rh)
          Returns true iff the bounding box of this realizer intersects with the given box.
 boolean isInBox(double xb, double yb, double wb, double hb)
          Returns true iff the bounding box of this realizer lies completely within the given box.
 boolean isSelected()
          Returns the selection state of this realizer.
 boolean isTransparent()
          Returns the transparancy state of this realizer.
 boolean isVisible()
          Returns true iff this realizer is marked as visible.
 int labelCount()
          Returns the number of labels associated with this realizer.
 void moveBy(double dx, double dy)
          Moves this realizer by the vector (dx,dy).
 void paint(Graphics2D gfx)
          Paints this realizer and its label(s) on the given graphics context.
 void paintHotSpots(Graphics2D gfx)
          Paints graphical hotspots around this realizer.
 void paintLayer(Graphics2D gfx, byte layer)
          Requests this realizer to paint itself on the given graphics context under the constraint that the given layer is active.
 void paintLayerSloppy(Graphics2D gfx, byte layer)
          Paints the realizer in a cheap, uniform and sloppy way on g.
protected  void paintNode(Graphics2D gfx)
          Paints the node.
 void paintSloppy(Graphics2D g)
          Paints the realizer in a cheap, uniform and sloppy way on g.
 void paintText(Graphics2D gfx)
          Paints the labels that belong to this realizer
 void read(ObjectInputStream in)
          Reads in the serialized form of this realizer.
 int realizerCount()
          Returns the number of realizers maintained by this class.
 void removeLabel(NodeLabel nl)
          Remove the given label from this realizer.
 void removeRealizer(NodeRealizer r)
          Removed a realizer from the list of realizers maintained by this class.
 void setCenter(double x, double y)
          Sets the center location of this realizer
 void setCenterX(double x)
          Set the x coordinate of the center of the node.
 void setCenterY(double y)
          Set the y coordinate of the center of the node.
 void setEdgesDirty()
          Marks adjacent edge realizers as dirty.
 void setFillColor(Color c)
          Sets the fill color for this realizer.
 void setFillColor2(Color c)
          Sets the second fill color for this realizer.
 void setFrame(double x, double y, double width, double height)
          Sets the frame of the realizer, i.e. its size and its location.
 void setFrame(Rectangle2D frame)
          Sets the frame of the realizer, i.e. its size and its location.
 void setHeight(double height)
          Sets the height of this realizer.
 void setLabel(NodeLabel nl)
          Sets the first label associated with this realizer.
 void setLabelText(String label)
          Sets the text of the first label associated with this realizer.
 void setLayer(byte l)
          Sets the logical graphical layer for this realizer.
 void setLayer(byte l, boolean adjacentEdgesAsWell)
          Sets the layer this realizer should be painted on.
 void setLineColor(Color c)
          Sets the outline color for this realizer.
 void setLineType(LineType lt)
          Sets the line type for this realizer.
 void setLocation(double x, double y)
          Sets the upper left corner location of this realizer.
 void setRealizer(int i, NodeRealizer nr)
          Sets the i-th realizer in the list of realizers maintained by this class.
 void setRealizerDelegate(NodeRealizer r)
          Sets the delegation target of this proxy realizer.
 void setSelected(boolean s)
          Sets the selection state of this realizer.
 void setShapeType(byte type)
          Sets the shape type of this realizer.
 void setSize(double width, double height)
          Sets the size of the realizer.
 void setTransparent(boolean b)
          Sets the transparancy of the realizer.
 void setVisible(boolean b)
          Sets the visibility state of this realizer.
 void setWidth(double width)
          Sets the width of this realizer.
 void setX(double xp)
          Sets the X-Coordinate of the upper left corner of the node.
 void setY(double yp)
          Sets the Y-Coordinate of the upper left corner of the node.
 void write(ObjectOutputStream out)
          Writes this realizer in a serialized form to the given stream.
 
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

ProxyShapeNodeRealizer

public ProxyShapeNodeRealizer()
Creates instance of ProxyShapeNodeRealizer.


ProxyShapeNodeRealizer

public ProxyShapeNodeRealizer(NodeRealizer argNodeRealizer)
Create instance of NodeRealizer and initialize it according to a given NodeRealizer.

Parameters:
argNodeRealizer - A NodeRealizer
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 ShapeNodeRealizer

addRealizer

public void addRealizer(NodeRealizer r)
Adds a realizer to the list of realizers maintained by this class.


removeRealizer

public void removeRealizer(NodeRealizer r)
Removed a realizer from the list of realizers maintained by this class.


realizerCount

public int realizerCount()
Returns the number of realizers maintained by this class.


getRealizer

public NodeRealizer getRealizer(int i)
Returns the i-th realizer from the list of realizers maintained by this class.


setRealizer

public void setRealizer(int i,
                        NodeRealizer nr)
Sets the i-th realizer in the list of realizers maintained by this class.


getRealizerDelegate

public NodeRealizer getRealizerDelegate()
Returns the delegation target of this proxy realizer.


setRealizerDelegate

public void setRealizerDelegate(NodeRealizer r)
Sets the delegation target of this proxy realizer.


setFillColor

public void setFillColor(Color c)
Description copied from class: NodeRealizer
Sets the fill color for this realizer.

Overrides:
setFillColor in class NodeRealizer

getFillColor

public Color getFillColor()
Description copied from class: NodeRealizer
Returns the fill color of this realizer.

Overrides:
getFillColor in class NodeRealizer

setFillColor2

public void setFillColor2(Color c)
Description copied from class: NodeRealizer
Sets the second fill color for this realizer. If a second fill color is set, then the realizer will be filled with a gradient paint from fillColor to fillColor2. By default this color is not set, i.e. it is null.

Overrides:
setFillColor2 in class NodeRealizer

getFillColor2

public Color getFillColor2()
Description copied from class: NodeRealizer
Returns the fill color of this realizer.

Overrides:
getFillColor2 in class NodeRealizer

setLineColor

public void setLineColor(Color c)
Description copied from class: NodeRealizer
Sets the outline color for this realizer.

Overrides:
setLineColor in class NodeRealizer

getLineColor

public Color getLineColor()
Description copied from class: NodeRealizer
Returns the outline color of this realizer.

Overrides:
getLineColor in class NodeRealizer

setLineType

public void setLineType(LineType lt)
Description copied from class: NodeRealizer
Sets the line type for this realizer.

Overrides:
setLineType in class NodeRealizer

getLineType

public LineType getLineType()
Description copied from class: NodeRealizer
Returns the line type of this realizer.

Overrides:
getLineType in class NodeRealizer

setTransparent

public void setTransparent(boolean b)
Description copied from class: NodeRealizer
Sets the transparancy of the realizer. Here tranparency means that the node is not filled with a color.

Overrides:
setTransparent in class NodeRealizer

isTransparent

public boolean isTransparent()
Description copied from class: NodeRealizer
Returns the transparancy state of this realizer.

Overrides:
isTransparent in class NodeRealizer

setShapeType

public void setShapeType(byte type)
Description copied from class: ShapeNodeRealizer
Sets the shape type of this realizer. The shape type specifier can be one of the following:

ShapeNodeRealizer.RECT, ShapeNodeRealizer.ROUND_RECT, ShapeNodeRealizer.ELLIPSE, ShapeNodeRealizer.PARALLELOGRAM, ShapeNodeRealizer.HEXAGON, ShapeNodeRealizer.TRIANGLE, ShapeNodeRealizer.RECT_3D, ShapeNodeRealizer.OCTAGON, ShapeNodeRealizer.DIAMOND, ShapeNodeRealizer.TRAPEZOID, ShapeNodeRealizer.TRAPEZOID_2.

Overrides:
setShapeType in class ShapeNodeRealizer

getShapeType

public byte getShapeType()
Description copied from class: ShapeNodeRealizer
Returns shape type of this realizier

Overrides:
getShapeType in class ShapeNodeRealizer
See Also:
ShapeNodeRealizer.setShapeType(byte)

setLabelText

public void setLabelText(String label)
Description copied from class: NodeRealizer
Sets the text of the first label associated with this realizer.

Overrides:
setLabelText in class NodeRealizer
Parameters:
label - the text of the label

getLabelText

public String getLabelText()
Description copied from class: NodeRealizer
Returns the text of the first label assiciated with this realizer.

Overrides:
getLabelText in class NodeRealizer

createNodeLabel

public NodeLabel createNodeLabel()
Description copied from class: NodeRealizer
Creates a new node label that can be added to this realizer.

Overrides:
createNodeLabel in class NodeRealizer

setLabel

public void setLabel(NodeLabel nl)
Description copied from class: NodeRealizer
Sets the first label associated with this realizer.

Overrides:
setLabel in class NodeRealizer

addLabel

public void addLabel(NodeLabel nl)
Description copied from class: NodeRealizer
Add the given label to this realizer. By default a node realizer is associated with one label. By calling this method more labels can be added to the realizer.

Overrides:
addLabel in class NodeRealizer

removeLabel

public void removeLabel(NodeLabel nl)
Description copied from class: NodeRealizer
Remove the given label from this realizer. Removing a label is only permitted if it is not the last label associated with this realizer.

Overrides:
removeLabel in class NodeRealizer

getLabel

public NodeLabel getLabel()
Description copied from class: NodeRealizer
Returns the first label associated with this realizer.

Overrides:
getLabel in class NodeRealizer

getLabel

public NodeLabel getLabel(int i)
Description copied from class: NodeRealizer
Returns the i-th label associated with this realizer.

Overrides:
getLabel in class NodeRealizer

labelCount

public int labelCount()
Description copied from class: NodeRealizer
Returns the number of labels associated with this realizer.

Overrides:
labelCount in class NodeRealizer

getCenterX

public double getCenterX()
Description copied from class: NodeRealizer
Get X-Coordinate of the center of the node.

Overrides:
getCenterX in class NodeRealizer

getCenterY

public double getCenterY()
Description copied from class: NodeRealizer
Get Y-Coordinate of the center of the node.

Overrides:
getCenterY in class NodeRealizer

setCenter

public void setCenter(double x,
                      double y)
Description copied from class: ShapeNodeRealizer
Sets the center location of this realizer

Overrides:
setCenter in class ShapeNodeRealizer

setCenterX

public void setCenterX(double x)
Description copied from class: NodeRealizer
Set the x coordinate of the center of the node.

Overrides:
setCenterX in class NodeRealizer

setCenterY

public void setCenterY(double y)
Description copied from class: NodeRealizer
Set the y coordinate of the center of the node.

Overrides:
setCenterY in class NodeRealizer

getX

public double getX()
Description copied from class: NodeRealizer
Get X-Coordinate of the upper left corner of the node.

Specified by:
getX in interface NodeLayout
Overrides:
getX in class NodeRealizer

getY

public double getY()
Description copied from class: NodeRealizer
Get Y-Coordinate of the upper left corner of the node.

Specified by:
getY in interface NodeLayout
Overrides:
getY in class NodeRealizer

setLocation

public void setLocation(double x,
                        double y)
Description copied from class: ShapeNodeRealizer
Sets the upper left corner location of this realizer.

Specified by:
setLocation in interface NodeLayout
Overrides:
setLocation in class ShapeNodeRealizer
Parameters:
x - the x-coordinates of the upper left corner.
y - the y-coordinates of the upper left corner.

setX

public void setX(double xp)
Description copied from class: NodeRealizer
Sets the X-Coordinate of the upper left corner of the node.

Overrides:
setX in class NodeRealizer

setY

public void setY(double yp)
Description copied from class: NodeRealizer
Sets the Y-Coordinate of the upper left corner of the node.

Overrides:
setY in class NodeRealizer

moveBy

public void moveBy(double dx,
                   double dy)
Description copied from class: ShapeNodeRealizer
Moves this realizer by the vector (dx,dy).

Overrides:
moveBy in class ShapeNodeRealizer

getWidth

public double getWidth()
Description copied from class: NodeRealizer
Returns the width of this realizer.

Specified by:
getWidth in interface NodeLayout
Overrides:
getWidth in class NodeRealizer

getHeight

public double getHeight()
Description copied from class: NodeRealizer
Returns the height of this realizer.

Specified by:
getHeight in interface NodeLayout
Overrides:
getHeight in class NodeRealizer

setFrame

public void setFrame(double x,
                     double y,
                     double width,
                     double height)
Description copied from class: NodeRealizer
Sets the frame of the realizer, i.e. its size and its location.

Overrides:
setFrame in class NodeRealizer

setFrame

public void setFrame(Rectangle2D frame)
Description copied from class: NodeRealizer
Sets the frame of the realizer, i.e. its size and its location.

Overrides:
setFrame in class NodeRealizer

setSize

public void setSize(double width,
                    double height)
Description copied from class: ShapeNodeRealizer
Sets the size of the realizer. Note that this method resizes the node in a way that the center location of this realizer won't change. The upper left corner of this realizer *will* change though.

Specified by:
setSize in interface NodeLayout
Overrides:
setSize in class ShapeNodeRealizer
Parameters:
width - the width of the node.
height - the heigth of the node.

setWidth

public void setWidth(double width)
Description copied from class: NodeRealizer
Sets the width of this realizer. This method delegates to NodeRealizer.setSize(double, double).

Overrides:
setWidth in class NodeRealizer

setHeight

public void setHeight(double height)
Description copied from class: NodeRealizer
Sets the height of this realizer. This method delegates to NodeRealizer.setSize(double,double).

Overrides:
setHeight in class NodeRealizer

setVisible

public void setVisible(boolean b)
Description copied from class: NodeRealizer
Sets the visibility state of this realizer. By default a realizer is visible.

Overrides:
setVisible in class NodeRealizer

isVisible

public boolean isVisible()
Description copied from class: NodeRealizer
Returns true iff this realizer is marked as visible. Invisible realizers won't paint themselves on a graphics context.

Overrides:
isVisible in class NodeRealizer

setLayer

public void setLayer(byte l)
Description copied from class: NodeRealizer
Sets the logical graphical layer for this realizer. Layer information can be used by viewers to optimize redraws.

Overrides:
setLayer in class NodeRealizer
See Also:
Graph2DView.FG_LAYER, Graph2DView.BG_LAYER

getLayer

public byte getLayer()
Description copied from class: NodeRealizer
Returns the logical graphical layer for this realizer. Layer information can be used by viewers to optimize redraws.

Overrides:
getLayer in class NodeRealizer
See Also:
Graph2DView.FG_LAYER, Graph2DView.BG_LAYER

setLayer

public void setLayer(byte l,
                     boolean adjacentEdgesAsWell)
Description copied from class: NodeRealizer
Sets the layer this realizer should be painted on. The layer of the adjacent edges will be set as well if the second argument has value true.

Overrides:
setLayer in class NodeRealizer

setSelected

public void setSelected(boolean s)
Description copied from class: NodeRealizer
Sets the selection state of this realizer. Selected realizers will paint themselves in a highlighted fashion on a graphics context.

Overrides:
setSelected in class NodeRealizer

isSelected

public boolean isSelected()
Description copied from class: NodeRealizer
Returns the selection state of this realizer.

Overrides:
isSelected in class NodeRealizer

getBoundingBox

public Rectangle2D.Double getBoundingBox()
Description copied from class: NodeRealizer
Return the bounding box of this realizer. The bounding box does not necessarily contain the bounding box of the realizer label.

Overrides:
getBoundingBox in class NodeRealizer

hotSpotHit

public byte hotSpotHit(double hx,
                       double hy)
Description copied from class: NodeRealizer
Returns one of the predefined hotspot type constants to signal which hotspot is hit by the given coords.

Overrides:
hotSpotHit in class NodeRealizer

findBBIntersection

public boolean findBBIntersection(double ix,
                                  double iy,
                                  double ox,
                                  double oy,
                                  Point2D result)
Description copied from class: NodeRealizer
Returns true iff the coord (ix,iy) is identical with (getCenterX(),getCenterY()) and the coord (ox,oy), lies outside the bounding box of this realizer. In that case the intersection point of the line (ix,iy) - (ox,oy) with the bounding box of this realizer will be stored in the given point.

Overrides:
findBBIntersection in class NodeRealizer

findIntersection

public boolean findIntersection(double ix,
                                double iy,
                                double ox,
                                double oy,
                                Point2D result)
Description copied from class: ShapeNodeRealizer
Special Intersection handling for some types of shape. When shape is an ellipse or an rectangle, the intersectin point is calculated, not iteratively determined.

Overrides:
findIntersection in class ShapeNodeRealizer

calcUnionRect

public void calcUnionRect(Rectangle2D r,
                          byte layer)
Description copied from class: NodeRealizer
Enlarges the given rectangle such that it will contain the bounding box of this realizer and the bounding box of the realizer label. The given layer indicates for which graphics layer clipping information is collected by doing this call.

Overrides:
calcUnionRect in class NodeRealizer

calcUnionRect

public void calcUnionRect(Rectangle2D r)
Description copied from class: NodeRealizer
Enlarges the given rectangle such that it will contain the bounding box of this realizer and the bounding box of the realizer label.

Overrides:
calcUnionRect in class NodeRealizer

intersects

public boolean intersects(double rx,
                          double ry,
                          double rw,
                          double rh)
Description copied from class: NodeRealizer
Returns true iff the bounding box of this realizer intersects with the given box.

Overrides:
intersects in class NodeRealizer

contains

public boolean contains(double x,
                        double y)
Description copied from class: ShapeNodeRealizer
Evaluate hit test on the node realizer. When a node is transparent, only its boundary is evaluated for the hit test.

Overrides:
contains in class ShapeNodeRealizer
Returns:
true if the position (x,y) is part of the node false otherwise.

isInBox

public boolean isInBox(double xb,
                       double yb,
                       double wb,
                       double hb)
Description copied from class: NodeRealizer
Returns true iff the bounding box of this realizer lies completely within the given box.

Overrides:
isInBox in class NodeRealizer

getPortCandidates

public YList getPortCandidates(double gridResolution)
Description copied from class: NodeRealizer
Returns a list of YPoint that contains absolute(!) coordinates of port candidate locations that are suitable for the given grid resolution.

Overrides:
getPortCandidates in class NodeRealizer

paintNode

protected void paintNode(Graphics2D gfx)
Description copied from class: ShapeNodeRealizer
Paints the node.

Overrides:
paintNode in class ShapeNodeRealizer

paintHotSpots

public void paintHotSpots(Graphics2D gfx)
Description copied from class: NodeRealizer
Paints graphical hotspots around this realizer. The hotspots mark regions on which hit tests can be performed.

Overrides:
paintHotSpots in class NodeRealizer

paintLayer

public void paintLayer(Graphics2D gfx,
                       byte layer)
Description copied from class: NodeRealizer
Requests this realizer to paint itself on the given graphics context under the constraint that the given layer is active. By default this method will do nothing if the given layer does not match the layer of this realizer. Otherwise the regular paint method will be invoked.

Overrides:
paintLayer in class NodeRealizer

paintLayerSloppy

public void paintLayerSloppy(Graphics2D gfx,
                             byte layer)
Description copied from class: NodeRealizer
Paints the realizer in a cheap, uniform and sloppy way on g. The given layer indicates what kind of layer objects should be painted. By default this method does nothing if layer != this.getLayer(). Otherwise paintSloppy gets called.

Overrides:
paintLayerSloppy in class NodeRealizer

paintSloppy

public void paintSloppy(Graphics2D g)
Description copied from class: NodeRealizer
Paints the realizer in a cheap, uniform and sloppy way on g. By default this call draws a rectangle with this realizer's bounds and colors. No label will be painted.

Overrides:
paintSloppy in class NodeRealizer

paint

public void paint(Graphics2D gfx)
Description copied from class: NodeRealizer
Paints this realizer and its label(s) on the given graphics context. this method will do nothing if the realizer is marked as invisible.

Overrides:
paint in class NodeRealizer

paintText

public void paintText(Graphics2D gfx)
Description copied from class: NodeRealizer
Paints the labels that belong to this realizer

Overrides:
paintText in class NodeRealizer

setEdgesDirty

public void setEdgesDirty()
Description copied from class: NodeRealizer
Marks adjacent edge realizers as dirty. Dirty realizers will definitely recalculate their features before painting themselves.

Overrides:
setEdgesDirty in class NodeRealizer

write

public void write(ObjectOutputStream out)
           throws IOException
Writes this realizer in a serialized form to the given stream.

Overrides:
write in class ShapeNodeRealizer
IOException

read

public void read(ObjectInputStream in)
          throws IOException,
                 ClassNotFoundException
Reads in the serialized form of this realizer. The realizer must have been written out before by it's ProxyShapeNodeRealizer.write(ObjectOutputStream) method.

Overrides:
read in class ShapeNodeRealizer
IOException
ClassNotFoundException

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

2003