|
||||||||||
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.EdgeGraphicsParser
This class is used by EdgeParser. It can parse the .edge.graphics scope It will create an EdgeRealizer for each run.
Field Summary |
Fields inherited from class y.io.gml.ItemParser |
attributes, childMap, delegate, level |
Constructor Summary | |
EdgeGraphicsParser()
|
Method Summary | |
void |
attribute(String key,
String value)
Note: subclass implementers should make a super call, if they want to overwrite this method. |
void |
begin()
this method will be called as soon as the parser enters the scope. |
void |
childFinished(ItemParser child)
this method will be called, as soon as the a child ItemParser finished and returned from its end() method. |
static Arrow |
decodeArrow(String name)
|
static byte |
decodeLineStyle(String lineStyle)
Decodes a line-style GML value to one of the line type constants LineType.LINE_STYLE , LineType.DASHED_STYLE
or LineType.DOTTED_STYLE . |
void |
end()
this method will be called as soon as the parser leaves the scope. |
EdgeRealizer |
getEdgeRealizer()
|
Object |
getItem()
Returns the "product" of this scope. |
Methods inherited from class y.io.gml.ItemParser |
addAttribute, addChild, attribute, beginScope, 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 EdgeGraphicsParser()
Method Detail |
public void attribute(String key, String value)
ItemParser
attribute
in interface GMLTokenizer.Callback
attribute
in class ItemParser
key
- the key of the attribute value pairvalue
- the string valuepublic void begin()
ItemParser
begin
in class ItemParser
public void childFinished(ItemParser child)
ItemParser
childFinished
in class ItemParser
child
- the child ItemParser, which just finishedpublic void end()
ItemParser
end
in class ItemParser
public static byte decodeLineStyle(String lineStyle)
LineType.LINE_STYLE
, LineType.DASHED_STYLE
or LineType.DOTTED_STYLE
.
public EdgeRealizer getEdgeRealizer()
public 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 Arrow decodeArrow(String name)
|
© Copyright 2000-2003, yWorks GmbH. All rights reserved. 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |