Class Viewer.Paint.PolylineObject
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Viewer.Paint.PolylineObject

Object
   |
   +----PaintObject
           |
           +----Viewer.Paint.PolylineObject

public class PolylineObject
extends PaintObject
This class contains methods for creating a polyline.
These objects can be display or image relative.
These objects can be a shutter.

Author:
Klaus Kleber
Since:
30.04.1999
See Also:
PaintObject

Constructor Index

 o Viewer.Paint.PolylineObject()
Constructs a new object.
 o Viewer.Paint.PolylineObject(boolean, boolean, boolean)
Constucts a new object with the specified parameter.
 o Viewer.Paint.PolylineObject(PolylineObject)
Constucts a new object form the specified parameter

Method Index

 o copy()
Returns a real copy of the PolylineObject.
 o drawShape(Graphics2D)
Draws the Shape of the Circle2DObject in the specified Graphics context.
 o getMovePaintObject(Point2D. Float)
Returns the part of the PolylineObject which should be redraw if the Circle2DObject will be created.
 o getNewPaintObject()
Returns new PolylineObject with the same properties as the current object.
 o getShape()
Gets the Shape of the PolylineObject.
 o setNewPoint(Point2D. Float)
Insert a new point to the objectPoints.

Constructors

 o PolylineObject
public PolylineObject()
Constructs a new object.

Since:
30.04.1999
 o PolylineObject
public PolylineObject(boolean filled,
                      boolean isDisplayRelative,
                      boolean isShutter)
Constucts a new object with the specified parameter.

Parameters:
filled - true if the object should be filled
isDisplayRelative - true if the object should be display relative.
isShutter - true if the object should be a shutter.
Since:
30.04.1999
 o PolylineObject
public PolylineObject(PolylineObject anPolylineObject)
Constucts a new object form the specified parameter

Parameters:
anPolylineObject - Constructor copies the specified object.
isDisplayRelative - true if the object should be display relative.
isShutter - true if the object should be a shutter.
Since:
30.04.1999

Methods

 o copy
public Viewer.Paint.PaintObject copy()
Returns a real copy of the PolylineObject.

Returns:
A real copy of this PolylineObject.
Overrides:
copy in class PaintObject
Since:
30.04.1999
 o drawShape
public void drawShape(Graphics2D g)
Draws the Shape of the Circle2DObject 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
 o getMovePaintObject
public Viewer.Paint.PaintObject getMovePaintObject(Point2D.Float nextPoint)
Returns the part of the PolylineObject which should be redraw if the Circle2DObject 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
 o getNewPaintObject
public Viewer.Paint.PaintObject getNewPaintObject()
Returns new PolylineObject with the same properties as the current object.

Returns:
A new PolylineObject with the same properties.
Overrides:
getNewPaintObject in class PaintObject
Since:
30.04.1999
 o getShape
public java.awt.Shape getShape()
Gets the Shape of the PolylineObject.

Returns:
The Shape of the Circle2DObject.
Overrides:
getShape in class PaintObject
Since:
30.04.1999
 o setNewPoint
public void setNewPoint(Point2D.Float newPoint)
Insert a new point to the objectPoints.

Parameters:
The - new point of the circle
Overrides:
setNewPoint in class PaintObject
Since:
30.04.1999

All Packages  Class Hierarchy  This Package  Previous  Next  Index