pedviz.view
Class DefaultNodeView

java.lang.Object
  extended by pedviz.view.DefaultNodeView
Direct Known Subclasses:
NodeView

public class DefaultNodeView
extends java.lang.Object

This class contains all informations that are needed to draw a Node on a GraphView.

Author:
Luki

Constructor Summary
DefaultNodeView()
           
 
Method Summary
 void addHintAttribute(java.lang.String hintAttribute)
          Adds a trait that will be displayed in the hint.
 void addSymbol(Symbol symbol)
          Adds a symbol to the collection of symbols.
 java.awt.Color getBorderColor()
          Returns the color of the node's border.
 float getBorderWidth()
          Returns the width of the node's border.
 java.awt.Color getColor()
          Returns the color of the node.
 int getGap()
          Returns the gap between two children.
 java.lang.Float getHeight()
           
 java.awt.Color getHighlightedColor()
          Returns the highlighted color of the node.
 java.awt.Color getMouseOverColor()
          Sets the "mouse over" color of the node.
 java.awt.Color getSelectedColor()
          Returns the selected color of the node.
 float getSize()
          Returns the size of the node.
 java.util.ArrayList<Symbol> getSymbols()
          Returns a collection of all symbols for this node.
 boolean isExpand()
          Returns true, if the node is visible.
 void setBorderColor(java.awt.Color borderColor)
          Sets the color of the node's border.
 void setBorderWidth(float borderWidth)
          Sets the width of the node's border.
 void setColor(java.awt.Color color)
          Sets the color of the node.
 void setExpand(boolean expand)
          Enables and disables the visibility of the node.
 void setGap(int gap)
          Sets the gap between two children.
 void setHighlightedColor(java.awt.Color highlightedColor)
          Sets the highlighted color of the node.
 void setHintAttribute(java.lang.String hintAttribute)
          Sets a trait that will be displayed in the hint.
 void setHintText(java.lang.String hint)
          Sets the hint text.
 void setMouseOverColor(java.awt.Color mouseOverColor)
          Returns the "mouse over" color of the node.
 void setSelectedColor(java.awt.Color selectedColor)
          Sets the selected color of the node.
 void setSize(float size)
          Sets the size of the node.
 void setSymbols(java.util.ArrayList<Symbol> symbols)
          Sets all symbols of the node.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultNodeView

public DefaultNodeView()
Method Detail

getColor

public java.awt.Color getColor()
Returns the color of the node.

Returns:
color of the node

setColor

public void setColor(java.awt.Color color)
Sets the color of the node.

Parameters:
color - color of the node

getSymbols

public java.util.ArrayList<Symbol> getSymbols()
Returns a collection of all symbols for this node.

Returns:
a collection of all symbols for this node.

setSymbols

public void setSymbols(java.util.ArrayList<Symbol> symbols)
Sets all symbols of the node.

Parameters:
symbols - a collection of all symbols for this node.

getSelectedColor

public java.awt.Color getSelectedColor()
Returns the selected color of the node.

Returns:
the selected color of the node

setSelectedColor

public void setSelectedColor(java.awt.Color selectedColor)
Sets the selected color of the node.

Parameters:
selectedColor -

getSize

public float getSize()
Returns the size of the node.

Returns:
size of the node

setSize

public void setSize(float size)
Sets the size of the node.

Parameters:
size - size of the node

getHighlightedColor

public java.awt.Color getHighlightedColor()
Returns the highlighted color of the node.

Returns:
the highlighted color of the node

setHighlightedColor

public void setHighlightedColor(java.awt.Color highlightedColor)
Sets the highlighted color of the node.

Parameters:
highlightedColor - highlighted color of the node.

getMouseOverColor

public java.awt.Color getMouseOverColor()
Sets the "mouse over" color of the node.

Returns:
"mouse over" color of the node

setMouseOverColor

public void setMouseOverColor(java.awt.Color mouseOverColor)
Returns the "mouse over" color of the node.

Parameters:
mouseOverColor - "mouse over" color of the node

addHintAttribute

public void addHintAttribute(java.lang.String hintAttribute)
Adds a trait that will be displayed in the hint.

Parameters:
hintAttribute - trait that will be displayed in the hint

setHintAttribute

public void setHintAttribute(java.lang.String hintAttribute)
Sets a trait that will be displayed in the hint.

Parameters:
hintAttribute - trait that will be displayed in the hint

getBorderColor

public java.awt.Color getBorderColor()
Returns the color of the node's border.

Returns:
color of the node's border

setBorderColor

public void setBorderColor(java.awt.Color borderColor)
Sets the color of the node's border.

Parameters:
borderColor - color of the node's borde

getBorderWidth

public float getBorderWidth()
Returns the width of the node's border.

Returns:
width of the node's border

setBorderWidth

public void setBorderWidth(float borderWidth)
Sets the width of the node's border.

Parameters:
borderWidth - width of the node's border

getGap

public int getGap()
Returns the gap between two children.

Returns:
gap between two children

setGap

public void setGap(int gap)
Sets the gap between two children.

Parameters:
gap - between two children

setHintText

public void setHintText(java.lang.String hint)
Sets the hint text.

Parameters:
hint - hint text.

addSymbol

public void addSymbol(Symbol symbol)
Adds a symbol to the collection of symbols.

Parameters:
symbol - Sybol object.

isExpand

public boolean isExpand()
Returns true, if the node is visible.

Returns:
true, if the node is expanded.

setExpand

public void setExpand(boolean expand)
Enables and disables the visibility of the node.

Parameters:
expand - visibility of the node

getHeight

public java.lang.Float getHeight()