|
Cytoscape 2.8.2 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcytoscape.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 ObjectMappingclone in class AbstractMappingpublic void addChangeListener(ChangeListener l)
addChangeListener in interface ObjectMappingaddChangeListener in class SubjectBasel - ChangeListener to addpublic void removeChangeListener(ChangeListener l)
removeChangeListener in interface ObjectMappingremoveChangeListener in class SubjectBasel - ChangeListener to addpublic Object calculateRangeValue(Map<String,Object> attrBundle)
calculateRangeValue in interface ObjectMappingcalculateRangeValue in class AbstractMappingattrBundle - DOCUMENT ME!
public RangeValueCalculator<?> getRangeValueCalculator()
public void applyProperties(Properties props,
String baseKey,
ValueParser parser)
applyProperties in interface ObjectMappingapplyProperties in class AbstractMappingpublic Properties getProperties(String baseKey)
getProperties in interface ObjectMappinggetProperties in class AbstractMappingpublic JPanel getLegend(VisualPropertyType vpt)
getLegend in interface ObjectMappinggetLegend in class AbstractMappingvpt - DOCUMENT ME!
|
Cytoscape 2.8.2 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||