|
ReportMill 10 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.geom.Point2D
java.awt.geom.Point2D.Float
com.reportmill.base.RMPoint
public class RMPoint
This class extends Point2D.Float to add a few convenience methods.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.awt.geom.Point2D |
---|
java.awt.geom.Point2D.Double, java.awt.geom.Point2D.Float |
Field Summary | |
---|---|
static RMPoint |
zeroPoint
|
Fields inherited from class java.awt.geom.Point2D.Float |
---|
x, y |
Constructor Summary | |
---|---|
RMPoint()
Creates a point initialized to 0,0. |
|
RMPoint(double x1,
double y1)
Creates a point initialized to the given x and y (double). |
|
RMPoint(float x1,
float y1)
Creates a point initialized to the given x and y (float). |
|
RMPoint(java.awt.geom.Point2D aPoint)
Creates a point initialized to the given AWT Point. |
Method Summary | |
---|---|
RMPoint |
add(RMPoint aPoint)
Adds the given point to this point. |
static RMPoint |
getPoint(java.awt.geom.Point2D aPoint)
Returns an RMPoint version of the given Point2D (just the Point2D if it's already an RMPoint). |
boolean |
inRect(RMRect aRect)
Returns whether the receiver is in the given rect. |
void |
multiply(double sx,
double sy)
Multiplies this point by the given sx and sy. |
RMPoint |
offset(float dx,
float dy)
Offsets the receiver by the given x and y. |
RMPoint |
subtract(RMPoint aPoint)
Subtracts the given point from this point. |
java.lang.String |
toString()
Returns a string representation of the receiver in the form "[x y]". |
RMPoint |
transform(com.reportmill.graphics.RMTransform aTransform)
Transforms the point by the given transform. |
Methods inherited from class java.awt.geom.Point2D.Float |
---|
getX, getY, setLocation, setLocation |
Methods inherited from class java.awt.geom.Point2D |
---|
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, equals, hashCode, setLocation |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final RMPoint zeroPoint
Constructor Detail |
---|
public RMPoint()
public RMPoint(float x1, float y1)
public RMPoint(double x1, double y1)
public RMPoint(java.awt.geom.Point2D aPoint)
Method Detail |
---|
public RMPoint offset(float dx, float dy)
public RMPoint add(RMPoint aPoint)
public RMPoint subtract(RMPoint aPoint)
public void multiply(double sx, double sy)
public boolean inRect(RMRect aRect)
public RMPoint transform(com.reportmill.graphics.RMTransform aTransform)
public java.lang.String toString()
toString
in class java.awt.geom.Point2D.Float
public static RMPoint getPoint(java.awt.geom.Point2D aPoint)
|
ReportMill 10 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |