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, setWidth
addChangeListener, 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, turnDirectionTo
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
moveHeightBy, moveSizeBy, moveSizeBy, moveWidthBy, setBounds, setBounds, setHeight, setSize, setWidth
addChangeListener, 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, turnDirectionTo
public int getRadius()
getRadius
in interface CircleModel
public void setRadius(int radius)
setRadius
in interface CircleModel
radius
- the new radiuspublic void setSize(int width, int height)
setSize
in interface FigureModelExtended
setSize
in class DefaultFigureModelExtended
width
- the new widthheight
- the new heightFigureModelExtended.setSize(Dimension)
,
FigureModelExtended.setHeight(int)
,
FigureModelExtended.setWidth(int)
public int getDiameter()
getDiameter
in interface CircleModel
public void setDiameter(int diameter)
setDiameter
in interface CircleModel