public class Rectangle
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
double |
height
The height of the rectangle.
|
double |
width
The width of the rectangle.
|
double |
x
The left edge.
|
double |
y
The top edge.
|
Constructor and Description |
---|
Rectangle()
Default constructor.
|
Rectangle(double x,
double y,
double height,
double width)
Constructor.
|
Rectangle(Point posn,
Point size)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Point |
getPosition()
Returns the position of the top left corner.
|
Point |
getSize()
Returns the rectangle size.
|
public double x
public double y
public double width
public double height
Copyright © 2014 OpenText Corp. All rights reserved.