org.eclipse.birt.chart.extension.datafeed
Class StockEntry

java.lang.Object
  extended by org.eclipse.birt.chart.extension.datafeed.StockEntry
All Implemented Interfaces:
IDataPointEntry

public final class StockEntry
extends java.lang.Object
implements IDataPointEntry

StockEntry


Constructor Summary
StockEntry(double dOpen, double dLow, double dHigh, double dClose)
           
StockEntry(java.lang.Object[] oaFourComponents)
           
 
Method Summary
 double getClose()
           
 java.lang.String getFormattedString(FormatSpecifier formatter, com.ibm.icu.util.ULocale locale)
          Returns the formatted string representation of current object by given formatter and locale.
 java.lang.String getFormattedString(java.lang.String type, FormatSpecifier formatter, com.ibm.icu.util.ULocale locale)
          Returns the formatted string representation of current object by given formatter and locale.
 double getHigh()
           
 double getLow()
           
 double getOpen()
           
 boolean isValid()
          Returns if the DataPointEntry is valid.
 void setClose(double close)
           
 void setHigh(double high)
           
 void setLow(double low)
           
 void setOpen(double open)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StockEntry

public StockEntry(double dOpen,
                  double dLow,
                  double dHigh,
                  double dClose)
Parameters:
dOpen -
dLow -
dHigh -
dClose -

StockEntry

public StockEntry(java.lang.Object[] oaFourComponents)
Parameters:
oaFourComponents -
Method Detail

toString

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

getClose

public final double getClose()
Returns:
Returns the close.

setClose

public final void setClose(double close)
Parameters:
close - The close to set.

getHigh

public final double getHigh()
Returns:
Returns the high.

setHigh

public final void setHigh(double high)
Parameters:
high - The high to set.

getLow

public final double getLow()
Returns:
Returns the low.

setLow

public final void setLow(double low)
Parameters:
low - The low to set.

getOpen

public final double getOpen()
Returns:
Returns the open.

setOpen

public final void setOpen(double open)
Parameters:
open - The open to set.

getFormattedString

public java.lang.String getFormattedString(java.lang.String type,
                                           FormatSpecifier formatter,
                                           com.ibm.icu.util.ULocale locale)
Description copied from interface: IDataPointEntry
Returns the formatted string representation of current object by given formatter and locale.

Specified by:
getFormattedString in interface IDataPointEntry
Parameters:
type - data point type
formatter - An formatter
locale - Specific locale.
Returns:
The string representation
See Also:
#getDataPointTypes()

getFormattedString

public java.lang.String getFormattedString(FormatSpecifier formatter,
                                           com.ibm.icu.util.ULocale locale)
Description copied from interface: IDataPointEntry
Returns the formatted string representation of current object by given formatter and locale.

Specified by:
getFormattedString in interface IDataPointEntry
Parameters:
formatter - An formatter
locale - Specific locale.
Returns:
The string representation

isValid

public boolean isValid()
Description copied from interface: IDataPointEntry
Returns if the DataPointEntry is valid.

Specified by:
isValid in interface IDataPointEntry
Returns:
value or not


Copyright © 2005-2008 Actuate Corp. All rights reserved.