com.quinncurtis.chart2djava
Class GroupDataset

java.lang.Object
  extended by com.quinncurtis.chart2djava.ChartObj
      extended by com.quinncurtis.chart2djava.ChartDataset
          extended by com.quinncurtis.chart2djava.GroupDataset
All Implemented Interfaces:
ChartConstants, java.lang.Cloneable
Direct Known Subclasses:
TimeGroupDataset

public class GroupDataset
extends ChartDataset

Group data is a collection of data, where more than one dependent variable, the x's, corresponds to the independent one, the y's. The number of columns in this array must be equal to the number of data points, and the number of rows - to the number of dependent variables or groups.


Field Summary
 
Fields inherited from class com.quinncurtis.chart2djava.ChartDataset
initialCondition, markLookaheadLimit
 
Fields inherited from interface com.quinncurtis.chart2djava.ChartConstants
ABOVE_CENTERED_PLOTAREA, ABOVE_REFERENCED_TEXT, ABSTRACT_DATASET, ACTUAL_SIZE, ALARM_TRANSITION_DECREASING_FROM_HIGH, ALARM_TRANSITION_DECREASING_TO_LOW, ALARM_TRANSITION_INCREASING_FROM_LOW, ALARM_TRANSITION_INCREASING_TO_HIGH, ALARM_TRANSITION_NONE_HIGH, ALARM_TRANSITION_NONE_LOW, ALARM_TRANSITION_NONE_NORMAL, ALTBARMODE, APRIL, ARC2D_OBJ, ARROW, ARROWPLOT, AUGUST, AUTO_RESIZE_OBJECTS, AUTOAXES_EXACT, AUTOAXES_FAR, AUTOAXES_NEAR, AUTOAXES_STACKED, AUTOAXES_UNSTACKED, AUTOCHART, AUTOSCALE, AXIS, AXIS_CENTER, AXIS_MAX, AXIS_MIN, AXISLABELS, AXISTITLE, BACKGROUND, BACKGROUND_ELLIPSE, BACKGROUND_RECTANGLE, BACKGROUND_ROUNDEDRECTANGLE, BARDATAPOINTVALUE, BARPLOT, BELOW_CENTERED_PLOTAREA, BELOW_REFERENCED_TEXT, BOTH_AXES, BOTTOM_BORDER, BOTTOM_SIDE, BUBBLELEGEND, BUBBLEPLOT, BUBLELEGENDITEM, BUFFERED_IMAGE_RENDERING, BUFFEREDIMAGE, BUSINESSFORMAT, CANDLESTICK, CARTESIAN_COORDINATES, CELL_PLOT, CENTER_GRAPH, CENTER_PLOT, CENTER_RADIUS_BOTTOM, CENTER_RADIUS_LEFT, CENTER_RADIUS_RIGHT, CENTER_RADIUS_TOP, CENTERED_BAR, CHART_FOOTER, CHART_HEADER, CHART_SUBHEAD, CHARTATTRIBUTE, CHARTBRUSHES, CHARTCALENDAR, CHARTPENS, CIRCLE, COLUMN_MAJOR, COMBINE_DATASET_ADD, COMBINE_DATASET_DIVIDE, COMBINE_DATASET_MULTIPLY, COMBINE_DATASET_SUBTRACT, COMBINE_DATASET_X, COMBINE_DATASET_XY, COMBINE_DATASET_Y, CONTOUR_DATASET, CONTOUR_FILL, CONTOUR_LINE, CONTOUR_LINEANDFILL, CONTOUR_LINEPOLYGON, CONTOUR_LINEWALK, CONTOURLINE, COORD_SIZE, CROSS, CROSSOVER_DAY, CROSSOVER_MONTH, CROSSOVER_NONE, CROSSOVER_WEEK, CROSSOVER_YEAR, CURRENCYBUSINESSFORMAT, CURRENCYFORMAT, CUSTOM_POSITION, CUSTOMAXIS, CUSTOMSYMBOL, DATA_MOVEABLE, DATA_TOOLTIP_CUSTOM, DATA_TOOLTIP_GROUP_MULTILINE, DATA_TOOLTIP_OHLC, DATA_TOOLTIP_X, DATA_TOOLTIP_XY_ONELINE, DATA_TOOLTIP_XY_TWOLINE, DATA_TOOLTIP_Y, DATACOMPRESS_AVERAGE, DATACOMPRESS_MAX, DATACOMPRESS_MIN, DATACOMPRESS_MINMAX, DATACOMPRESS_NONE, DATACOMPRESS_SKIP, DATACOMPRESS_SUM, DATACURSOR, DATAVALUE_SYMBOL_SELECTON, DATE, DAY_OF_MONTH, DAY_OF_WEEK, DAY_OF_YEAR, DECEMBER, DECIMALFORMAT, DEFAULTFORMAT, DEV_POS, DIAMOND, DOWNTRIANGLE, EmptyColor, ENGINEERINGFORMAT, ERROR_ARRAY_NEW, ERROR_ARRAY_NEW_STRING, ERROR_AUTOSCALE, ERROR_AUTOSCALE_DATASET, ERROR_AUTOSCALE_DATASET_STRING, ERROR_AUTOSCALE_DATASETSARRAY, ERROR_AUTOSCALE_DATASETSARRAY_STRING, ERROR_AUTOSCALE_STRING, ERROR_AUTOSCALE_TRANSFORM, ERROR_AUTOSCALE_TRANSFORM_STRING, ERROR_AXIS, ERROR_AXIS_STRING, ERROR_AXISLABLES, ERROR_AXISLABLES_STRING, ERROR_AXISRANGE, ERROR_AXISRANGE_STRING, ERROR_AXISTICKS, ERROR_AXISTICKS_STRING, ERROR_BAD_POLYSURFACE, ERROR_BAD_POLYSURFACE_STRING, ERROR_BARDATAVALUE, ERROR_BARDATAVALUE_STRING, ERROR_BORDER, ERROR_BORDER_STRING, ERROR_COMPONENT, ERROR_COMPONENT_STRING, ERROR_CONTOURDATASET, ERROR_CONTOURDATASET_STRING, ERROR_DATASET, ERROR_DATASET_STRING, ERROR_DATASETSIZE, ERROR_DATASETSIZE_STRING, ERROR_DELAUNAY, ERROR_DELAUNAY_STRING, ERROR_FILECLOSE, ERROR_FILECLOSE_STRING, ERROR_FILEIO, ERROR_FILEIO_STRING, ERROR_FILEOPEN, ERROR_FILEOPEN_STRING, ERROR_FILEREAD, ERROR_FILEREAD_STRING, ERROR_FILEWRITE, ERROR_FILEWRITE_STRING, ERROR_FONT, ERROR_FONT_STRING, ERROR_GRID_ROW_COL, ERROR_GRID_ROW_COL_STRING, ERROR_GROUPDATASET, ERROR_GROUPDATASET_STRING, ERROR_IMAGE, ERROR_IMAGE_STRING, ERROR_INVALID_ALARM_EVENT_ARGUEMENT, ERROR_INVALID_ALARM_EVENT_ARGUEMENT_STRING, ERROR_INVALID_ROUNDED_RECTANGLE_ARGUEMENT, ERROR_INVALID_ROUNDED_RECTANGLE_ARGUEMENT_STRING, ERROR_LEGEND, ERROR_LEGEND_STRING, ERROR_LEGENDITEMSYMBOL, ERROR_LEGENDITEMSYMBOL_STRING, ERROR_LEGENDITEMTEXT, ERROR_LEGENDITEMTEXT_STRING, ERROR_NONE, ERROR_NONE_STRING, ERROR_NULL_ANNUNCIATOR_RECT, ERROR_NULL_ANNUNCIATOR_RECT_STRING, ERROR_NULL_METER_INDICATOR, ERROR_NULL_METER_INDICATOR_STRING, ERROR_NULL_PLOT_TEMPLATE, ERROR_NULL_PLOT_TEMPLATE_STRING, ERROR_NULL_PROCESSVAR, ERROR_NULL_PROCESSVAR_STRING, ERROR_NULLBASEAXIS, ERROR_NULLBASEAXIS_STRING, ERROR_NULLVIEWPORT, ERROR_NULLVIEWPORT_STRING, ERROR_OBJ_NEW, ERROR_OBJ_NEW_STRING, ERROR_OBJECTMISMATCH, ERROR_OBJECTMISMATCH_STRING, ERROR_PLOTOBJ, ERROR_PLOTOBJ_STRING, ERROR_POLARAXES, ERROR_POLARAXES_STRING, ERROR_SCALERANGE, ERROR_SCALERANGE_STRING, ERROR_SCALING, ERROR_SCALING_STRING, ERROR_SHAPE, ERROR_SHAPE_STRING, ERROR_SIMPLEDATASET, ERROR_SIMPLEDATASET_STRING, ERROR_SMALLVIEWPORT, ERROR_SMALLVIEWPORT_STRING, ERROR_SUPERZOOM, ERROR_SUPERZOOM_STRING, ERROR_SYMBOL, ERROR_SYMBOL_STRING, ERROR_TEXT, ERROR_TEXT_STRING, ERROR_TIMELABEL, ERROR_TIMELABEL_STRING, ERROR_WRONGAXISTYPE, ERROR_WRONGAXISTYPE_STRING, ERRORBAR, EXPONENTFORMAT, FASTCLIP_X, FASTCLIP_Y, FEBRUARY, FIXED_X_ASPECT_RATIO_CORRECTION, FIXED_Y_ASPECT_RATIO_CORRECTION, FLOATINGBAR, FNP_DIST, FNP_NORMDIST, FNP_NORMX, FNP_NORMY, FNP_X, FNP_Y, FRIDAY, FRONT_FACE_SELECTION, FULL_PLOTAREA_CLIPPING, FULL_POLYSURFACE_SELECTION, GRADIENT_MAPTO_GRAPH_NORMALIZED_COORDINATES, GRADIENT_MAPTO_OBJECT, GRADIENT_MAPTO_PLOT_NORMALIZED_COORDINATES, GRADIENT_MAPTO_PLOT_PHYSICAL_COORDINATES, GRADIENT_NONE, GRAPH_AREA_CLIPPING, GRAPH_BACKGROUND, GRAPHAREA_BOTTOM, GRAPHAREA_LEFT, GRAPHAREA_RIGHT, GRAPHAREA_TOP, GRAPHTITLE, GRID, GRID_ALL, GRID_MAJOR, GRID_MINOR, GROUP_DATASET, GROUPBAR, HBAR, HIGHLIGHT_COLOR, HISTOGRAMPLOT, HORIZ_DIR, HOUR, HOUR_OF_DAY, ICHARTOBJECTPLOT, IMAGE, INHERIT_CLIPPING, INSET_3D_LOOK, INSIDE_BAR, INSIDE_BARBASE, INSIDE_INDICATOR, INSIDE_PLOTAREA_MAX, INSIDE_PLOTAREA_MIN, INSIDE_RADIUS_BOTTOM, INSIDE_RADIUS_TOP, JANUARY, JULY, JUNE, JUSTIFY_CENTER, JUSTIFY_MAX, JUSTIFY_MIN, LABEL_ALL, LABEL_INTERCEPT, LABEL_MAX, LABEL_MIN, LABEL_ORIGIN, LEFT_BORDER, LEFT_BUTTON, LEFT_CENTERED_PLOTAREA, LEFT_REFERENCED_TEXT, LEFT_SIDE, LEGEND, LEGEND_FOOTER, LEGEND_HEADER, LEGEND_SUBHEAD, LEGENDITEM, LIGHT_LOWER_LEFT, LIGHT_LOWER_RIGHT, LIGHT_NONE, LIGHT_STRAIGHT_ON, LIGHT_UPPER_LEFT, LIGHT_UPPER_RIGHT, LINE, LINEAR_AUTOSCALE, LINEAR_SCALE, LINEAR_SCALE_OBJ, LINEARAXIS, LINEGAP, LINEMARKERPLOT, LINEPLOT, LM_S, LOG_AUTOSCALE, LOG_SCALE, LOG_SCALE_OBJ, LOGAXIS, LS_DASH_2_2, LS_DASH_4_2, LS_DASH_4_4, LS_DASH_8_4, LS_DASH_DOT, LS_DOT_1_1, LS_DOT_1_2, LS_DOT_1_4, LS_DOT_1_8, LS_SOLID, MANUAL_RESIZE_OBJECTS, MARCH, MARKER, MARKER_BOX, MARKER_CROSS, MARKER_HLINE, MARKER_HVLINE, MARKER_NULL, MARKER_VLINE, MAX_LOG_VALUE, MAY, METER_LABEL_HORIZONTAL, METER_LABEL_PERPENDICULAR, METER_LABEL_RADIAL_1, METER_LABEL_RADIAL_2, MILLISECOND, MIN_LOG_VALUE, MINUTE, MONDAY, MONTH, MOVE_X, MOVE_XY, MOVE_Y, MOVING_AVERAGE_X, MOVING_AVERAGE_XY, MOVING_AVERAGE_Y, MTICKS, MULTILINE, NEITHER_AXIS, NO_ASPECT_RATIO_CORRECTION, NO_AUTOSCALE, NO_CLIPPING, NO_DATECROSSOVER, NO_FASTCLIP, NO_RESIZE_OBJECTS, NO_SELECTION, NO_STEP, NOOBJECT, NORM_GRAPH_POS, NORM_PLOT_POS, NORM_PROBABILITY_SCALE_OBJ, NOSYMBOL, NOT_MOVEABLE, NOT_SPECIALCONTROL_TYPE, NOVEMBER, NUMERIC_COORDINATE, NUMERICAXISLABELS, NUMERICLABEL, OBJECT_DISABLE, OBJECT_ENABLE, OBJECT_ENABLE_NODRAW, OBJECT_MOVEABLE, OCTOBER, OHLC, OUTSET_3D_LOOK, OUTSIDE_BAR, OUTSIDE_BARBASE, OUTSIDE_INDICATOR, OUTSIDE_PLOTAREA_MAX, OUTSIDE_PLOTAREA_MIN, OUTSIDE_RADIUS_BOTTOM, OUTSIDE_RADIUS_TOP, OVERLAP_LABEL_DELETE, OVERLAP_LABEL_DRAW, OVERLAP_LABEL_STAGGER, PERCENT_NOPERCENTSIGN_FORMAT, PERCENTFORMAT, PHYS_POS, PHYSICAL_COORDINATES, PICTUREBOX_TYPE, PIECHART, PIELABEL_INSLICE, PIELABEL_NONE, PIELABEL_NUMVALUE, PIELABEL_OUTSLICE, PIELABEL_STRING, PIELABEL_STRINGNUMVAL, PLOT_AREA_CLIPPING, PLOT_BACKGROUND, PLOTAREA_CENTER, PLUS, POLAR_AXIS, POLAR_COORDINATES, POLAR_POS, POLARAXES, POLARAXESLABELS, POLARGRID, POLARLINEPLOT, POLARSCATTERPLOT, POLYSURFACE_SQUAREGRID, POLYSURFACE_TRIANGLEGRID, PRE_RENDER_ALL, PRE_RENDER_AXES, PRE_RENDER_NONE, PRE_RENDER_ZORDER_CHANGE, PRINTER_RENDERING, PROBABILITY_AUTOSCALE, PROBABILITY_AXIS, PROBABILITY_COORDINATES, PROBABILITY_SCALE, PROBABILITY_SIGMA_AXIS, PRT_EXACT, PRT_MAX, PRT_PROP, PRT_RECT, RADIOBUTTON_TYPE, RADIUS_BOTTOM, RADIUS_CENTER, RADIUS_LEFT, RADIUS_RIGHT, RADIUS_TOP, rBadDataValue, RENDER_HIGHQUALITY, RENDER_LOWQUALITY, RENDER_STANDARDQUALITY, REPLACE_DATECROSSOVER, RIGHT_BORDER, RIGHT_BUTTON, RIGHT_CENTERED_PLOTAREA, RIGHT_REFERENCED_TEXT, RIGHT_SIDE, ROUNDED_RECTANGLE2D, ROW_MAJOR, RT_3DFRAME, RT_ALARM, RT_ALARM_GREATERTHAN, RT_ALARM_INDICATOR, RT_ALARM_LIMIT_BACKGROUND_INDICATOR, RT_ALARM_LIMIT_LINE_INDICATOR, RT_ALARM_LIMIT_SYMBOL_INDICATOR, RT_ALARM_LOWERTHAN, RT_ALARM_NONE, RT_ALARM_PANEL_METER, RT_ANNUNCIATOR_PLOT, RT_AUTO_BARGRAPH, RT_AUTO_METER, RT_AUTO_SCROLL_GRAPH, RT_AUTOSCALE_X, RT_AUTOSCALE_X_CURRENT_SCALE, RT_AUTOSCALE_X_MAX, RT_AUTOSCALE_X_MIN, RT_AUTOSCALE_X_MINMAX, RT_AUTOSCALE_Y, RT_AUTOSCALE_Y_CURRENT_SCALE, RT_AUTOSCALE_Y_MAX, RT_AUTOSCALE_Y_MIN, RT_AUTOSCALE_Y_MINMAX, RT_BAR_INDICATOR, RT_BAR_NUMERIC_VALUE, RT_BAR_SEGMENTED_SUBTYPE, RT_BAR_SINGLE_SEGMENT_SUBTYPE, RT_BAR_SOLID_SUBTYPE, RT_BAR_TIME_VALUE, RT_BARTAG, RT_BOTTOM_HIGH_ALARM_SYMBOL, RT_BOTTOM_LOW_ALARM_SYMBOL, RT_BOTTOM_SETPOINT_SYMBOL, RT_CEILING_VALUE, RT_COMBO_PROCESSVAR, RT_CONTROL_BUTTON_TYPE, RT_CONTROL_MOMENTARYBUTTON_SUBTYPE, RT_CONTROL_RADIOBUTTON_SUBTYPE, RT_CONTROL_SCROLLBAR_TYPE, RT_CONTROL_TOGGLEBUTTON_SUBTYPE, RT_CONTROL_TRACKBAR_TYPE, RT_CUSTOM_STRING, RT_DATASET, RT_DETALED_DESCRIPTION_STRING, RT_DISPLAY_ALL_ALARMS, RT_DISPLAY_NO_ALARM, RT_DISPLAY_PRIMARY_ALARM, RT_FIXEDEXTENT_AUTOWRAP_AUTOSCROLL, RT_FIXEDEXTENT_MOVINGSTART_AUTOSCROLL, RT_FIXEDNUMPOINT_AUTOSCROLL, RT_FLOOR_VALUE, RT_FORM_CONTROL, RT_FORM_CONTROL_GRID, RT_FORM_CONTROL_PANEL_METER, RT_GEN_SHAPE, RT_GRAPH_OBJ, RT_GROUP_DATASET, RT_GROUP_MULTIVALUE_PLOT, RT_INDICATOR_COLOR_CHANGE_ON_ALARM, RT_INDICATOR_COLOR_NO_ALARM_CHANGE, RT_INDICATORRECT_CONTROL_SIZE, RT_LEFT_HIGH_ALARM_SYMBOL, RT_LEFT_LOW_ALARM_SYMBOL, RT_LEFT_SETPOINT_SYMBOL, RT_MAXEXTENT_FIXEDSTART_AUTOSCROLL, RT_METER_ARC_BAND_SUBTYPE, RT_METER_ARC_FLAT_CAP, RT_METER_ARC_INDICATOR, RT_METER_ARC_RADIUS_CAP, RT_METER_ARC_WEDGE_WIDTH_CAP, RT_METER_AXIS, RT_METER_AXIS_LABELS, RT_METER_COORDINATES, RT_METER_FACEPLATE, RT_METER_INDICATOR, RT_METER_NEEDLE_ARROW_SUBTYPE, RT_METER_NEEDLE_INDICATOR, RT_METER_NEEDLE_PIEWEDGE_SUBTYPE, RT_METER_NEEDLE_SIMPLE_SUBTYPE, RT_METER_SEGMENTED_ARC_SUBTYPE, RT_METER_SINGLE_SEGMENT_ARC_SUBTYPE, RT_METER_SINGLE_SYMBOL_SUBTYPE, RT_METER_STRING_AXIS_LABELS, RT_METER_SYMBOL_ARC_SUBTYPE, RT_METER_SYMBOL_INDICATOR, RT_MIN_CONTROL_SIZE, RT_MONOTONIC_X_MODE, RT_MULTIALARM_INDICATOR, RT_MULTIBAR_INDICATOR, RT_MULTIPOINTER_INDICATOR, RT_MULTIVALUE_ANNUNCIATOR, RT_MULTIVALUE_INDICATOR, RT_NMETER, RT_NO_ALARM_LIMIT_INDICATOR, RT_NO_AUTOSCALE_X, RT_NO_AUTOSCALE_Y, RT_NO_SYMBOL, RT_NOT_MONOTONIC_X_MODE, RT_NUMERIC_PANEL_METER, RT_ORIG_CONTROL_SIZE, RT_PIDCONTROL, RT_PLOT, RT_POINTER_INDICATOR, RT_POINTER_SUBTYPE, RT_PROCESSVAR, RT_PROCESSVAR_ALARM, RT_RIGHT_HIGH_ALARM_SYMBOL, RT_RIGHT_LOW_ALARM_SYMBOL, RT_RIGHT_SETPOINT_SYMBOL, RT_ROUND_VALUE, RT_SCROLL_FRAME, RT_SETPOINT_VALUE, RT_SHAPE_ELLIPSE, RT_SHAPE_RECTANGLE, RT_SHAPE_ROUNDEDRECTANGLE, RT_SHORT_DESCRIPTION_STRING, RT_SIMPLE_DATASET, RT_SIMPLE_SINGLEVALUE_PLOT, RT_SINGLE_CHANNEL_PANEL_METER, RT_SINGLE_VALUE_INDICATOR, RT_STRING_PANEL_METER, RT_SYMBOL, RT_TAG_STRING, RT_TEXT_BACKGROUND_COLOR_CHANGE_ON_ALARM, RT_TEXTFRAME, RT_TIME_GROUP_DATASET, RT_TIME_PANEL_METER, RT_TIME_SIMPLE_DATASET, RT_TOP_HIGH_ALARM_SYMBOL, RT_TOP_LOW_ALARM_SYMBOL, RT_TOP_SETPOINT_SYMBOL, RT_TRACKBAR_HORIZONTAL_CENTER_POINTER, RT_TRACKBAR_HORIZONTAL_DOWN_POINTER, RT_TRACKBAR_VERTICAL_CENTER_POINTER, RT_TRACKBAR_VERTICAL_RIGHT_POINTER, RT_UNIQUEID_STRING, RT_UNITS_STRING, RTPID_POSITIONCONTROL, RTPID_VELOCITYCONTROL, SATURDAY, SCALE_FACTOR_SIZE, SCATTERPLOT, SCIENTIFICFORMAT, SCREEN_RENDERING, SCROLLBAR_TYPE, SECOND, SECONDSPERDAY, SEPTEMBER, SHADOW_COLOR, SHAPE, SIGMA_FORMAT, SIMPLE_DATASET, SIMPLE_PLOTAREA_CLIPPING, SIMPLEBUTTON_TYPE, SIMPLECOLORMODE, SIMPLEGRADIENTMODE, SIZE_BUBBLE_AREA, SIZE_BUBBLE_RADIUS, sizeOfDouble, SQUARE, STACKEDBAR, STACKEDLINE, STAR, STEP_END, STEP_NO_RISE_LINE, STEP_START, STRINGAXISLABELS, STRINGLABEL, SUNDAY, SYMBOL, TEXT, THURSDAY, TICK_MAJOR, TICK_MINOR, TICKS, TIME_AUTOSCALE, TIME_COORDINATE, TIME_COORDINATES, TIME_GROUP_DATASET, TIME_SCALE, TIME_SCALE_OBJ, TIME_SIMPLE_DATASET, TIMEAXIS, TIMEAXIS_10MINUTEMINUTE, TIMEAXIS_10SECONDSECOND, TIMEAXIS_10YEARYEAR, TIMEAXIS_12HOURHOUR, TIMEAXIS_15MINUTEMINUTE, TIMEAXIS_15SECONDSECOND, TIMEAXIS_20YEAR5YEAR, TIMEAXIS_2HOURHOUR, TIMEAXIS_2MINUTEMINUTE, TIMEAXIS_2SECONDSECOND, TIMEAXIS_30MINUTEMINUTE, TIMEAXIS_30SECONDSECOND, TIMEAXIS_4HOURHOUR, TIMEAXIS_50YEAR10YEAR, TIMEAXIS_5MINUTEMINUTE, TIMEAXIS_5SECONDSECOND, TIMEAXIS_5YEARYEAR, TIMEAXIS_8HOURHOUR, TIMEAXIS_DAY, TIMEAXIS_DAY12HOUR, TIMEAXIS_DAY2HOUR, TIMEAXIS_DAY4HOUR, TIMEAXIS_DAY8HOUR, TIMEAXIS_DAYHOUR, TIMEAXIS_HOUR, TIMEAXIS_HOUR10MINUTE, TIMEAXIS_HOUR15MINUTE, TIMEAXIS_HOUR2MINUTE, TIMEAXIS_HOUR30MINUTE, TIMEAXIS_HOUR5MINUTE, TIMEAXIS_HOURMINUTE, TIMEAXIS_MILLISECOND, TIMEAXIS_MILLISECOND1, TIMEAXIS_MILLISECOND2, TIMEAXIS_MILLISECOND3, TIMEAXIS_MINUTE, TIMEAXIS_MINUTE10SECOND, TIMEAXIS_MINUTE15SECOND, TIMEAXIS_MINUTE2SECOND, TIMEAXIS_MINUTE30SECOND, TIMEAXIS_MINUTE5SECOND, TIMEAXIS_MINUTESECOND, TIMEAXIS_MONTH, TIMEAXIS_MONTHDAY, TIMEAXIS_MONTHWEEK, TIMEAXIS_QUARTER, TIMEAXIS_QUARTERMONTH, TIMEAXIS_SECOND, TIMEAXIS_SECONDMILLISECOND, TIMEAXIS_WEEK, TIMEAXIS_WEEKDAY, TIMEAXIS_YEAR, TIMEAXIS_YEARMONTH, TIMEAXIS_YEARQUARTER, TIMEAXISLABELS, TIMEBASE_DAY, TIMEBASE_HOUR, TIMEBASE_MILLISECOND, TIMEBASE_MINUTE, TIMEBASE_MONTH, TIMEBASE_SECOND, TIMEBASE_TICKS, TIMEBASE_WEEK, TIMEBASE_YEAR, TIMEDATEFORMAT, TIMEDATEFORMAT_12HM, TIMEDATEFORMAT_12HMS, TIMEDATEFORMAT_12HMSD, TIMEDATEFORMAT_12HMSDD, TIMEDATEFORMAT_24HM, TIMEDATEFORMAT_24HMS, TIMEDATEFORMAT_24HMSD, TIMEDATEFORMAT_24HMSDD, TIMEDATEFORMAT_D, TIMEDATEFORMAT_DDD, TIMEDATEFORMAT_DDDD, TIMEDATEFORMAT_DMY, TIMEDATEFORMAT_DMY2000, TIMEDATEFORMAT_M, TIMEDATEFORMAT_MDY, TIMEDATEFORMAT_MDY2000, TIMEDATEFORMAT_MMM, TIMEDATEFORMAT_MMMM, TIMEDATEFORMAT_MS, TIMEDATEFORMAT_MSD, TIMEDATEFORMAT_MSDD, TIMEDATEFORMAT_MSDDD, TIMEDATEFORMAT_MY, TIMEDATEFORMAT_MY2000, TIMEDATEFORMAT_NONE, TIMEDATEFORMAT_Q, TIMEDATEFORMAT_STANDARD, TIMEDATEFORMAT_Y, TIMEDATEFORMAT_Y2000, TIMELABEL, TOP_BORDER, TOP_SIDE, TRACKBAR_TYPE, TransparentColor, TUESDAY, UNDECIMBER, UNDER_DATECROSSOVER, UPTRIANGLE, USER_COORD_MAX, USER_COORDINATES, USER_POS, USERGRADIENTMODE, USERTEXTUREMODE, VBAR, VERT_DIR, WEDNESDAY, WEEK_5D, WEEK_7D, WEEK_OF_MONTH, WEEK_OF_YEAR, WORKING_COORDINATES, WORLD_COORDINATES, X_AXIS, XY_MAXZ_PLANE, XY_MINZ_PLANE, XY_PLANE, XZ_MAXY_PLANE, XZ_MINY_PLANE, XZ_PLANE, Y_AXIS, YEAR, YZ_MAXX_PLANE, YZ_MINX_PLANE, YZ_PLANE, Z_AXIS, ZOOM
 
