net.sourceforge.plantuml.geom
Class Box
java.lang.Object
net.sourceforge.plantuml.geom.Box
- All Implemented Interfaces:
- Pointable, XMoveable
public class Box
- extends java.lang.Object
- implements XMoveable, Pointable
Constructor Summary |
Box(int x,
int y,
int width,
int height)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Box
public Box(int x,
int y,
int width,
int height)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.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()
moveX
public void moveX(int delta)
- Specified by:
moveX
in interface XMoveable
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 interface Pointable
Copyright © 2011. All Rights Reserved.