lt.monarch.chart.chart2D.series
Enum StockStrategies

java.lang.Object
  extended by java.lang.Enum<StockStrategies>
      extended by lt.monarch.chart.chart2D.series.StockStrategies
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<StockStrategies>

public enum StockStrategies
extends java.lang.Enum<StockStrategies>

Line strategies enumeration


Enum Constant Summary
Enum Constant and Description
QUOTE_CANDLE_STRATEGY
          Quote candle strategy
QUOTE_HL_STRATEGY
          Quote High-Low strategy
QUOTE_HLC_STRATEGY
          Quote High-Low-Close strategy
QUOTE_OHLC_STRATEGY
          Quote Open-High-Low-Close strategy
 
Method Summary
Modifier and Type Method and Description
 AbstractQuoteStrategy<Projector2D> getStrategy()
          Gets the strategy
static StockStrategies valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static StockStrategies[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

QUOTE_HL_STRATEGY

public static final StockStrategies QUOTE_HL_STRATEGY
Quote High-Low strategy


QUOTE_HLC_STRATEGY

public static final StockStrategies QUOTE_HLC_STRATEGY
Quote High-Low-Close strategy


QUOTE_OHLC_STRATEGY

public static final StockStrategies QUOTE_OHLC_STRATEGY
Quote Open-High-Low-Close strategy


QUOTE_CANDLE_STRATEGY

public static final StockStrategies QUOTE_CANDLE_STRATEGY
Quote candle strategy

Method Detail

values

public static StockStrategies[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (StockStrategies c : StockStrategies.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static StockStrategies valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getStrategy

public AbstractQuoteStrategy<Projector2D> getStrategy()
Gets the strategy

Returns:
scatter strategy