de.aitools.iv.graphdrawing.distortion
Class DistortionVertexDraw

java.lang.Object
  extended by de.aitools.iv.graphdrawing.distortion.DistortionVertexDraw
All Implemented Interfaces:
VertexDraw

public class DistortionVertexDraw
extends java.lang.Object
implements VertexDraw

Version:
$Revision: 1.1 $
Author:
Boris Kantwerk (bigmaec@kantwerk.de), F. Benteler (bigben@uni-paderborn.de) 08.2003

Constructor Summary
DistortionVertexDraw(Vertex v, java.awt.geom.Point2D pos, java.awt.geom.Point2D center, DistortionVisualization distortionPanel)
          Creates a new instance of VertexDraw
 
Method Summary
 void dispose()
          deletes this VertexDraw and frees all resources it uses.
 java.awt.geom.Point2D getNormalizedPosition()
           
 int getNumberOfLeaves()
           
 java.awt.geom.Point2D getPosition()
           
 Vertex getVertex()
           
 java.awt.geom.Point2D getVertexRepresentationPosition()
           
 boolean isExpandable()
           
 boolean isExpanded()
           
 boolean isSelected()
           
 boolean isVisible()
           
 void setExpanded(boolean expanded)
          sets the expaned property to the specified state.
 void setNormalizedPosition(java.awt.geom.Point2D point)
           
 void setNumberOfLeaves(int value)
           
 void setSelected(boolean selected)
          sets the selected property to the specified state
 void setShade(double shade)
          sets shade to a value between 0 and 100
 void startMouseListening()
           
 void stopMouseListening()
           
 java.lang.String toString()
          only for debugging purposes.
 void updateFont()
          updates the font for this DistorsionVertexDraw
 void updatePos(java.awt.geom.Point2D pos, java.awt.geom.Point2D center)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DistortionVertexDraw

public DistortionVertexDraw(Vertex v,
                            java.awt.geom.Point2D pos,
                            java.awt.geom.Point2D center,
                            DistortionVisualization distortionPanel)
Creates a new instance of VertexDraw

Method Detail

updatePos

public void updatePos(java.awt.geom.Point2D pos,
                      java.awt.geom.Point2D center)
Parameters:
pos -
center -

updateFont

public void updateFont()
updates the font for this DistorsionVertexDraw


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
See Also:
VertexDraw.setShade(double)

startMouseListening

public void startMouseListening()

stopMouseListening

public void stopMouseListening()

getVertex

public Vertex getVertex()
Specified by:
getVertex in interface VertexDraw
Returns:
the vertex this VertexDraw stands for

getVertexRepresentationPosition

public java.awt.geom.Point2D getVertexRepresentationPosition()
Returns:
the position of the VertexRepresentation of this VertexDraw

setNormalizedPosition

public void setNormalizedPosition(java.awt.geom.Point2D point)

getNormalizedPosition

public java.awt.geom.Point2D getNormalizedPosition()

getPosition

public java.awt.geom.Point2D getPosition()
Returns:
the position where the edges points to, the center of this VertexDraw

isSelected

public boolean isSelected()
Returns:
true, if the vertex is currently selected,
false, otherwise.

setSelected

public void setSelected(boolean selected)
sets the selected property to the specified state

Parameters:
selected -

isExpandable

public boolean isExpandable()
Specified by:
isExpandable in interface VertexDraw
Returns:
false, if this VertexDraw is a leaf,
true, otherwise.

isExpanded

public boolean isExpanded()
Specified by:
isExpanded in interface VertexDraw
Returns:
true, if this VertexDraw is expanded,
false, otherwise.

setExpanded

public void setExpanded(boolean expanded)
sets the expaned property to the specified state.

Specified by:
setExpanded in interface VertexDraw
Parameters:
expanded -

getNumberOfLeaves

public int getNumberOfLeaves()

setNumberOfLeaves

public void setNumberOfLeaves(int value)

isVisible

public boolean isVisible()
Specified by:
isVisible in interface VertexDraw
Returns:
true, if the label is visible

dispose

public void dispose()
deletes this VertexDraw and frees all resources it uses.


toString

public java.lang.String toString()
only for debugging purposes.

Overrides:
toString in class java.lang.Object