ilog.cpl.graphic
Class IlpRelativeRect

java.lang.Object
  extended by java.awt.geom.RectangularShape
      extended by java.awt.geom.Rectangle2D
          extended by java.awt.geom.Rectangle2D.Float
              extended by ilog.views.IlvRect
                  extended by ilog.cpl.graphic.IlpRect
                      extended by ilog.cpl.graphic.IlpRelativeRect
All Implemented Interfaces:
IlpPosition, Shape, Serializable, Cloneable

public class IlpRelativeRect
extends IlpRect

Implements a rectangle that can be used as a relative position in the network or equipment component.

Since:
JTGO 3.0
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.geom.Rectangle2D
Rectangle2D.Double, Rectangle2D.Float
 
Field Summary
 
Fields inherited from class java.awt.geom.Rectangle2D.Float
height, width, x, y
 
Fields inherited from class java.awt.geom.Rectangle2D
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP
 
Constructor Summary
IlpRelativeRect()
          Creates a new relative rectangle.
IlpRelativeRect(float x, float y, float width, float height)
          Creates a new relative rectangle.
IlpRelativeRect(IlvRect rect)
          Creates a new relative rectangle by copying an existing one.
 
Method Summary
 Object clone()
          Copies the rectangle.
 
Methods inherited from class ilog.cpl.graphic.IlpRect
getHeight, getWidth, setHeight, setWidth, setX, setY
 
Methods inherited from class ilog.views.IlvRect
add, add, contains, expand, expand, floor, heightFloor, inside, intersection, intersects, move, reshape, resize, toString, translate, widthFloor, xFloor, yFloor
 
Methods inherited from class java.awt.geom.Rectangle2D.Float
createIntersection, createUnion, getBounds2D, getX, getY, isEmpty, outcode, setRect, setRect, setRect
 
Methods inherited from class java.awt.geom.Rectangle2D
add, add, add, contains, contains, equals, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, union
 
Methods inherited from class java.awt.geom.RectangularShape
contains, contains, getBounds, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IlpRelativeRect

public IlpRelativeRect()
Creates a new relative rectangle. The position is (0,0) and the width and height are 0.


IlpRelativeRect

public IlpRelativeRect(float x,
                       float y,
                       float width,
                       float height)
Creates a new relative rectangle.


IlpRelativeRect

public IlpRelativeRect(IlvRect rect)
Creates a new relative rectangle by copying an existing one.

Parameters:
rect - The copied rectangle.
Method Detail

clone

public Object clone()
Copies the rectangle.

Overrides:
clone in class IlpRect


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.