Constructor Summary
GroupDataset()
          The default GroupDataset constructor.
GroupDataset(CSV csv, java.lang.String filename, int rowskip, int columnskip)
          This constructor creates a new GroupDataset object from a file consisting of comma separated values.
GroupDataset(java.lang.String sname, double[] x, double[] y)
          This constructor creates a new, group GroupDataset object that uses floating point values.
GroupDataset(java.lang.String sname, double[] x, double[][] y)
          This constructor creates a new, group GroupDataset object that uses floating point values.
GroupDataset(java.lang.String sname, double[] x, double[][] y, boolean[] valid)
          This constructor creates a new, group GroupDataset object that uses floating point values.
GroupDataset(java.lang.String sname, int nrows, int ncols)
          This constructor creates a new, group GroupDataset object of the specified size.
 
Method Summary
 void addGroup(double[] y)
          This method adds a new row (or group) of y-values to the existing group dataset, increasing the number of groups in the dataset by 1.
 int addGroupDataPoints(double x, double[] y)
          This method adds a new xy point to a dataset, increasing its size by one.
 int addGroupDataPoints(GroupPoint2D xy)
          This method adds a new xy point to a dataset, increasing its size by one.
 boolean calcNearestPoint(PhysicalCoordinates transform, ChartPoint2D testpoint, int nmode, NearestPointData nearestpoint)
          This method compares a test point against all of the xy points in a simple dataset and calculates which point in the dataset is nearest the test point.
 boolean checkValidGroupData(PhysicalCoordinates transform, int index)
          This method checks to see if the x- and y-data values for a given index are valid, taking into account any discontinuities in the coordinate system.
 boolean checkValidGroupData(PhysicalCoordinates transform, int ngroup, int index)
          This method checks to see if the x- and y-data values for a given index are valid, taking into account any discontinuities in the coordinate system.
 boolean checkValidGroupDataX(PhysicalCoordinates transform, int index)
          This method checks to see if the x-data value is valid, taking into account any discontinuities in the coordinate system.
 boolean checkValidGroupDataY(PhysicalCoordinates transform, int ngroup, int index)
          This method checks to see if the y-data value is valid, taking into account any discontinuities in the coordinate system.
 java.lang.Object clone()
          Returns an object that is a clone of this GroupDataset object.
 GroupDataset CompressGroupDataset(int ctypex, int[] ctypey, int interval, int startindex, int endindex, java.lang.String newname)
          This methods creates and returns a new dataset that is the data reduced version of the source dataset.
 GroupDataset CompressGroupDataset(int ctypex, int ctypey, int interval, int startindex, int endindex, java.lang.String newname)
          This methods creates and returns a new dataset that is the data reduced version of the source dataset.
 void copy(GroupDataset source)
          Copies the source group dataset.
 int deleteGroup(int deletegroup)
          Deletes the specified group in the dataset, decreasing the numGroups field by one.
 int deleteGroupDataPoints(int deletepoint)
          Deletes a data point at the specified location, decreasing the size of the dataset by one.
 int errorCheck(int nerror)
          Checks the current group dataset object for common errors.
 int FindNearestGroup(int index, double findvalue)
          This method finds the nearest group data value nearest a test value.
 int getAutoScaleNumberGroups()
          This method returns the value of the number of groups used in auto axis calculations.
 ChartPoint2D getDataPoint(int ngroup, int index)
          This method returns the x- and y-value of a point in a group dataset.
 double[] getDatasetColumnSum()
          This method returns an array of double that contains the sum of the group values for each index, 0 to numberDatapoints-1.
 double getDatasetMax(int naxis)
          This method returns the maximum value for either the xData or yData arrays.
 double getDatasetMin(int naxis)
          This method returns the minimum value for either the xData or yData arrays.
 GroupDataset getFastClipDataset(java.lang.String s, PhysicalCoordinates transform, int fastclipmode, java.lang.Integer fastclipoffset)
          This method returns a truncated dataset that only includes the datapoints within the current scaling limits, assuming the the data is monotonic in the x or y direction.
 int getFirstValidIndex(int ngroup)
          This method returns the index of the first valid data point in a group dataset.
 double getGroupAverageY(int ngroup)
          This method returns the average for the y-values of a specific group in a group dataset.
 double[][] getGroupData()
          This method returns a reference to the yGroupData array, the array of y-values for group datasets.
 double[] getGroupDataColumn(int ncolumn)
          This method gets the y-values associated with a group dataset column index.
 DoubleArray2D getGroupDataObj()
          This method returns a reference to the internal DoubleArray2D object used to store the group y-values.
 double[] getGroupDataRow(int nrow)
          This method gets the y-values associated with a group dataset row index.
 DoubleArray getGroupDatasetColumnSum()
          This method returns an array of double, that contains the sum of the group values for each index, 0 to numberDatapoints-1.
 double getGroupDatasetMax(int naxis)
          This method returns the maximum value for either the xData or yGroupData arrays.
 double getGroupDatasetMin(int naxis)
          This method returns the minimum value for either the xData or arrays.
 double getGroupDatasetSumMax(int naxis)
          This method returns the maximum value for either the xData array, or the maximum of the sum across groups for each index of the yGroupData array.
 double getGroupDatasetSumMin(int naxis)
          This method returns the minimum value for either the xData array, or the minimum of value in group #0 of the yGroupData array.
 double getGroupSumY(int ngroup)
          This method returns the sum for the y-values of a specific group in a group dataset.
 int getNumberGroups()
          This method returns the value of the numberGroups field which is number of groups in a group dataset.
 SimpleDataset getSimpleDataset(java.lang.String sname, int group)
          This methods creates a new, SimpleDataset object using the x-values and the y-values of the specified group.
 double[][] getYData()
          This method returns a reference to the yGroupData array, the array of y-values for group datasets.
 DoubleArray2D getYDataObj()
          This method returns a reference to the internal DoubleArray2D object used to store the group y-values.
 double getYDataValue(int ngroup, int index)
          This method resolves the generalized getYDataValue method int the abstract ChartDataset class.
 double getYGroupDataValue(int ngroup, int index)
          This method returns a y-value in a group dataset.
 void initDataset(java.lang.String sname, double[] x, double[][] y)
          An initialization method that initializes the name, and the x- and y-values of a group dataset that uses floating point values.
 void initializeData(double[] x, double[][] y)
          An initialization method that initializes the x- and y-values of a group dataset that uses floating point values.
 int insertGroupDataPoints(double xvalue, double[] yvalue, int insertpoint)
          Insert a data point at the specified location, increasing the size of the dataset by one.
 int insertGroupDataPoints(GroupPoint2D xyvalue, int insertpoint)
          Insert a data point at the specified location, increasing the size of the dataset by one.
 boolean isDataPointGood(int index)
          This method checks if the point at the specified index for a simple dataset is valid.
 boolean isDataPointGood(int ngroup, int index)
          This method checks if the point at the specified index and group number for a group dataset is valid.
 void readGroupDataset(CSV csv, java.lang.String filename, int rowskip, int columnskip)
          This methods will open a text file and read the CSV (Comma Separated Value) formatted data values in that file.
 void readGroupDatasetAsResource(CSV csv, java.io.BufferedReader pReader, int rowskip, int columnskip)
          This methods will open a text file and read the CSV (Comma Separated Value) formatted data values in that file.
 void resize(int n)
          Resizes the dataset, maintaining the original data.
 void setAutoScaleNumberGroups(int autoscalenumgroups)
          Sets the value of the number of groups used in auto axis calculations.
 void setDataPoint(int index, ChartPoint2D p, int ngroup)
          Sets the x- and y-values for a data point in a group dataset.
 void setDataPoint(int index, double x, double y, int ngroup)
          Sets the x- and y-values for a data point in a group dataset.
 void setGroupData(double[][] ygroup)
          This method sets the values of the yGroupData array, the array of group y-values for group datasets.
 void setGroupDataColumn(double[] y, int ncolumn)
          Sets the y-values associated with a group dataset column index.
 void setGroupDataColumn(double x, double[] y, int ncolumn)
          Sets the x- and y-values associated with a group dataset column index.
 void setGroupDataElement(double y, int nrow, int ncolumn)
          Sets the y-value at a specific row and column of a group dataset.
 void setGroupDataRow(double[] y, int nrow)
          Sets the y-values associated with a group dataset row index.
 void setYDataValue(int ngroup, int index, double y)
          This method resolves the generalized setYDataValue method int the abstract ChartDataset class.
 void setYGroupDataValue(int ngroup, int index, double y)
          Sets the y-value in a group dataset.
 void sortByX(boolean ascending)
          This method sorts the group dataset according to the x-values.
 void writeGroupDataset(CSV csv, java.lang.String filename)
          This methods will create a text file and output the dataset to that file in a CSV (Comma Separated Value) format.
 void writeGroupDataset(CSV csv, java.lang.String filename, boolean append)
          This methods will create a text file and output the dataset to that file in a CSV (Comma Separated Value) format.
 
