com.iproject.wbmpcreator
Class WBMPDimension

java.lang.Object
  |
  +--com.iproject.wbmpcreator.WBMPDimension

public class WBMPDimension
extends java.lang.Object

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

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.
Method Detail

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.