ilog.cpl.graphic
Class IlpRelativePoint
java.lang.Object
java.awt.geom.Point2D
java.awt.geom.Point2D.Float
ilog.views.IlvPoint
ilog.cpl.graphic.IlpPoint
ilog.cpl.graphic.IlpRelativePoint
- All Implemented Interfaces:
- IlpPosition, Serializable, Cloneable
public class IlpRelativePoint
- extends IlpPoint
This class implements a relative point that can be used as a
position in the network or the equipment component.
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.
- Since:
- JTGO 3.0
- See Also:
- Serialized Form
IlpRelativePoint
public IlpRelativePoint()
- Creates a new relative point located at (0,0).
IlpRelativePoint
public IlpRelativePoint(float x,
float y)
- Creates a new relative point at the specified location.
- Parameters:
x - The x coordinate.y - The y coordinate.
IlpRelativePoint
public IlpRelativePoint(IlvPoint p)
- Creates a new relative point by copying an existing point.
IlpRelativePoint
public IlpRelativePoint(String s)
throws IllegalArgumentException
- Creates a new relative point by parsing a string.
Throws an exception if the string cannot be parsed as a point.
- Parameters:
s - The String containing the point.
- Throws:
IllegalArgumentException - if the string does not
contain a point that can be parsed.
valueOf
public static Object valueOf(String s)
throws IllegalArgumentException
- Creates a new relative point by parsing a string.
Throws an exception if the string cannot be parsed as a point.
- Parameters:
s - The String containing the point.
- Returns:
- The parsed value of the point.
- Throws:
IllegalArgumentException - if the string does not
contain a point that can be parsed.
clone
public Object clone()
- Copies the point.
- Overrides:
clone in class IlpPoint
Copyright © 1996-2007 ILOG S.A. All rights reserved. Documentation homepage. . All Rights Reserved.