com.metsci.glimpse.charts.vector.display.examplesupport
Class BoundingBox

java.lang.Object
  extended by com.metsci.glimpse.charts.vector.display.examplesupport.BoundingBox

public class BoundingBox
extends java.lang.Object

Simple util to keep track of a bounding box. Probably should switch caller to com.metsci.glimpse.util.math.stat.StatCollectorNDim.

Author:
Cunningham

Constructor Summary
BoundingBox()
           
BoundingBox(java.awt.Dimension d)
           
BoundingBox(double width, double height)
           
BoundingBox(double minX, double maxX, double minY, double maxY)
           
 
Method Summary
 void applyPoint(double x, double y)
           
 boolean contains(BoundingBox otherBox)
           
 boolean contains(double otherX, double otherY)
           
 void debug()
           
 double getMaxX()
           
 double getMaxY()
           
 double getMinX()
           
 double getMinY()
           
 boolean isEmpty()
           
 java.lang.String toString()
           
 double transformX(BoundingBox fromSpace, double x)
           
 double transformY(BoundingBox fromSpace, double y)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BoundingBox

public BoundingBox()

BoundingBox

public BoundingBox(java.awt.Dimension d)

BoundingBox

public BoundingBox(double width,
                   double height)

BoundingBox

public BoundingBox(double minX,
                   double maxX,
                   double minY,
                   double maxY)
Method Detail

getMaxX

public double getMaxX()

getMinX

public double getMinX()

getMaxY

public double getMaxY()

getMinY

public double getMinY()

isEmpty

public boolean isEmpty()

debug

public void debug()

applyPoint

public void applyPoint(double x,
                       double y)

contains

public boolean contains(double otherX,
                        double otherY)

contains

public boolean contains(BoundingBox otherBox)

transformX

public double transformX(BoundingBox fromSpace,
                         double x)

transformY

public double transformY(BoundingBox fromSpace,
                         double y)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2012 Metron, Inc.. All Rights Reserved.