cytoscape.visual.parsers
Class NodeShapeParser
java.lang.Object
cytoscape.visual.parsers.NodeShapeParser
- All Implemented Interfaces:
- ValueParser
public class NodeShapeParser
- extends Object
- implements ValueParser
Parses a String into a yFiles shape, which is represented by a byte
identifier. The return value here is a Byte object wrapping the
primitive byte identifier.
NodeShapeParser
public NodeShapeParser()
parseStringValue
public Object parseStringValue(String value)
- Description copied from interface:
ValueParser
- Parse the argument into an onject. Returns null if the String is
not parsable.
- Specified by:
parseStringValue
in interface ValueParser
parseNodeShape
public Byte parseNodeShape(String value)
isValidShape
public static boolean isValidShape(byte shape)