|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.io.graphml.graph2d.GraphicsSerializationToolkit
public class GraphicsSerializationToolkit
Collection of utilities for handling GraphML.
Method Summary | |
---|---|
static boolean |
getBooleanDeserializationProperty(GraphMLParseContext context,
java.lang.Object key)
|
static boolean |
getBooleanSerializationProperty(GraphMLWriteContext context,
java.lang.Object key)
|
static java.lang.String |
getInnerText(org.w3c.dom.Node node)
Returns the concatenation of the contents of the child text and CDATA nodes of the given node. |
static java.awt.Color |
parseColor(java.lang.String colorString)
Decodes a color string produced by valueOf(java.awt.Color) . |
static java.awt.Color |
parseColor(java.lang.String colorString,
boolean isRGBA)
Decodes color strings in hexadecimal RGB, RGBA and ARGB formats. |
static void |
parseNodeLayout(org.w3c.dom.Node root,
NodeLayout nl)
Configure the specified node layout from the data in the given XML node. |
static void |
parsePath(org.w3c.dom.Node root,
EdgeLayout el)
Configure the specified edge layout from the data in the given XML node. |
static java.lang.String |
parseText(org.w3c.dom.Node text)
Concatenates the first adjacent text node children of text . |
static java.awt.Image |
readSharedImageReference(java.lang.String refid,
GraphMLParseContext context)
|
static java.lang.Object |
readSharedReference(java.lang.String refid,
GraphMLParseContext context,
java.lang.Class targetType)
|
static java.lang.String |
valueOf(java.awt.Color c)
Gets the standard string representation of a java color. |
static void |
writeNodeLayout(XmlWriter writer,
NodeLayout nl)
Writes the layout for a NodeLayout. |
static void |
writePath(XmlWriter writer,
EdgeLayout layout)
Writes the path of an EdgeLayout. |
static void |
writeSharedImageReference(java.awt.Image ser,
XmlWriter writer,
java.lang.String refIdAttrName,
GraphMLWriteContext context)
|
static void |
writeSharedReference(java.lang.Object ser,
XmlWriter writer,
java.lang.String refIdAttrName,
GraphMLWriteContext context)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void writePath(XmlWriter writer, EdgeLayout layout)
public static void writeNodeLayout(XmlWriter writer, NodeLayout nl)
public static java.lang.String valueOf(java.awt.Color c)
public static java.lang.String parseText(org.w3c.dom.Node text)
text
.
text
- The parent node whose text content is evaluated.
text
.public static void parseNodeLayout(org.w3c.dom.Node root, NodeLayout nl)
root
- The layout datanl
- The NodeLayout to configure.public static void parsePath(org.w3c.dom.Node root, EdgeLayout el)
root
- The layout datael
- The edge layout to configure.public static java.awt.Color parseColor(java.lang.String colorString)
valueOf(java.awt.Color)
.
colorString
- the color string
public static java.awt.Color parseColor(java.lang.String colorString, boolean isRGBA)
#RRGGBB
.
For RGBA, the string format is assumed to be #RRGGBBAA
.
For ARGB, the string format is assumed to be #AARRGGBB
.
colorString
- the color string.isRGBA
- if true
, input with four color channels is
assumed to be in RGBA format; otherwise it is assumed to be in ARGB
format.public static void writeSharedReference(java.lang.Object ser, XmlWriter writer, java.lang.String refIdAttrName, GraphMLWriteContext context)
public static void writeSharedImageReference(java.awt.Image ser, XmlWriter writer, java.lang.String refIdAttrName, GraphMLWriteContext context)
public static java.lang.Object readSharedReference(java.lang.String refid, GraphMLParseContext context, java.lang.Class targetType) throws GraphMLParseException
GraphMLParseException
public static java.awt.Image readSharedImageReference(java.lang.String refid, GraphMLParseContext context) throws GraphMLParseException
GraphMLParseException
public static boolean getBooleanSerializationProperty(GraphMLWriteContext context, java.lang.Object key)
public static boolean getBooleanDeserializationProperty(GraphMLParseContext context, java.lang.Object key)
public static java.lang.String getInnerText(org.w3c.dom.Node node)
node
- a node
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |