|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pedviz.view.Symbol pedviz.view.symbols.Symbol2D pedviz.view.symbols.SymbolText
public class SymbolText
This symbol allow you to display a number or a character in the symbol.
Constructor Summary | |
---|---|
SymbolText(java.lang.String text)
Creates a new symbol that contains the given text. |
Method Summary | |
---|---|
void |
drawSymbol(java.awt.Graphics2D g,
java.awt.geom.Point2D.Float position,
float size,
java.awt.Color border,
java.awt.Color fill,
NodeView nodeview)
Draws the symbol. |
int |
getPriority()
Returns the priority of the symbol. |
double |
getSize()
Returns the height of the text. |
void |
setSize(double size)
Sets the height of the text. |
Methods inherited from class pedviz.view.Symbol |
---|
compareTo, getHeight, setColors |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SymbolText(java.lang.String text)
text
- TextMethod Detail |
---|
public void drawSymbol(java.awt.Graphics2D g, java.awt.geom.Point2D.Float position, float size, java.awt.Color border, java.awt.Color fill, NodeView nodeview)
Symbol2D
drawSymbol
in class Symbol2D
g
- Graphic objectposition
- position of the nodesize
- size of the nodeborder
- border colorfill
- fill colorpublic int getPriority()
Symbol
getPriority
in class Symbol
public double getSize()
public void setSize(double size)
size
- the height of the text.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |