|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.geom.RectangularShape
java.awt.geom.Rectangle2D
com.sun.electric.database.geometry.ERectangle
public class ERectangle
The ERectangle immutable class defines a point representing
defined by a location (x, y) and dimension (w x h).
This class is used in Electric database.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.awt.geom.Rectangle2D |
|---|
java.awt.geom.Rectangle2D.Double, java.awt.geom.Rectangle2D.Float |
| Field Summary | |
|---|---|
static ImmutableArrayList<ERectangle> |
EMPTY_LIST
|
static ERectangle[] |
NULL_ARRAY
|
static ERectangle |
ORIGIN
|
| Fields inherited from class java.awt.geom.Rectangle2D |
|---|
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP |
| Method Summary | |
|---|---|
java.awt.geom.Rectangle2D |
createIntersection(java.awt.geom.Rectangle2D r)
|
java.awt.geom.Rectangle2D |
createUnion(java.awt.geom.Rectangle2D r)
|
static ERectangle |
fromGrid(long x,
long y,
long w,
long h)
Constructs and initializes a ERectangle
from the specified long coordinates in grid units. |
static ERectangle |
fromGrid(java.awt.geom.Rectangle2D r)
Returns ERectangle from specified Rectangle2D in grid units
snapped to the grid. |
static ERectangle |
fromLambda(double x,
double y,
double w,
double h)
Constructs and initializes a ERectangle
from the specified long coordinates in lambda units. |
static ERectangle |
fromLambda(java.awt.geom.Rectangle2D r)
Returns ERectangle from specified Rectangle2D in lambda units
snapped to the grid. |
java.awt.Rectangle |
getBounds()
Returns the bounding box of the ERectangle. |
java.awt.geom.Rectangle2D |
getBounds2D()
|
double |
getGridCenterX()
Returns the X coordinate of the center of this ERectangle
in grid units in long precision. |
double |
getGridCenterY()
Returns the Y coordinate of the center of this ERectangle
in grid units in long precision. |
long |
getGridHeight()
Returns the heigth of this ERectangle
in grid units in long precision. |
long |
getGridMaxX()
Returns the largest X coordinate of this ERectangle
in grid units in long precision. |
long |
getGridMaxY()
Returns the largest Y coordinate of this ERectangle
in grid units in long precision. |
long |
getGridMinX()
Returns the smallest X coordinate of this ERectangle
in grid units in long precision. |
long |
getGridMinY()
Returns the smallest Y coordinate of this ERectangle
in grid units in long precision. |
long |
getGridWidth()
Returns the width of this ERectangle
in grid units in long precision. |
long |
getGridX()
Returns the X coordinate of this ERectangle
in grid units in long precision. |
long |
getGridY()
Returns the Y coordinate of this ERectangle
in grid units in long precision. |
double |
getHeight()
Returns the heigth of this ERectangle
in lambda units in double precision. |
double |
getLambdaCenterX()
Returns the X coordinate of the center of this ERectangle
in lambda units in double precision. |
double |
getLambdaCenterY()
Returns the Y coordinate of the center of this ERectangle
in lambda units in double precision. |
double |
getLambdaHeight()
Returns the heigth of this ERectangle
in lambda units in double precision. |
double |
getLambdaMaxX()
Returns the largest X coordinate of this ERectangle
in lambda units in double precision. |
double |
getLambdaMaxY()
Returns the largest Y coordinate of this ERectangle
in lambda units in double precision. |
double |
getLambdaMinX()
Returns the smallest X coordinate of this ERectangle
in lambda units in double precision. |
double |
getLambdaMinY()
Returns the smallest Y coordinate of this ERectangle
in lambda units in double precision. |
double |
getLambdaWidth()
Returns the width of this ERectangle
in lambda units in double precision. |
double |
getLambdaX()
Returns the X coordinate of this ERectangle
in lambda units in double precision. |
double |
getLambdaY()
Returns the Y coordinate of this ERectangle
in lambda units in double precision. |
double |
getMaxX()
Returns the largest X coordinate of this ERectangle
in lambda units in double precision. |
double |
getMaxY()
Returns the largest Y coordinate of this ERectangle
in lambda units in double precision. |
double |
getWidth()
Returns the width of this ERectangle
in lambda units in double precision. |
double |
getX()
Returns the X coordinate of this ERectangle
in lambda units in double precision. |
double |
getY()
Returns the Y coordinate of this ERectangle
in lambda units in double precision. |
boolean |
isEmpty()
|
boolean |
isSmall()
Returns true if all coordinates of this EPoint are "small ints". |
int |
outcode(double x,
double y)
|
void |
setRect(double x,
double y,
double w,
double h)
|
java.lang.String |
toString()
|
| Methods inherited from class java.awt.geom.Rectangle2D |
|---|
add, add, add, contains, contains, equals, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, setRect, union |
| Methods inherited from class java.awt.geom.RectangularShape |
|---|
clone, contains, contains, getCenterX, getCenterY, getFrame, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final ERectangle ORIGIN
public static final ERectangle[] NULL_ARRAY
public static final ImmutableArrayList<ERectangle> EMPTY_LIST
| Method Detail |
|---|
public static ERectangle fromLambda(double x,
double y,
double w,
double h)
ERectangle
from the specified long coordinates in lambda units.
x - the X coordinates of the upper left corner
of the newly constructed ERectangley - the Y coordinates of the upper left corner
of the newly constructed ERectanglew - the width of the newly constructed ERectangleh - the height of the newly constructed ERectangle
public static ERectangle fromGrid(long x,
long y,
long w,
long h)
ERectangle
from the specified long coordinates in grid units.
x - the X coordinates of the upper left corner
of the newly constructed ERectangley - the Y coordinates of the upper left corner
of the newly constructed ERectanglew - the width of the newly constructed ERectangleh - the height of the newly constructed ERectanglepublic static ERectangle fromLambda(java.awt.geom.Rectangle2D r)
ERectangle from specified Rectangle2D in lambda units
snapped to the grid.
r - specified ERectangle
public static ERectangle fromGrid(java.awt.geom.Rectangle2D r)
ERectangle from specified Rectangle2D in grid units
snapped to the grid.
r - specified ERectangle
public double getX()
ERectangle
in lambda units in double precision.
getX in class java.awt.geom.RectangularShapeERectangle.public double getY()
ERectangle
in lambda units in double precision.
getY in class java.awt.geom.RectangularShapeERectangle.public double getWidth()
ERectangle
in lambda units in double precision.
getWidth in class java.awt.geom.RectangularShapeERectangle.public double getHeight()
ERectangle
in lambda units in double precision.
getHeight in class java.awt.geom.RectangularShapeERectangle.public double getMaxX()
ERectangle
in lambda units in double precision.
getMaxX in class java.awt.geom.RectangularShapeERectangle.public double getMaxY()
ERectangle
in lambda units in double precision.
getMaxY in class java.awt.geom.RectangularShapeERectangle.public double getLambdaX()
ERectangle
in lambda units in double precision.
ERectangle.public double getLambdaY()
ERectangle
in lambda units in double precision.
ERectangle.public double getLambdaWidth()
ERectangle
in lambda units in double precision.
ERectangle.public double getLambdaHeight()
ERectangle
in lambda units in double precision.
ERectangle.public double getLambdaMinX()
ERectangle
in lambda units in double precision.
ERectangle.public double getLambdaMinY()
ERectangle
in lambda units in double precision.
ERectangle.public double getLambdaMaxX()
ERectangle
in lambda units in double precision.
ERectangle.public double getLambdaMaxY()
ERectangle
in lambda units in double precision.
ERectangle.public double getLambdaCenterX()
ERectangle
in lambda units in double precision.
ERectangle object's center.public double getLambdaCenterY()
ERectangle
in lambda units in double precision.
ERectangle object's center.public long getGridX()
ERectangle
in grid units in long precision.
ERectangle.public long getGridY()
ERectangle
in grid units in long precision.
ERectangle.public long getGridWidth()
ERectangle
in grid units in long precision.
ERectangle.public long getGridHeight()
ERectangle
in grid units in long precision.
ERectangle.public long getGridMinX()
ERectangle
in grid units in long precision.
ERectangle.public long getGridMinY()
ERectangle
in grid units in long precision.
ERectangle.public long getGridMaxX()
ERectangle
in grid units in long precision.
ERectangle.public long getGridMaxY()
ERectangle
in grid units in long precision.
ERectangle.public double getGridCenterX()
ERectangle
in grid units in long precision.
ERectangle object's center.public double getGridCenterY()
ERectangle
in grid units in long precision.
ERectangle object's center.public boolean isEmpty()
isEmpty in class java.awt.geom.RectangularShapepublic boolean isSmall()
GenMath.MIN_SMALL_COORD,
GenMath.MAX_SMALL_COORD
public void setRect(double x,
double y,
double w,
double h)
setRect in class java.awt.geom.Rectangle2D
public int outcode(double x,
double y)
outcode in class java.awt.geom.Rectangle2Dpublic java.awt.geom.Rectangle2D getBounds2D()
getBounds2D in interface java.awt.ShapegetBounds2D in class java.awt.geom.Rectangle2Dpublic java.awt.Rectangle getBounds()
ERectangle.
getBounds in interface java.awt.ShapegetBounds in class java.awt.geom.RectangularShapeRectangle object that bounds the
ERectangle.public java.awt.geom.Rectangle2D createIntersection(java.awt.geom.Rectangle2D r)
createIntersection in class java.awt.geom.Rectangle2Dpublic java.awt.geom.Rectangle2D createUnion(java.awt.geom.Rectangle2D r)
createUnion in class java.awt.geom.Rectangle2Dpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||