|
Cytoscape 2.7.0 (c) 2006,2007 ISB, MSKCC, UCSD | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcytoscape.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 interface cytoscape.visual.mappings.ObjectMapping |
---|
EDGE_MAPPING, NODE_MAPPING |
Constructor Summary | |
---|---|
PassThroughMapping(Object defaultObj)
Creates a new PassThroughMapping object. |
|
PassThroughMapping(Object defaultObj,
byte mapType)
Standard constructor for compatibility with new calculator creation in the UI. |
|
PassThroughMapping(Object defaultObj,
String attrName)
Creates a new PassThroughMapping object. |
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 attrBundle)
DOCUMENT ME! |
Object |
clone()
DOCUMENT ME! |
Class[] |
getAcceptedDataClasses()
DOCUMENT ME! |
String |
getControllingAttributeName()
DOCUMENT ME! |
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. |
Class |
getRangeClass()
DOCUMENT ME! |
JPanel |
getUI(JDialog parent,
CyNetwork network)
DOCUMENT ME! |
void |
removeChangeListener(ChangeListener l)
Empty implementation because PassThroughMapping has no UI. |
void |
setControllingAttributeName(String attrName,
CyNetwork network,
boolean preserveMapping)
DOCUMENT ME! |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PassThroughMapping(Object defaultObj, byte mapType)
defaultObj
- Default object - provided only to establish
mapping's range class.mapType
- unused.public PassThroughMapping(Object defaultObj)
defaultObj
- DOCUMENT ME!public PassThroughMapping(Object defaultObj, String attrName)
defaultObj
- DOCUMENT ME!attrName
- DOCUMENT ME!Method Detail |
---|
public Object clone()
clone
in interface ObjectMapping
clone
in class Object
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
- DOCUMENT ME!network
- DOCUMENT ME!preserveMapping
- DOCUMENT ME!public void addChangeListener(ChangeListener l)
addChangeListener
in interface ObjectMapping
l
- ChangeListener to addpublic void removeChangeListener(ChangeListener l)
removeChangeListener
in interface ObjectMapping
l
- ChangeListener to addpublic JPanel getUI(JDialog parent, CyNetwork network)
getUI
in interface ObjectMapping
parent
- DOCUMENT ME!network
- DOCUMENT ME!
public Object calculateRangeValue(Map attrBundle)
calculateRangeValue
in interface ObjectMapping
attrBundle
- DOCUMENT ME!
public void applyProperties(Properties props, String baseKey, ValueParser parser)
applyProperties
in interface ObjectMapping
public Properties getProperties(String baseKey)
getProperties
in interface ObjectMapping
public JPanel getLegend(VisualPropertyType vpt)
getLegend
in interface ObjectMapping
vpt
- DOCUMENT ME!
|
www.cytoscape.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |