Class Viewer.Paint.Line2DObject
All Packages Class Hierarchy This Package Previous Next Index
Class Viewer.Paint.Line2DObject
Object
|
+----PaintObject
|
+----Viewer.Paint.Line2DObject
- public class Line2DObject
- extends PaintObject
This class contains methods for creating a line.
These objects can be display or image relative.
- Author:
- Klaus Kleber
- Since:
- 30.04.1999
- See Also:
- PaintObject
-
Viewer.Paint.Line2DObject(Point2D. Float, Point2D. Float)
- Contructs an new line.
-
Viewer.Paint.Line2DObject(boolean)
- Constucts a new object with the specified parameter.
-
Viewer.Paint.Line2DObject()
- Constructs a new object.
-
copy()
- Returns a real copy of the Line2DObject.
-
drawShape(Graphics2D)
- Draws the Shape of the Line2DObject in the specified Graphics context.
-
getMovePaintObject(Point2D. Float)
- Returns the part of the Line2DObject which should be redraw if the Line2DObject will be created.
-
getNewPaintObject()
- Returns new Line2DObject with the same properties as the current object.
-
getShape()
- Gets the Shape of the Circle2DObject.
-
setNewPoint(Point2D. Float)
- Insert a new point to the objectPoints.
Line2DObject
public Line2DObject(Point2D.Float start,
Point2D.Float end)
- Contructs an new line.
- Parameters:
- start - Startpoint of the line.
- end - Endpoint of the line.
- Since:
- 30.04.1999
Line2DObject
public Line2DObject(boolean isDisplayRelative)
- Constucts a new object with the specified parameter.
- Parameters:
- isDisplayRelative - true if the object should be display relative.
- Since:
- 30.04.1999
Line2DObject
public Line2DObject()
- Constructs a new object.
- Since:
- 30.04.1999
copy
public Viewer.Paint.PaintObject copy()
- Returns a real copy of the Line2DObject.
- Returns:
- a real copy of this Line2DObject.
- Overrides:
- copy in class PaintObject
- Since:
- 30.04.1999
drawShape
public void drawShape(Graphics2D g)
- Draws the Shape of the Line2DObject in the specified Graphics context.
- Parameters:
- g - The Graphics context in which the Shape should be drawn.
- Overrides:
- drawShape in class PaintObject
- Since:
- 30.04.1999
getMovePaintObject
public Viewer.Paint.PaintObject getMovePaintObject(Point2D.Float nextPoint)
- Returns the part of the Line2DObject which should be redraw if the Line2DObject will be created.
- Parameters:
- nextPoint - The next drawing Point.
- Returns:
- The part of the PaintObject which should be redraw.
- Overrides:
- getMovePaintObject in class PaintObject
- See Also:
- getMovePaintObject
getNewPaintObject
public Viewer.Paint.PaintObject getNewPaintObject()
- Returns new Line2DObject with the same properties as the current object.
- Returns:
- A new Line2DObject with the same properties.
- Overrides:
- getNewPaintObject in class PaintObject
- Since:
- 30.04.1999
getShape
public java.awt.Shape getShape()
- Gets the Shape of the Circle2DObject.
- Returns:
- The Shape of the Circle2DObject.
- Overrides:
- getShape in class PaintObject
- Since:
- 30.04.1999
setNewPoint
public void setNewPoint(Point2D.Float newPoint)
- Insert a new point to the objectPoints. You can only insert 2 points.
- Parameters:
- The - new point of the line
- Overrides:
- setNewPoint in class PaintObject
- Since:
- 30.04.1999
All Packages Class Hierarchy This Package Previous Next Index