|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.iproject.wbmpcreator.WBMPDimension
WBMPDimension class.
This class represents a dimension with its attributes.
New since version 1.07.
Constructor Summary | |
WBMPDimension(int x,
int y,
int length,
int width)
Constructor with parameters. |
Method Summary | |
int |
getDimensionLength()
This method gets the length of a dimension. |
int |
getDimensionWidth()
This method gets the width of a dimension. |
int |
getX()
This method gets the X coordinate of dimension origin. |
int |
getY()
This method gets the Y coordinate of dimension origin. |
void |
setDimensionLength(int newLength)
This method sets the length of a dimension. |
void |
setDimensionWidth(int newWidth)
This method sets the width of a dimension. |
void |
setX(int newX)
This method sets the X coordinate of dimension origin. |
void |
setY(int newY)
This method sets the Y coordinate of dimension origin. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public WBMPDimension(int x, int y, int length, int width)
x
- X coordinate of upper left point;y
- Y coordinate of upper left point;length
- length of a resulting rectangle;width
- width of a resulting rectangle.Method Detail |
public void setDimensionLength(int newLength)
newLength
- new length of a dimensionpublic int getDimensionLength()
public void setDimensionWidth(int newWidth)
newWidth
- new width of a dimensionpublic int getDimensionWidth()
public void setX(int newX)
newX
- new X coordinatepublic int getX()
public void setY(int newY)
newY
- new Y coordinatepublic int getY()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |