|
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,
Object key)
|
static boolean |
getBooleanSerializationProperty(GraphMLWriteContext context,
Object key)
|
static String |
getInnerText(Node node)
Returns the concatenation of the contents of the child text and CDATA nodes of the given node. |
static Color |
parseColor(String colorString)
Decodes a color string produced by valueOf(java.awt.Color) . |
static void |
parseNodeLayout(Node root,
NodeLayout nl)
Configure nl from the data in root . |
static void |
parsePath(Node root,
EdgeLayout el)
Configure el from the data in root . |
static String |
parseText(Node text)
Concatenates the first adjacent text node children of text . |
static Image |
readSharedImageReference(String refid,
GraphMLParseContext context)
|
static Object |
readSharedReference(String refid,
GraphMLParseContext context,
Class targetType)
|
static String |
valueOf(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(Image ser,
XmlWriter writer,
String refIdAttrName,
GraphMLWriteContext context)
|
static void |
writeSharedReference(Object ser,
XmlWriter writer,
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 String valueOf(Color c)
public static String parseText(Node text)
text
.
text
- The parent node whose text content is evaluated.
text
.public static void parseNodeLayout(Node root, NodeLayout nl)
nl
from the data in root
.
root
- The layout datanl
- The NodeLayout to configure.public static void parsePath(Node root, EdgeLayout el)
el
from the data in root
.
root
- The layout datael
- The EdgeLayout to configure.public static Color parseColor(String colorString)
valueOf(java.awt.Color)
.
colorString
- the color string
public static void writeSharedReference(Object ser, XmlWriter writer, String refIdAttrName, GraphMLWriteContext context)
public static void writeSharedImageReference(Image ser, XmlWriter writer, String refIdAttrName, GraphMLWriteContext context)
public static Object readSharedReference(String refid, GraphMLParseContext context, Class targetType) throws GraphMLParseException
GraphMLParseException
public static Image readSharedImageReference(String refid, GraphMLParseContext context) throws GraphMLParseException
GraphMLParseException
public static boolean getBooleanSerializationProperty(GraphMLWriteContext context, Object key)
public static boolean getBooleanDeserializationProperty(GraphMLParseContext context, Object key)
public static String getInnerText(Node node)
node
- a node
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |