geofasc.swing.model
public interface FigureModelExtended extends FigureModel
FigureModelExtended
extends FigureModel
by providing
write access to the figure's bounds. This model is interesting for such
figures whose bounding box defines the figure such as a rectangle or square.Modifier and Type | Method and Description |
---|---|
void |
moveHeightBy(int dHeight)
Moves (increases or decreases) the height of this model's figure.
|
void |
moveSizeBy(Dimension dSize)
Moves (increases or decreases) the size of this model's figure.
|
void |
moveSizeBy(int dWidth,
int dHeight)
Moves (increases or decreases) the size of this model's figure.
|
void |
moveWidthBy(int dWidth)
Moves (increases or decreases) the width of this model's figure.
|
void |
setBounds(int x,
int y,
int width,
int height)
Sets the bounds (size and location) of this model's figure.
|
void |
setBounds(Rectangle bounds)
Sets the bounds (size and location) of this model's figure.
|
void |
setHeight(int height)
Sets the height of the figure.
|
void |
setSize(Dimension size)
Sets the size (width and height) of this model's figure.
|
void |
setSize(int width,
int height)
Sets the size (width and height) of this model's figure.
|
void |
setWidth(int width)
Sets the width of this model's figure.
|
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
void moveHeightBy(int dHeight)
dHeight
- the delta-height to move the height bymoveWidthBy(int)
,
moveSizeBy(int, int)
,
moveSizeBy(Dimension)
void moveSizeBy(Dimension dSize)
dSize
- the delta-size
to move the size bymoveSizeBy(int, int)
,
moveWidthBy(int)
,
moveHeightBy(int)
void moveSizeBy(int dWidth, int dHeight)
dWidth
- the delta-width
to move the width bydHeight
- the delta-height
to move the height bymoveSizeBy(Dimension)
,
moveWidthBy(int)
,
moveHeightBy(int)
void moveWidthBy(int dWidth)
dWidth
- the delta-width
to move the width bymoveHeightBy(int)
,
moveSizeBy(int, int)
,
moveSizeBy(Dimension)
void setBounds(int x, int y, int width, int height)
x
- the new x-locationy
- the new y-locationwidth
- the new widthheight
- the new heightsetBounds(Rectangle)
void setBounds(Rectangle bounds)
bounds
- the new boundssetBounds(int, int, int, int)
void setHeight(int height)
height
- the new heightsetWidth(int)
,
setSize(int, int)
,
setSize(Dimension)
void setSize(Dimension size)
size
- the new sizesetSize(int, int)
,
setHeight(int)
,
setWidth(int)
void setSize(int width, int height)
width
- the new widthheight
- the new heightsetSize(Dimension)
,
setHeight(int)
,
setWidth(int)
void setWidth(int width)
width
- the new widthsetHeight(int)
,
setSize(Dimension)
,
setSize(int, int)