net.sourceforge.plantuml.geom
Class Box

java.lang.Object
  extended by net.sourceforge.plantuml.geom.Box
All Implemented Interfaces:
Pointable, XMoveable

public class Box
extends Object
implements XMoveable, Pointable


Constructor Summary
Box(int x, int y, int width, int height)
           
 
Method Summary
 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)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Box

public Box(int x,
           int y,
           int width,
           int height)
Method Detail

toString

public String toString()
Overrides:
toString in class 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.