Class Viewer.Paint.Ellipse2DObject
All Packages Class Hierarchy This Package Previous Next Index
Class Viewer.Paint.Ellipse2DObject
Object
|
+----PaintObject
|
+----Viewer.Paint.Ellipse2DObject
- public class Ellipse2DObject
- extends PaintObject
This class contains methods for creating an ellipse.
These objects can be display or image relative.
These objects can be a shutter.
- Version:
- 1.0
- Author:
- Klaus Kleber
- Since:
- 30.04.1999
- See Also:
- PaintObject
-
thisShape
- Contains the geometic form of the ellipse.
-
Viewer.Paint.Ellipse2DObject(Point2D. Float, Point2D. Float)
- Contructs an new Circle2DObject form the specified parameters.
-
Viewer.Paint.Ellipse2DObject()
- Constructs a new object.
-
Viewer.Paint.Ellipse2DObject(boolean, boolean, boolean)
- Constucts a new object with the specified parameter.
-
build(Point2D. Float, Point2D. Float)
- Contructs a cirular Ellipse2D form the specified parameters.
-
copy()
- Returns a real copy of the Ellipse.
-
drawShape(Graphics2D)
- Draws the Shape of the Ellipse2DObject in the specified Graphics context.
-
getMovePaintObject(Point2D. Float)
- Returns the part of the Ellipse2DObject which should be redraw if the Ellipse2DObject will be created.
-
getNewPaintObject()
- Returns new Ellipse2DObject with the same properties as the current object.
-
getShape()
- Gets the Shape of the Ellipse2DObject.
-
setNewPoint(Point2D. Float)
- Insert a new point to the objectPoints.
thisShape
public java.awt.geom.Ellipse2D. Float thisShape
- Contains the geometic form of the ellipse.
- Since:
30.04.1999
Ellipse2DObject
public Ellipse2DObject(Point2D.Float tlhc,
Point2D.Float brhc)
- Contructs an new Circle2DObject form the specified parameters.
- Parameters:
- tlhc - Top left hand coner of the bounding rectangle
- brhc - Bottom right hand coner of the bounding rectangle.
- Since:
- 30.04.1999
Ellipse2DObject
public Ellipse2DObject()
- Constructs a new object.
- Since:
- 30.04.1999
Ellipse2DObject
public Ellipse2DObject(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
build
public java.awt.geom.Ellipse2D. Float build(Point2D.Float tlhc,
Point2D.Float brhc)
- Contructs a cirular Ellipse2D form the specified parameters.
- Parameters:
- tlhc - Top left hand coner of the bounding rectangle
- brhc - Bottom right hand coner of the bounding rectangle.
- Since:
- 30.04.1999
copy
public Viewer.Paint.PaintObject copy()
- Returns a real copy of the Ellipse.
- Returns:
- a real copy of this Ellipse2DObject.
- Overrides:
- copy in class PaintObject
- Since:
- 30.04.1999
drawShape
public void drawShape(Graphics2D g)
- Draws the Shape of the Ellipse2DObject 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 Ellipse2DObject which should be redraw if the Ellipse2DObject 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 Ellipse2DObject with the same properties as the current object.
- Returns:
- A new Ellipse2DObject with the same properties.
- Overrides:
- getNewPaintObject in class PaintObject
- Since:
- 30.04.1999
getShape
public java.awt.Shape getShape()
- Gets the Shape of the Ellipse2DObject.
- Returns:
- The Shape of the Ellipse2DObject.
- 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 circle
- Overrides:
- setNewPoint in class PaintObject
- Since:
- 30.04.1999
All Packages Class Hierarchy This Package Previous Next Index