Methods inherited from class com.quinncurtis.chart2djava.ChartDataset
copy, getAutoCompressDatasetModeX, getAutoCompressDatasetModeY, getAutoCompressDivisor, getAutoCompressTriggerValue, getAutoDataCompressEnable, getAverageX, getDataName, getFastClipOffset, getGroupString, getGroupStrings, getMarkLookaheadLimit, getNumberDatapoints, getStackMode, getSumX, getTimeScaleAxis, getValidData, getValidData, getValidDataObj, getXCoordinateType, getXData, getXDataObj, getXDataValue, getYCoordinateType, setAutoCompressDatasetModeX, setAutoCompressDatasetModeY, setAutoCompressDivisor, setAutoCompressTriggerValue, setAutoDataCompressEnable, setDataName, setFastClipOffset, setMarkLookaheadLimit, setStackMode, setTimeXData, setValidData, setXCoordinateType, setXData, setXData, setXDataValue, setYCoordinateType, ValidData, XData
 
Methods inherited from class com.quinncurtis.chart2djava.ChartObj
copy, getChartObjIDCntr, getChartObjType, getThisChartObjID, TypeSafeVectorCopy
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupDataset

public GroupDataset()
The default GroupDataset constructor.


GroupDataset

public GroupDataset(CSV csv,
                    java.lang.String filename,
                    int rowskip,
                    int columnskip)
