|
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 |
public interface ObjectMapping
Mappings should implement this interface. Mappings are classes that map from
a value stored in the edge attributes or node attributes HashMap in
cytoscape.CyAttributes
. The range of the mapping depends on the
AbstractCalculator
that owns
the mapping.
All classes implementing this interface MUST have a constructor that
takes the arguments Object, CyNetwork, byte, where Object is the default object
the mapper should map to, CyNetwork is the CyNetwork object representing the network
displayed in Cytoscape, and the byte is one of EDGE_MAPPING
or
NODE_MAPPING
.
Field Summary | |
---|---|
static byte |
EDGE_MAPPING
|
static byte |
NODE_MAPPING
|
Method Summary | |
---|---|
void |
addChangeListener(ChangeListener l)
Add a ChangeListener to the mapping. |
void |
applyProperties(Properties props,
String baseKey,
ValueParser parser)
|
Object |
calculateRangeValue(Map attrBundle)
|
Object |
clone()
|
Class[] |
getAcceptedDataClasses()
Return the classes that the ObjectMapping can map from, eg. the contents of the data of the controlling attribute. |
String |
getControllingAttributeName()
Get the controlling attribute name |
JPanel |
getLegend(String s,
byte type)
Deprecated. Use getLegend(VisualPropertyType) instead. Gone 5/2008. |
JPanel |
getLegend(VisualPropertyType type)
|
Properties |
getProperties(String baseKey)
|
Class |
getRangeClass()
|
JPanel |
getUI(JDialog parent,
CyNetwork network)
|
void |
removeChangeListener(ChangeListener l)
Remove a ChangeListener from the mapping. |
void |
setControllingAttributeName(String attrName,
CyNetwork network,
boolean preserveMapping)
Set the controlling attribute name. |
Field Detail |
---|
static final byte EDGE_MAPPING
static final byte NODE_MAPPING
Method Detail |
---|
Class getRangeClass()
Class[] getAcceptedDataClasses()
For example, DiscreteMapping DiscreteMapping
can only accept
String types in the mapped attribute data. Likewise, ContinuousMapping
ContinuousMapping
can only accept numeric types in the mapped
attribute data since it must interpolate.
Return null if this mapping has no restrictions on the domain type.
void setControllingAttributeName(String attrName, CyNetwork network, boolean preserveMapping)
String getControllingAttributeName()
void addChangeListener(ChangeListener l)
l
- ChangeListener to addvoid removeChangeListener(ChangeListener l)
l
- ChangeListener to addObject calculateRangeValue(Map attrBundle)
JPanel getUI(JDialog parent, CyNetwork network)
@Deprecated JPanel getLegend(String s, byte type)
JPanel getLegend(VisualPropertyType type)
Object clone()
void applyProperties(Properties props, String baseKey, ValueParser parser)
Properties getProperties(String baseKey)
|
www.cytoscape.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |