|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.graph.view.VisualGraphViewUtil
Utility class for outputing SVG (Scalable Vector Graphics) from a given
VisualGraphView instance.
Please refer to http://www.svg.org for detailed information about the SVG format.
| Method Summary | |
static boolean |
containsAttributeValue(AttributableOnSet attribOnSet,
java.lang.String text)
Checks if the given AttributableOnSet contains an attribute that contains the given text in its value. |
static boolean |
containsAttributeValue(AttributeSet attribs,
java.lang.String text)
Checks if the given AttributeSet contains an attribute that contains the given text in its value. |
static java.util.Collection |
findElementsWithAttributeValue(VisualGraphObjectContainer vgv,
java.lang.String text)
Looks through all elements in the VisualGraphObjectContainer (recursively) and returns all elements whose attribute values contain the given text. |
static void |
renderSVG(VisualGraphView vgv,
java.io.OutputStream svgOutput)
This method outputs the given VisualGraphView into the
given OutputStream. |
static void |
renderSVG(VisualGraphView vgv,
java.io.OutputStream svgOutput,
boolean closeStream)
Renders the SVG to the given outputstream. |
static void |
renderSVG(VisualGraphView vgv,
java.io.OutputStream svgOutput,
boolean closeStream,
boolean compress)
Renders the SVG to the given outputstream. |
static void |
renderSVG(VisualGraphView vgv,
java.io.OutputStream svgOutput,
boolean closeStream,
boolean compress,
boolean optimize)
This method outputs the given VisualGraphView into the
given OutputStream. |
static void |
renderSVG(VisualGraphView vgv,
java.io.OutputStream svgOutput,
boolean closeStream,
boolean compress,
boolean optimize,
Boundary insets)
This method outputs the given VisualGraphView into the
given OutputStream. |
static void |
renderSVG(VisualGraphView vgv,
java.io.OutputStream svgOutput,
boolean closeStream,
boolean compress,
boolean optimize,
Boundary insets,
double[] viewValues,
double[] viewportValues)
This method outputs the given VisualGraphView into the
given OutputStream. |
static void |
setDefaultEdgeType(VisualGraphView vgv,
java.lang.String elementName)
Sets the default edge geometry, style and rule in the given VisualGraphView according to the element in the ElementPool. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static void renderSVG(VisualGraphView vgv,
java.io.OutputStream svgOutput)
VisualGraphView into the
given OutputStream.
vgv - the VisualGraphView to output.svgOutput - the OutputStream to write the svg-data to.
public static void renderSVG(VisualGraphView vgv,
java.io.OutputStream svgOutput,
boolean closeStream)
vgv - The graph to render to SVGsvgOutput - The output stream to write tocloseStream - If true, the stream will be closed afterwards
public static void renderSVG(VisualGraphView vgv,
java.io.OutputStream svgOutput,
boolean closeStream,
boolean compress)
vgv - The graph to render to SVGsvgOutput - The output stream to write tocloseStream - If true, the stream will be closed afterwardscompress - If true, the SVG will be saved in compressed format
public static void renderSVG(VisualGraphView vgv,
java.io.OutputStream svgOutput,
boolean closeStream,
boolean compress,
boolean optimize)
VisualGraphView into the
given OutputStream.
vgv - the VisualGraphView to output.svgOutput - the OutputStream to write the svg-data to.closeStream - If true, the stream will be flushed and closed
before the function returnscompress - True, if the result should be gzippedoptimize - True, if CSS items should be created, so styles that
are used very often are only once in the xml.
public static void renderSVG(VisualGraphView vgv,
java.io.OutputStream svgOutput,
boolean closeStream,
boolean compress,
boolean optimize,
Boundary insets)
VisualGraphView into the
given OutputStream.
vgv - the VisualGraphView to output.svgOutput - the OutputStream to write the svg-data to.closeStream - If true, the stream will be flushed and closed
before the function returnscompress - True, if the result should be gzippedoptimize - True, if CSS items should be created, so styles that
are used very often are only once in the xml.insets - Adds a border around the graph
public static void renderSVG(VisualGraphView vgv,
java.io.OutputStream svgOutput,
boolean closeStream,
boolean compress,
boolean optimize,
Boundary insets,
double[] viewValues,
double[] viewportValues)
VisualGraphView into the
given OutputStream.
vgv - the VisualGraphView to output.svgOutput - the OutputStream to write the svg-data to.closeStream - If true, the stream will be flushed and closed
before the function returnscompress - True, if the result should be gzippedoptimize - True, if CSS items should be created, so styles that
are used very often are only once in the xml.insets - Adds a border around the graphviewValues - double array containing the view values to be used while
render output.viewportValues - double array containing the viewport values to be
used while render output.
public static java.util.Collection findElementsWithAttributeValue(VisualGraphObjectContainer vgv,
java.lang.String text)
vgv - The container to start lookingtext - The text to look for
public static boolean containsAttributeValue(AttributableOnSet attribOnSet,
java.lang.String text)
attribOnSet - The attributable to checktext - The text to look for
public static boolean containsAttributeValue(AttributeSet attribs,
java.lang.String text)
attribs - The attribute set to checktext - The text to look for
public static final void setDefaultEdgeType(VisualGraphView vgv,
java.lang.String elementName)
vgv - The VisualGraphView to modifyelementName - The name of the element in the ElementPool to use
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||