|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.view.NodeRealizer
yext.svg.view.SVGNodeRealizer
public class SVGNodeRealizer
A node realizer that displays a node as a scalable vector graphics. The scalable vector graphics must be given in SVG format.
This node realizer is based on the SVG implementation provided by the Batik project.
| Field Summary |
|---|
| 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 | |
|---|---|
SVGNodeRealizer()
Creates a new SVGNodeRealizer with no SVG graphics associated with it. |
|
SVGNodeRealizer(NodeRealizer argNodeRealizer)
Creates a new SVGNodeRealizer whose attributes are copied from the given realizer. |
|
SVGNodeRealizer(SVGModel model)
Creates a new SVGIcon that displays the given SVG model. |
|
SVGNodeRealizer(URL svgURL)
Creates a new SVGNodeRealizer displaying the given SVG graphics. |
|
| Method Summary | |
|---|---|
NodeRealizer |
createCopy(NodeRealizer nr)
Creates and returns a new SVGNodeRealizer whose attributes are copied from the given realizer. |
boolean |
findIntersection(double ix,
double iy,
double ox,
double oy,
Point2D result)
|
SVGModel |
getModel()
Returns the underlying SVG model for this SVGNodeRealizer. |
URL |
getSVGURL()
Returns the URL of the SVG graphics that will be displayed by this realizer. |
void |
paintNode(Graphics2D gfx)
Paints the node as scalable vector graphics on the given graphics context. |
void |
read(ObjectInputStream in)
Reads in the serialized form of this realizer. |
void |
setModel(SVGModel model)
Sets the underlying SVG model for this SVGNodeRealizer. |
void |
setSVGURL(URL svgURL)
Sets the URL of the SVG graphics that will be displayed by this realizer. |
void |
setToOriginalSize()
Sets the size of this realizer to the natural size of the svg graphics being displayed. |
void |
write(ObjectOutputStream out)
Writes out this realizer in a serialized form. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SVGNodeRealizer()
public SVGNodeRealizer(SVGModel model)
public SVGNodeRealizer(URL svgURL)
public SVGNodeRealizer(NodeRealizer argNodeRealizer)
| Method Detail |
|---|
public NodeRealizer createCopy(NodeRealizer nr)
createCopy in class NodeRealizer
public boolean findIntersection(double ix,
double iy,
double ox,
double oy,
Point2D result)
findIntersection in class NodeRealizerpublic URL getSVGURL()
public void setSVGURL(URL svgURL)
public SVGModel getModel()
SVGNodeRealizer.
public void setModel(SVGModel model)
SVGNodeRealizer.
public void setToOriginalSize()
public void paintNode(Graphics2D gfx)
paintNode in class NodeRealizer
public void write(ObjectOutputStream out)
throws IOException
SVGNodeRealizer now serializes the complete
information contained in the SVG DOM as well as the URL associated to the
realizer. As a side effect, serialization/deserialization no longer depends
on the location and content of the original SVG file
(if that existed at all).
write in class NodeRealizerIOException
public void read(ObjectInputStream in)
throws IOException,
ClassNotFoundException
SVGNodeRealizer now deserializes the complete
information for the SVG DOM as well as the URL associated to the
realizer. As a side effect, serialization/deserialization no longer depends
on the location and content of the original SVG file
(if that existed at all).
read in class NodeRealizerIOException
ClassNotFoundException
|
© Copyright 2000-2007, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||