TPTP 4.5.0 Platform Project
Internal API Specification

org.eclipse.tptp.platform.report.chart.internal
Class MinMax

java.lang.Object
  extended by org.eclipse.tptp.platform.report.chart.internal.MinMax

Deprecated. As of TPTP 4.5.0, use the TPTP Business Intelligence and Reporting Tools (BIRT) reporting infrastructure (org.eclipse.tptp.platform.report.birt).

public class MinMax
extends java.lang.Object

UNDER DEVELOPMENT... This class can be used to compute min/max values of a DCoord along an DAxis. As we deal with min/max values must be of class java.lang.Comparable, this is very important. This class compares proposed object. keeping trace of min and max values.


Constructor Summary
MinMax(DAxis axis)
          Deprecated. Create a Min/Max object, initialise min/max with P_MIN_HIN/P_MAX_INT of axis, if they are Comparable
 
Method Summary
 java.lang.Comparable getVMax()
          Deprecated.  
 java.lang.Comparable getVMin()
          Deprecated.  
 int invalidValueCount()
          Deprecated.  
 boolean isNullRange()
          Deprecated.  
 boolean isValid()
          Deprecated.  
 void reset()
          Deprecated. Reset Min/Max object.
 void reset(DAxis axis)
          Deprecated. Reset Min/Max object, and initialize using P_MIN_HINT,P_MAX_HINT if they are comparable.
 java.lang.String toString()
          Deprecated.  
 boolean update(IDCoord coord)
          Deprecated. Propose value of IDCoord to update(Object) metho.
 boolean update(java.lang.Object value)
          Deprecated. Propose an Object, if Object is an instanceof Comparable value, update Min and Max comparing this value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MinMax

public MinMax(DAxis axis)
Deprecated. 
Create a Min/Max object, initialise min/max with P_MIN_HIN/P_MAX_INT of axis, if they are Comparable

Method Detail

isValid

public boolean isValid()
Deprecated. 
Returns:
true if MinMax is valid, means have a min, have a max

isNullRange

public boolean isNullRange()
Deprecated. 
Returns:
true if is a null range. A null range is true if MinMax is invalid or vmin and vmax have same value.

getVMin

public java.lang.Comparable getVMin()
Deprecated. 
Returns:
the minimum value. This is not a copy of the value: take care about modifying it's value.
See Also:
isValid(), isNullRange()

getVMax

public java.lang.Comparable getVMax()
Deprecated. 
Returns:
the maximum value. This is not a copy of the value: take care about modifying it's value.
See Also:
isValid(), isNullRange()

reset

public void reset()
Deprecated. 
Reset Min/Max object.


reset

public void reset(DAxis axis)
Deprecated. 
Reset Min/Max object, and initialize using P_MIN_HINT,P_MAX_HINT if they are comparable.


update

public boolean update(IDCoord coord)
Deprecated. 
Propose value of IDCoord to update(Object) metho. If coord. have value but isn't comparable, update invalid_coord flag.

Returns:
true if min or max values changes.

update

public boolean update(java.lang.Object value)
Deprecated. 
Propose an Object, if Object is an instanceof Comparable value, update Min and Max comparing this value. If coord. have value but isn't comparable, update invalid_coord flag.

Returns:
true if min or max values changes.

invalidValueCount

public int invalidValueCount()
Deprecated. 
Returns:
number of invalid values.
See Also:
update()

toString

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

TPTP 4.5.0 Platform Project
Internal API Specification