|
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.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(String visualAttr,
byte b)
Deprecated. Use getLegend(VisualPropertyType) instead. Gone 5/2008. |
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 ObjectMappingclone in class Objectpublic Class getRangeClass()
getRangeClass in interface ObjectMappingpublic Class[] getAcceptedDataClasses()
getAcceptedDataClasses in interface ObjectMappingpublic String getControllingAttributeName()
getControllingAttributeName in interface ObjectMapping
public void setControllingAttributeName(String attrName,
CyNetwork network,
boolean preserveMapping)
setControllingAttributeName in interface ObjectMappingattrName - DOCUMENT ME!network - DOCUMENT ME!preserveMapping - DOCUMENT ME!public void addChangeListener(ChangeListener l)
addChangeListener in interface ObjectMappingl - ChangeListener to addpublic void removeChangeListener(ChangeListener l)
removeChangeListener in interface ObjectMappingl - ChangeListener to add
public JPanel getUI(JDialog parent,
CyNetwork network)
getUI in interface ObjectMappingparent - DOCUMENT ME!network - DOCUMENT ME!
public Object calculateRangeValue(Map attrBundle)
calculateRangeValue in interface ObjectMappingattrBundle - DOCUMENT ME!
public void applyProperties(Properties props,
String baseKey,
ValueParser parser)
applyProperties in interface ObjectMappingpublic Properties getProperties(String baseKey)
getProperties in interface ObjectMapping
@Deprecated
public JPanel getLegend(String visualAttr,
byte b)
getLegend in interface ObjectMappingvisualAttr - DOCUMENT ME!b - DOCUMENT ME!
public JPanel getLegend(VisualPropertyType vpt)
getLegend in interface ObjectMappingvpt - DOCUMENT ME!
|
www.cytoscape.org | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||