This constructor creates a new GroupDataset object from a file consisting of comma separated values. The file can be organized so that the columns represent groups and the rows represent data values for each group (COLUMN_MAJOR), or the where the rows represent groups and the columns represent data values for each group (ROW_MAJOR). Use the CSV.setOrientation method to initialize the csv argument for the proper data orientation.

Parameters:
csv - An instance of an CSV object.
filename - The name of the file.
rowskip - Skip this many rows before starting the read operation.
columnskip - For each row of data, skip this many columns before reading the first value from the row.

GroupDataset

public GroupDataset(java.lang.String sname,
                    double[] x,
                    double[] y)
This constructor creates a new, group GroupDataset object that uses floating point values. It assumes that initially there is only one group (or row) and the y data values are passed in as a 1-D double array, rather than as a 2-D array

Parameters:
sname - Specifies the name of the dataset.
x - An array that specifies the x-values of a group dataset.
y - An array that specifies the y-values of a group dataset.

GroupDataset

public GroupDataset(java.lang.String sname,
                    double[] x,
                    double[][] y)
This constructor creates a new, group GroupDataset object that uses floating point values.

Parameters:
sname - Specifies the name of the dataset.
x - An array that specifies the x-values of a group dataset.
y - An array that specifies the y-values of a group dataset.

