de.aitools.iv.graphdrawing.nativeboxtree
Class NativeBoxTreeVertexDraw

java.lang.Object
  extended by de.aitools.iv.graphdrawing.nativeboxtree.NativeBoxTreeVertexDraw
All Implemented Interfaces:
VertexDraw

public class NativeBoxTreeVertexDraw
extends java.lang.Object
implements VertexDraw

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

Author:
Frank Benteler, [email protected]

Constructor Summary
NativeBoxTreeVertexDraw(NativeBoxTreeVisualization view, Vertex vertex)
           
 
Method Summary
 java.awt.geom.Point2D getAnimToPosition()
           
 int getHeight()
           
 java.awt.Point getIncommingEdgePoint()
           
 javax.swing.JComponent getJComponent()
           
 java.awt.Point getOutgoingEdgePoint()
           
 Vertex getVertex()
           
 int getWidth()
           
 boolean isExpandable()
           
 boolean isExpanded()
           
 boolean isVisible()
           
 void setAnimToPosition(double x, double y)
          sets the position where the vertex is animated to.
 void setExpanded(boolean expanded)
           
 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

NativeBoxTreeVertexDraw

public NativeBoxTreeVertexDraw(NativeBoxTreeVisualization view,
                               Vertex vertex)
Method Detail

getVertex

public Vertex getVertex()
Specified by:
getVertex in interface VertexDraw
See Also:
VertexDraw.getVertex()

isExpandable

public boolean isExpandable()
Specified by:
isExpandable in interface VertexDraw
See Also:
VertexDraw.isExpandable()

isExpanded

public boolean isExpanded()
Specified by:
isExpanded in interface VertexDraw
See Also:
VertexDraw.isExpanded()

setExpanded

public void setExpanded(boolean expanded)
Specified by:
setExpanded in interface VertexDraw
See Also:
VertexDraw.setExpanded(boolean)

isVisible

public boolean isVisible()
Specified by:
isVisible in interface VertexDraw
See Also:
VertexDraw.isVisible()

setShade

public void setShade(double shade)
Description copied from interface: VertexDraw
sets shade to a value between 0 and 100

Specified by:
setShade in interface VertexDraw

setAnimToPosition

public void setAnimToPosition(double x,
                              double y)
sets the position where the vertex is animated to.

Parameters:
x - - x-pos of the position
y - - y-pos of the position

getAnimToPosition

public java.awt.geom.Point2D getAnimToPosition()
Returns:
the position where the vertex is animated to.

getHeight

public int getHeight()
Returns:
the height of the enclosing JPanel

getWidth

public int getWidth()
Returns:
the width of the enclosing JPanel

getOutgoingEdgePoint

public java.awt.Point getOutgoingEdgePoint()
Returns:
the point, where the edges goes out

getIncommingEdgePoint

public java.awt.Point getIncommingEdgePoint()
Returns:
the point, where incomming edges came in

update

public void update()
updates size, text and internal positions


getJComponent

public javax.swing.JComponent getJComponent()
Returns:
the JPanel, that represents this VertexDraw