geofasc.swing.model
public class DefaultRectangleModel extends DefaultFigureModelExtended implements RectangleModel
DefaultRectangleModel
is the default implementation of
RectangleModel
. This class is inherited from
DefaultFigureModelExtended
.Constructor and Description |
---|
DefaultRectangleModel() |
Modifier and Type | Method and Description |
---|---|
int |
getArcHeight()
Gets the arc height used when drawing this model's rectangle with rounded
corners.
|
Dimension |
getArcSize()
Gets the arc size (arc width and height) used when drawing this model's
rectangle with rounded corners.
|
int |
getArcWidth()
Gets the arc width used when drawing this model's rectangle with rounded
corners.
|
boolean |
hasRoundedCorners()
Determines whether to draw this model's rectangle with rounded corners.
|
void |
setArcHeight(int arcHeight)
Sets the arc height used when drawing this model's rectangle with rounded
corners.
|
void |
setArcSize(Dimension d)
Sets the arc size (arc width and height) used when drawing this model's
rectangle with rounded corners.
|
void |
setArcSize(int arcWidth,
int arcHeight)
Sets the arc size (arc width and height) used when drawing this model's
rectangle with rounded corners.
|
void |
setArcWidth(int arcWidth)
Sets the arc width used when drawing this model's rectangle with rounded
corners.
|
void |
setRoundedCorners(boolean roundRect)
Sets whether this model's rectangle should have round corners.
|
getBounds, moveHeightBy, moveSizeBy, moveSizeBy, moveWidthBy, setBounds, setBounds, setHeight, setSize, 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, 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 getArcHeight()
getArcHeight
in interface RectangleModel
RectangleModel.getArcWidth()
,
RectangleModel.getArcSize()
public Dimension getArcSize()
getArcSize
in interface RectangleModel
RectangleModel.getArcWidth()
,
RectangleModel.getArcHeight()
public int getArcWidth()
getArcWidth
in interface RectangleModel
RectangleModel.getArcHeight()
,
RectangleModel.getArcSize()
public boolean hasRoundedCorners()
hasRoundedCorners
in interface RectangleModel
RectangleModel.setRoundedCorners(boolean)
public void setArcHeight(int arcHeight)
setArcHeight
in interface RectangleModel
arcHeight
- the new arc heightRectangleModel.setArcWidth(int)
,
RectangleModel.setArcSize(Dimension)
,
RectangleModel.setArcSize(int, int)
public void setArcSize(Dimension d)
setArcSize
in interface RectangleModel
d
- the new arc sizeRectangleModel.setArcSize(int, int)
,
RectangleModel.setArcWidth(int)
,
RectangleModel.setArcHeight(int)
public void setArcSize(int arcWidth, int arcHeight)
setArcSize
in interface RectangleModel
arcWidth
- the new arc widtharcHeight
- the new arc heightRectangleModel.setArcSize(Dimension)
,
RectangleModel.setArcWidth(int)
,
RectangleModel.setArcHeight(int)
public void setArcWidth(int arcWidth)
setArcWidth
in interface RectangleModel
arcWidth
- the arc widthRectangleModel.setArcHeight(int)
,
RectangleModel.setArcSize(Dimension)
,
RectangleModel.setArcSize(int, int)
public void setRoundedCorners(boolean roundRect)
setRoundedCorners
in interface RectangleModel
roundRect
- true or falseRectangleModel.hasRoundedCorners()