Package net.sourceforge.plantuml.geom
Class Box
- java.lang.Object
-
- net.sourceforge.plantuml.geom.Box
-
-
Constructor Summary
Constructors Constructor Description Box(int x, int y, int width, int height)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
doesIntersect(LineSegmentInt seg)
Point2DInt
getCenterPoint()
int
getCenterX()
int
getCenterY()
Point2DInt[]
getCorners()
Point2DInt[]
getCornersOfOneSide(LineSegmentInt seg, int sgn)
int
getHeight()
int
getMaxX()
int
getMaxY()
int
getMinX()
int
getMinY()
Point2DInt
getPosition()
int
getWidth()
int
getX()
int
getY()
Point2DInt[]
intersect(LineSegmentInt seg)
boolean
intersectBox(Box other)
void
moveX(int delta)
Box
outerBox(int margin)
java.lang.String
toString()
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getCorners
public Point2DInt[] getCorners()
-
getCornersOfOneSide
public Point2DInt[] getCornersOfOneSide(LineSegmentInt seg, int sgn)
-
doesIntersect
public boolean doesIntersect(LineSegmentInt seg)
-
intersect
public Point2DInt[] intersect(LineSegmentInt seg)
-
outerBox
public Box outerBox(int margin)
-
getCenterPoint
public Point2DInt getCenterPoint()
-
intersectBox
public boolean intersectBox(Box other)
-
getX
public final int getX()
-
getY
public final int getY()
-
getWidth
public final int getWidth()
-
getHeight
public final int getHeight()
-
getMinX
public int getMinX()
-
getMinY
public int getMinY()
-
getMaxX
public int getMaxX()
-
getMaxY
public int getMaxY()
-
getCenterX
public int getCenterX()
-
getCenterY
public int getCenterY()
-
getPosition
public Point2DInt getPosition()
- Specified by:
getPosition
in interfacePointable
-
-