GroupDataset

public GroupDataset(java.lang.String sname,
                    double[] x,
                    double[][] y,
                    boolean[] valid)
This constructor creates a new, group GroupDataset object that uses floating point values.

Parameters:
sname - Specifies the name of the dataset.
x - An array that specifies the x-values of a group dataset.
y - An array that specifies the y-values of a group dataset.
valid - An array that specifies the valid values of a dataset.

GroupDataset

public GroupDataset(java.lang.String sname,
                    int nrows,
                    int ncols)
This constructor creates a new, group GroupDataset object of the specified size.

Parameters:
sname - Specifies the name of the dataset.
nrows - Number of rows, or groups in the dataset.
ncols - Number of columns, or numDatapoints in the dataset.
Method Detail

addGroup

public void addGroup(double[] y)
This method adds a new row (or group) of y-values to the existing group dataset, increasing the number of groups in the dataset by 1.

Parameters:
y - An array that specifies the y-values for a new group of a group dataset.

addGroupDataPoints

public int addGroupDataPoints(double x,
                              double[] y)
This method adds a new xy point to a dataset, increasing its size by one.

Parameters:
x - Specifies the new x-value for the data point.
y - An array that holds the y-values to add.
Returns:
Returns the value of the numberDatapoints field.

addGroupDataPoints

