|
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.NodeAppearanceCalculator
public class NodeAppearanceCalculator
This class calculates the appearance of a Node. It holds a default value and a (possibly null) calculator for each visual attribute.
Field Summary | |
---|---|
static String |
nodeBorderColorBypass
Deprecated. Use calculator.getAttrNameBypass() instead. Will be removed Sept 2007. |
static String |
nodeFillColorBypass
Deprecated. Use calculator.getAttrNameBypass() instead. Will be removed Sept 2007. |
static String |
nodeFontBypass
Deprecated. Use calculator.getAttrNameBypass() instead. Will be removed Sept 2007. |
static String |
nodeHeightBypass
Deprecated. Use calculator.getAttrNameBypass() instead. Will be removed Sept 2007. |
static String |
nodeLabelBypass
Deprecated. Use calculator.getAttrNameBypass() instead. Will be removed Sept 2007. |
static String |
nodeLabelColorBypass
Deprecated. Use calculator.getAttrNameBypass() instead. Will be removed Sept 2007. |
static String |
nodeLineTypeBypass
Deprecated. Use calculator.getAttrNameBypass() instead. Will be removed Sept 2007. |
static String |
nodeShapeBypass
Deprecated. Use calculator.getAttrNameBypass() instead. Will be removed Sept 2007. |
static String |
nodeToolTipBypass
Deprecated. Use calculator.getAttrNameBypass() instead. Will be removed Sept 2007. |
static String |
nodeWidthBypass
Deprecated. Use calculator.getAttrNameBypass() instead. Will be removed Sept 2007. |
Constructor Summary | |
---|---|
NodeAppearanceCalculator()
|
|
NodeAppearanceCalculator(NodeAppearanceCalculator toCopy)
Copy constructor. |
|
NodeAppearanceCalculator(String name,
Properties nacProps,
String baseKey,
CalculatorCatalog catalog)
Creates a new NodeAppearanceCalculator and immediately customizes it by calling applyProperties with the supplied arguments. |
Method Summary | |
---|---|
void |
applyProperties(String name,
Properties nacProps,
String baseKey,
CalculatorCatalog catalog)
|
void |
calculateNodeAppearance(NodeAppearance appr,
Node node,
CyNetwork network)
Using the rules defined by the default values and calculators in this object, compute an appearance for the requested Node in the supplied CyNetwork. |
NodeAppearance |
calculateNodeAppearance(Node node,
CyNetwork network)
Using the rules defined by the default values and calculators in this object, compute an appearance for the requested Node in the supplied CyNetwork. |
Color |
calculateNodeBorderColor(Node node,
CyNetwork network)
Deprecated. Use calculateNodeAppearance() and get the value from the NodeAppearance. This method will be removed Sept 2007. |
Color |
calculateNodeFillColor(Node node,
CyNetwork network)
Deprecated. Use calculateNodeAppearance() and get the value from the NodeAppearance. This method will be removed Sept 2007. |
Font |
calculateNodeFont(Node node,
CyNetwork network)
Deprecated. Use calculateNodeAppearance() and get the value from the NodeAppearance. This method will be removed Sept 2007. |
double |
calculateNodeHeight(Node node,
CyNetwork network)
Deprecated. Use calculateNodeAppearance() and get the value from the NodeAppearance. This method will be removed Sept 2007. |
String |
calculateNodeLabel(Node node,
CyNetwork network)
Deprecated. Use calculateNodeAppearance() and get the value from the NodeAppearance. This method will be removed Sept 2007. |
Color |
calculateNodeLabelColor(Node node,
CyNetwork network)
Deprecated. Use calculateNodeAppearance() and get the value from the NodeAppearance. This method will be removed Sept 2007. |
LineType |
calculateNodeLineType(Node node,
CyNetwork network)
Deprecated. Use calculateNodeAppearance() and get the value from the NodeAppearance. This method will be removed Sept 2007. |
byte |
calculateNodeShape(Node node,
CyNetwork network)
Deprecated. Use calculateNodeAppearance() and get the value from the NodeAppearance. This method will be removed Sept 2007. |
String |
calculateNodeToolTip(Node node,
CyNetwork network)
Deprecated. Use calculateNodeAppearance() and get the value from the NodeAppearance. This method will be removed Sept 2007. |
double |
calculateNodeWidth(Node node,
CyNetwork network)
Deprecated. Use calculateNodeAppearance() and get the value from the NodeAppearance. This method will be removed Sept 2007. |
Object |
clone()
Make shallow copy of this object |
Calculator |
getCalculator(byte type)
|
List<Calculator> |
getCalculators()
|
NodeAppearance |
getDefaultAppearance()
|
Color |
getDefaultNodeBorderColor()
Deprecated. Use setDefaultAppearance() instead. This method will be removed Sept 2007. |
Color |
getDefaultNodeFillColor()
Deprecated. Use setDefaultAppearance() instead. This method will be removed Sept 2007. |
Font |
getDefaultNodeFont()
Deprecated. Use setDefaultAppearance() instead. This method will be removed Sept 2007. |
Font |
getDefaultNodeFontFace()
Deprecated. Use setDefaultAppearance() instead. This method will be removed Sept 2007. |
float |
getDefaultNodeFontSize()
Deprecated. Use setDefaultAppearance() instead. This method will be removed Sept 2007. |
double |
getDefaultNodeHeight()
Deprecated. Use setDefaultAppearance() instead. This method will be removed Sept 2007. |
String |
getDefaultNodeLabel()
Deprecated. Use setDefaultAppearance() instead. This method will be removed Sept 2007. |
Color |
getDefaultNodeLabelColor()
Deprecated. Use setDefaultAppearance() instead. This method will be removed Sept 2007. |
LineType |
getDefaultNodeLineType()
Deprecated. Use setDefaultAppearance() instead. This method will be removed Sept 2007. |
byte |
getDefaultNodeShape()
Deprecated. Use setDefaultAppearance() instead. This method will be removed Sept 2007. |
String |
getDefaultNodeToolTip()
Deprecated. Use setDefaultAppearance() instead. This method will be removed Sept 2007. |
double |
getDefaultNodeWidth()
Deprecated. Use setDefaultAppearance() instead. This method will be removed Sept 2007. |
String |
getDescription()
Returns a text description of the current default values and calculator names. |
NodeColorCalculator |
getNodeBorderColorCalculator()
Deprecated. Use getCalculator(type) instead. This method will be removed Sept 2007. |
NodeColorCalculator |
getNodeFillColorCalculator()
Deprecated. Use getCalculator(type) instead. This method will be removed Sept 2007. |
NodeFontFaceCalculator |
getNodeFontFaceCalculator()
Deprecated. Use getCalculator(type) instead. This method will be removed Sept 2007. |
NodeFontSizeCalculator |
getNodeFontSizeCalculator()
Deprecated. Use getCalculator(type) instead. This method will be removed Sept 2007. |
NodeSizeCalculator |
getNodeHeightCalculator()
Deprecated. Use getCalculator(type) instead. This method will be removed Sept 2007. |
NodeLabelCalculator |
getNodeLabelCalculator()
Deprecated. Use getCalculator(type) instead. This method will be removed Sept 2007. |
NodeLabelColorCalculator |
getNodeLabelColorCalculator()
Deprecated. Use getCalculator(type) instead. This method will be removed Sept 2007. |
NodeLineTypeCalculator |
getNodeLineTypeCalculator()
Deprecated. Use getCalculator(type) instead. This method will be removed Sept 2007. |
NodeShapeCalculator |
getNodeShapeCalculator()
Deprecated. Use getCalculator(type) instead. This method will be removed Sept 2007. |
boolean |
getNodeSizeLocked()
|
NodeToolTipCalculator |
getNodeToolTipCalculator()
Deprecated. Use getCalculator(type) instead. This method will be removed Sept 2007. |
NodeSizeCalculator |
getNodeWidthCalculator()
Deprecated. Use getCalculator(type) instead. This method will be removed Sept 2007. |
Properties |
getProperties(String baseKey)
|
void |
removeCalculator(byte type)
|
void |
setCalculator(Calculator c)
|
void |
setDefaultAppearance(NodeAppearance n)
|
void |
setDefaultNodeBorderColor(Color c)
Deprecated. Use getDefaultAppearance() and then set that. This method will be removed Sept 2007. |
void |
setDefaultNodeFillColor(Color c)
Deprecated. Use getDefaultAppearance() and then set that. This method will be removed Sept 2007. |
void |
setDefaultNodeFont(Font f)
Deprecated. Use getDefaultAppearance() and then set that. This method will be removed Sept 2007. |
void |
setDefaultNodeFontFace(Font f)
Deprecated. Use getDefaultAppearance() and then set that. This method will be removed Sept 2007. |
void |
setDefaultNodeFontSize(float f)
Deprecated. Use getDefaultAppearance() and then set that. This method will be removed Sept 2007. |
void |
setDefaultNodeHeight(double d)
Deprecated. Use getDefaultAppearance() and then set that. This method will be removed Sept 2007. |
void |
setDefaultNodeLabel(String s)
Deprecated. Use getDefaultAppearance() and then set that. This method will be removed Sept 2007. |
void |
setDefaultNodeLabelColor(Color c)
Deprecated. Use getDefaultAppearance() and then set that. This method will be removed Sept 2007. |
void |
setDefaultNodeLineType(LineType lt)
Deprecated. Use getDefaultAppearance() and then set that. This method will be removed Sept 2007. |
void |
setDefaultNodeShape(byte s)
Deprecated. Use getDefaultAppearance() and then set that. This method will be removed Sept 2007. |
void |
setDefaultNodeToolTip(String s)
Deprecated. Use getDefaultAppearance() and then set that. This method will be removed Sept 2007. |
void |
setDefaultNodeWidth(double d)
Deprecated. Use getDefaultAppearance() and then set that. This method will be removed Sept 2007. |
void |
setNodeBorderColorCalculator(NodeColorCalculator c)
Deprecated. Use setCalculator(calc) instead. This method will be removed Sept 2007. |
void |
setNodeFillColorCalculator(NodeColorCalculator c)
Deprecated. Use setCalculator(calc) instead. This method will be removed Sept 2007. |
void |
setNodeFontFaceCalculator(NodeFontFaceCalculator c)
Deprecated. Use setCalculator(calc) instead. This method will be removed Sept 2007. |
void |
setNodeFontSizeCalculator(NodeFontSizeCalculator c)
Deprecated. Use setCalculator(calc) instead. This method will be removed Sept 2007. |
void |
setNodeHeightCalculator(NodeSizeCalculator c)
Deprecated. Use setCalculator(calc) instead. This method will be removed Sept 2007. |
void |
setNodeLabelCalculator(NodeLabelCalculator c)
Deprecated. Use setCalculator(calc) instead. This method will be removed Sept 2007. |
void |
setNodeLabelColorCalculator(NodeLabelColorCalculator c)
Deprecated. Use setCalculator(calc) instead. This method will be removed Sept 2007. |
void |
setNodeLineTypeCalculator(NodeLineTypeCalculator c)
Deprecated. Use setCalculator(calc) instead. This method will be removed Sept 2007. |
void |
setNodeShapeCalculator(NodeShapeCalculator c)
Deprecated. Use setCalculator(calc) instead. This method will be removed Sept 2007. |
void |
setNodeSizeLocked(boolean b)
|
void |
setNodeToolTipCalculator(NodeToolTipCalculator c)
Deprecated. Use setCalculator(calc) instead. This method will be removed Sept 2007. |
void |
setNodeWidthCalculator(NodeSizeCalculator c)
Deprecated. Use setCalculator(calc) instead. This method will be removed Sept 2007. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String nodeFillColorBypass
public static final String nodeBorderColorBypass
public static final String nodeLineTypeBypass
public static final String nodeShapeBypass
public static final String nodeWidthBypass
public static final String nodeHeightBypass
public static final String nodeLabelBypass
public static final String nodeToolTipBypass
public static final String nodeFontBypass
public static final String nodeLabelColorBypass
Constructor Detail |
---|
public NodeAppearanceCalculator()
public NodeAppearanceCalculator(String name, Properties nacProps, String baseKey, CalculatorCatalog catalog)
public NodeAppearanceCalculator(NodeAppearanceCalculator toCopy)
Method Detail |
---|
public NodeAppearance calculateNodeAppearance(Node node, CyNetwork network)
public void calculateNodeAppearance(NodeAppearance appr, Node node, CyNetwork network)
public NodeAppearance getDefaultAppearance()
public void setDefaultAppearance(NodeAppearance n)
public String getDescription()
public void applyProperties(String name, Properties nacProps, String baseKey, CalculatorCatalog catalog)
public Properties getProperties(String baseKey)
public boolean getNodeSizeLocked()
public void setNodeSizeLocked(boolean b)
public void setDefaultNodeFillColor(Color c)
public void setDefaultNodeBorderColor(Color c)
public void setDefaultNodeLineType(LineType lt)
public void setDefaultNodeShape(byte s)
public void setDefaultNodeWidth(double d)
public void setDefaultNodeHeight(double d)
public void setDefaultNodeLabel(String s)
public void setDefaultNodeToolTip(String s)
public void setDefaultNodeFont(Font f)
public void setDefaultNodeFontFace(Font f)
public void setDefaultNodeFontSize(float f)
public void setDefaultNodeLabelColor(Color c)
public Color getDefaultNodeFillColor()
public Color getDefaultNodeBorderColor()
public LineType getDefaultNodeLineType()
public byte getDefaultNodeShape()
public double getDefaultNodeWidth()
public double getDefaultNodeHeight()
public String getDefaultNodeLabel()
public String getDefaultNodeToolTip()
public Font getDefaultNodeFont()
public Font getDefaultNodeFontFace()
public float getDefaultNodeFontSize()
public Color getDefaultNodeLabelColor()
public Color calculateNodeFillColor(Node node, CyNetwork network)
public Color calculateNodeBorderColor(Node node, CyNetwork network)
public LineType calculateNodeLineType(Node node, CyNetwork network)
public byte calculateNodeShape(Node node, CyNetwork network)
public double calculateNodeWidth(Node node, CyNetwork network)
public double calculateNodeHeight(Node node, CyNetwork network)
public String calculateNodeLabel(Node node, CyNetwork network)
public String calculateNodeToolTip(Node node, CyNetwork network)
public Font calculateNodeFont(Node node, CyNetwork network)
public Color calculateNodeLabelColor(Node node, CyNetwork network)
public NodeColorCalculator getNodeFillColorCalculator()
public NodeColorCalculator getNodeBorderColorCalculator()
public NodeLineTypeCalculator getNodeLineTypeCalculator()
public NodeShapeCalculator getNodeShapeCalculator()
public NodeSizeCalculator getNodeWidthCalculator()
public NodeSizeCalculator getNodeHeightCalculator()
public NodeLabelCalculator getNodeLabelCalculator()
public NodeToolTipCalculator getNodeToolTipCalculator()
public NodeFontFaceCalculator getNodeFontFaceCalculator()
public NodeFontSizeCalculator getNodeFontSizeCalculator()
public NodeLabelColorCalculator getNodeLabelColorCalculator()
public void setNodeFillColorCalculator(NodeColorCalculator c)
public void setNodeBorderColorCalculator(NodeColorCalculator c)
public void setNodeLineTypeCalculator(NodeLineTypeCalculator c)
public void setNodeShapeCalculator(NodeShapeCalculator c)
public void setNodeWidthCalculator(NodeSizeCalculator c)
public void setNodeHeightCalculator(NodeSizeCalculator c)
public void setNodeLabelCalculator(NodeLabelCalculator c)
public void setNodeToolTipCalculator(NodeToolTipCalculator c)
public void setNodeFontFaceCalculator(NodeFontFaceCalculator c)
public void setNodeFontSizeCalculator(NodeFontSizeCalculator c)
public void setNodeLabelColorCalculator(NodeLabelColorCalculator c)
public Object clone()
clone
in class Object
public Calculator getCalculator(byte type)
public List<Calculator> getCalculators()
public void removeCalculator(byte type)
public void setCalculator(Calculator c)
|
www.cytoscape.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |