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, 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, 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 getArcHeight()
getArcHeight in interface RectangleModelRectangleModel.getArcWidth(),
RectangleModel.getArcSize()public Dimension getArcSize()
getArcSize in interface RectangleModelRectangleModel.getArcWidth(),
RectangleModel.getArcHeight()public int getArcWidth()
getArcWidth in interface RectangleModelRectangleModel.getArcHeight(),
RectangleModel.getArcSize()public boolean hasRoundedCorners()
hasRoundedCorners in interface RectangleModelRectangleModel.setRoundedCorners(boolean)public void setArcHeight(int arcHeight)
setArcHeight in interface RectangleModelarcHeight - the new arc heightRectangleModel.setArcWidth(int),
RectangleModel.setArcSize(Dimension),
RectangleModel.setArcSize(int, int)public void setArcSize(Dimension d)
setArcSize in interface RectangleModeld - the new arc sizeRectangleModel.setArcSize(int, int),
RectangleModel.setArcWidth(int),
RectangleModel.setArcHeight(int)public void setArcSize(int arcWidth,
int arcHeight)
setArcSize in interface RectangleModelarcWidth - the new arc widtharcHeight - the new arc heightRectangleModel.setArcSize(Dimension),
RectangleModel.setArcWidth(int),
RectangleModel.setArcHeight(int)public void setArcWidth(int arcWidth)
setArcWidth in interface RectangleModelarcWidth - the arc widthRectangleModel.setArcHeight(int),
RectangleModel.setArcSize(Dimension),
RectangleModel.setArcSize(int, int)public void setRoundedCorners(boolean roundRect)
setRoundedCorners in interface RectangleModelroundRect - true or falseRectangleModel.hasRoundedCorners()