public class LineEdge extends AbstractEdge
Constructor and Description |
---|
LineEdge() |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.awt.geom.Point2D aPoint)
Tests whether the edge contains a point.
|
void |
draw(java.awt.Graphics2D g2)
Draw the edge.
|
LineStyle |
getLineStyle()
Gets the line style property.
|
void |
setLineStyle(LineStyle newValue)
Sets the line style property.
|
clone, connect, getBounds, getConnectionPoints, getEnd, getStart
public LineEdge()
public void draw(java.awt.Graphics2D g2)
Edge
g2
- the graphics contextpublic boolean contains(java.awt.geom.Point2D aPoint)
Edge
aPoint
- the point to testpublic void setLineStyle(LineStyle newValue)
newValue
- the new valuepublic LineStyle getLineStyle()