|
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.Object cytoscape.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.
Constructor Summary | |
---|---|
Appearance()
Creates a new Appearance object. |
Method Summary | |
---|---|
void |
applyAppearance(EdgeView edgeView)
Applies this appearance to the specified EdgeView. |
void |
applyAppearance(NodeView nodeView)
Applies this appearance to the specified NodeView. |
void |
applyBypass(GraphObject n)
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. |
boolean |
getNodeSizeLocked()
Returns whether or not the node height and width are locked. |
void |
set(VisualPropertyType p,
Object o)
Sets the appearance for the specified VisualPropertyType. |
void |
setNodeSizeLocked(boolean b)
Sets whether or not the node height and width are locked. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
nodeView
- The NodeView that this appearance will be applied to.public void applyAppearance(EdgeView edgeView)
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)
n
- The Node
or Edge
object that the visual bypass
should be applied to.public boolean getNodeSizeLocked()
public void setNodeSizeLocked(boolean b)
|
www.cytoscape.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |