| java.lang.Object java.util.Observable jimm.datavision.field.Rectangle
Field Summary | |
public double | height Warning: only read the height. | public double | width Warning: only read the width. | public double | x Warning: only read the x coordinate. | public double | y Warning: only read the y coordinate. |
Method Summary | |
public double | getHeight() Returns the height. | public double | getWidth() Returns the width. | public double | getX() Returns the x coordinate. | public double | getY() Returns the y coordinate. | public void | setBounds(double newX, double newY, double newWidth, double newHeight) Sets everything at once. | public void | setBounds(jimm.datavision.field.Rectangle r) Sets everything at once. | public void | setBounds(java.awt.Rectangle r) Sets everything at once. | public void | setHeight(double newHeight) Sets the height. | public void | setWidth(double newWidth) Sets the width. | public void | setX(double newX) Sets the x coordinate. | public void | setY(double newY) Sets the y coordinate. | public String | toString() Returns a string representation of this rectangle. | public void | writeXML(XMLWriter out) Writes this rectangle as an XML tag. |
height | public double height(Code) | | Warning: only read the height. When writing, make sure to use
setter method so observers are notified.
|
width | public double width(Code) | | Warning: only read the width. When writing, make sure to use
setter method so observers are notified.
|
x | public double x(Code) | | Warning: only read the x coordinate. When writing, make sure to use
setter method so observers are notified.
|
y | public double y(Code) | | Warning: only read the y coordinate. When writing, make sure to use
setter method so observers are notified.
|
Rectangle | public Rectangle()(Code) | | Constructor.
|
Rectangle | public Rectangle(Rectangle r)(Code) | | Constructor.
Parameters: r - another rectangle |
Rectangle | public Rectangle(double x, double y, double width, double height)(Code) | | Constructor.
Parameters: x - a double Parameters: y - a double Parameters: width - a double Parameters: height - a double |
getHeight | public double getHeight()(Code) | | Returns the height.
the doubleing-point height |
getWidth | public double getWidth()(Code) | | Returns the width.
the doubleing-point width |
getX | public double getX()(Code) | | Returns the x coordinate.
the doubleing-point x coordinate |
getY | public double getY()(Code) | | Returns the y coordinate.
the doubleing-point y coordinate |
setBounds | public void setBounds(double newX, double newY, double newWidth, double newHeight)(Code) | | Sets everything at once.
Parameters: newX - the new x coordinate Parameters: newY - the new y coordinate Parameters: newWidth - the new width Parameters: newHeight - the new height |
setBounds | public void setBounds(java.awt.Rectangle r)(Code) | | Sets everything at once.
Parameters: r - a java.awt.Rectangle |
setHeight | public void setHeight(double newHeight)(Code) | | Sets the height.
Parameters: newHeight - the new height |
setWidth | public void setWidth(double newWidth)(Code) | | Sets the width.
Parameters: newWidth - the new width |
setX | public void setX(double newX)(Code) | | Sets the x coordinate.
Parameters: newX - the new x coordinate |
setY | public void setY(double newY)(Code) | | Sets the y coordinate.
Parameters: newY - the new y coordinate |
toString | public String toString()(Code) | | Returns a string representation of this rectangle.
a string representing this rectangle |
writeXML | public void writeXML(XMLWriter out)(Code) | | Writes this rectangle as an XML tag.
Parameters: out - a writer that knows how to write XML |
|
|