|
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.VisualStyle
public class VisualStyle
This class encapsulates a full set of visual mapping specifications for Cytoscape. Currently this is implemented by holding a reference to three appearance calculators, one for nodes, one for edges, and one for global visual attributes.
Constructor Summary | |
---|---|
VisualStyle(String name)
Simple constructor, creates default node/edge/global appearance calculators. |
|
VisualStyle(String name,
NodeAppearanceCalculator nac,
EdgeAppearanceCalculator eac,
GlobalAppearanceCalculator gac)
Full constructor. |
|
VisualStyle(VisualStyle toCopy)
Copy constructor. |
|
VisualStyle(VisualStyle toCopy,
String newName)
Copy constructor with new name. |
Method Summary | |
---|---|
Vector |
checkConflictingCalculator(Calculator c)
Check if contained appearance calculators are using given calculator |
Object |
clone()
Perform deep copy of this VisualStyle. |
int |
getDupeCount()
Get how many times this style has been cloned. |
EdgeAppearanceCalculator |
getEdgeAppearanceCalculator()
Get the EdgeAppearanceCalculator for this visual style. |
GlobalAppearanceCalculator |
getGlobalAppearanceCalculator()
Get the GlobalAppearanceCalculator for this visual style. |
String |
getName()
Returns the name of this object. |
NodeAppearanceCalculator |
getNodeAppearanceCalculator()
Get the NodeAppearanceCalculator for this visual style. |
EdgeAppearanceCalculator |
setEdgeAppearanceCalculator(EdgeAppearanceCalculator eac)
Set the EdgeAppearanceCalculator for this visual style. |
GlobalAppearanceCalculator |
setGlobalAppearanceCalculator(GlobalAppearanceCalculator gac)
Set the GlobalAppearanceCalculator for this visual style. |
String |
setName(String n)
Set the name of this visual style. |
NodeAppearanceCalculator |
setNodeAppearanceCalculator(NodeAppearanceCalculator nac)
Set the NodeAppearanceCalculator for this visual style. |
String |
toString()
Returns the name of this object, as returned by getName. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public VisualStyle(String name)
public VisualStyle(String name, NodeAppearanceCalculator nac, EdgeAppearanceCalculator eac, GlobalAppearanceCalculator gac)
public VisualStyle(VisualStyle toCopy)
public VisualStyle(VisualStyle toCopy, String newName)
NullPointerException
- if the second argument is nullMethod Detail |
---|
public int getDupeCount()
public Vector checkConflictingCalculator(Calculator c)
c
- calculator to check conflicts for
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public String toString()
toString
in class Object
public String getName()
public String setName(String n)
n
- the new name
public NodeAppearanceCalculator getNodeAppearanceCalculator()
public NodeAppearanceCalculator setNodeAppearanceCalculator(NodeAppearanceCalculator nac)
nac
- the new NodeAppearanceCalculator
public EdgeAppearanceCalculator getEdgeAppearanceCalculator()
public EdgeAppearanceCalculator setEdgeAppearanceCalculator(EdgeAppearanceCalculator eac)
nac
- the new EdgeAppearanceCalculator
public GlobalAppearanceCalculator getGlobalAppearanceCalculator()
public GlobalAppearanceCalculator setGlobalAppearanceCalculator(GlobalAppearanceCalculator gac)
nac
- the new GlobalAppearanceCalculator
|
www.cytoscape.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |