Chart FX 7 for Java Server

com.softwarefx.chartfx.server
Class CompactFormulas

java.lang.Object
  extended by com.softwarefx.chartfx.server.CompactFormulas

public class CompactFormulas
extends Object

Provides developers with access to the compacting features.


Constructor Summary
CompactFormulas()
           
 
Method Summary
static CompactFormulaListener getAverage()
          Returns the average points set by the DataValues.setCompactedBy(double) property.
static CompactFormulaListener getFirst()
          Returns the first points set by the DataValues.setCompactedBy(double) property.
static CompactFormulaListener getHiLowClose()
          Returns the high, low, and close points set by the DataValues.setCompactedBy(double) property.
static CompactFormulaListener getLast()
          Returns the last points set by the DataValues.setCompactedBy(double) property.
static CompactFormulaListener getMax()
          Returns the max points set by the DataValues.setCompactedBy(double) property.
static CompactFormulaListener getMin()
          Returns the min points set by the DataValues.setCompactedBy(double) property.
static CompactFormulaListener getOpenHiLowClose()
          Returns the open, high, low, and close points set by the DataValues.setCompactedBy(double) property.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompactFormulas

public CompactFormulas()
Method Detail

getAverage

public static CompactFormulaListener getAverage()

Returns the average points set by the DataValues.setCompactedBy(double) property.

Remarks:
  • For example, if you want to compact data based on the average for a chart containing 1000 points and the CompactedBy property has a value of 2, the resulting plotted data will consist of 500 points. Each point in the new data will be the result of the average value of two adjacent datapoints from the original dataset.


  • getFirst

    public static CompactFormulaListener getFirst()

    Returns the first points set by the DataValues.setCompactedBy(double) property.

    Remarks:
  • For example, if you want to compact data based on the first for a chart containing 1000 points and the CompactedBy property has a value of 2, the resulting plotted data will consist of 500 points. Each point in the new data will be the result of the first value of two adjacent datapoints from the original dataset.


  • getHiLowClose

    public static CompactFormulaListener getHiLowClose()

    Returns the high, low, and close points set by the DataValues.setCompactedBy(double) property.

    Remarks:
  • This is particularly useful when you want to compact data for a HighLowClose Chart.

  • For example, if you want to compact data based on the high, low, and close of a chart containing 1000 points and the CompactedBy property has a value of 2, the resulting plotted data will consist of 500 points. Each point in the new data will be the result of the high, low, and close values of two adjacent datapoints from the original dataset.


  • getLast

    public static CompactFormulaListener getLast()

    Returns the last points set by the DataValues.setCompactedBy(double) property.

    Remarks:
  • For example, if you want to compact data based on the last for a chart containing 1000 points and the CompactedBy property has a value of 2, the resulting plotted data will consist of 500 points. Each point in the new data will be the result of the last value of two adjacent datapoints from the original dataset.


  • getMax

    public static CompactFormulaListener getMax()

    Returns the max points set by the DataValues.setCompactedBy(double) property.

    Remarks:
  • For example, if you want to compact data based on the max for a chart containing 1000 points and the CompactedBy property has a value of 2, the resulting plotted data will consist of 500 points. Each point in the new data will be the result of the maximum value of two adjacent datapoints from the original dataset.


  • getMin

    public static CompactFormulaListener getMin()

    Returns the min points set by the DataValues.setCompactedBy(double) property.

    Remarks:
  • For example, if you want to compact data based on the min for a chart containing 1000 points and the CompactedBy property has a value of 2, the resulting plotted data will consist of 500 points. Each point in the new data will be the result of the minimum value of two adjacent datapoints from the original dataset.


  • getOpenHiLowClose

    public static CompactFormulaListener getOpenHiLowClose()

    Returns the open, high, low, and close points set by the DataValues.setCompactedBy(double) property.

    Remarks:
  • This is particularly useful when you want to compact data for a OpenHighLowClose Chart.

  • For example, if you want to compact data based on the open, high, low, and close of a chart containing 1000 points and the CompactedBy property has a value of 2, the resulting plotted data will consist of 500 points. Each point in the new data will be the result of the open, high, low, and close values of two adjacent datapoints from the original dataset.


  • http://www.softwarefx.com

    2008 Software FX, Inc. All Rights Reserved. Chart FX is a registered trademark of Software FX, Inc
    All other names are trademarks or registered trademarks of their respective owners.