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, turnDirectionToequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChangeListener, 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 Rectangle getBounds()
getBounds in interface FigureModelgetBounds in class DefaultFigureModelFigureModel.getBounds(Rectangle),
FigureModel.getLocation(),
FigureModel.getSize()public void moveHeightBy(int dHeight)
moveHeightBy in interface FigureModelExtendeddHeight - 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 FigureModelExtendeddSize - 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 FigureModelExtendeddWidth - 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 FigureModelExtendeddWidth - 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 FigureModelExtendedx - the new x-locationy - the new y-locationwidth - the new widthheight - the new heightFigureModelExtended.setBounds(Rectangle)public void setBounds(Rectangle bounds)
setBounds in interface FigureModelExtendedbounds - the new boundsFigureModelExtended.setBounds(int, int, int, int)public void setHeight(int height)
setHeight in interface FigureModelExtendedheight - the new heightFigureModelExtended.setWidth(int),
FigureModelExtended.setSize(int, int),
FigureModelExtended.setSize(Dimension)public void setSize(Dimension size)
setSize in interface FigureModelExtendedsize - the new sizeFigureModelExtended.setSize(int, int),
FigureModelExtended.setHeight(int),
FigureModelExtended.setWidth(int)public void setSize(int width,
int height)
setSize in interface FigureModelExtendedwidth - the new widthheight - the new heightFigureModelExtended.setSize(Dimension),
FigureModelExtended.setHeight(int),
FigureModelExtended.setWidth(int)public void setWidth(int width)
setWidth in interface FigureModelExtendedwidth - the new widthFigureModelExtended.setHeight(int),
FigureModelExtended.setSize(Dimension),
FigureModelExtended.setSize(int, int)