Class RectangleArea
- java.lang.Object
-
- net.sourceforge.plantuml.klimt.geom.RectangleArea
-
public class RectangleArea extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description RectangleArea(double minX, double minY, double maxX, double maxY)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RectangleAreaaddMaxX(double d)RectangleAreaaddMaxY(double d)RectangleAreaaddMinX(double d)RectangleAreaaddMinY(double d)static RectangleAreabuild(XPoint2D pt1, XPoint2D pt2)booleancontains(double x, double y)booleancontains(XPoint2D p)RectangleAreadelta(double m1, double m2)SidegetClosestSide(XPoint2D pt)XDimension2DgetDimension()doublegetHeight()PointDirectedgetIntersection(XCubicCurve2D bez)doublegetMaxX()doublegetMaxY()doublegetMinX()doublegetMinY()XPoint2DgetPointCenter()UTranslategetPosition()doublegetWidth()RectangleAreamerge(RectangleArea other)RectangleAreamerge(XPoint2D point)RectangleAreamove(double deltaX, double deltaY)java.lang.StringtoString()RectangleAreawithMaxX(double d)RectangleAreawithMaxY(double d)RectangleAreawithMinX(double d)RectangleAreawithMinY(double d)
-
-
-
Method Detail
-
build
public static RectangleArea build(XPoint2D pt1, XPoint2D pt2)
-
move
public RectangleArea move(double deltaX, double deltaY)
-
getWidth
public double getWidth()
-
getHeight
public double getHeight()
-
contains
public boolean contains(double x, double y)
-
merge
public RectangleArea merge(RectangleArea other)
-
merge
public RectangleArea merge(XPoint2D point)
-
contains
public boolean contains(XPoint2D p)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getMinX
public final double getMinX()
-
getMinY
public final double getMinY()
-
getMaxX
public final double getMaxX()
-
getMaxY
public final double getMaxY()
-
getIntersection
public PointDirected getIntersection(XCubicCurve2D bez)
-
getPointCenter
public XPoint2D getPointCenter()
-
withMinX
public RectangleArea withMinX(double d)
-
withMaxX
public RectangleArea withMaxX(double d)
-
addMaxX
public RectangleArea addMaxX(double d)
-
addMaxY
public RectangleArea addMaxY(double d)
-
addMinX
public RectangleArea addMinX(double d)
-
addMinY
public RectangleArea addMinY(double d)
-
withMinY
public RectangleArea withMinY(double d)
-
withMaxY
public RectangleArea withMaxY(double d)
-
delta
public RectangleArea delta(double m1, double m2)
-
getDimension
public XDimension2D getDimension()
-
getPosition
public UTranslate getPosition()
-
-