public int addGroupDataPoints(GroupPoint2D xy)
This method adds a new xy point to a dataset, increasing its size by one.

Parameters:
xy - Specifies the new x-value and y-values for the data point7.
Returns:
Returns the value of the numberDatapoints field.

calcNearestPoint

public boolean calcNearestPoint(PhysicalCoordinates transform,
                                ChartPoint2D testpoint,
                                int nmode,
                                NearestPointData nearestpoint)
This method compares a test point against all of the xy points in a simple dataset and calculates which point in the dataset is nearest the test point. The nearness test has many different forms: Nearness Mode Constant Description FNP_X nearest x FNP_Y nearest y FNP_DIST shortest distance FNP_NORMX nearest normalized x FNP_NORMY nearest normalized y FNP_NORMDIST shortest normalized distance

Specified by:
calcNearestPoint in class ChartDataset
Parameters:
transform - The PhysicalCoordinates coordinate system associated with these points.
testpoint - The test point for the nearness calculation.
nmode - Specifies the algorithm used in the nearness calculation.
nearestpoint - Returns the parameters of the nearest point.
Returns:
Returns true if a valid data point is found and returned.

checkValidGroupData

public boolean checkValidGroupData(PhysicalCoordinates transform,
                                   int index)
This method checks to see if the x- and y-data values for a given index are valid, taking into account any discontinuities in the coordinate system. For example, an TimeScale can be discontinuous in WEEK_5D mode, or when it has an hour range that is not the standard 24-hour day. If the x-value, or any of the y-values at a given index are invalid, the method returns false.

Parameters:
transform - Specifies the coordinate system being used to plot the data.
index - Specifies the index to check in the group data arrays.
Returns:
Returns true only if the x- and y-values for a given index are true.

checkValidGroupData

public boolean checkValidGroupData(PhysicalCoordinates transform,
                                   int ngroup,
                                   int index)
This method checks to see if the x- and y-data values for a given index are valid, taking into account any discontinuities in the coordinate system. For example, an TimeScale can be discontinuous in WEEK_5D mode, or when it has an hour range that is not the standard 24-hour day. If the x-value, or any of the y-values at a given index are invalid, the method returns false.

Parameters:
transform - Specifies the coordinate system being used to plot the data.
index - Specifies the index to check in the group data arrays.
ngroup - Specifies the group number to check in the yGroupData array.
Returns:
Returns true only if the x- and y-values for a given index are true.

checkValidGroupDataX

public boolean checkValidGroupDataX(PhysicalCoordinates transform,
                                    int index)
This method checks to see if the x-data value is valid, taking into account any discontinuities in the coordinate system. For example, an TimeScale can be discontinuous in WEEK_5D mode, or when it has an hour range that is not the standard 24-hour day. Any data value in one of the discontinuities is considered invalid.

Parameters:
transform - Specifies the coordinate system being used to plot the data.
index - Specifies the index to check in the xData array.
Returns:
Returns true if the x-data value is considered valid.

checkValidGroupDataY

public boolean checkValidGroupDataY(PhysicalCoordinates transform,
                                    int ngroup,
                                    int index)
This method checks to see if the y-data value is valid, taking into account any discontinuities in the coordinate system. For example, an TimeScale can be discontinuous WEEK_5D mode, or when it has an hour range that is not the standard 24-hour day. Any data value in one of the discontinuities is considered invalid.

Parameters:
transform - Specifies the coordinate system being used to plot the data.
index - Specifies the index to check in the yData array.
ngroup - Specifies the group number to check in the yGroupData array.
Returns:
Returns true if the y-data value is considered valid.

clone

public java.lang.Object clone()
Returns an object that is a clone of this GroupDataset object.

Overrides:
clone in class java.lang.Object
Returns:
Returns a clone of this GroupDataset object.

CompressGroupDataset

public GroupDataset CompressGroupDataset(int ctypex,
                                         int[] ctypey,
                                         int interval,
                                         int startindex,
                                         int endindex,
                                         java.lang.String newname)
This methods creates and returns a new dataset that is the data reduced version of the source dataset. The new, compressed dataset will contain ((endindex - startindex + 1) / interval) datapoints, except for the DATACOMPRESS_MINMAX compress algorithm which is the previous formula x 2.

Parameters:
ctypex - The compression type. Use one of the data compression type constants: DATACOMPRESS_NONE (returns a dataset containing the points in the specified range, no compression), DATACOMPRESS_SKIP (sample the dataset every interval points), DATACOMPRESS_AVERAGE (use the average x- and y-value in each interval), DATACOMPRESS_MIN (use the minimum x- and y-value in each interval), DATACOMPRESS_MAX (use the maximum x- and y-value in each interval), and DATACOMPRESS_MINMAX (use the minimum and maximum x- and y-value in each interval). The DATACOMPRESS_MINMAX compression type is best used when the compressed data values number more than 1000, where adjacent data values in the rendered chart differ by one horizontal pixel or less. The DATACOMPRESS_MINMAX compression type will guarantee that the chart displays the same minimums and maximums as the original dataset.
ctypey - An array of compression types for the y-values, one for each group. Use one of the data compression type constants.
interval - The number of data points in each segment that is reduced to a single datapoint (two for the DATACOMPRESS_MINMAX compression type) in the compressed dataset.
startindex - The starting point, inclusive, in the source dataset for the data compression.
endindex - The ending index, inclusive, in the source dataset for the data compression.
newname - The string name for the new dataset.
Returns:
Returns the new, compressed GroupDataset.

CompressGroupDataset

public GroupDataset CompressGroupDataset(int ctypex,
                                         int ctypey,
                                         int interval,
                                         int startindex,
                                         int endindex,
                                         java.lang.String newname)
This methods creates and returns a new dataset that is the data reduced version of the source dataset. The new, compressed dataset will contain ((endindex - startindex + 1) / interval) datapoints, except for the DATACOMPRESS_MINMAX compress algorithm which is the previous formula x 2.

Parameters:
ctypex - The compression type. Use one of the data compression type constants: DATACOMPRESS_NONE (returns a dataset containing the points in the specified range, no compression), DATACOMPRESS_SKIP (sample the dataset every interval points), DATACOMPRESS_AVERAGE (use the average x- and y-value in each interval), DATACOMPRESS_MIN (use the minimum x- and y-value in each interval), DATACOMPRESS_MAX (use the maximum x- and y-value in each interval), and DATACOMPRESS_MINMAX (use the minimum and maximum x- and y-value in each interval).
ctypey - The compression type for the y-values. Use one of the he data compression type constants.
interval - The number of data points in each segment that is reduced to a single datapoint (two for the DATACOMPRESS_MINMAX compression type) in the compressed dataset.
startindex - The starting point, inclusive, in the source dataset for the data compression.
endindex - The ending index, inclusive, in the source dataset for the data compression.
newname - The string name for the new dataset.
Returns:
Returns the new, compressed GroupDataset.

copy

public void copy(GroupDataset source)
Copies the source group dataset.

Parameters:
source - The source group dataset object.

deleteGroup

public int deleteGroup(int deletegroup)
Deletes the specified group in the dataset, decreasing the numGroups field by one.

Parameters:
deletegroup - The delete point. Zero based array indexing is used, so the 5th data point in the array has an index value of 4.
Returns:
Returns the value of the numberGroups field.

deleteGroupDataPoints

public int deleteGroupDataPoints(int deletepoint)
Deletes a data point at the specified location, decreasing the size of the dataset by one.

Parameters:
deletepoint - The delete point. Zero based array indexing is used, so the 5th data point in the array has an index value of 4.
Returns:
Returns the value of the numberDatapoints field.

errorCheck

public int errorCheck(int nerror)
Checks the current group dataset object for common errors.

Overrides:
errorCheck in class ChartDataset
Parameters:
nerror - Current error state
Returns:
Returns an error code.

FindNearestGroup

