|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cytoscape.visual.SubjectBase cytoscape.visual.mappings.AbstractMapping
public abstract class AbstractMapping
Field Summary | |
---|---|
protected Class<?>[] |
acceptedClasses
|
protected String |
controllingAttrName
|
protected Class<?> |
rangeClass
|
Fields inherited from class cytoscape.visual.SubjectBase |
---|
observers |
Fields inherited from interface cytoscape.visual.mappings.ObjectMapping |
---|
EDGE_MAPPING, NODE_MAPPING |
Constructor Summary | |
---|---|
AbstractMapping(Class<?> rangeClass,
String controllingAttrName)
|
Method Summary | |
---|---|
abstract void |
applyProperties(Properties props,
String baseKey,
ValueParser parser)
|
abstract Object |
calculateRangeValue(Map<String,Object> attrBundle)
Create a mapped visual representation from the given attribute value. |
abstract Object |
clone()
|
Class<?>[] |
getAcceptedDataClasses()
Return the classes that the ObjectMapping can map from, eg. |
String |
getControllingAttributeName()
Get the controlling attribute name |
JPanel |
getLegend(VisualPropertyType type)
|
abstract Properties |
getProperties(String baseKey)
|
Class<?> |
getRangeClass()
Class of mapped object. |
JPanel |
getUI(JDialog parent,
CyNetwork network)
Deprecated. |
void |
setControllingAttributeName(String controllingAttrName)
Set controlling attribute of this mapping. |
void |
setControllingAttributeName(String attrName,
CyNetwork network,
boolean preserveMapping)
Deprecated. |
Methods inherited from class cytoscape.visual.SubjectBase |
---|
addChangeListener, fireStateChanged, removeChangeListener |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface cytoscape.visual.mappings.ObjectMapping |
---|
addChangeListener, removeChangeListener |
Field Detail |
---|
protected final Class<?> rangeClass
protected String controllingAttrName
protected Class<?>[] acceptedClasses
Constructor Detail |
---|
public AbstractMapping(Class<?> rangeClass, String controllingAttrName)
Method Detail |
---|
public abstract void applyProperties(Properties props, String baseKey, ValueParser parser)
applyProperties
in interface ObjectMapping
public abstract Properties getProperties(String baseKey)
getProperties
in interface ObjectMapping
public abstract Object calculateRangeValue(Map<String,Object> attrBundle)
ObjectMapping
calculateRangeValue
in interface ObjectMapping
public Class<?>[] getAcceptedDataClasses()
ObjectMapping
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.
getAcceptedDataClasses
in interface ObjectMapping
public String getControllingAttributeName()
ObjectMapping
getControllingAttributeName
in interface ObjectMapping
public Class<?> getRangeClass()
ObjectMapping
getRangeClass
in interface ObjectMapping
public void setControllingAttributeName(String controllingAttrName)
ObjectMapping
setControllingAttributeName
in interface ObjectMapping
controllingAttrName
- - name of the attribute associated with this mapping.public abstract Object clone()
clone
in interface ObjectMapping
clone
in class Object
public JPanel getLegend(VisualPropertyType type)
getLegend
in interface ObjectMapping
@Deprecated public JPanel getUI(JDialog parent, CyNetwork network)
getUI
in interface ObjectMapping
parent
- Parent Dialog.network
- CyNetwork.
@Deprecated public void setControllingAttributeName(String attrName, CyNetwork network, boolean preserveMapping)
ObjectMapping
setControllingAttributeName
in interface ObjectMapping
|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |