|
||||||||||
| 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
A node realizer that displays a node as scalable vector graphics. The scalable vector graphics must be given in SVG format.
The visual representation of a SVGNodeRealizer is essentially
determined by its associated SVG content.
As a consequence, the implementation of
paintNode(java.awt.Graphics2D) ignores the following properties:
fillColorfillColor2lineColor andlineTypeThis 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)
Deprecated. Use the GraphML format instead. |
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)
Deprecated. Use the GraphML format instead. |
| 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)
public boolean findIntersection(double ix,
double iy,
double ox,
double oy,
Point2D result)
public 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)
public void write(ObjectOutputStream out)
throws IOException
GraphML format instead.
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).
IOException
public void read(ObjectInputStream in)
throws IOException,
ClassNotFoundException
GraphML format instead.
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).
IOException
ClassNotFoundException
|
© Copyright 2002-2010, yWorks GmbH. All rights reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||