All Packages Class Hierarchy This Package Previous Next Index
Class WBMPcreator.WBMPDimension
java.lang.Object
|
+----WBMPcreator.WBMPDimension
- public class WBMPDimension
- extends java.lang.Object
WBMPDimension class.
This class represents a dimension with its attributes.
New since version 1.07.
WBMPDimension(int, int, int, int)
- Constructor with parameters.
getDimensionLength()
- This method gets the length of a dimension.
getDimensionWidth()
- This method gets the width of a dimension.
getX()
- This method gets the X coordinate of dimension origin.
getY()
- This method gets the Y coordinate of dimension origin.
setDimensionLength(int)
- This method sets the length of a dimension.
setDimensionWidth(int)
- This method sets the width of a dimension.
setX(int)
- This method sets the X coordinate of dimension origin.
setY(int)
- This method sets the Y coordinate of dimension origin.
WBMPDimension
public WBMPDimension(int x,
int y,
int length,
int width)
Constructor with parameters. It creates a dimension to be used further.
- Parameters:
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.
setDimensionLength
public void setDimensionLength(int newLength)
This method sets the length of a dimension.
- Parameters:
newLength - new length of a dimension
getDimensionLength
public int getDimensionLength()
This method gets the length of a dimension.
setDimensionWidth
public void setDimensionWidth(int newWidth)
This method sets the width of a dimension.
- Parameters:
newWidth - new width of a dimension
getDimensionWidth
public int getDimensionWidth()
This method gets the width of a dimension.
setX
public void setX(int newX)
This method sets the X coordinate of dimension origin.
- Parameters:
newX - new X coordinate
getX
public int getX()
This method gets the X coordinate of dimension origin.
setY
public void setY(int newY)
This method sets the Y coordinate of dimension origin.
- Parameters:
newY - new Y coordinate
getY
public int getY()
This method gets the Y coordinate of dimension origin.
All Packages Class Hierarchy This Package Previous Next Index