public class MeasuredCircle extends Circle implements Measurable
Constructor and Description |
---|
MeasuredCircle(double x,
double y)
Constructs a MeasuredCircle with the given center.
|
Modifier and Type | Method and Description |
---|---|
static XML.ObjectLoader |
getLoader()
Gets a loader allows a Circle to be represented as XML data.
|
double |
getXMax()
Implements measurable by getting the x center of the circle.
|
double |
getXMin()
Implements measurable by getting the x center of the circle.
|
double |
getYMax()
Implements measurable by getting the y center of the circle.
|
double |
getYMin()
Implements measurable by getting the y center of the circle.
|
boolean |
isMeasured()
Determines if this circle should effect the scale of a drawing panel.
|
void |
setMeasured(boolean _enableMeasure)
Enables the measured flag so that this circle effects the scale of a drawing panel.
|
draw, getX, getY, setX, setXY, setY, toString
public MeasuredCircle(double x, double y)
x
- the x position of the centery
- the y position of the centerpublic void setMeasured(boolean _enableMeasure)
public boolean isMeasured()
isMeasured
in interface Measurable
public double getXMin()
getXMin
in interface Measurable
public double getXMax()
getXMax
in interface Measurable
public double getYMin()
getYMin
in interface Measurable
public double getYMax()
getYMax
in interface Measurable
public static XML.ObjectLoader getLoader()