editor
Class PosRect

java.lang.Object
  |
  +--editor.PosRect
All Implemented Interfaces:
java.io.Serializable

public class PosRect
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
PosRect()
           
PosRect(double _x1, double _y1, double _x2, double _y2)
           
PosRect(PosRect rect)
           
PosRect(java.awt.geom.Rectangle2D rect)
           
 
Method Summary
 boolean contains(double x, double y)
           
 boolean contains(double x, double y, double width, double height)
           
 java.awt.geom.Rectangle2D.Double createRect2D()
           
 double getHeight()
           
 float getHeightAsFloat()
           
 int getHeightAsInt()
           
 double getMaxX()
           
 float getMaxXAsFloat()
           
 int getMaxXAsInt()
           
 double getMaxY()
           
 float getMaxYAsFloat()
           
 int getMaxYAsInt()
           
 double getMidX()
           
 float getMidXAsFloat()
           
 double getMidXAsInt()
           
 double getMidY()
           
 float getMidYAsFloat()
           
 double getMidYAsInt()
           
 double getMinX()
           
 float getMinXAsFloat()
           
 int getMinXAsInt()
           
 double getMinY()
           
 float getMinYAsFloat()
           
 int getMinYAsInt()
           
 double getWidth()
           
 float getWidthAsFloat()
           
 int getWidthAsInt()
           
 boolean isEmpty()
           
 void setLocation(double x, double y)
           
 void setRect(PosRect rect)
           
 void setRect2D(java.awt.geom.Rectangle2D rect)
           
 void setRectWH(double x, double y, double width, double height)
           
 void setWidth(double width)
           
 void unionRect(PosRect rect)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PosRect

public PosRect()

PosRect

public PosRect(java.awt.geom.Rectangle2D rect)

PosRect

public PosRect(double _x1,
               double _y1,
               double _x2,
               double _y2)

PosRect

public PosRect(PosRect rect)
Method Detail

setLocation

public void setLocation(double x,
                        double y)

setRectWH

public void setRectWH(double x,
                      double y,
                      double width,
                      double height)

setRect

public void setRect(PosRect rect)

setRect2D

public void setRect2D(java.awt.geom.Rectangle2D rect)

setWidth

public void setWidth(double width)

getMinX

public double getMinX()

getMinY

public double getMinY()

getMaxX

public double getMaxX()

getMaxY

public double getMaxY()

getWidth

public double getWidth()

getHeight

public double getHeight()

getMidX

public double getMidX()

getMidY

public double getMidY()

getMinXAsFloat

public float getMinXAsFloat()

getMinYAsFloat

public float getMinYAsFloat()

getMaxXAsFloat

public float getMaxXAsFloat()

getMaxYAsFloat

public float getMaxYAsFloat()

getWidthAsFloat

public float getWidthAsFloat()

getHeightAsFloat

public float getHeightAsFloat()

getMidXAsFloat

public float getMidXAsFloat()

getMidYAsFloat

public float getMidYAsFloat()

getMinXAsInt

public int getMinXAsInt()

getMinYAsInt

public int getMinYAsInt()

getMaxXAsInt

public int getMaxXAsInt()

getMaxYAsInt

public int getMaxYAsInt()

getWidthAsInt

public int getWidthAsInt()

getHeightAsInt

public int getHeightAsInt()

getMidXAsInt

public double getMidXAsInt()

getMidYAsInt

public double getMidYAsInt()

isEmpty

public boolean isEmpty()

contains

public boolean contains(double x,
                        double y)

contains

public boolean contains(double x,
                        double y,
                        double width,
                        double height)

unionRect

public void unionRect(PosRect rect)

createRect2D

public java.awt.geom.Rectangle2D.Double createRect2D()