Class ColInfo

java.lang.Object
quadbase.ChartAPI.swing.ColInfo
All Implemented Interfaces:
IColumnMap, IMapConstants

public class ColInfo extends Object implements IColumnMap, IMapConstants
ColInfo

This class provides an implementation for the quadbase.util.IColumnMap interface. It contains information about how the charting program utilizes different columns in the input data to plot chart. They are:
value - column index which contain numerical value to plot chart
category - column index which contain category data
series - column index which contain series data
sumBy - for stack bar, stack column and stack area only, it contains the column index which is used to group and sum the data in stack chart.
For xy chart and xyz chart, the numerical value columns are set via variables, xvalue, yvalue and zvalue; For high-low chart, the variables high, low, open, and close are used.

See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
     
    int
     
    int
     
    int
     
    int
     
    int
     
    int
     
    int
     
    int
     
    int
     
    int
     
    int
     
    int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Create new ColInfo object
    ColInfo(int series, int[] values)
    Create new ColInfo object for Scatter chart
    ColInfo(int series, int category, int sumBy, int value)
    Create new ColInfo object for Bar, Column, Stack Bar, Stack Column, 100% Column, Line, Pie, Area, Stack Area
    ColInfo(int series, int category, int sumBy, int value, int subvalue)
    Create new ColInfo object for Bar, Column, Stack Bar, Stack Column, 100% Column, Line, Area, Stack Area
    ColInfo(int series, int category, int high, int low, int open, int close)
    Create new ColInfo object for High Low, HLCO, and GANTT charts
    ColInfo(int series, int category, int high, int low, int open, int close, int subvalue)
    Create new ColInfo object for High Low, HLCO, and GANTT charts
    ColInfo(int series, int category, int value, int sumBy, int high, int low, int open, int close, int subvalue, int subseries)
    Create new ColInfo object for secondary overlay chart
  • Method Summary

    Modifier and Type
    Method
    Description
    final int
    getColumn(int map)
    Get the column index for the given chart dimension(field).
    void
    setDataColumn(quadbase.chart.Chart chart)
    This is for internal use only.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • value

      public int value
    • subvalue

      public int subvalue
    • category

      public int category
    • series

      public int series
    • subseries

      public int subseries
    • sumBy

      public int sumBy
    • xvalue

      public int xvalue
    • yvalue

      public int yvalue
    • zvalue

      public int zvalue
    • high

      public int high
    • low

      public int low
    • open

      public int open
    • close

      public int close
  • Constructor Details

    • ColInfo

      public ColInfo()
      Create new ColInfo object
    • ColInfo

      public ColInfo(int series, int category, int sumBy, int value)
      Create new ColInfo object for Bar, Column, Stack Bar, Stack Column, 100% Column, Line, Pie, Area, Stack Area
      Parameters:
      series - column index in input data used for data series, -1 if no series
      category - column index for category data
      sumBy - column index used to sum the data for stack chart, -1 for non-stack chart
      value - column index for numerical column to plot chart
    • ColInfo

      public ColInfo(int series, int category, int sumBy, int value, int subvalue)
      Create new ColInfo object for Bar, Column, Stack Bar, Stack Column, 100% Column, Line, Area, Stack Area
      Parameters:
      series - column index in input data use for data series, -1 if no series
      category - column index for category data
      sumBy - column index used to sum the data for stack chart, -1 for non-stack chart
      value - column index for numerical column to plot chart
      subvalue - column index for secondary value axis, -1 if not used
    • ColInfo

      public ColInfo(int series, int[] values)
      Create new ColInfo object for Scatter chart
      Parameters:
      series - column index for data series, -1 if no series
      values - array of two elements contain x, y numerical columns for x-axis, y-axis ploting. Or array of three elements contain x, y, z numerical columns. For Polar Chart: array of two elements contain angle, radial.
    • ColInfo

      public ColInfo(int series, int category, int high, int low, int open, int close)
      Create new ColInfo object for High Low, HLCO, and GANTT charts
      Parameters:
      series - column index for data series, -1 if no series
      category - column index for category data
      high - column index for high data
      low - column index for low data
      open - column index for open data, -1 if not use
      close - column index for close data, -1 if not use
    • ColInfo

      public ColInfo(int series, int category, int high, int low, int open, int close, int subvalue)
      Create new ColInfo object for High Low, HLCO, and GANTT charts
      Parameters:
      series - column index for data series, -1 if no series
      category - column index for category data
      high - column index for high data
      low - column index for low data
      open - column index for open data, -1 if not use
      close - column index for close data, -1 if not use
      subvalue - column index for secondary value axis, -1 if not used
    • ColInfo

      public ColInfo(int series, int category, int value, int sumBy, int high, int low, int open, int close, int subvalue, int subseries)
      Create new ColInfo object for secondary overlay chart
      Parameters:
      series - column index for data series, -1 if no series
      category - column index for category data
      value - column index for primary value axis, -1 if not used
      sumBy - column index used to sum the data for stack chart, -1 for non-stack chart
      high - column index for high data
      low - column index for low data
      open - column index for open data, -1 if not use
      close - column index for close data, -1 if not use
      subvalue - column index for secondary value axis, -1 if not used
      subseries - column index for secondary data series, -1 if not used
  • Method Details