geofasc.swing.model
public class DefaultFigureModelExtended extends DefaultFigureModel implements FigureModelExtended
DefaultFigureModelExtended
is the default implementation of
FigureModelExtended
. This class is inherited from DefaultFigureModel
.Constructor and Description |
---|
DefaultFigureModelExtended() |
Modifier and Type | Method and Description |
---|---|
Rectangle |
getBounds()
Gets the bounds (size and location) of this model's figure.
|
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, 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
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
public Rectangle getBounds()
getBounds
in interface FigureModel
getBounds
in class DefaultFigureModel
FigureModel.getBounds(Rectangle)
,
FigureModel.getLocation()
,
FigureModel.getSize()
public void moveHeightBy(int dHeight)
moveHeightBy
in interface FigureModelExtended
dHeight
- the delta-height to move the height byFigureModelExtended.moveWidthBy(int)
,
FigureModelExtended.moveSizeBy(int, int)
,
FigureModelExtended.moveSizeBy(Dimension)
public void moveSizeBy(Dimension dSize)
moveSizeBy
in interface FigureModelExtended
dSize
- the delta-size
to move the size byFigureModelExtended.moveSizeBy(int, int)
,
FigureModelExtended.moveWidthBy(int)
,
FigureModelExtended.moveHeightBy(int)
public void moveSizeBy(int dWidth, int dHeight)
moveSizeBy
in interface FigureModelExtended
dWidth
- the delta-width
to move the width bydHeight
- the delta-height
to move the height byFigureModelExtended.moveSizeBy(Dimension)
,
FigureModelExtended.moveWidthBy(int)
,
FigureModelExtended.moveHeightBy(int)
public void moveWidthBy(int dWidth)
moveWidthBy
in interface FigureModelExtended
dWidth
- the delta-width
to move the width byFigureModelExtended.moveHeightBy(int)
,
FigureModelExtended.moveSizeBy(int, int)
,
FigureModelExtended.moveSizeBy(Dimension)
public void setBounds(int x, int y, int width, int height)
setBounds
in interface FigureModelExtended
x
- the new x-locationy
- the new y-locationwidth
- the new widthheight
- the new heightFigureModelExtended.setBounds(Rectangle)
public void setBounds(Rectangle bounds)
setBounds
in interface FigureModelExtended
bounds
- the new boundsFigureModelExtended.setBounds(int, int, int, int)
public void setHeight(int height)
setHeight
in interface FigureModelExtended
height
- the new heightFigureModelExtended.setWidth(int)
,
FigureModelExtended.setSize(int, int)
,
FigureModelExtended.setSize(Dimension)
public void setSize(Dimension size)
setSize
in interface FigureModelExtended
size
- the new sizeFigureModelExtended.setSize(int, int)
,
FigureModelExtended.setHeight(int)
,
FigureModelExtended.setWidth(int)
public void setSize(int width, int height)
setSize
in interface FigureModelExtended
width
- the new widthheight
- the new heightFigureModelExtended.setSize(Dimension)
,
FigureModelExtended.setHeight(int)
,
FigureModelExtended.setWidth(int)
public void setWidth(int width)
setWidth
in interface FigureModelExtended
width
- the new widthFigureModelExtended.setHeight(int)
,
FigureModelExtended.setSize(Dimension)
,
FigureModelExtended.setSize(int, int)