info.aduna.linkmap.render
Class EdgeRenderer
java.lang.Object
info.aduna.linkmap.render.EdgeRenderer
public class EdgeRenderer
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ARROW
public static final Shape ARROW
EdgeRenderer
public EdgeRenderer(Edge edge)
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.