org.eclipse.birt.report.model.api.util
Class Point

java.lang.Object
  extended by org.eclipse.birt.report.model.api.util.Point

public class Point
extends java.lang.Object

Represents a point in application units. Can also represent a rectangle size. In this case, the point represents the position of the bottom right corner relative to the top left corner.


Field Summary
 double x
          The x position or width.
 double y
          The y position or height.
 
Constructor Summary
Point()
          Default constructor.
Point(double x, double y)
          Constructor.
 
Method Summary
 boolean isEmpty()
          Returns whether the point is empty.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

public double x
The x position or width.


y

public double y
The y position or height.

Constructor Detail

Point

public Point()
Default constructor.


Point

public Point(double x,
             double y)
Constructor.

Parameters:
x - the x position or width
y - the y position or width
Method Detail

isEmpty

public boolean isEmpty()
Returns whether the point is empty.

Returns:
true if the point is (0,0) or the size is empty.


Copyright © 2008 Actuate Corp. All rights reserved.