public final class

ChartPointDeclaration

extends Object
java.lang.Object
   ↳ com.artfulbits.aiCharts.Base.ChartPointDeclaration

Class Overview

Represents chart point declaration class. Takes care of matching array of Y values for point to corresponding values of several chart types that require multiple Y values.

Summary

Nested Classes
enum ChartPointDeclaration.Usage Represents usages for Y points. 
Fields
public final int CloseValueIndex Index of closing value.
public static final ChartPointDeclaration DEFAULT Default point declaration value.
public final int HighValueIndex Index of high value.
public final int LowValueIndex Index of low value.
public final int MarkerValueIndex Index of marker value.
public final int OpenValueIndex Index of opening value.
public final int SizeValueIndex Index of size value.
public final int YValueIndex Index of Y value.
Public Constructors
ChartPointDeclaration(Usage... usages)
Initializes a new instance of ChartPointDeclaration class using specified usages.
ChartPointDeclaration(Usage[] usages, int[] indices)
Initializes a new instance of ChartPointDeclaration class using specified usages and indices
Public Methods
int[] getIndices(Usage... usages)
Gets array of indices corresponding to specified usages.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public final int CloseValueIndex

Index of closing value.

public static final ChartPointDeclaration DEFAULT

Default point declaration value.

public final int HighValueIndex

Index of high value.

public final int LowValueIndex

Index of low value.

public final int MarkerValueIndex

Index of marker value.

public final int OpenValueIndex

Index of opening value.

public final int SizeValueIndex

Index of size value.

public final int YValueIndex

Index of Y value.

Public Constructors

public ChartPointDeclaration (Usage... usages)

Initializes a new instance of ChartPointDeclaration class using specified usages.

Parameters
usages set of usages to initialize point Y values match.

public ChartPointDeclaration (Usage[] usages, int[] indices)

Initializes a new instance of ChartPointDeclaration class using specified usages and indices

Parameters
usages set of usages to initialize point Y values match.
indices indices set of corresponding usages values.

Public Methods

public int[] getIndices (Usage... usages)

Gets array of indices corresponding to specified usages.

Parameters
usages set of usages that should processed for indices retrieval.
Returns
  • array of corresponding indices.