public class IlpRelativePoint extends IlpPoint
For instance IlpPoint defines a position in pixels, to be placed directly in the view. For card items placed within card item containers, the position is also in pixels, but relative to the parent.
Point2D.Double, Point2D.Float
x, y
Constructor and Description |
---|
IlpRelativePoint()
Creates a new relative point located at (0,0).
|
IlpRelativePoint(double x,
double y)
Creates a new relative point at the specified location.
|
IlpRelativePoint(IlvPoint p)
Creates a new relative point by copying an existing point.
|
IlpRelativePoint(String s)
Creates a new relative point by parsing a string.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Copies the point.
|
static Object |
valueOf(String s)
Creates a new relative point by parsing a string.
|
equalsOrNear, floor, move, toString, translate, xFloor, yFloor
getX, getY, setLocation
distance, distance, distance, distanceSq, distanceSq, distanceSq, hashCode, setLocation
public IlpRelativePoint()
public IlpRelativePoint(double x, double y)
x
- The x coordinate.y
- The y coordinate.public IlpRelativePoint(IlvPoint p)
public IlpRelativePoint(String s) throws IllegalArgumentException
s
- The String
containing the point.IllegalArgumentException
- if the string does not
contain a point that can be parsed.public static Object valueOf(String s) throws IllegalArgumentException
s
- The String
containing the point.IllegalArgumentException
- if the string does not
contain a point that can be parsed.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.