All Packages Class Hierarchy This Package Previous Next Index
Class CH.ifa.draw.figures.LineFigure
java.lang.Object
|
+----CH.ifa.draw.standard.AbstractFigure
|
+----CH.ifa.draw.figures.PolyLineFigure
|
+----CH.ifa.draw.figures.LineFigure
- public class LineFigure
- extends PolyLineFigure
A line figure.
-
LineFigure()
- Constructs a LineFigure with both start and end set to Point(0,0).
-
basicDisplayBox(Point, Point)
- Sets the display box of a figure.
-
endPoint()
- Gets a copy of the end point.
-
endPoint(int, int)
- Sets the end point.
-
setPoints(Point, Point)
- Sets the start and end point.
-
startPoint()
- Gets a copy of the start point.
-
startPoint(int, int)
- Sets the start point.
LineFigure
public LineFigure()
- Constructs a LineFigure with both start and end set to Point(0,0).
startPoint
public Point startPoint()
- Gets a copy of the start point.
endPoint
public Point endPoint()
- Gets a copy of the end point.
startPoint
public void startPoint(int x,
int y)
- Sets the start point.
endPoint
public void endPoint(int x,
int y)
- Sets the end point.
setPoints
public void setPoints(Point start,
Point end)
- Sets the start and end point.
basicDisplayBox
public void basicDisplayBox(Point origin,
Point corner)
- Sets the display box of a figure.
- Overrides:
- basicDisplayBox in class PolyLineFigure
All Packages Class Hierarchy This Package Previous Next Index