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.


Constructor Index

 o LineFigure()
Constructs a LineFigure with both start and end set to Point(0,0).

Method Index

 o basicDisplayBox(Point, Point)
Sets the display box of a figure.
 o endPoint()
Gets a copy of the end point.
 o endPoint(int, int)
Sets the end point.
 o setPoints(Point, Point)
Sets the start and end point.
 o startPoint()
Gets a copy of the start point.
 o startPoint(int, int)
Sets the start point.

Constructors

 o LineFigure
 public LineFigure()
Constructs a LineFigure with both start and end set to Point(0,0).

Methods

 o startPoint
 public Point startPoint()
Gets a copy of the start point.

 o endPoint
 public Point endPoint()
Gets a copy of the end point.

 o startPoint
 public void startPoint(int x,
                        int y)
Sets the start point.

 o endPoint
 public void endPoint(int x,
                      int y)
Sets the end point.

 o setPoints
 public void setPoints(Point start,
                       Point end)
Sets the start and end point.

 o 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