geofasc.swing.model
public class DefaultCircleModel extends DefaultEllipseModel implements CircleModel
DefaultCircleModel is the default implementation of
CircleModel. This class is inherited from DefaultEllipseModel.| Constructor and Description |
|---|
DefaultCircleModel() |
| Modifier and Type | Method and Description |
|---|---|
int |
getDiameter()
Gets the diameter of this model's circle.
|
int |
getRadius()
Gets the radius of this model's circle.
|
void |
setDiameter(int diameter)
Sets the diameter of of this model's circle.
|
void |
setRadius(int radius)
Sets the radius of of this model's circle.
|
void |
setSize(int width,
int height)
Sets the size (width and height) of this model's figure.
|
getBounds, moveHeightBy, moveSizeBy, moveSizeBy, moveWidthBy, setBounds, setBounds, setHeight, setSize, setWidthaddChangeListener, getBounds, getDirection, getFillColor, getHeight, getLineColor, getLocation, getLocationX, getLocationY, getSize, getWidth, isFilled, moveLocationBy, moveLocationBy, moveLocationBy, moveLocationXBy, moveLocationYBy, removeChangeListener, setDirection, setFillColor, setFilled, setLineColor, setLocation, setLocation, setLocationX, setLocationY, turnDirectionBy, turnDirectionToequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmoveHeightBy, moveSizeBy, moveSizeBy, moveWidthBy, setBounds, setBounds, setHeight, setSize, setWidthaddChangeListener, getBounds, getBounds, getDirection, getFillColor, getHeight, getLineColor, getLocation, getLocationX, getLocationY, getSize, getWidth, isFilled, moveLocationBy, moveLocationBy, moveLocationBy, moveLocationXBy, moveLocationYBy, removeChangeListener, setDirection, setFillColor, setFilled, setLineColor, setLocation, setLocation, setLocationX, setLocationY, turnDirectionBy, turnDirectionTopublic int getRadius()
getRadius in interface CircleModelpublic void setRadius(int radius)
setRadius in interface CircleModelradius - the new radiuspublic void setSize(int width,
int height)
setSize in interface FigureModelExtendedsetSize in class DefaultFigureModelExtendedwidth - the new widthheight - the new heightFigureModelExtended.setSize(Dimension),
FigureModelExtended.setHeight(int),
FigureModelExtended.setWidth(int)public int getDiameter()
getDiameter in interface CircleModelpublic void setDiameter(int diameter)
setDiameter in interface CircleModel