Cytoscape 2.8.0 API

cytoscape.visual.mappings
Class MappingUtil

java.lang.Object
  extended by cytoscape.visual.mappings.MappingUtil

public class MappingUtil
extends Object

Provides simple utility methods for the Mapping classes.


Constructor Summary
MappingUtil()
           
 
Method Summary
static byte getAttributeType(String base, String attr)
          This method determines the type of the attribute used for the mapping.
static String getAttributeTypeString(String base, String attr)
          This method determines the type of the attr used and returns a string representation of it.
static Object parseObjectType(String key, byte attrType)
          This method returns an object of the specified type based on the string read from the props file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappingUtil

public MappingUtil()
Method Detail

getAttributeTypeString

public static String getAttributeTypeString(String base,
                                            String attr)
This method determines the type of the attr used and returns a string representation of it.


getAttributeType

public static byte getAttributeType(String base,
                                    String attr)
This method determines the type of the attribute used for the mapping. The purpose is to support discrete attrs aside from strings.


parseObjectType

public static Object parseObjectType(String key,
                                     byte attrType)
This method returns an object of the specified type based on the string read from the props file.


Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.