|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.aitools.iv.graphdrawing.nativetree.NativeTreeVertexDraw
public class NativeTreeVertexDraw
besteht aus 3 Dingen:
1.einer Kante vom Vater zu diesem Draw
2.einem Label, variabler Länge
3.(ausblendbar) einem Icon für ein-/ausblenden der Söhne
Constructor Summary | |
---|---|
NativeTreeVertexDraw(NativeTreeVisualization view,
Vertex vertex)
|
Method Summary | |
---|---|
java.awt.geom.Point2D |
getAnimToPosition()
|
javax.swing.JComponent |
getJComponent()
|
int |
getLength()
|
Vertex |
getVertex()
|
boolean |
isExpandable()
|
boolean |
isExpanded()
|
boolean |
isVisible()
|
void |
setAnimToPosition(double x,
double y)
sets the position where the vertex is animated to. |
void |
setBackground(java.awt.Color back)
Sets the background color of the label |
void |
setExpanded(boolean expanded)
|
void |
setLabelLength(int length)
Sets the length of the label (in pixel). |
void |
setShade(double shade)
sets shade to a value between 0 and 100 |
void |
update()
updates size, text and internal positions |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NativeTreeVertexDraw(NativeTreeVisualization view, Vertex vertex)
Method Detail |
---|
public Vertex getVertex()
getVertex
in interface VertexDraw
VertexDraw.getVertex()
public boolean isExpandable()
isExpandable
in interface VertexDraw
VertexDraw.isExpandable()
public boolean isExpanded()
isExpanded
in interface VertexDraw
VertexDraw.isExpanded()
public void setExpanded(boolean expanded)
setExpanded
in interface VertexDraw
VertexDraw.setExpanded(boolean)
public boolean isVisible()
isVisible
in interface VertexDraw
VertexDraw.isVisible()
public void setShade(double shade)
VertexDraw
setShade
in interface VertexDraw
public void setAnimToPosition(double x, double y)
x
- - x-pos of the positiony
- - y-pos of the positionpublic java.awt.geom.Point2D getAnimToPosition()
public void setLabelLength(int length)
length
- - the length of the label ( less than zero means automatic ).public int getLength()
public void update()
public javax.swing.JComponent getJComponent()
public void setBackground(java.awt.Color back)
back
- - background color for the label
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |