EchoPoint
1.0

echopoint.positionable
Class ClipRect

java.lang.Object
  extended byechopoint.positionable.ClipRect
All Implemented Interfaces:
java.io.Serializable

public class ClipRect
extends java.lang.Object
implements java.io.Serializable

Represents a clipping rectangle, for Components that implement Clippable.

See Also:
Serialized Form

Constructor Summary
ClipRect(int size)
          Creates a new ClipRect object, defining all dimensions to be the provided value.
ClipRect(int[] dimensions)
          Creates a new ClipRect object, defining all dimensions to be the provided array, which must be a 4 element array array.
ClipRect(int xy, int hw)
          Creates a new ClipRect object by defining values for the horizontal and vertical dimensions.
ClipRect(int x, int y, int width, int height)
          Creates a new ClipRect object with the given dimension sizes (in pixels).
 
Method Summary
 int getHeight()
          Returns the size of the height dimension.
 int getWidth()
          Returns the size of the width dimension.
 int getX()
          Returns the size of the x dimension.
 int getY()
          Returns the size of the ydimension.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClipRect

public ClipRect(int[] dimensions)
Creates a new ClipRect object, defining all dimensions to be the provided array, which must be a 4 element array array.

Parameters:
dimensions - - an integer array of 4 elements

ClipRect

public ClipRect(int size)
Creates a new ClipRect object, defining all dimensions to be the provided value.

Parameters:
size - The new size.

ClipRect

public ClipRect(int xy,
                int hw)
Creates a new ClipRect object by defining values for the horizontal and vertical dimensions.


ClipRect

public ClipRect(int x,
                int y,
                int width,
                int height)
Creates a new ClipRect object with the given dimension sizes (in pixels).

Parameters:
x - The size of the x dimension.
y - The size of the y dimension.
width - The size of the width dimension.
height - The size of the heightdimension.
Method Detail

getHeight

public int getHeight()
Returns the size of the height dimension.

Returns:
The size of the height dimension.

getWidth

public int getWidth()
Returns the size of the width dimension.

Returns:
The size of the width dimension.

getX

public int getX()
Returns the size of the x dimension.

Returns:
The size of the xdimension.

getY

public int getY()
Returns the size of the ydimension.

Returns:
The size of the ydimension.

EchoPoint
1.0