noope.output
Class OutputProjectionPropertyRecord
java.lang.Object
|
+--noope.laws.LawPropertyRecord
|
+--noope.output.OutputProjectionPropertyRecord
- Direct Known Subclasses:
- OutputProjectionColoredPropertyRecord
- public abstract class OutputProjectionPropertyRecord
- extends LawPropertyRecord
This is the LawPropertyRecord class associated with the OutputProjection law.
- Version:
- 19 April 2001, fixed bug: paint should just call draw and not check whether coordinates
have changed, since the screen is cleared before each screenshot now.
- Author:
- Miklos Reiter
Field Summary |
protected double |
oldX
|
protected double |
oldY
|
Method Summary |
abstract void |
draw(java.awt.Graphics2D g,
double X,
double Y)
This method draws the object on the Graphics object at the position (X,Y). |
void |
paint(java.awt.Graphics2D g,
double X,
double Y)
This method just calls draw. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
oldX
protected double oldX
oldY
protected double oldY
OutputProjectionPropertyRecord
public OutputProjectionPropertyRecord(BlockReader br,
Entity ent)
throws BRLoadingException
- Constructs a new OutputProjectionPropertyRecord object from the BlockReader br and
for the Entity ent. This base class does not load anything from br yet, it just calls
the inherited constructor.
paint
public void paint(java.awt.Graphics2D g,
double X,
double Y)
- This method just calls draw.
draw
public abstract void draw(java.awt.Graphics2D g,
double X,
double Y)
- This method draws the object on the Graphics object at the position (X,Y). This may
be overridden for subclasses, to change drawing behaviour.