|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkaapo.project.graphics.LineHead
public abstract class LineHead
Abstract base class for line heads. For line head geometry, see the image nuoli-geometria.png which should be included with the project.
Field Summary | |
---|---|
protected double |
preferredHeadLength
|
Constructor Summary | |
---|---|
LineHead(double preferredHeadLength)
Constructs the head with given preferred length. |
Method Summary | |
---|---|
double |
getPreferredLength()
Returns the preferred length of the head. |
GeneralPath |
makeHead(double startX,
double startY,
double endX,
double endY)
Generates a line head that goes from the start point to the end point. |
GeneralPath |
makeHead(Point2D startPoint,
Point2D endPoint)
Generates a line head to coordinates from two poins. |
protected abstract GeneralPath |
makeHeadImpl(double startX,
double startY,
double endX,
double endY)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double preferredHeadLength
Constructor Detail |
---|
public LineHead(double preferredHeadLength)
preferredHeadLength
- Preferred length of the head
in pixels. The head can be drawn to a length
different from preferred length, but normally
preferred length should be obeyed.Method Detail |
---|
public double getPreferredLength()
protected abstract GeneralPath makeHeadImpl(double startX, double startY, double endX, double endY)
public GeneralPath makeHead(double startX, double startY, double endX, double endY)
startX
- X coordinate of the start pointstartY
- Y coordinate of the start pointendX
- X coordinate of the end pointendY
- Y coordinate of the end point
public GeneralPath makeHead(Point2D startPoint, Point2D endPoint)
startPoint
- startpointendPoint
- endpoint
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |