|
Cytoscape 2.4.1 (c) 2006,2007 ISB, MSKCC, UCSD | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcytoscape.visual.SubjectBase
cytoscape.visual.GlobalAppearanceCalculator
public class GlobalAppearanceCalculator
This class calculates global visual attributes such as the background color of the graph window. Currently dynamic calculators for these values are not supported, only default values.
Constructor Summary | |
---|---|
GlobalAppearanceCalculator()
|
|
GlobalAppearanceCalculator(GlobalAppearanceCalculator toCopy)
Copy constructor. |
|
GlobalAppearanceCalculator(String name,
Properties gProps,
String baseKey,
CalculatorCatalog catalog)
Creates a new GlobalAppearanceCalculator and immediately customizes it by calling applyProperties with the supplied arguments. |
Method Summary | |
---|---|
void |
applyProperties(String name,
Properties nacProps,
String baseKey,
CalculatorCatalog catalog)
This method customizes this object by searching the supplied properties object for keys identifying default values and calculators. |
Color |
calculateBackgroundColor(CyNetwork network)
Currently no calculators are supported for global visual attributes, so this method simply returns the default background color. |
Color |
calculateEdgeReverseSelectionColor(CyNetwork network)
|
Color |
calculateEdgeSelectionColor(CyNetwork network)
|
GlobalAppearance |
calculateGlobalAppearance(CyNetwork network)
Constructs a new GlobalAppearance object containing the values for the known global visual attributes. |
void |
calculateGlobalAppearance(GlobalAppearance appr,
CyNetwork network)
The supplied GlobalAppearance object will be changed to hold new values for the known global visual attributes. |
Color |
calculateNodeReverseSelectionColor(CyNetwork network)
|
Color |
calculateNodeSelectionColor(CyNetwork network)
|
Color |
calculateSloppySelectionColor(CyNetwork network)
Currently no calculators are supported for global visual attributes, so this method simply returns the default sloppy selection color. |
Object |
clone()
Make shallow copy of this object |
Color |
getDefaultBackgroundColor()
|
Color |
getDefaultEdgeReverseSelectionColor()
|
Color |
getDefaultEdgeSelectionColor()
|
Color |
getDefaultNodeReverseSelectionColor()
|
Color |
getDefaultNodeSelectionColor()
|
Color |
getDefaultSloppySelectionColor()
|
String |
getDescription()
Returns a text description of this object's current state. |
Properties |
getProperties(String baseKey)
Returns a Properties description of this object, suitable for customization by the applyProperties method. |
void |
setDefaultBackgroundColor(Color c)
|
void |
setDefaultEdgeReverseSelectionColor(Color c)
|
void |
setDefaultEdgeSelectionColor(Color c)
|
void |
setDefaultNodeReverseSelectionColor(Color c)
|
void |
setDefaultNodeSelectionColor(Color c)
|
void |
setDefaultSloppySelectionColor(Color c)
|
Methods inherited from class cytoscape.visual.SubjectBase |
---|
addChangeListener, fireStateChanged, removeChangeListener |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GlobalAppearanceCalculator()
public GlobalAppearanceCalculator(GlobalAppearanceCalculator toCopy)
public GlobalAppearanceCalculator(String name, Properties gProps, String baseKey, CalculatorCatalog catalog)
Method Detail |
---|
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public GlobalAppearance calculateGlobalAppearance(CyNetwork network)
public void calculateGlobalAppearance(GlobalAppearance appr, CyNetwork network)
public Color getDefaultBackgroundColor()
public void setDefaultBackgroundColor(Color c)
public Color calculateBackgroundColor(CyNetwork network)
public Color getDefaultSloppySelectionColor()
public void setDefaultSloppySelectionColor(Color c)
public Color getDefaultNodeSelectionColor()
public void setDefaultNodeSelectionColor(Color c)
public Color getDefaultNodeReverseSelectionColor()
public void setDefaultNodeReverseSelectionColor(Color c)
public Color getDefaultEdgeSelectionColor()
public void setDefaultEdgeSelectionColor(Color c)
public Color getDefaultEdgeReverseSelectionColor()
public void setDefaultEdgeReverseSelectionColor(Color c)
public Color calculateSloppySelectionColor(CyNetwork network)
public Color calculateNodeSelectionColor(CyNetwork network)
public Color calculateNodeReverseSelectionColor(CyNetwork network)
public Color calculateEdgeSelectionColor(CyNetwork network)
public Color calculateEdgeReverseSelectionColor(CyNetwork network)
public String getDescription()
public void applyProperties(String name, Properties nacProps, String baseKey, CalculatorCatalog catalog)
public Properties getProperties(String baseKey)
|
www.cytoscape.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |