|
Cytoscape 2.8.2 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcytoscape.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 ObjectMappingpublic abstract Properties getProperties(String baseKey)
getProperties in interface ObjectMappingpublic abstract Object calculateRangeValue(Map<String,Object> attrBundle)
ObjectMapping
calculateRangeValue in interface ObjectMappingpublic 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 ObjectMappingpublic String getControllingAttributeName()
ObjectMapping
getControllingAttributeName in interface ObjectMappingpublic Class<?> getRangeClass()
ObjectMapping
getRangeClass in interface ObjectMappingpublic void setControllingAttributeName(String controllingAttrName)
ObjectMapping
setControllingAttributeName in interface ObjectMappingcontrollingAttrName - - name of the attribute associated with this mapping.public abstract Object clone()
clone in interface ObjectMappingclone in class Objectpublic JPanel getLegend(VisualPropertyType type)
getLegend in interface ObjectMapping
@Deprecated
public JPanel getUI(JDialog parent,
CyNetwork network)
getUI in interface ObjectMappingparent - Parent Dialog.network - CyNetwork.
@Deprecated
public void setControllingAttributeName(String attrName,
CyNetwork network,
boolean preserveMapping)
ObjectMapping
setControllingAttributeName in interface ObjectMapping
|
Cytoscape 2.8.2 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||