|
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.SubjectBase
cytoscape.visual.mappings.DiscreteMapping
public class DiscreteMapping
Implements a lookup 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.
| Field Summary |
|---|
| Fields inherited from interface cytoscape.visual.mappings.ObjectMapping |
|---|
EDGE_MAPPING, NODE_MAPPING |
| Constructor Summary | |
|---|---|
DiscreteMapping(Object defObj,
byte mapType)
Constructor. |
|
DiscreteMapping(Object defObj,
String attrName,
byte mapType)
Constructor. |
|
| Method Summary | |
|---|---|
void |
applyProperties(Properties props,
String baseKey,
ValueParser parser)
Customizes this object by applying mapping defintions described by the supplied Properties argument. |
Object |
calculateRangeValue(Map attrBundle)
Calculates the Range Value. |
Object |
clone()
Clones the Object. |
Class[] |
getAcceptedDataClasses()
Gets Accepted Data Classes. |
Map |
getAll()
gets all map values |
String |
getControllingAttributeName()
Gets the Name of the Controlling Attribute. |
Object |
getLastKeyModified()
Gets the Last Modified Key. |
JPanel |
getLegend(String visualAttr,
byte b)
Deprecated. Use getLegend(VisualPropertyType) instead. Gone 5/2008. |
JPanel |
getLegend(VisualPropertyType vpt)
DOCUMENT ME! |
Object |
getMapValue(Object key)
Gets Value for Specified Key. |
Properties |
getProperties(String baseKey)
Returns a Properties object with entries suitable for customizing this object via the applyProperties method. |
Class |
getRangeClass()
Gets the Range Class. |
JPanel |
getUI(JDialog parent,
CyNetwork network)
Gets the UI Object Associated with the Mapper. |
void |
putAll(Map<Object,Object> map)
Adds All Members of Specified Map. |
void |
putMapValue(Object key,
Object value)
Puts New Key/Value in Map. |
void |
setControllingAttributeName(String attrName,
CyNetwork n,
boolean preserveMapping)
Call whenever the controlling attribute changes. |
| Methods inherited from class cytoscape.visual.SubjectBase |
|---|
addChangeListener, fireStateChanged, removeChangeListener |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface cytoscape.visual.mappings.ObjectMapping |
|---|
addChangeListener, removeChangeListener |
| Constructor Detail |
|---|
public DiscreteMapping(Object defObj,
byte mapType)
defObj - Default Object.mapType - Map Type, ObjectMapping.EDGE_MAPPING or
ObjectMapping.NODE_MAPPING.
public DiscreteMapping(Object defObj,
String attrName,
byte mapType)
defObj - Default Object.attrName - Controlling Attribute Name.mapType - Map Type, ObjectMapping.EDGE_MAPPING or
ObjectMapping.NODE_MAPPING.| Method Detail |
|---|
public Object clone()
clone in interface ObjectMappingclone in class Objectpublic Object getMapValue(Object key)
key - String Key.
public void putMapValue(Object key,
Object value)
key - Key Object.value - Value Object.public Object getLastKeyModified()
public void putAll(Map<Object,Object> map)
map - Map.public Map getAll()
public Class getRangeClass()
getRangeClass in interface ObjectMappingpublic Class[] getAcceptedDataClasses()
getAcceptedDataClasses in interface ObjectMappingpublic String getControllingAttributeName()
getControllingAttributeName in interface ObjectMapping
public void setControllingAttributeName(String attrName,
CyNetwork n,
boolean preserveMapping)
getUI(javax.swing.JDialog, cytoscape.CyNetwork) to rebuild the UI for this mapping, which in turn calls
loadKeys to load the current data values for the new attribute.
Called by event handler from AbstractCalculator
AbstractCalculator.
setControllingAttributeName in interface ObjectMappingattrName - The name of the new attribute to map to
public void applyProperties(Properties props,
String baseKey,
ValueParser parser)
applyProperties in interface ObjectMappingprops - Properties Object.baseKey - Base Key for finding properties.parser - ValueParser Object.public Properties getProperties(String baseKey)
getProperties in interface ObjectMappingbaseKey - Base Key for creating properties.
public Object calculateRangeValue(Map attrBundle)
calculateRangeValue in interface ObjectMappingattrBundle - A Bundle of Attributes.
public JPanel getUI(JDialog parent,
CyNetwork network)
getUI in interface ObjectMappingparent - Parent Dialog.network - CyNetwork.
@Deprecated
public JPanel getLegend(String visualAttr,
byte b)
getLegend in interface ObjectMappingvisualAttr - The name of the visual attribute using this mapping.
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 | ||||||||