public int FindNearestGroup(int index,
                            double findvalue)
This method finds the nearest group data value nearest a test value.

Parameters:
index - Specifies the data point index of the group values.
findvalue - Specifies the test value.
Returns:
Returns the group number of the nearest group value.

getAutoScaleNumberGroups

public int getAutoScaleNumberGroups()
This method returns the value of the number of groups used in auto axis calculations.

Returns:
Returns the value of the autoScaleNumberGroups field.

getDataPoint

public ChartPoint2D getDataPoint(int ngroup,
                                 int index)
This method returns the x- and y-value of a point in a group dataset.

Parameters:
ngroup - Specifies the group number of the data point.
index - Specifies the index of the data point.
Returns:
Returns a ChartPoint2D object that contains the x- and y-values of the data point at the specified index and group number.

getDatasetColumnSum

public double[] getDatasetColumnSum()
This method returns an array of double that contains the sum of the group values for each index, 0 to numberDatapoints-1.

Returns:
Returns an array of double that contains the sum of the group values for each index, 0 to numberDatapoints-1.

getDatasetMax

public double getDatasetMax(int naxis)
This method returns the maximum value for either the xData or yData arrays.

Specified by:
getDatasetMax in class ChartDataset
Parameters:
naxis - Specifies which data array to return the maximum value from. UseX_AXIS for the xData array, andY_AXIS for yData array.
Returns:
Returns the maximum value of the specified data array.

getDatasetMin

public double getDatasetMin(int naxis)
This method returns the minimum value for either the xData or yData arrays.

Specified by:
getDatasetMin in class ChartDataset
Parameters:
naxis - Specifies which data array to return the minimum value from. UseX_AXIS for the xData array, andY_AXIS for yData array.
Returns:
Returns the minimum value of the specified data array.

getFastClipDataset

public GroupDataset getFastClipDataset(java.lang.String s,
                                       PhysicalCoordinates transform,
                                       int fastclipmode,
                                       java.lang.Integer fastclipoffset)
This method returns a truncated dataset that only includes the datapoints within the current scaling limits, assuming the the data is monotonic in the x or y direction.

Parameters:
s - A string specifying the new name of the dataset.
transform - The transform that the dataset is clipped against.
fastclipmode - Specifies if the data is clipped against the x-coordinate (FASTCLIP_Y), or the y-coordinate (FASTCLIP_Y).
fastclipoffset - Returns the start offset of the fast clip data.
Returns:
Returns the truncated dataset.

getFirstValidIndex

public int getFirstValidIndex(int ngroup)
This method returns the index of the first valid data point in a group dataset.

Parameters:
ngroup - Specifies the group number of the dataset that is to be checked.
Returns:
Returns the index of the first valid data point in a simple dataset. If the value of the returned index is outside of the range 0 to numberDatapoints-1, the dataset has no valid data points.

getGroupAverageY

public double getGroupAverageY(int ngroup)
This method returns the average for the y-values of a specific group in a group dataset.

Parameters:
ngroup - Specifies the group number of the dataset.
Returns:
Returns the average for the y-values of a specific group in a group dataset.

getGroupData

public double[][] getGroupData()
This method returns a reference to the yGroupData array, the array of y-values for group datasets.

Returns:
Returns a reference to the yGroupData array.

getGroupDataColumn

public double[] getGroupDataColumn(int ncolumn)
This method gets the y-values associated with a group dataset column index.

Parameters:
ncolumn - Specifies the column index for the data values.
Returns:
Returns a reference to a new array, size [numberGroups], that holds the values of the specified column of data.

getGroupDataObj

public DoubleArray2D getGroupDataObj()
This method returns a reference to the internal DoubleArray2D object used to store the group y-values.

Returns:
Returns a reference to the internal DoubleArray2D object used to store the group y-values.

getGroupDataRow

public double[] getGroupDataRow(int nrow)
This method gets the y-values associated with a group dataset row index.

Parameters:
nrow - Specifies the row index for the data values.
Returns:
Returns a reference to the y-value array, size [numberDatapoints], associated with a group dataset row index.

getGroupDatasetColumnSum

public DoubleArray getGroupDatasetColumnSum()
This method returns an array of double, that contains the sum of the group values for each index, 0 to numberDatapoints-1.

Returns:
Returns an array of double that contains the sum of the group values for each index, 0 to numberDatapoints-1.

getGroupDatasetMax

public double getGroupDatasetMax(int naxis)
This method returns the maximum value for either the xData or yGroupData arrays.

Parameters:
naxis - Specifies which data array to return the maximum value from. UseX_AXIS for the xData array, andY_AXIS for the yGroupData array.
Returns:
Returns the maximum value of the specified data array.

getGroupDatasetMin

public double getGroupDatasetMin(int naxis)
This method returns the minimum value for either the xData or arrays.

Parameters:
naxis - Specifies which data array to return the minimum value from. UseX_AXIS for the xData array, andY_AXIS for the yGroupData array.
Returns:
Returns the minimum value of the specified data array.

getGroupDatasetSumMax

public double getGroupDatasetSumMax(int naxis)
This method returns the maximum value for either the xData array, or the maximum of the sum across groups for each index of the yGroupData array. This method is used by the auto-scale routines to determine the maximum scale value for "stacked" graphs that use group data.

Specified by:
getGroupDatasetSumMax in class ChartDataset
Parameters:
naxis - Specifies which data array to return the maximum value from. UseX_AXIS for the xData array, andY_AXIS for the yGroupData array.
Returns:
Returns the maximum value of the specified data array.

getGroupDatasetSumMin

public double getGroupDatasetSumMin(int naxis)
This method returns the minimum value for either the xData array, or the minimum of value in group #0 of the yGroupData array. If the x-values use GregorianCalendar dates, the equivalent of the date in seconds is returned. This method is used by the auto-scale routines to determine the minimum scale value for "stacked" graphs that use group data.

Specified by:
getGroupDatasetSumMin in class ChartDataset
Parameters:
naxis - Specifies which data array to return the minimum value from. UseX_AXIS for the xData array, andY_AXIS for the yGroupData array.
Returns:
Returns the minimum value of the specified data array.

getGroupSumY

public double getGroupSumY(int ngroup)
This method returns the sum for the y-values of a specific group in a group dataset.

Parameters:
ngroup - Specifies the group number of the dataset.
Returns:
Returns the sum for the y-values of a specific group in a group dataset.

getNumberGroups

public int getNumberGroups()
This method returns the value of the numberGroups field which is number of groups in a group dataset.

Specified by:
getNumberGroups in class ChartDataset
Returns:
Returns the value of the numberGroups field.

getSimpleDataset

public SimpleDataset getSimpleDataset(java.lang.String sname,
                                      int group)
This methods creates a new, SimpleDataset object using the x-values and the y-values of the specified group.

Parameters:
sname - Specifies the name of the dataset.
group - Specifies the y-values to include in the new SimpleDataset.

getYData

public double[][] getYData()
This method returns a reference to the yGroupData array, the array of y-values for group datasets.

Returns:
Returns a reference to the yGroupData array.

getYDataObj

public DoubleArray2D getYDataObj()
This method returns a reference to the internal DoubleArray2D object used to store the group y-values.

Returns:
Returns a reference to the internal DoubleArray2D object used to store the group y-values.

getYDataValue

public double getYDataValue(int ngroup,
                            int index)
This method resolves the generalized getYDataValue method int the abstract ChartDataset class.

Specified by:
getYDataValue in class ChartDataset
Parameters:
ngroup - Specifies the group of the y-value.
index - Specifies the index of the y-value.
Returns:
Returns the y-value of the data point at the specified index and group.

getYGroupDataValue

public double getYGroupDataValue(int ngroup,
                                 int index)
This method returns a y-value in a group dataset.

Parameters:
ngroup - Specifies the group number of the data value.
index - Specifies the index of the data value.
Returns:
Returns the y-value of the data point at the specified index and group.

initDataset

public void initDataset(java.lang.String sname,
                        double[] x,
                        double[][] y)
An initialization method that initializes the name, and the x- and y-values of a group dataset that uses floating point values.

Parameters:
sname - Specifies the name of the dataset.
x - An array that specifies the x-values of a group dataset.
y - An array that specifies the y-values of a group dataset.

initializeData

public void initializeData(double[] x,
                           double[][] y)
An initialization method that initializes the x- and y-values of a group dataset that uses floating point values.

