|
Cytoscape 2.8.0 API | |||||||||
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.AbstractMapping 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 class cytoscape.visual.mappings.AbstractMapping |
---|
acceptedClasses, controllingAttrName, rangeClass |
Fields inherited from class cytoscape.visual.SubjectBase |
---|
observers |
Fields inherited from interface cytoscape.visual.mappings.ObjectMapping |
---|
EDGE_MAPPING, NODE_MAPPING |
Constructor Summary | |
---|---|
ContinuousMapping(Class<?> rangeClass,
String controllingAttrName)
|
|
ContinuousMapping(Object defaultObj,
byte mapType)
Deprecated. Use new constructor instead. Will be removed in 10/2011. Controlling attribute name is always required, and now it's a part of constructor argument. |
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<String,Object> attrBundle)
Calculates the Range Value. |
Object |
clone()
Create deep copy of the object. |
List<ContinuousMappingPoint> |
getAllPoints()
Gets all Data Points. |
Interpolator |
getInterpolator()
Gets the Mapping Interpolator. |
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. |
void |
removePoint(int index)
Removes a Point from the List. |
void |
setInterpolator(Interpolator interpolator)
Sets the Mapping Interpolator. |
Methods inherited from class cytoscape.visual.mappings.AbstractMapping |
---|
getAcceptedDataClasses, getControllingAttributeName, getRangeClass, getUI, setControllingAttributeName, setControllingAttributeName |
Methods inherited from class cytoscape.visual.SubjectBase |
---|
addChangeListener, fireStateChanged, removeChangeListener |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface cytoscape.visual.mappings.ObjectMapping |
---|
addChangeListener, removeChangeListener |
Constructor Detail |
---|
@Deprecated 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
public ContinuousMapping(Class<?> rangeClass, String controllingAttrName)
Method Detail |
---|
public Object clone()
clone
in interface ObjectMapping
clone
in class AbstractMapping
public List<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
applyProperties
in class AbstractMapping
props
- Properties Object.baseKey
- Base Key for finding properties.parser
- ValueParser Object.public Properties getProperties(String baseKey)
getProperties
in interface ObjectMapping
getProperties
in class AbstractMapping
baseKey
- Base Key for creating properties.
public Interpolator getInterpolator()
public void setInterpolator(Interpolator interpolator)
interpolator
- Interpolator Object.public JPanel getLegend(VisualPropertyType vpt)
getLegend
in interface ObjectMapping
getLegend
in class AbstractMapping
public Object calculateRangeValue(Map<String,Object> attrBundle)
calculateRangeValue
in interface ObjectMapping
calculateRangeValue
in class AbstractMapping
attrBundle
- A Bundle of Attributes.
|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |