info.aduna.linkmap.render
Class EdgeRenderer

java.lang.Object
  extended by info.aduna.linkmap.render.EdgeRenderer

public class EdgeRenderer
extends Object


Field Summary
static Shape ARROW
           
 
Constructor Summary
EdgeRenderer(Edge edge)
           
 
Method Summary
 boolean contains(int x, int y)
          Returns true when the specified point is closer than a certain maximum distance to the line from (x1, y1) to (x2, y2).
 void draw(Graphics2D g)
           
 Edge getEdge()
           
 int getFirstArrowOffset()
           
 Color getLabelColor()
           
 int getLabelOffset()
           
 Color getLineColor()
           
 float getLineThickness()
           
 int getSecondArrowOffset()
           
 boolean isFirstConnectionDirected()
           
 boolean isSecondConnectionDirected()
           
 void setFirstArrowOffset(int arrowOffset)
           
 void setFirstConnectionDirected(boolean connectionDirected)
           
 void setLabelColor(Color color)
           
 void setLabelOffset(int offset)
           
 void setLineColor(Color color)
           
 void setLineThickness(float thickness)
           
 void setSecondArrowOffset(int arrowOffset)
           
 void setSecondConnectionDirected(boolean connectionDirected)
           
 void updateCoordinates(boolean labelVisible, FontMetrics metrics)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ARROW

public static final Shape ARROW
Constructor Detail

EdgeRenderer

public EdgeRenderer(Edge edge)
Method Detail

getEdge

public Edge getEdge()

getLineColor

public Color getLineColor()

setLineColor

public void setLineColor(Color color)

getLineThickness

public float getLineThickness()

setLineThickness

public void setLineThickness(float thickness)

getLabelColor

public Color getLabelColor()

setLabelColor

public void setLabelColor(Color color)

getLabelOffset

public int getLabelOffset()

setLabelOffset

public void setLabelOffset(int offset)

isFirstConnectionDirected

public boolean isFirstConnectionDirected()

setFirstConnectionDirected

public void setFirstConnectionDirected(boolean connectionDirected)

isSecondConnectionDirected

public boolean isSecondConnectionDirected()

setSecondConnectionDirected

public void setSecondConnectionDirected(boolean connectionDirected)

getFirstArrowOffset

public int getFirstArrowOffset()

setFirstArrowOffset

public void setFirstArrowOffset(int arrowOffset)

getSecondArrowOffset

public int getSecondArrowOffset()

setSecondArrowOffset

public void setSecondArrowOffset(int arrowOffset)

updateCoordinates

public void updateCoordinates(boolean labelVisible,
                              FontMetrics metrics)

contains

public boolean contains(int x,
                        int y)
Returns true when the specified point is closer than a certain maximum distance to the line from (x1, y1) to (x2, y2).


draw

public void draw(Graphics2D g)


Copyright © 1997-2008 Aduna. All Rights Reserved.