|
Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cytoscape.visual.SubjectBase cytoscape.visual.mappings.ContinuousMapping
public class ContinuousMapping
Implements an interpolation table mapping data to values of a particular class. The data value is extracted from a bundle of attributes by using a specified data attribute name. For refactoring changes in this class, please refer to: cytoscape.visual.mappings.continuous.README.txt.
Field Summary |
---|
Fields inherited from interface cytoscape.visual.mappings.ObjectMapping |
---|
EDGE_MAPPING, NODE_MAPPING |
Constructor Summary | |
---|---|
ContinuousMapping(Object defaultObj,
byte mapType)
Constructor. |
Method Summary | |
---|---|
void |
addPoint(double value,
BoundaryRangeValues brv)
Adds a New Data Point. |
void |
applyProperties(Properties props,
String baseKey,
ValueParser parser)
Customizes this object by applying mapping defintions described by the supplied Properties argument. |
Object |
calculateRangeValue(Map attrBundle)
Calculates the Range Value. |
Object |
clone()
Create deep copy of the object. |
Class[] |
getAcceptedDataClasses()
Gets Accepted Data Classes. |
ArrayList<ContinuousMappingPoint> |
getAllPoints()
Gets all Data Points. |
String |
getControllingAttributeName()
Gets the Name of the Controlling Attribute. |
Interpolator |
getInterpolator()
Gets the Mapping Interpolator. |
JPanel |
getLegend(String visualAttr,
byte b)
Deprecated. Use getLegend(VisualPropertyType) instead. Gone 5/2008. |
JPanel |
getLegend(VisualPropertyType vpt)
|
ContinuousMappingPoint |
getPoint(int index)
Gets Specified Point. |
int |
getPointCount()
Gets Total Point Count. |
Properties |
getProperties(String baseKey)
Returns a Properties object with entries suitable for customizing this object via the applyProperties method. |
Class |
getRangeClass()
Gets the Range Class. |
JPanel |
getUI(JDialog dialog,
CyNetwork network)
Gets the UI Object Associated with the Mapper. |
void |
removePoint(int index)
Removes a Point from the List. |
void |
setControllingAttributeName(String attrName,
CyNetwork network,
boolean preserveMapping)
Sets the Name of the Controlling Attribte. |
void |
setInterpolator(Interpolator interpolator)
Sets the Mapping Interpolator. |
Methods inherited from class cytoscape.visual.SubjectBase |
---|
addChangeListener, fireStateChanged, removeChangeListener |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface cytoscape.visual.mappings.ObjectMapping |
---|
addChangeListener, removeChangeListener |
Constructor Detail |
---|
public ContinuousMapping(Object defaultObj, byte mapType) throws IllegalArgumentException
defaultObj
- default object to map tomapType
- Type of mapping, one of
ObjectMapping.EDGE_MAPPING
or ObjectMapping.NODE_MAPPING
IllegalArgumentException
Method Detail |
---|
public Object clone()
clone
in interface ObjectMapping
clone
in class Object
public ArrayList<ContinuousMappingPoint> getAllPoints()
public void addPoint(double value, BoundaryRangeValues brv)
public void removePoint(int index)
public int getPointCount()
public ContinuousMappingPoint getPoint(int index)
index
- Index Value.
public void applyProperties(Properties props, String baseKey, ValueParser parser)
applyProperties
in interface ObjectMapping
props
- Properties Object.baseKey
- Base Key for finding properties.parser
- ValueParser Object.public Properties getProperties(String baseKey)
getProperties
in interface ObjectMapping
baseKey
- Base Key for creating properties.
public Class getRangeClass()
getRangeClass
in interface ObjectMapping
public Class[] getAcceptedDataClasses()
getAcceptedDataClasses
in interface ObjectMapping
public String getControllingAttributeName()
getControllingAttributeName
in interface ObjectMapping
public void setControllingAttributeName(String attrName, CyNetwork network, boolean preserveMapping)
setControllingAttributeName
in interface ObjectMapping
attrName
- Attribute Name.network
- CytoscapeNetwork Object.preserveMapping
- Flag to preserve mapping.public Interpolator getInterpolator()
public void setInterpolator(Interpolator interpolator)
interpolator
- Interpolator Object.public JPanel getUI(JDialog dialog, CyNetwork network)
getUI
in interface ObjectMapping
dialog
- Parent Dialog.network
- CyNetwork.
@Deprecated public JPanel getLegend(String visualAttr, byte b)
getLegend
in interface ObjectMapping
public JPanel getLegend(VisualPropertyType vpt)
getLegend
in interface ObjectMapping
public Object calculateRangeValue(Map attrBundle)
calculateRangeValue
in interface ObjectMapping
attrBundle
- A Bundle of Attributes.
|
www.cytoscape.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |