|
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.PassThroughMapping
public class PassThroughMapping
Defines a mapping from a bundle of data attributes to a visual attribute. The returned value is simply the value of one of the data attributes, defined by the controlling attribute name. This value is type-checked against the expected range class; null is returned instead if the data value is of the wrong type.
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 | |
---|---|
PassThroughMapping(Class<?> rangeClass,
String controllingAttributeName)
Creates a new PassThroughMapping object. |
|
PassThroughMapping(Object defaultObj)
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. |
|
PassThroughMapping(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. |
|
PassThroughMapping(Object defaultObj,
String attrName)
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 |
addChangeListener(ChangeListener l)
Empty implementation because PassThroughMapping has no UI. |
void |
applyProperties(Properties props,
String baseKey,
ValueParser parser)
Customize this object by applying mapping defintions described by the supplied Properties argument. |
Object |
calculateRangeValue(Map<String,Object> attrBundle)
DOCUMENT ME! |
Object |
clone()
Create clone of this instance. |
JPanel |
getLegend(VisualPropertyType vpt)
DOCUMENT ME! |
Properties |
getProperties(String baseKey)
Return a Properties object with entries suitable for customizing this object via the applyProperties method. |
RangeValueCalculator<?> |
getRangeValueCalculator()
|
void |
removeChangeListener(ChangeListener l)
Empty implementation because PassThroughMapping has no UI. |
Methods inherited from class cytoscape.visual.mappings.AbstractMapping |
---|
getAcceptedDataClasses, getControllingAttributeName, getRangeClass, getUI, setControllingAttributeName, setControllingAttributeName |
Methods inherited from class cytoscape.visual.SubjectBase |
---|
fireStateChanged |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Deprecated public PassThroughMapping(Object defaultObj, byte mapType)
defaultObj
- Default object - provided only to establish mapping's range
class.mapType
- unused.
Will be removed in the next release (2.8). Map Type is not in
use.@Deprecated public PassThroughMapping(Object defaultObj)
defaultObj
- DOCUMENT ME!@Deprecated public PassThroughMapping(Object defaultObj, String attrName)
defaultObj
- attrName
- public PassThroughMapping(Class<?> rangeClass, String controllingAttributeName)
defaultObj
- DOCUMENT ME!controllingAttributeName
- DOCUMENT ME!Method Detail |
---|
public Object clone()
clone
in interface ObjectMapping
clone
in class AbstractMapping
public void addChangeListener(ChangeListener l)
addChangeListener
in interface ObjectMapping
addChangeListener
in class SubjectBase
l
- ChangeListener to addpublic void removeChangeListener(ChangeListener l)
removeChangeListener
in interface ObjectMapping
removeChangeListener
in class SubjectBase
l
- ChangeListener to addpublic Object calculateRangeValue(Map<String,Object> attrBundle)
calculateRangeValue
in interface ObjectMapping
calculateRangeValue
in class AbstractMapping
attrBundle
- DOCUMENT ME!
public RangeValueCalculator<?> getRangeValueCalculator()
public void applyProperties(Properties props, String baseKey, ValueParser parser)
applyProperties
in interface ObjectMapping
applyProperties
in class AbstractMapping
public Properties getProperties(String baseKey)
getProperties
in interface ObjectMapping
getProperties
in class AbstractMapping
public JPanel getLegend(VisualPropertyType vpt)
getLegend
in interface ObjectMapping
getLegend
in class AbstractMapping
vpt
- DOCUMENT ME!
|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |