geofasc.swing.model
public interface RectangleModel extends FigureModelExtended
RectangleModel is the interface for the data model of a
rectangle figure. This interface is inherited from
FigureModelExtended.
A rectangle is defined by its width and height (see
FigureModel.getSize(),
FigureModelExtended.setSize(int, int)). Besides the common visual
properties some extra ones can be set on it like drawing rounded corners.| 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 arcSize)
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 roundCorners)
Sets whether this model's rectangle should have round corners.
|
moveHeightBy, 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, turnDirectionToint getArcHeight()
getArcWidth(),
getArcSize()Dimension getArcSize()
getArcWidth(),
getArcHeight()int getArcWidth()
getArcHeight(),
getArcSize()boolean hasRoundedCorners()
setRoundedCorners(boolean)void setArcHeight(int arcHeight)
arcHeight - the new arc heightsetArcWidth(int),
setArcSize(Dimension),
setArcSize(int, int)void setArcSize(Dimension arcSize)
arcSize - the new arc sizesetArcSize(int, int),
setArcWidth(int),
setArcHeight(int)void setArcSize(int arcWidth,
int arcHeight)
arcWidth - the new arc widtharcHeight - the new arc heightsetArcSize(Dimension),
setArcWidth(int),
setArcHeight(int)void setArcWidth(int arcWidth)
arcWidth - the arc widthsetArcHeight(int),
setArcSize(Dimension),
setArcSize(int, int)void setRoundedCorners(boolean roundCorners)
roundCorners - true or falsehasRoundedCorners()