swingwt.awt.geom
Class Rectangle2D.Float

java.lang.Object
  extended byswingwt.awt.geom.RectangularShape
      extended byswingwt.awt.geom.Rectangle2D
          extended byswingwt.awt.geom.Rectangle2D.Float
All Implemented Interfaces:
java.lang.Cloneable, Shape
Enclosing class:
Rectangle2D

public static class Rectangle2D.Float
extends Rectangle2D


Nested Class Summary
 
Nested classes inherited from class swingwt.awt.geom.Rectangle2D
Rectangle2D.Double, Rectangle2D.Float
 
Field Summary
 float height
           
 float width
           
 float x
           
 float y
           
 
Fields inherited from class swingwt.awt.geom.Rectangle2D
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP
 
Constructor Summary
Rectangle2D.Float()
           
Rectangle2D.Float(float x, float y, float w, float h)
           
 
Method Summary
 Rectangle2D createIntersection(Rectangle2D r)
           
 Rectangle2D createUnion(Rectangle2D r)
           
 Rectangle2D getBounds2D()
           
 double getHeight()
           
 double getWidth()
           
 double getX()
           
 double getY()
           
 boolean isEmpty()
           
 int outcode(double x, double y)
           
 void setRect(double x, double y, double w, double h)
           
 void setRect(float x, float y, float w, float h)
           
 void setRect(Rectangle2D r)
           
 java.lang.String toString()
           
 
Methods inherited from class swingwt.awt.geom.Rectangle2D
add, add, add, contains, contains, equals, getPathIterator, getPathIterator, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, union
 
Methods inherited from class swingwt.awt.geom.RectangularShape
clone, 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, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public float x

y

public float y

width

public float width

height

public float height
Constructor Detail

Rectangle2D.Float

public Rectangle2D.Float()

Rectangle2D.Float

public Rectangle2D.Float(float x,
                         float y,
                         float w,
                         float h)
Method Detail

getX

public double getX()
Specified by:
getX in class Rectangle2D

getY

public double getY()
Specified by:
getY in class Rectangle2D

getWidth

public double getWidth()
Specified by:
getWidth in class Rectangle2D

getHeight

public double getHeight()
Specified by:
getHeight in class Rectangle2D

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in class Rectangle2D

setRect

public void setRect(float x,
                    float y,
                    float w,
                    float h)

setRect

public void setRect(double x,
                    double y,
                    double w,
                    double h)
Specified by:
setRect in class Rectangle2D

setRect

public void setRect(Rectangle2D r)
Overrides:
setRect in class Rectangle2D

outcode

public int outcode(double x,
                   double y)
Specified by:
outcode in class Rectangle2D

getBounds2D

public Rectangle2D getBounds2D()
Specified by:
getBounds2D in interface Shape
Overrides:
getBounds2D in class Rectangle2D

createIntersection

public Rectangle2D createIntersection(Rectangle2D r)
Specified by:
createIntersection in class Rectangle2D

createUnion

public Rectangle2D createUnion(Rectangle2D r)
Specified by:
createUnion in class Rectangle2D

toString

public java.lang.String toString()