|
Cytoscape 2.8.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcytoscape.visual.Appearance
public class Appearance
A class that holds the appearance information for NodeViews and EdgeViews.
The class is indexed on VisualPropertyType, so to access the node
shape you would use the VisualPropertyType.NODE_SHAPE enum to get and set
node shape values for this Appearance.
| Field Summary | |
|---|---|
protected Map<VisualPropertyType,Object> |
vizProps
|
| Constructor Summary | |
|---|---|
Appearance()
Creates a new Appearance object. |
|
| Method Summary | |
|---|---|
void |
applyAppearance(EdgeView edgeView,
VisualPropertyDependency fdeps)
Applies this appearance to the specified EdgeView. |
void |
applyAppearance(NodeView nodeView,
VisualPropertyDependency fdeps)
Applies this appearance to the specified NodeView. |
void |
applyBypass(GraphObject n,
List<VisualPropertyType> bypassedVPs)
Applies the visual bypass values specified in the node (edge) attributes for the specified node (edge) to the node (edge). |
void |
applyDefaultProperties(Properties nacProps,
String baseKey)
Applies the specified properties as default values for this appearance. |
Object |
clone()
Returns a clone of this Appearance. |
void |
copy(Appearance na)
Copies the specified Appearance into this Appearance object. |
Object |
get(VisualPropertyType p)
Gets the appearance for the specified VisualPropertyType. |
Properties |
getDefaultProperties(String baseKey)
Returns a Properties object that defines this appearance. |
String |
getDescription()
Returns a string describing this appearance with no identifying prefix. |
String |
getDescription(String prefix)
Returns a string describing this appearance. |
void |
set(VisualPropertyType p,
Object o)
Sets the appearance for the specified VisualPropertyType. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Map<VisualPropertyType,Object> vizProps
| Constructor Detail |
|---|
public Appearance()
| Method Detail |
|---|
public void set(VisualPropertyType p,
Object o)
p - The VisualPropertyType that identifies which aspect of the appearance
this particular object should be applied to.o - The object the defines the appearance for the aspect of the appearance
defined by parameter p.public Object get(VisualPropertyType p)
p - The VisualPropertyType that identifies which aspect of the appearance to get.
public void applyAppearance(NodeView nodeView,
VisualPropertyDependency fdeps)
nodeView - The NodeView that this appearance will be applied to.
public void applyAppearance(EdgeView edgeView,
VisualPropertyDependency fdeps)
edgeView - The EdgeView that this appearance will be applied to.
public void applyDefaultProperties(Properties nacProps,
String baseKey)
nacProps - The properties used to specify the default appearance.baseKey - A string identifying which specific properties should be
used for the appearance.public Properties getDefaultProperties(String baseKey)
baseKey - The key to use to identify the specific properties for this appearance.
public String getDescription(String prefix)
prefix - Can be used to apply an identifying prefix to the output strings.
public String getDescription()
public void copy(Appearance na)
na - The Appearance object that will be copied into this Appearance object.public Object clone()
clone in class Object
public void applyBypass(GraphObject n,
List<VisualPropertyType> bypassedVPs)
n - The Node or Edge object that the visual bypass
should be applied to.
|
Cytoscape 2.8.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||