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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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()