|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cytoscape.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.
Field Summary |
---|
Fields inherited from class cytoscape.visual.SubjectBase |
---|
observers |
Constructor Summary | |
---|---|
GlobalAppearanceCalculator()
Creates a new GlobalAppearanceCalculator object. |
|
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)
DOCUMENT ME! |
Color |
calculateEdgeSelectionColor(CyNetwork network)
DOCUMENT ME! |
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)
DOCUMENT ME! |
Color |
calculateNodeSelectionColor(CyNetwork network)
DOCUMENT ME! |
Object |
clone()
Make deep copy of this object |
Color |
getDefaultBackgroundColor()
DOCUMENT ME! |
Color |
getDefaultColor(String name)
Get default color for the given parameter name. |
Color |
getDefaultEdgeReverseSelectionColor()
DOCUMENT ME! |
Color |
getDefaultEdgeSelectionColor()
DOCUMENT ME! |
Color |
getDefaultNodeReverseSelectionColor()
DOCUMENT ME! |
Color |
getDefaultNodeSelectionColor()
DOCUMENT ME! |
String |
getDescription()
Returns a text description of this object's current state. |
static String[] |
getGlobalAppearanceNames()
Get name of global appearances. |
Properties |
getProperties(String baseKey)
Returns a Properties description of this object, suitable for customization by the applyProperties method. |
void |
setDefaultBackgroundColor(Color c)
DOCUMENT ME! |
void |
setDefaultColor(String name,
Color newColor)
DOCUMENT ME! |
void |
setDefaultEdgeReverseSelectionColor(Color c)
DOCUMENT ME! |
void |
setDefaultEdgeSelectionColor(Color c)
DOCUMENT ME! |
void |
setDefaultNodeReverseSelectionColor(Color c)
DOCUMENT ME! |
void |
setDefaultNodeSelectionColor(Color c)
DOCUMENT ME! |
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 |
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 Color getDefaultColor(String name) throws Exception
name
- DOCUMENT ME!
Exception
- DOCUMENT ME!public void setDefaultColor(String name, Color newColor) throws Exception
name
- DOCUMENT ME!newColor
- DOCUMENT ME!
Exception
- DOCUMENT ME!public static String[] getGlobalAppearanceNames()
public GlobalAppearance calculateGlobalAppearance(CyNetwork network)
public void calculateGlobalAppearance(GlobalAppearance appr, CyNetwork network)
public Color getDefaultBackgroundColor()
public void setDefaultBackgroundColor(Color c)
c
- DOCUMENT ME!public Color calculateBackgroundColor(CyNetwork network)
public Color getDefaultNodeSelectionColor()
public void setDefaultNodeSelectionColor(Color c)
c
- DOCUMENT ME!public Color getDefaultNodeReverseSelectionColor()
public void setDefaultNodeReverseSelectionColor(Color c)
c
- DOCUMENT ME!public Color getDefaultEdgeSelectionColor()
public void setDefaultEdgeSelectionColor(Color c)
c
- DOCUMENT ME!public Color getDefaultEdgeReverseSelectionColor()
public void setDefaultEdgeReverseSelectionColor(Color c)
c
- DOCUMENT ME!public Color calculateNodeSelectionColor(CyNetwork network)
network
- DOCUMENT ME!
public Color calculateNodeReverseSelectionColor(CyNetwork network)
network
- DOCUMENT ME!
public Color calculateEdgeSelectionColor(CyNetwork network)
network
- DOCUMENT ME!
public Color calculateEdgeReverseSelectionColor(CyNetwork network)
network
- DOCUMENT ME!
public String getDescription()
public void applyProperties(String name, Properties nacProps, String baseKey, CalculatorCatalog catalog)
public Properties getProperties(String baseKey)
|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |