noope.output
Class OutputProjectionCirclePropertyRecord

java.lang.Object
  |
  +--noope.laws.LawPropertyRecord
        |
        +--noope.output.OutputProjectionPropertyRecord
              |
              +--noope.output.OutputProjectionColoredPropertyRecord
                    |
                    +--noope.output.OutputProjectionShapePropertyRecord
                          |
                          +--noope.output.OutputProjectionCirclePropertyRecord

public class OutputProjectionCirclePropertyRecord
extends OutputProjectionShapePropertyRecord

This subclass of OutputProjectionCirclePropertyRecord represents the Entity as a circle. Caution: if the resolution in the x and y directions is not the same, the circle will look like an ellipse.

Version:
19 April 2001, bug fixed: now moveShTo works correctly
Author:
Miklos Reiter

Field Summary
protected  double radius
          Stores the radius of the circle.
 
Fields inherited from class noope.output.OutputProjectionShapePropertyRecord
defaultFill, fill, sh
 
Fields inherited from class noope.output.OutputProjectionColoredPropertyRecord
color, defaultColor, oldX, oldY
 
Constructor Summary
OutputProjectionCirclePropertyRecord(BlockReader br, Entity ent)
          Calls the inherited constructor and then reads the double "radius" from br.
 
Method Summary
protected  void moveShTo(double x_pos, double y_pos)
          Moves sh to (x, y).
 
Methods inherited from class noope.output.OutputProjectionShapePropertyRecord
draw
 
Methods inherited from class noope.output.OutputProjectionColoredPropertyRecord
lookupColor
 
Methods inherited from class noope.output.OutputProjectionPropertyRecord
paint
 
Methods inherited from class noope.laws.LawPropertyRecord
dispose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

radius

protected double radius
Stores the radius of the circle.
Constructor Detail

OutputProjectionCirclePropertyRecord

public OutputProjectionCirclePropertyRecord(BlockReader br,
                                            Entity ent)
                                     throws BRLoadingException
Calls the inherited constructor and then reads the double "radius" from br. If it fails, it throws an exception.
Method Detail

moveShTo

protected void moveShTo(double x_pos,
                        double y_pos)
Moves sh to (x, y). I.e. after the call, the centre of sh will be in (x, y).
Overrides:
moveShTo in class OutputProjectionShapePropertyRecord