Parameters:
x - An array that specifies the x-values of a group dataset.
y - An array that specifies the y-values of a group dataset.

insertGroupDataPoints

public int insertGroupDataPoints(double xvalue,
                                 double[] yvalue,
                                 int insertpoint)
Insert a data point at the specified location, increasing the size of the dataset by one.

Parameters:
xvalue - The x-value of the new data point to insert.
yvalue - An array, size [numberGroups], of the y-values of the data points to insert
insertpoint - The insertion point of the data. Zero based array indexing is used, so the 5th data point in the array has an index value of 4.
Returns:
Returns the value of the numberDatapoints field.

insertGroupDataPoints

public int insertGroupDataPoints(GroupPoint2D xyvalue,
                                 int insertpoint)
Insert a data point at the specified location, increasing the size of the dataset by one.

Parameters:
xyvalue - The x-value and y-values of the new data point to insert.
insertpoint - The insertion point of the data. Zero based array indexing is used, so the 5th data point in the array has an index value of 4.
Returns:
Returns the value of the numberDatapoints field.

isDataPointGood

public boolean isDataPointGood(int index)
This method checks if the point at the specified index for a simple dataset is valid.

Specified by:
isDataPointGood in class ChartDataset
Parameters:
index - Specifies the index to check in the xData and yData arrays.
Returns:
Returns true if the data point is valid.

isDataPointGood

public boolean isDataPointGood(int ngroup,
                               int index)
This method checks if the point at the specified index and group number for a group dataset is valid.

Parameters:
ngroup - Specifies the group number to check in the xData and yGroupData arrays.
index - Specifies the index to check in the xData and yGroupData arrays.
Returns:
Returns true if the data point is valid.

readGroupDataset

public void readGroupDataset(CSV csv,
                             java.lang.String filename,
                             int rowskip,
                             int columnskip)
This methods will open a text file and read the CSV (Comma Separated Value) formatted data values in that file. A CSV file can be created by popular spreadsheet and word processing programs. Some localization for different operating systems and locales can be handled by the modifying the default csv (CSV) object. The file can be organized so that the columns represent groups and the rows represent data values for each group (COLUMN_MAJOR), or the where the rows represent groups and the columns represent data values for each group (ROW_MAJOR). Use the ChartConstants.setOrientation method to initialize the csv argument for the proper data orientation.

Parameters:
csv - An instance of an CSV object.
filename - The name of the file.
rowskip - Skip this many rows before starting the read operation
columnskip - For each new row, skip this many columns before starting read.

readGroupDatasetAsResource

public void readGroupDatasetAsResource(CSV csv,
                                       java.io.BufferedReader pReader,
                                       int rowskip,
                                       int columnskip)
This methods will open a text file and read the CSV (Comma Separated Value) formatted data values in that file. A CSV file can be created by popular spreadsheet and word processing programs. Some localization for different operating systems and locales can be handled by the modifying the default csv (CSV) object. The file can be organized so that the columns represent groups and the rows represent data values for each group (COLUMN_MAJOR), or the where the rows represent groups and the columns represent data values for each group (ROW_MAJOR). Use the ChartConstants.setOrientation method to initialize the csv argument for the proper data orientation.

Parameters:
csv - An instance of an CSV object.
pReader - A BufferedReader data stream. Must support BufferedReader mark and reset methods.
rowskip - Skip this many rows before starting the read operation
columnskip - For each new row, skip this many columns before starting read.

resize

public void resize(int n)
Resizes the dataset, maintaining the original data. If the new dataset is larger the dataset is padded with zeros. If the new dataset is smaller the original data is truncated to the new size.

Parameters:
n - The new size of the dataset.

setAutoScaleNumberGroups

public void setAutoScaleNumberGroups(int autoscalenumgroups)
Sets the value of the number of groups used in auto axis calculations.

Parameters:
autoscalenumgroups - Sets the value of the autoScaleNumberGroups field.

setDataPoint

public void setDataPoint(int index,
                         ChartPoint2D p,
                         int ngroup)
Sets the x- and y-values for a data point in a group dataset.

Parameters:
p - Specifies the new x- and y-values for the data point at the specified index and group.
ngroup - Specifies the group number for the new data values.
index - Specifies the index for the new data values.

setDataPoint

public void setDataPoint(int index,
                         double x,
                         double y,
                         int ngroup)
Sets the x- and y-values for a data point in a group dataset.

Parameters:
index - Specifies the index for the new data values.
x - Specifies the new x-value for the data point at the specified index and group.
y - Specifies the new y-value for the data point at the specified index and group.
ngroup - Specifies the group number for the new data values.

setGroupData

public void setGroupData(double[][] ygroup)
This method sets the values of the yGroupData array, the array of group y-values for group datasets. If the circular buffer in in effect the buffer pointer is reset to 0.

Parameters:
ygroup - the new y-values.

setGroupDataColumn

public void setGroupDataColumn(double[] y,
                               int ncolumn)
Sets the y-values associated with a group dataset column index.

Parameters:
y - An array, size [numberGroups], the new y-values for the group dataset at specified column index.
ncolumn - Specifies the column index for the new data values.

setGroupDataColumn

public void setGroupDataColumn(double x,
                               double[] y,
                               int ncolumn)
Sets the x- and y-values associated with a group dataset column index.

Parameters:
x - Specifies the new x-value for the data point at the specified column index.
y - An array, size [numberGroups], that specifies the new y-values for the group dataset at the specified column index.
ncolumn - Specifies the column index for the new data values.

setGroupDataElement

public void setGroupDataElement(double y,
                                int nrow,
                                int ncolumn)
Sets the y-value at a specific row and column of a group dataset.

Parameters:
y - The new y-value for a group data value at the specific row and column.
nrow - Specifies the row index for the new data value.
ncolumn - Specifies the column index for the new data value.

setGroupDataRow

public void setGroupDataRow(double[] y,
                            int nrow)
Sets the y-values associated with a group dataset row index.

Parameters:
y - An array, size [numberDatapoints], the new y-values for the group dataset at specified row index.
nrow - Specifies the row index for the new data values.

setYDataValue

public void setYDataValue(int ngroup,
                          int index,
                          double y)
This method resolves the generalized setYDataValue method int the abstract ChartDataset class.

Specified by:
setYDataValue in class ChartDataset
Parameters:
y - Specifies the new y-value for the data point at the specified index and group.
ngroup - Specifies the group for the new data value.
index - Specifies the index for the new data value.

setYGroupDataValue

public void setYGroupDataValue(int ngroup,
                               int index,
                               double y)
Sets the y-value in a group dataset.

Parameters:
y - Specifies the new y-value for the data point at the specified index and group.
ngroup - Specifies the group number for the new data value.
index - Specifies the index for the new data value.

sortByX

public void sortByX(boolean ascending)
This method sorts the group dataset according to the x-values.

Parameters:
ascending - If true, the group dataset is sorted in an ascending order, by x-value. Otherwise it is sorted in descending order.

writeGroupDataset

public void writeGroupDataset(CSV csv,
                              java.lang.String filename)
This methods will create a text file and output the dataset to that file in a CSV (Comma Separated Value) format. A CSV file can be read by popular spreadsheet and word processing programs. Some localization for different operating systems and locales can be handled by the modifying the default csv (CSV) object. The file can be organized so that the columns represent groups and the rows represent data values for each group (COLUMN_MAJOR), or the where the rows represent groups and the columns represent data values for each group (ROW_MAJOR). Use the CSV.setOrientation method to initialize the csv argument for the proper data orientation.

Parameters:
csv - An instance of an CSV object.
filename - The name of the file.

writeGroupDataset

public void writeGroupDataset(CSV csv,
                              java.lang.String filename,
                              boolean append)
This methods will create a text file and output the dataset to that file in a CSV (Comma Separated Value) format. A CSV file can be read by popular spreadsheet and word processing programs. Some localization for different operating systems and locales can be handled by the modifying the default csv (CSV) object. The file can be organized so that the columns represent groups and the rows represent data values for each group (COLUMN_MAJOR), or the where the rows represent groups and the columns represent data values for each group (ROW_MAJOR). Use the CSV.setOrientation method to initialize the csv argument for the proper data orientation.

Parameters:
csv - An instance of an CSV object.
filename - The name of the file.
append - True and if the file exists, data is appended to the file.