Cytoscape 2.4.1 (c) 2006,2007 ISB, MSKCC, UCSD

cytoscape.visual
Class NodeAppearance

java.lang.Object
  extended by cytoscape.visual.NodeAppearance
All Implemented Interfaces:
Cloneable

public class NodeAppearance
extends Object
implements Cloneable

Objects of this class hold data describing the appearance of a Node.


Constructor Summary
NodeAppearance()
           
 
Method Summary
 void applyAppearance(NodeView nodeView)
           
 void applyAppearance(NodeView nodeView, boolean optimizer)
          Deprecated. use applyAppearance(nodeView) instead - now we always optimize. will be removed 10/2007
 void applyBypass(Node n)
           
 void applyDefaultProperties(Properties nacProps, String baseKey)
           
 Object clone()
           
 void copy(NodeAppearance na)
           
 Object get(byte type)
           
 Color getBorderColor()
           
 LineType getBorderLineType()
           
 Properties getDefaultProperties(String baseKey)
           
 String getDescription()
           
 String getDescription(String prefix)
           
 Color getFillColor()
           
 Font getFont()
           
 float getFontSize()
           
 double getHeight()
           
 String getLabel()
           
 Color getLabelColor()
           
 LabelPosition getLabelPosition()
           
 boolean getNodeSizeLocked()
           
 byte getShape()
           
 double getSize()
           
 String getToolTip()
           
 double getWidth()
           
 void set(byte type, Object c)
           
 void setBorderColor(Color c)
           
 void setBorderLineType(LineType lt)
           
 void setFillColor(Color c)
           
 void setFont(Font f)
           
 void setFontSize(float f)
           
 void setHeight(double d)
          Sets the height variable, but also the size variable if the node size is locked.
 void setJustHeight(double d)
          Sets only the height variable.
 void setJustWidth(double d)
          Sets only the height variable.
 void setLabel(String s)
           
 void setLabelColor(Color c)
           
 void setLabelPosition(LabelPosition c)
           
 void setNodeSizeLocked(boolean b)
           
 void setShape(byte s)
           
 void setSize(double s)
           
 void setToolTip(String s)
           
 void setWidth(double d)
          Sets the width variable, but also the size variable if the node size is locked.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeAppearance

public NodeAppearance()
Method Detail

getFillColor

public Color getFillColor()

setFillColor

public void setFillColor(Color c)

getBorderColor

public Color getBorderColor()

setBorderColor

public void setBorderColor(Color c)

getBorderLineType

public LineType getBorderLineType()

setBorderLineType

public void setBorderLineType(LineType lt)

getShape

public byte getShape()

setShape

public void setShape(byte s)

getWidth

public double getWidth()

setJustWidth

public void setJustWidth(double d)
Sets only the height variable.


setWidth

public void setWidth(double d)
Sets the width variable, but also the size variable if the node size is locked. This is to support deprecated code that used setting width/height for setting uniform size as well.


getHeight

public double getHeight()

setJustHeight

public void setJustHeight(double d)
Sets only the height variable.


setHeight

public void setHeight(double d)
Sets the height variable, but also the size variable if the node size is locked. This is to support deprecated code that used setting width/height for setting uniform size as well.


getSize

public double getSize()

setSize

public void setSize(double s)

getLabel

public String getLabel()

setLabel

public void setLabel(String s)

getToolTip

public String getToolTip()

setToolTip

public void setToolTip(String s)

getFont

public Font getFont()

setFont

public void setFont(Font f)

getFontSize

public float getFontSize()

setFontSize

public void setFontSize(float f)

getLabelColor

public Color getLabelColor()

setLabelColor

public void setLabelColor(Color c)

getLabelPosition

public LabelPosition getLabelPosition()

setLabelPosition

public void setLabelPosition(LabelPosition c)

applyAppearance

public void applyAppearance(NodeView nodeView,
                            boolean optimizer)
Deprecated. use applyAppearance(nodeView) instead - now we always optimize. will be removed 10/2007


applyAppearance

public void applyAppearance(NodeView nodeView)

applyDefaultProperties

public void applyDefaultProperties(Properties nacProps,
                                   String baseKey)

getDefaultProperties

public Properties getDefaultProperties(String baseKey)

getDescription

public String getDescription(String prefix)

getDescription

public String getDescription()

get

public Object get(byte type)

set

public void set(byte type,
                Object c)

copy

public void copy(NodeAppearance na)

clone

public Object clone()
Overrides:
clone in class Object

getNodeSizeLocked

public boolean getNodeSizeLocked()

setNodeSizeLocked

public void setNodeSizeLocked(boolean b)

applyBypass

public void applyBypass(Node n)

www.cytoscape.org