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.


Constructor Index

 o WBMPDimension(int, int, int, int)
Constructor with parameters.

Method Index

 o getDimensionLength()
This method gets the length of a dimension.
 o getDimensionWidth()
This method gets the width of a dimension.
 o getX()
This method gets the X coordinate of dimension origin.
 o getY()
This method gets the Y coordinate of dimension origin.
 o setDimensionLength(int)
This method sets the length of a dimension.
 o setDimensionWidth(int)
This method sets the width of a dimension.
 o setX(int)
This method sets the X coordinate of dimension origin.
 o setY(int)
This method sets the Y coordinate of dimension origin.

Constructor Detail

 o 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

 o setDimensionLength
public void setDimensionLength(int newLength)
          This method sets the length of a dimension.
Parameters:
newLength - new length of a dimension
 o getDimensionLength
public int getDimensionLength()
          This method gets the length of a dimension.
 o setDimensionWidth
public void setDimensionWidth(int newWidth)
          This method sets the width of a dimension.
Parameters:
newWidth - new width of a dimension
 o getDimensionWidth
public int getDimensionWidth()
          This method gets the width of a dimension.
 o setX
public void setX(int newX)
          This method sets the X coordinate of dimension origin.
Parameters:
newX - new X coordinate
 o getX
public int getX()
          This method gets the X coordinate of dimension origin.
 o setY
public void setY(int newY)
          This method sets the Y coordinate of dimension origin.
Parameters:
newY - new Y coordinate
 o getY
public int getY()
          This method gets the Y coordinate of dimension origin.

All Packages  Class Hierarchy  This Package  Previous  Next  Index