Venice 0.751beta

nz.org.venice.chart.source
Class Adjustment

java.lang.Object
  extended bynz.org.venice.chart.source.Adjustment

public class Adjustment
extends java.lang.Object


Field Summary
static int ADJUST_DIVIDEND
           
static int ADJUST_SPLIT
           
 
Constructor Summary
Adjustment(int type, double value, java.lang.Comparable startPoint, boolean direction)
          Create a new adjustment to be applied to quote data.
 
Method Summary
 boolean getDirection()
           
 java.lang.Comparable getStartPoint()
           
 int getType()
           
 double getValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADJUST_SPLIT

public static final int ADJUST_SPLIT
See Also:
Constant Field Values

ADJUST_DIVIDEND

public static final int ADJUST_DIVIDEND
See Also:
Constant Field Values
Constructor Detail

Adjustment

public Adjustment(int type,
                  double value,
                  java.lang.Comparable startPoint,
                  boolean direction)
Create a new adjustment to be applied to quote data.

Parameters:
type - The type of the adjustment (ie split or dividend)
value - The value to apply
startPoint - The point in the data from which to apply the adjustment
direction - true if the adjustment is to be applied in a positive direction.
Method Detail

getType

public int getType()
Returns:
the adjustment type.

getValue

public double getValue()
Returns:
the adjustment value.

getStartPoint

public java.lang.Comparable getStartPoint()
Returns:
the starting point.

getDirection

public boolean getDirection()
Returns:
the direction.

Venice 0.751beta