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(Number val1, Number v2)
           
 
Method Summary
 boolean contains(Number value)
          Tests whether a value is within the given range
 Number getMaxVal()
           
 Number getMinVal()
           
 boolean intersects(LineRegion lineRegion)
           
 boolean intersects(Number line2Min, Number line2Max)
          Tests whether this segment intersects another
 Number length()
           
static Number measure(Number val1, Number val2)
           
 void setMaxVal(Number maxVal)
           
 void setMinVal(Number minVal)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineRegion

public LineRegion(Number val1,
                  Number v2)
Method Detail

measure

public static Number measure(Number val1,
                             Number val2)

length

public Number length()

contains

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

Parameters:
value -
Returns:

intersects

public boolean intersects(LineRegion lineRegion)

intersects

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

Parameters:
line2Min -
line2Max -
Returns:

getMinVal

public Number getMinVal()

setMinVal

public void setMinVal(Number minVal)

getMaxVal

public Number getMaxVal()

setMaxVal

public void setMaxVal(Number maxVal)


Copyright © 2010-2013 androidplot.com. All Rights Reserved.