Cytoscape 2.4.1 (c) 2006,2007 ISB, MSKCC, UCSD

cytoscape.visual.parsers
Class NodeShapeParser

java.lang.Object
  extended by 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.


Constructor Summary
NodeShapeParser()
           
 
Method Summary
static boolean isValidShape(byte shape)
           
 Byte parseNodeShape(String value)
           
 Object parseStringValue(String value)
          Parse the argument into an onject.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeShapeParser

public NodeShapeParser()
Method Detail

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)

www.cytoscape.org