com.androidplot
Class LineRegion

java.lang.Object
  extended by com.androidplot.LineRegion

public class LineRegion
extends Object

A one dimensional region represented by a starting and ending value.


Constructor Summary
LineRegion(double minVal, double maxVal)
           
 
Method Summary
 boolean contains(double value)
          Tests whether a value is within the given range
 double getMaxVal()
           
 double getMinVal()
           
 boolean intersects(double line2Min, double line2Max)
          Tests whether this segment intersects another
 boolean intersects(LineRegion lineRegion)
           
 void setMaxVal(double maxVal)
           
 void setMinVal(double minVal)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineRegion

public LineRegion(double minVal,
                  double maxVal)
Method Detail

contains

public boolean contains(double value)
Tests whether a value is within the given range

Parameters:
value -
Returns:

intersects

public boolean intersects(LineRegion lineRegion)

intersects

public boolean intersects(double line2Min,
                          double line2Max)
Tests whether this segment intersects another

Parameters:
line2Min -
line2Max -
Returns:

getMinVal

public double getMinVal()

setMinVal

public void setMinVal(double minVal)

getMaxVal

public double getMaxVal()

setMaxVal

public void setMaxVal(double maxVal)


Copyright © 2011. All Rights Reserved.