|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensourcephysics.display.Circle
org.opensourcephysics.display.MeasuredCircle
public class MeasuredCircle
A drawable circle that implements Measurable.
| Field Summary |
|---|
| Fields inherited from class org.opensourcephysics.display.Circle |
|---|
color, pixRadius, x, y |
| Constructor Summary | |
|---|---|
MeasuredCircle(double x,
double y)
Constructs a MeasuredCircle with the given center. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.opensourcephysics.display.Circle |
|---|
draw, getX, getY, setX, setXY, setY, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.opensourcephysics.display.Drawable |
|---|
draw |
| Constructor Detail |
|---|
public MeasuredCircle(double x,
double y)
x - the x position of the centery - the y position of the center| Method Detail |
|---|
public void setMeasured(boolean _enableMeasure)
public boolean isMeasured()
isMeasured in interface Measurablepublic double getXMin()
getXMin in interface Measurablepublic double getXMax()
getXMax in interface Measurablepublic double getYMin()
getYMin in interface Measurablepublic double getYMax()
getYMax in interface Measurablepublic static XML.ObjectLoader getLoader()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||