|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.io.graphml.GraphMLHandler
y.io.graphml.graph2d.Graph2DGraphMLHandler
public class Graph2DGraphMLHandler
This class adds configuration to GraphMLHandler for handling Graph2D instances.
The following configuration is added:
GraphElementFactory and HierarchySupport
that handle hierarchy information from HierarchyManager, and set/write Realizer information.NodeRealizerSerializer
and EdgeRealizerSerializer implementations for all Realizers in the core yFiles library. Registers
(de)serialization callbacks for labels, embedded images and other common content.NodeRealizerSerializer
and EdgeRealizerSerializer instances.
![]() |
![]() |
| Nested Class Summary |
|---|
| Constructor Summary | |
|---|---|
Graph2DGraphMLHandler()
|
|
| Method Summary | |
|---|---|
void |
addEdgeRealizerSerializer(EdgeRealizerSerializer ers)
Register a EdgeRealizerSerializer instance. |
void |
addNodeRealizerSerializer(NodeRealizerSerializer nrs)
Register a NodeRealizerSerializer instance. |
protected void |
configureDefaultRealizerSerializers()
Registers RealizerSerializers for all Realizer types in the yFiles for Java library. |
protected void |
configureDeserializationProperties(Graph graph,
GraphMLParser parser)
Configure important deserialization properties of GraphMLHandler. |
protected void |
configureInputHandlers(Graph graph,
GraphMLParser parser)
Register input handlers for Node- and EdgeRealizers, PostProcessors and embedded resources. |
protected void |
configureLookup(Graph graph,
GraphMLParser parser)
Adds HierarchySupport and embedded resource support to the base lookup. |
protected void |
configureLookup(Graph graph,
GraphMLWriter writer)
Adds HierarchySupport and embedded resource support to the base lookup. |
protected void |
configureOutputHandlers(Graph graph,
GraphMLWriter writer)
Register output handlers for Node- and EdgeRealizers, PostProcessors and embedded resources. |
protected void |
configureSerializationProperties(Graph graph,
GraphMLWriter writer)
Configure important serialization properties of GraphMLHandler. |
protected GraphElementFactory |
createGraphElementFactory(GraphMLParser parser,
Graph graph)
Create an GraphElementFactory instance that creates the graph elements for the graph instance. |
protected GraphMLParser |
createGraphMLParser(Graph graph)
Creates a parser and registers a ParseEventListener for the yfiles.foldertype
attribute. |
protected GraphMLWriter |
createGraphMLWriter(Graph graph)
Creates a writer and registers a WriteEventListener for the yfiles.foldertype
attribute. |
protected HierarchySupport |
createHierarchySupport(Graph graph,
GraphMLWriter writer)
|
void |
removeEdgeRealizerSerializer(EdgeRealizerSerializer ers)
Unregister a EdgeRealizerSerializer instance that has been registered with addEdgeRealizerSerializer(EdgeRealizerSerializer) |
void |
removeNodeRealizerSerializer(NodeRealizerSerializer nrs)
Unregister a NodeRealizerSerializer instance that has been registered with addNodeRealizerSerializer(NodeRealizerSerializer) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Graph2DGraphMLHandler()
| Method Detail |
|---|
protected void configureLookup(Graph graph,
GraphMLWriter writer)
configureLookup in class GraphMLHandlergraph - The Graph that is writtenwriter - The writer to configure.GraphMLWriter.setLookup(Class,Object)
protected HierarchySupport createHierarchySupport(Graph graph,
GraphMLWriter writer)
protected void configureInputHandlers(Graph graph,
GraphMLParser parser)
configureInputHandlers in class GraphMLHandlergraph - The graph that will be parsedparser - The parser to configure.
protected void configureOutputHandlers(Graph graph,
GraphMLWriter writer)
configureOutputHandlers in class GraphMLHandlergraph - The graph that will be writtenwriter - The writer to configure.
protected void configureLookup(Graph graph,
GraphMLParser parser)
configureLookup in class GraphMLHandlergraph - The graph that is parsedparser - The parser to configure.GraphMLParser.setLookup(Class,Object)protected GraphMLWriter createGraphMLWriter(Graph graph)
WriteEventListener for the yfiles.foldertype
attribute.
createGraphMLWriter in class GraphMLHandlergraph - The graph that is written
protected GraphMLParser createGraphMLParser(Graph graph)
ParseEventListener for the yfiles.foldertype
attribute.
createGraphMLParser in class GraphMLHandlergraph - The graph that is parsed.
protected GraphElementFactory createGraphElementFactory(GraphMLParser parser,
Graph graph)
GraphMLHandlerGraphElementFactory instance that creates the graph elements for the graph instance.
createGraphElementFactory in class GraphMLHandlerparser - The parser to use.graph - The graph that is populated.
GraphElementFactory instance that is configured for the given parameters.protected void configureDefaultRealizerSerializers()
protected void configureSerializationProperties(Graph graph,
GraphMLWriter writer)
GraphMLHandler.
configureSerializationProperties in class GraphMLHandlergraph - The graph to write.writer - The writer to configure.GraphMLWriter.setSerializationProperty(Object,Object)
protected void configureDeserializationProperties(Graph graph,
GraphMLParser parser)
GraphMLHandlerGraphMLHandler.
configureDeserializationProperties in class GraphMLHandlergraph - The graph to parse.parser - The parser to configure.GraphMLParser.setDeserializationProperty(Object,Object)public void addNodeRealizerSerializer(NodeRealizerSerializer nrs)
nrs - The NodeRealizerSerializer to register.public void addEdgeRealizerSerializer(EdgeRealizerSerializer ers)
ers - The EdgeRealizerSerializer to register.public void removeNodeRealizerSerializer(NodeRealizerSerializer nrs)
addNodeRealizerSerializer(NodeRealizerSerializer)
nrs - The NodeRealizerSerializer to unregister.addNodeRealizerSerializer(NodeRealizerSerializer)public void removeEdgeRealizerSerializer(EdgeRealizerSerializer ers)
addEdgeRealizerSerializer(EdgeRealizerSerializer)
ers - The EdgeRealizerSerializer to unregister.addEdgeRealizerSerializer(EdgeRealizerSerializer)
|
© Copyright 2000-2011, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||