figure
Class GraphicalPoint

java.lang.Object
  extended byfigure.Plotable
      extended byfigure.GraphicalPoint
All Implemented Interfaces:
Moveable

public class GraphicalPoint
extends Plotable
implements Moveable


Field Summary
static int CIRCLE
           
static int SQUARE
           
 double x
           
 double y
           
 
Constructor Summary
GraphicalPoint(double xp, double yp)
           
 
Method Summary
 Mover getMover()
           
 boolean hit(int xp, int yp)
           
 void plot(java.awt.Graphics2D g, BoundingBox bbox, java.awt.geom.AffineTransform transform)
           
 void setMover(Mover m)
           
 void setPoint(double xp, double yp)
           
 void setSize(double s)
           
 void setStyle(int s)
           
 
Methods inherited from class figure.Plotable
setColor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CIRCLE

public static final int CIRCLE
See Also:
Constant Field Values

SQUARE

public static final int SQUARE
See Also:
Constant Field Values

x

public double x

y

public double y
Constructor Detail

GraphicalPoint

public GraphicalPoint(double xp,
                      double yp)
Method Detail

setPoint

public void setPoint(double xp,
                     double yp)

setMover

public void setMover(Mover m)
Specified by:
setMover in interface Moveable

getMover

public Mover getMover()
Specified by:
getMover in interface Moveable

setSize

public void setSize(double s)

setStyle

public void setStyle(int s)

hit

public boolean hit(int xp,
                   int yp)
Specified by:
hit in interface Moveable

plot

public void plot(java.awt.Graphics2D g,
                 BoundingBox bbox,
                 java.awt.geom.AffineTransform transform)
Specified by:
plot in class Plotable