|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pedviz.view.DefaultNodeView
public class DefaultNodeView
This class contains all informations that are needed to draw a Node on a GraphView.
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 |
---|
public DefaultNodeView()
Method Detail |
---|
public java.awt.Color getColor()
public void setColor(java.awt.Color color)
color
- color of the nodepublic java.util.ArrayList<Symbol> getSymbols()
public void setSymbols(java.util.ArrayList<Symbol> symbols)
symbols
- a collection of all symbols for this node.public java.awt.Color getSelectedColor()
public void setSelectedColor(java.awt.Color selectedColor)
selectedColor
- public float getSize()
public void setSize(float size)
size
- size of the nodepublic java.awt.Color getHighlightedColor()
public void setHighlightedColor(java.awt.Color highlightedColor)
highlightedColor
- highlighted color of the node.public java.awt.Color getMouseOverColor()
public void setMouseOverColor(java.awt.Color mouseOverColor)
mouseOverColor
- "mouse over" color of the nodepublic void addHintAttribute(java.lang.String hintAttribute)
hintAttribute
- trait that will be displayed in the hintpublic void setHintAttribute(java.lang.String hintAttribute)
hintAttribute
- trait that will be displayed in the hintpublic java.awt.Color getBorderColor()
public void setBorderColor(java.awt.Color borderColor)
borderColor
- color of the node's bordepublic float getBorderWidth()
public void setBorderWidth(float borderWidth)
borderWidth
- width of the node's borderpublic int getGap()
public void setGap(int gap)
gap
- between two childrenpublic void setHintText(java.lang.String hint)
hint
- hint text.public void addSymbol(Symbol symbol)
symbol
- Sybol object.public boolean isExpand()
public void setExpand(boolean expand)
expand
- visibility of the nodepublic java.lang.Float getHeight()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |