noope.output
Class OutputProjectionShapePropertyRecord
java.lang.Object
|
+--noope.laws.LawPropertyRecord
|
+--noope.output.OutputProjectionPropertyRecord
|
+--noope.output.OutputProjectionColoredPropertyRecord
|
+--noope.output.OutputProjectionShapePropertyRecord
- Direct Known Subclasses:
- OutputProjectionCirclePropertyRecord
- public abstract class OutputProjectionShapePropertyRecord
- extends OutputProjectionColoredPropertyRecord
This is an abstract OutputProjectionPropertyRecord class intended to be the base class for
things that are to be represented by an object implementing java.awt.geom.Shape.
- Version:
- 30 March, 2001
- Author:
- Miklos Reiter
Field Summary |
static boolean |
defaultFill
The default value for fill. |
protected boolean |
fill
Whether the shape should be filled when drawn. |
protected java.awt.Shape |
sh
Stores the Shape object to draw. |
Method Summary |
void |
draw(java.awt.Graphics2D g,
double X,
double Y)
Draws sh |
protected abstract void |
moveShTo(double x,
double y)
Moves sh to the point with coordinates (x, y). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
defaultFill
public static boolean defaultFill
- The default value for fill.
fill
protected boolean fill
- Whether the shape should be filled when drawn. Otherwise, only the contours are drawn.
sh
protected java.awt.Shape sh
- Stores the Shape object to draw.
OutputProjectionShapePropertyRecord
public OutputProjectionShapePropertyRecord(BlockReader br,
Entity ent)
throws BRLoadingException
- Constructs a new OutputProjectionShapePropertyRecord object from the BlockReader br, for
the Enitity ent. Apart from the data loaded from br by the inherited constructor, we als
get a boolean (i.e. true/false/True/False/TRUE/FALSE/1/0) fill that specifies whether
to fill the inside of the
shape or not. The default is defaultFill.
draw
public void draw(java.awt.Graphics2D g,
double X,
double Y)
- Draws sh
- Overrides:
draw
in class OutputProjectionPropertyRecord
moveShTo
protected abstract void moveShTo(double x,
double y)
- Moves sh to the point with coordinates (x, y). After this operation, we expect the *centre*
of sh to be at (x, y).