Cytoscape 2.8.0 API

cytoscape.visual.mappings
Enum MappingType

java.lang.Object
  extended by java.lang.Enum<MappingType>
      extended by cytoscape.visual.mappings.MappingType
All Implemented Interfaces:
Serializable, Comparable<MappingType>

public enum MappingType
extends Enum<MappingType>

Defines visual mapping types. This replaces all hard-coded strings related to mappings.

Since:
Cytoscape 2.5
Version:
0.5
Author:
Keiichiro Ono

Enum Constant Summary
CONTINUOUS
           
DISCRETE
           
PASSTHROUGH
           
 
Method Summary
 String getBaseKey()
          DOCUMENT ME!
static MappingType getMappingType(String baseKey)
          Deprecated. Will be removed 5/2008
 String getName()
          DOCUMENT ME!
 String getPropertyKey()
          DOCUMENT ME!
static MappingType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MappingType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DISCRETE

public static final MappingType DISCRETE

CONTINUOUS

public static final MappingType CONTINUOUS

PASSTHROUGH

public static final MappingType PASSTHROUGH
Method Detail

values

public static MappingType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (MappingType c : MappingType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static MappingType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getName

public String getName()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getBaseKey

public String getBaseKey()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getPropertyKey

public String getPropertyKey()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getMappingType

@Deprecated
public static MappingType getMappingType(String baseKey)
Deprecated. Will be removed 5/2008

DOCUMENT ME!

Parameters:
baseKey - DOCUMENT ME!
Returns:
DOCUMENT ME!

Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.