pedviz.view
Class DefaultEdgeView

java.lang.Object
  extended by pedviz.view.DefaultEdgeView
Direct Known Subclasses:
EdgeView

public class DefaultEdgeView
extends java.lang.Object

This class contains all informations that are needed to draw a Edge on a GraphView.

Author:
Luki

Constructor Summary
DefaultEdgeView()
           
 
Method Summary
 float getAlpha()
          Returns the alpha value.
 float getAlphaForLongLines()
          Returns the alpha value for long lines.
 java.awt.Color getColor()
          Returns the color of the line.
 java.awt.Color getColorForLongLines()
          Returns the color for long lines.
 float getDeltaX()
           
 float getDeltaY()
           
 float getDeltaZ()
           
 int getGapBottom()
          Returns the gap at the bottom.
 int getGapTop()
          Returns the gap at the top.
 java.awt.Color getHighlightedColor()
          Returns the highlighted color of the line.
 float getHighlightedWidth()
          Returns the width for lines that are highlighted.
 float getWidth()
          Returns the width of the line.
 boolean isConnectChildren()
          Returns true, when childrens will be drawed connected.
 void setAlpha(float alpha)
          Sets the alpha value.
 void setAlphaForLongLines(float alphaForLongLines)
          Sets the alpha value for long lines.
 void setColor(java.awt.Color color)
          Sets the color of the line.
 void setColorForLongLines(java.awt.Color colorForLongLines)
          Sets the color for long lines.
 void setConnectChildren(boolean connectChildren)
           
 void setDeltaForLongLines(float dx, float dy, float dz)
           
 void setGapBottom(int gapBottom)
          Sets the gap at the bottom.
 void setGapTop(int gapTop)
          Sets the gap at the top.
 void setHighlightedColor(java.awt.Color highlightedColor)
          Sets the highlighted color of the line.
 void setHighlightedWidth(float highlightedWidth)
          Sets the width for lines that are highlighted.
 void setWidth(float width)
          Sets the width of the line.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultEdgeView

public DefaultEdgeView()
Method Detail

getColor

public java.awt.Color getColor()
Returns the color of the line.

Returns:
eges color of the line

setColor

public void setColor(java.awt.Color color)
Sets the color of the line.

Parameters:
color - color of the line

getWidth

public float getWidth()
Returns the width of the line.

Returns:
the width of the line

setWidth

public void setWidth(float width)
Sets the width of the line.

Parameters:
width - the width of the line

getHighlightedColor

public java.awt.Color getHighlightedColor()
Returns the highlighted color of the line.

Returns:
highlighted color of the line

setHighlightedColor

public void setHighlightedColor(java.awt.Color highlightedColor)
Sets the highlighted color of the line.

Parameters:
highlightedColor - highlighted color of the line.

getColorForLongLines

public java.awt.Color getColorForLongLines()
Returns the color for long lines.

Returns:
color for long lines

setColorForLongLines

public void setColorForLongLines(java.awt.Color colorForLongLines)
Sets the color for long lines.

Parameters:
colorForLongLines - color for long lines

isConnectChildren

public boolean isConnectChildren()
Returns true, when childrens will be drawed connected.

Returns:

setConnectChildren

public void setConnectChildren(boolean connectChildren)

getGapBottom

public int getGapBottom()
Returns the gap at the bottom.

Returns:
gap at the bottom

setGapBottom

public void setGapBottom(int gapBottom)
Sets the gap at the bottom.

Parameters:
gapBottom - gap at the bottom

getGapTop

public int getGapTop()
Returns the gap at the top.

Returns:
gap at the top.

setGapTop

public void setGapTop(int gapTop)
Sets the gap at the top.

Parameters:
gapTop - gap at the top.

getHighlightedWidth

public float getHighlightedWidth()
Returns the width for lines that are highlighted.

Returns:
width for lines that are highlighted

setHighlightedWidth

public void setHighlightedWidth(float highlightedWidth)
Sets the width for lines that are highlighted.

Parameters:
highlightedWidth - width for lines that are highlighted

setAlpha

public void setAlpha(float alpha)
Sets the alpha value.

Parameters:
alpha - the alpha value.

getAlpha

public float getAlpha()
Returns the alpha value.

Returns:
the alpha value.

getAlphaForLongLines

public float getAlphaForLongLines()
Returns the alpha value for long lines.

Returns:
the alpha value for long lines.

setAlphaForLongLines

public void setAlphaForLongLines(float alphaForLongLines)
Sets the alpha value for long lines.

Parameters:
alphaForLongLines - the alpha value for long lines.

setDeltaForLongLines

public void setDeltaForLongLines(float dx,
                                 float dy,
                                 float dz)

getDeltaX

public float getDeltaX()

getDeltaY

public float getDeltaY()

getDeltaZ

public float getDeltaZ()