|
ReportMill 7.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.reportmill.foundation.RMObject
com.reportmill.foundation.RMPoint
This class represents a simple geometric point (x, y).
| Field Summary | |
float |
x
|
float |
y
|
static RMPoint |
zeroPoint
|
| 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(int x1,
int y1)
Creates a point initialized to the given x and y (int). |
|
RMPoint(java.awt.Point p)
Creates a point initialized to the given AWT Point. |
|
RMPoint(RMPoint p)
Creates a point initialized from the given point. |
|
| Method Summary | |
float |
distanceSquaredTo(RMPoint aPoint)
Returns the distance from receiver to given point. |
float |
distanceTo(RMPoint aPoint)
Returns the distance from receiver to given point. |
boolean |
equals(java.lang.Object anObj)
Standard equals implementation. |
boolean |
inRect(RMRect r)
Returns whether the receiver is in the given rect. |
RMPoint |
multipliedPoint(float f)
Creates a point multiplied by the given amount. |
RMPoint |
multipliedPoint(float fx,
float fy)
Creates a point multiplied by the given x and y. |
RMPoint |
multiply(float f)
Multiplies the receiver by the given amount. |
RMPoint |
multiply(float fx,
float fy)
Multiplies the receiver by the given x and y. |
RMPoint |
offset(float d)
Offsets the receiver by the given amount. |
RMPoint |
offset(float dx,
float dy)
Offsets the receiver by the given x and y. |
RMPoint |
offsetPoint(float d)
Creates a point offset by the given amounnt. |
RMPoint |
offsetPoint(float dx,
float dy)
Creates a point offset by the given x and y. |
RMPoint |
pointByAdding(RMPoint p)
Creates a point by adding the given point to the receiver. |
RMPoint |
pointBySubtracting(RMPoint p)
Creates a point by subtracting the given point from the receiver. |
RMPoint |
round()
Rounds the receiver to an integral x and y. |
void |
scale(float sx,
float sy)
Scales the receiver by the given sx and sy. |
java.lang.String |
toString()
Returns a string representation of the receiver in the form "[x y]". |
static RMPoint |
zeroPoint()
|
| Methods inherited from class com.reportmill.foundation.RMObject |
archiverClassName, clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public float x
public float y
public static final RMPoint zeroPoint
| Constructor Detail |
public RMPoint()
public RMPoint(int x1,
int y1)
public RMPoint(float x1,
float y1)
public RMPoint(double x1,
double y1)
public RMPoint(RMPoint p)
public RMPoint(java.awt.Point p)
| Method Detail |
public static final RMPoint zeroPoint()
public float distanceTo(RMPoint aPoint)
public float distanceSquaredTo(RMPoint aPoint)
public RMPoint offset(float d)
public RMPoint offset(float dx,
float dy)
public RMPoint offsetPoint(float d)
public RMPoint offsetPoint(float dx,
float dy)
public RMPoint multiply(float f)
public RMPoint multiply(float fx,
float fy)
public RMPoint multipliedPoint(float f)
public RMPoint multipliedPoint(float fx,
float fy)
public RMPoint round()
public boolean inRect(RMRect r)
public void scale(float sx,
float sy)
public RMPoint pointByAdding(RMPoint p)
public RMPoint pointBySubtracting(RMPoint p)
public boolean equals(java.lang.Object anObj)
public java.lang.String toString()
|
ReportMill 7.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||