| java.lang.Object com.sun.perseus.j2d.Box
Box | public class Box implements SVGRect(Code) | | This class represents an "SVGRect" datatype, consisting of a minimum X,
minimum Y, width and height values.
author: Kevin Wong version: $Id: Box.java,v 1.4 2006/04/21 06:35:00 st125089 Exp $ |
Field Summary | |
public float | height | public float | width | public float | x | public float | y |
Constructor Summary | |
public | Box(float x, float y, float w, float h) | public | Box(Box b) Copy constructor
Parameters: b - the Box to copy. |
height | public float height(Code) | | The height value of the rectangle
|
width | public float width(Code) | | The width value of the rectangle
|
x | public float x(Code) | | The smallest x-axis value of the rectangle
|
y | public float y(Code) | | The smallest y-axis value of the rectangle
|
Box | public Box(float x, float y, float w, float h)(Code) | | Parameters: x - the rect's x-axis origin. Parameters: y - the rect's y-axis origin. Parameters: w - the rect's x-axis width. Parameters: h - the rect's y-axis height. |
Box | public Box(Box b)(Code) | | Copy constructor
Parameters: b - the Box to copy. Should not be null. |
equals | public boolean equals(Object cmp)(Code) | | true if the input object is this Box or if x, y, width and heightare equals. |
getHeight | public float getHeight()(Code) | | |
getWidth | public float getWidth()(Code) | | |
setHeight | public void setHeight(float value)(Code) | | |
setWidth | public void setWidth(float value)(Code) | | |
setX | public void setX(float value)(Code) | | |
setY | public void setY(float value)(Code) | | |
snap | public void snap()(Code) | | Snaps this Box instance to the integer grid.
|
|
|