|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.io.gml.ItemParser y.io.gml.NodeGraphicsParser
public class NodeGraphicsParser
This class will parse the node graphics section from a valid GML file and create appropriate NodeRealizers
Field Summary |
---|
Fields inherited from class y.io.gml.ItemParser |
---|
attributes, childMap, delegate, level |
Constructor Summary | |
---|---|
NodeGraphicsParser(java.net.URL contextURL)
|
Method Summary | |
---|---|
void |
begin()
this method will be called as soon as the parser enters the scope. |
void |
beginScope(java.lang.String scopeName)
Note: subclass implementers should make a super call, if they want to overwrite this method. |
protected java.lang.String |
decodeType(java.lang.String externalName)
Returns the qualified class name for the given external name. |
void |
end()
this method will be called as soon as the parser leaves the scope. |
java.lang.Object |
getItem()
Returns the "product" of this scope. |
NodeRealizer |
getNodeRealizer()
Gets the node realizer that is the result of this parsing process. |
static byte |
getShape(java.lang.String name)
Decodes a ShapeNodeRealizer.getShapeType() given a String representation. |
protected java.net.URL |
getURL(java.lang.String resource,
java.net.URL contextURL)
Tries to resolve an resource as an URL using a given context URL. |
Methods inherited from class y.io.gml.ItemParser |
---|
addAttribute, addChild, attribute, attribute, childFinished, endScope, getAttributes, getBoolean, getDouble, getDouble, getInt, getInt, getLevel, getString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NodeGraphicsParser(java.net.URL contextURL)
Method Detail |
---|
public void beginScope(java.lang.String scopeName)
ItemParser
beginScope
in interface GMLTokenizer.Callback
beginScope
in class ItemParser
scopeName
- the name of the scopepublic void begin()
ItemParser
begin
in class ItemParser
public void end()
ItemParser
end
in class ItemParser
protected java.lang.String decodeType(java.lang.String externalName)
By default, this method delegates to YGFIOHandler.decode(String)
.
Note: To prevent obfuscation from breaking user data and style property serialization, an explicit class name encoding should be specified for user data types and style property value types.
YGFIOHandler.addEncoding(String, String)
,
NodeRealizerObjectEncoder.encodeType(String)
protected java.net.URL getURL(java.lang.String resource, java.net.URL contextURL)
public NodeRealizer getNodeRealizer()
public java.lang.Object getItem()
ItemParser
ItemParser.end()
has been called. The latter should construct
the resulting item from the collected data and this item
should be returned by this method. By default, this method
return the map of the attributes.
getItem
in class ItemParser
Map
public static byte getShape(java.lang.String name)
ShapeNodeRealizer.getShapeType()
given a String representation.
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |