com.quinncurtis.chart2djava
Class ChartSupport

java.lang.Object
  extended by com.quinncurtis.chart2djava.ChartObj
      extended by com.quinncurtis.chart2djava.ChartSupport
All Implemented Interfaces:
ChartConstants, java.lang.Cloneable

public class ChartSupport
extends ChartObj

This class provides support utilities.


Field Summary
 
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
ChartSupport()
           
 
Method Summary
static int adjustDecs(double r, int decs)
          This method adjusts the number of digits to the right of the decimal used to display axis labels.
static double antilog10Ex(double r)
          Converts a number to its anti log base 10 value.
static boolean bGoodValue(ChartPoint2D p)
          This method returns true if either the x or y value of a coordinate is equal to the designate bad value number, rBadDataValue.
static boolean bGoodValue(double x)
          Returns true if a value does not equal the designated bad data value.
static boolean bGoodValue(double x, double y)
          This method returns true if either the x or y value of a coordinate is equal to the designate bad value number, rBadDataValue.
static boolean bGoodValue(double x1, double y1, double z1)
          This method returns true if either the x, y or z value of a coordinate is equal to the designate bad value number, rBadDataValue.
static boolean bGoodValue(double x1, double y1, double x2, double y2)
          This method returns true if the end points of a line segment have coordinate values equal to the designate bad value number, rBadDataValue.
static boolean calcNearestPoint(PhysicalCoordinates transform, GroupDataset dataset, boolean coordswap, 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.
static boolean calcNearestPoint(PhysicalCoordinates transform, SimpleDataset dataset, boolean coordswap, 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.
static int clampInt(int i, int lowvalue1, int highvalue1)
          This method checks and limits the range of the input variable, preventing wild numeric overflows from propagating.
static double clampReal(double r, double lowvalue1, double highvalue1)
          This method checks and limits the range of the input variable, preventing wild numeric overflows from propagating.
static ChartPoint3D clampToViewCoordinates(ChartPoint3D p)
           
static double clampToViewCoordinates(double r)
          This method checks and limits the range of the input value from exceeding the value of +- USER_COORD_MAX.
 java.lang.Object clone()
          Returns an object that is a clone of this object.
static int findRelatedAxisLabels(int index, java.util.Vector<GraphObj> source)
          This method returns the index of the AxisLabels object embedded in the specified Axis object.
static int findRelatedAxisTitleAxis(int index, java.util.Vector<GraphObj> source)
          This method returns the index of the Axis object embedded in the specified AxisTitle object.
static int findRelatedGridAxes(int index, java.util.Vector<GraphObj> source, java.awt.Dimension axesresults)
          This method returns the indices of the Axis objects embedded in the specified Grid object.
static int findRelatedPolarAxesLabels(int index, java.util.Vector<GraphObj> source)
          This method returns the index of the PolarAxesLabels object embedded in the specified PolarAxes object.
static void fixCommonRangeError(ChartRectangle2D rect, double typicalmin, double typicalmax)
          This method checks and repairs common errors in specifying range limits for graphs.
static double[] floatToDoubleArray(float[] floatarray)
          This method will convert a double array to a float array, for those who have arrays of data in float format.
static java.awt.Color fromArgb(int alpha, int r, int g, int b)
          This method returns a color with the specified component values.
static int getCoordinateSystemType(PhysicalCoordinates transform)
          This method returns POLAR_POS if the coordinate system is of type PolarCoordinates, otherwise it returns PHYS_POS.
static double getDatasetsMax(ChartDataset[] datasets, int numdatasets, int naxis)
          This static method returns the maximum value in an array of SimpleDataset objects.
static double getDatasetsMin(ChartDataset[] datasets, int numdatasets, int naxis)
          This static method returns the minimum value in an array of SimpleDataset objects.
static double getDatasetsSumMax(GroupDataset[] datasets, int numdatasets, int naxis)
          This method is used by the auto-scale routines to determine the maximum scale value for "stacked" graphs that use group data.
static double getDatasetsSumMin(GroupDataset[] datasets, int numdatasets, int naxis)
          This method is used by the auto-scale routines to determine the minimum scale value for "stacked" graphs that use group data.
static int getFirstValidIndex(boolean[] valid, int n)
          This method returns index of the first valid point in an array of ChartPoint2D points.
static int getFirstValidIndex(ChartPoint2D[] p, int n)
          This method returns index of the first valid point in an array of ChartPoint2D points.
static int getFirstValidIndex(double[] x, double[] y, int n)
          This method returns index of the first valid xy value pair in a pair of x and y- coordinate arrays.
static int getFirstValidIndex(double[] r, int n)
          This method returns index of the first valid value in an array.
static double getFirstValidValue(double[] r, int n)
          This method returns the first valid value in an array.
static double getMaximum(double[] rbuffer)
          This method returns the maximum value in an array.
static double getMaximum(DoubleArray r)
          This method returns the maximum value in an array.
static double getMaximum(DoubleArray2D rc, BoolArray valid, int ngroup)
          This method returns the maximum value in a 2D array.
static double getMaximum(DoubleArray r, BoolArray valid)
          This method returns the maximum value in an array.
static double getMinimum(double[] rbuffer)
          This method returns the minimum value in an array.
static double getMinimum(DoubleArray r)
          This method returns the minimum value in an array.
static double getMinimum(DoubleArray2D rc, BoolArray valid, int ngroup)
          This method returns the minimum value in a 2D array.
static double getMinimum(DoubleArray r, BoolArray valid)
          This method returns the minimum value in an array.
static int getNumColumns(double[][] y)
          This method returns the number of columns in a 2D double array.
static int getNumColumns(java.util.GregorianCalendar[][] y)
          This method returns the number of columns in a 2D GregorianCalendar array.
static double getRandomDouble()
          This method returns a random value in the range 0.0 to 1.0.
static boolean isKindOf(java.lang.Object obj, java.lang.String typestring)
          This method checks to see if an object is of a specific com.quinncurtis.chart2dnet class type.
static boolean isKindOf(java.lang.Object obj, java.lang.String typestring, boolean appendqc)
          This method checks to see if an object is of a specific com.quinncurtis.chart2dnet class type.
static boolean isStackedPlotType(ChartPlot plotobj)
          This method returns true if a plot object is one of the stacked (STACKEDBAR or STACKEDLINE) chart types.
static boolean isType(java.lang.Object obj, java.lang.String typestring)
          This method checks to see if an object is of a specific com.quinncurtis.chart2dnet class type.
static double log10Abs(double r)
          Converts the absolute value of a number to its log base 10 value.
static double log10Ex(double r)
          Converts a number to its log base 10 value.
static DoubleArray makeCompressArray(int ctype, int wSkip, int lFirst, int lLast, DoubleArray source, BoolArray validflags)
          This methods creates and returns a new array that is the data reduced version of the source array.
static DoubleArray2D makeGroupCompressArray(int ctype, int wSkip, int lFirst, int lLast, DoubleArray2D source, BoolArray validflags)
          This methods creates and returns a new group data array that is the data reduced version of the source array.
static DoubleArray makeTimeCompressArray(int compresstimefield, int compresstype, int lFirst, int lLast, DoubleArray sourcetime, DoubleArray sourcey, BoolArray validflags)
          This methods creates and returns a new array of time based values that is the data reduced version of the source array of time based values.
static boolean nearTest(double a1, double a2, double threshold)
          This method returns true if the difference between two numbers is less than the specified threshold value.
static java.lang.String numToString(double num, int format, int decs, java.lang.String numStrPostfix)
          This method converts a numeric value to a string using the specified string format.
static void swapCoords(ChartPoint2D source)
           
static void swapCoords(ChartPoint2D dest, ChartPoint2D source)
          Swaps the values of two points
static double toDegrees(double radians)
          This method converts from radians to degrees.
static double toRadians(double degrees)
          This method converts from degrees to radians.
 
Methods inherited from class com.quinncurtis.chart2djava.ChartObj
copy, errorCheck, getChartObjIDCntr, getChartObjType, getThisChartObjID, TypeSafeVectorCopy
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChartSupport

public ChartSupport()
Method Detail

adjustDecs

public static int adjustDecs(double r,
                             int decs)
This method adjusts the number of digits to the right of the decimal used to display axis labels. Depending on the value, more digits may be needed than originally calculated to display the numeric value with sufficient precession.

Parameters:
r - The input value.
decs - The original calculated value for the number of digits to the right of the decimal point.
Returns:
Returns the adjusted value for the number of digits to the right of the decimal point.

antilog10Ex

public static double antilog10Ex(double r)
Converts a number to its anti log base 10 value.

Parameters:
r - A floating point value -30 to +30, representing the log base 10 of MIN_LOG_VALUE and log base 10 of MAX_LOG_VALUE.
Returns:
Returns the anti log base 10 of the value r.

bGoodValue

public static boolean bGoodValue(ChartPoint2D p)
This method returns true if either the x or y value of a coordinate is equal to the designate bad value number, rBadDataValue.

Parameters:
p - The x- and y-coordinates
Returns:
Returns true if either the x or y value of a coordinate is equal to the designate bad value number, rBadDataValue.

bGoodValue

public static boolean bGoodValue(double x)
Returns true if a value does not equal the designated bad data value.

Returns:
Returns true if a value does not equal the designated bad data value.

bGoodValue

public static boolean bGoodValue(double x,
                                 double y)
This method returns true if either the x or y value of a coordinate is equal to the designate bad value number, rBadDataValue.

Parameters:
x - The x-coordinate.
y - The y-coordinate.
Returns:
Returns true if either the x or y value of a coordinate is equal to the designate bad value number, rBadDataValue.

bGoodValue

public static boolean bGoodValue(double x1,
                                 double y1,
                                 double z1)
This method returns true if either the x, y or z value of a coordinate is equal to the designate bad value number, rBadDataValue.

Parameters:
x1 - The x-coordinate.
y1 - The y-coordinate.
z1 - The z-coordiante.
Returns:
Returns true if either the x, y or z value of a coordinate is equal to the designate bad value number, rBadDataValue.

bGoodValue

public static boolean bGoodValue(double x1,
                                 double y1,
                                 double x2,
                                 double y2)
This method returns true if the end points of a line segment have coordinate values equal to the designate bad value number, rBadDataValue.

Parameters:
x1 - The x-coordinate for the first point of the line segment.
y1 - The y-coordinate for the first point of the line segment.
x2 - The x-coordinate for the second point of the line segment.
y2 - The y-coordinate for the second point of the line segment.
Returns:
Returns true if any of the coordinate values are equal to the designate bad value number, rBadDataValue.

calcNearestPoint

public static boolean calcNearestPoint(PhysicalCoordinates transform,
                                       GroupDataset dataset,
                                       boolean coordswap,
                                       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: 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.

Parameters:
transform - The coordinate system of the test point.
dataset - The dataset that is checked for the nearest point.
coordswap - If the x-values in the dataset correspond to the x-coordinates of the chart coordinate system, specify false, otherwise specify true.
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.

calcNearestPoint

public static boolean calcNearestPoint(PhysicalCoordinates transform,
                                       SimpleDataset dataset,
                                       boolean coordswap,
                                       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: 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.

Parameters:
transform - The coordinate system of the test point.
dataset - The dataset that is checked for the nearest point.
coordswap - If the x-values in the dataset correspond to the x-coordinates of the chart coordinate system, specify false, otherwise specify true.
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.

clampInt

public static int clampInt(int i,
                           int lowvalue1,
                           int highvalue1)
This method checks and limits the range of the input variable, preventing wild numeric overflows from propagating.

Parameters:
i - The input variable.
lowvalue1 - The input variable is checked against this low value, and set equal to this value if the value is less than the low threshold.
highvalue1 - The input variable is checked against this high value, and set equal to this value if the value is greater than the high threshold.
Returns:
The original input variable is returned if the value was between the lowvalue1 and highvalue1 limits. Otherwise, the low value or high value limit is returned, depending on which threshold was exceeded.

clampReal

public static double clampReal(double r,
                               double lowvalue1,
                               double highvalue1)
This method checks and limits the range of the input variable, preventing wild numeric overflows from propagating.

Parameters:
r - The input variable.
lowvalue1 - The input variable is checked against this low value, and set equal to this value if the value is less than the low threshold.
highvalue1 - The input variable is checked against this high value, and set equal to this value if the value is greater than the high threshold.
Returns:
The original input variable is returned if the value was between the lowvalue1 and highvalue1 limits. Otherwise, the low value or high value limit is returned, depending on which threshold was exceeded.

clampToViewCoordinates

public static ChartPoint3D clampToViewCoordinates(ChartPoint3D p)

clampToViewCoordinates

public static double clampToViewCoordinates(double r)
This method checks and limits the range of the input value from exceeding the value of +- USER_COORD_MAX.

Parameters:
r - The input value.
Returns:
The original input variable is returned if the value was between +- USER_COORD_MAX . Otherwise, the low value or high value limit is returned, depending on which threshold was exceeded.

clone

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

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

findRelatedAxisLabels

public static int findRelatedAxisLabels(int index,
                                        java.util.Vector<GraphObj> source)
This method returns the index of the AxisLabels object embedded in the specified Axis object. It is used to "fixup" the Axis and AxisLabels objects after a viewport copy.

Parameters:
index - The index of the Axis in the source vector.
source - The vector of all GraphObj objects managed by a ChartView object.
Returns:
Returns the index of the AxisLabels object embedded in the specified Axis object.

findRelatedAxisTitleAxis

public static int findRelatedAxisTitleAxis(int index,
                                           java.util.Vector<GraphObj> source)
This method returns the index of the Axis object embedded in the specified AxisTitle object. It is used to "fixup" the AxisTitle objects after a viewport copy.

Parameters:
index - The index of the AxisTitle in the source vector.
source - The vector of all GraphObj objects managed by a ChartView object.
Returns:
Returns the index of the Axis object embedded in the specified AxisTitle object.

findRelatedGridAxes

public static int findRelatedGridAxes(int index,
                                      java.util.Vector<GraphObj> source,
                                      java.awt.Dimension axesresults)
This method returns the indices of the Axis objects embedded in the specified Grid object. It is used to "fixup" the Grid objects after a viewport copy.

Parameters:
index - The index of the Grid in the source vector.
source - The vector of all GraphObj objects managed by a ChartView object.
axesresults - Returns the index of the x-axis as axesresults.width, and the index of the y-axis Axis objectas axesresults.height.
Returns:
Returns the index of the Axis object that controls the grid line spacing, embedded in the specified Axis object.

findRelatedPolarAxesLabels

public static int findRelatedPolarAxesLabels(int index,
                                             java.util.Vector<GraphObj> source)
This method returns the index of the PolarAxesLabels object embedded in the specified PolarAxes object. It is used to "fixup" the PolarAxes and PolarAxesLabels objects after a viewport copy.

Parameters:
index - The index of the PolarAxes in the source vector.
source - The vector of all GraphObj objects managed by a ChartView object.
Returns:
Returns the index of the PolarAxesLabels object embedded in the specified PolarAxes object.

fixCommonRangeError

public static void fixCommonRangeError(ChartRectangle2D rect,
                                       double typicalmin,
                                       double typicalmax)
This method checks and repairs common errors in specifying range limits for graphs. The most common error is to set the minimum and maximum value for either the x-dimension or the y-dimension to be the same, resulting in a zero range. Another common error is scaling one of the endpoints of a logarithmic scale to a value less than or equal to 0.0. If any error is detected one or both values are changed to prevent further problems upstream.

Parameters:
rect - Passes in and returns the returns (adjusted if necessary) the x-dimension and y-dimesion minimum and maximum values.
typicalmin - The minimum allowable value to use in the check.
typicalmax - The The maximum allowable value to use in the check.

floatToDoubleArray

public static double[] floatToDoubleArray(float[] floatarray)
This method will convert a double array to a float array, for those who have arrays of data in float format.

Parameters:
floatarray - An array of floats.
Returns:
Returns the original float values converted to doubles.

fromArgb

public static java.awt.Color fromArgb(int alpha,
                                      int r,
                                      int g,
                                      int b)
This method returns a color with the specified component values.

Returns:
This method returns a color with the specified component values.

getCoordinateSystemType

public static int getCoordinateSystemType(PhysicalCoordinates transform)
This method returns POLAR_POS if the coordinate system is of type PolarCoordinates, otherwise it returns PHYS_POS.

Parameters:
transform - The source coordinate system.
Returns:
POLAR_POS if the coordinate system is of type PolarCoordinates, otherwise it returns PHYS_POS.

getDatasetsMax

public static double getDatasetsMax(ChartDataset[] datasets,
                                    int numdatasets,
                                    int naxis)
This static method returns the maximum value in an array of SimpleDataset objects.

Parameters:
datasets - An array, size [numdatasets], of SimpleDataset objects.
numdatasets - The number of datasets in the datasets array.
naxis - Specifies which coordinate to analyze, the x-coordinate (use the X_AXIS constant), or the y-coordinate (use the Y_AXIS constant).
Returns:
Returns the maximum value in the array of SimpleDataset objects.

getDatasetsMin

public static double getDatasetsMin(ChartDataset[] datasets,
                                    int numdatasets,
                                    int naxis)
This static method returns the minimum value in an array of SimpleDataset objects.

Parameters:
datasets - An array, size [numdatasets], of SimpleDataset objects.
numdatasets - The number of datasets in the datasets array.
naxis - Specifies which coordinate to analyze, the x-coordinate (use the X_AXIS constant), or the y-coordinate (use the Y_AXIS constant).
Returns:
Returns the minimum value in the array of SimpleDataset objects.

getDatasetsSumMax

public static double getDatasetsSumMax(GroupDataset[] datasets,
                                       int numdatasets,
                                       int naxis)
This method is used by the auto-scale routines to determine the maximum scale value for "stacked" graphs that use group data. For the x-coordinate it returns the maximum x-value in the passed in datasets. For the y-coordinate it returns the maximum of the sum across groups for of the passed in datasets. If the x-values use ChartCalendar dates, the equivalent of the date in seconds is returned.

Parameters:
datasets - An array, size [numdatasets], of GroupDataset objects.
numdatasets - The number of datasets in the datasets array.
naxis - Specifies which coordinate to analyze, the x-coordinate (use the X_AXIS constant), or the y-coordinate (use the Y_AXIS constant).
Returns:
Returns the maximum group value (as described above) for the specified coordinate.

getDatasetsSumMin

public static double getDatasetsSumMin(GroupDataset[] datasets,
                                       int numdatasets,
                                       int naxis)
This method is used by the auto-scale routines to determine the minimum scale value for "stacked" graphs that use group data. For the x-coordinate it returns the minimum x-value in the passed in datasets. For the y-coordinate it returns the minimum y-value value in group #0 of the passed in datasets. If the x-values use ChartCalendar dates, the equivalent of the date in seconds is returned.

Parameters:
datasets - An array, size [numdatasets], of GroupDataset objects.
numdatasets - The number of datasets in the datasets array.
naxis - Specifies which coordinate to analyze, the x-coordinate (use the X_AXIS constant), or the y-coordinate (use the Y_AXIS constant).
Returns:
Returns the minimum group value (as described above) for the specified coordinate.

getFirstValidIndex

public static int getFirstValidIndex(boolean[] valid,
                                     int n)
This method returns index of the first valid point in an array of ChartPoint2D points.

Parameters:
valid - An array of boolean values.
n - The number of elements in the array.
Returns:
Returns the index of the first valid xy value pair in the x and y-coordinate arrays.

getFirstValidIndex

public static int getFirstValidIndex(ChartPoint2D[] p,
                                     int n)
This method returns index of the first valid point in an array of ChartPoint2D points.

Parameters:
p - An array of points.
n - The number of elements in the array.
Returns:
Returns the index of the first valid xy value pair in the x and y-coordinate arrays.

getFirstValidIndex

public static int getFirstValidIndex(double[] x,
                                     double[] y,
                                     int n)
This method returns index of the first valid xy value pair in a pair of x and y- coordinate arrays.

Parameters:
x - An array of x-coordinate values.
y - An array of y-coordinate values.
n - The number of elements in the array.
Returns:
Returns the index of the first valid xy value pair in the x and y-coordinate arrays.

getFirstValidIndex

public static int getFirstValidIndex(double[] r,
                                     int n)
This method returns index of the first valid value in an array.

Parameters:
r - An array of doubles.
n - The number of elements in the array.
Returns:
Returns the index of the first valid value in the array.

getFirstValidValue

public static double getFirstValidValue(double[] r,
                                        int n)
This method returns the first valid value in an array.

Parameters:
r - An array of doubles.
n - The number of elements in the array.
Returns:
Returns the first valid value in the array.

getMaximum

public static double getMaximum(double[] rbuffer)
This method returns the maximum value in an array.

Parameters:
rbuffer - An array that contains the data values to check.
Returns:
Returns the maximum value in the array, r.

getMaximum

public static double getMaximum(DoubleArray r)
This method returns the maximum value in an array.

Parameters:
r - An array that contains the data values to check.
Returns:
Returns the maximum value in the array, r.

getMaximum

public static double getMaximum(DoubleArray2D rc,
                                BoolArray valid,
                                int ngroup)
This method returns the maximum value in a 2D array.

Parameters:
rc - A 2D array that contains the data values to check.
valid - An array that specifies a true or false value for every value in the r array, specifying if the value is valid.
ngroup - Number of groups to analyze in array.
Returns:
Returns the maximum value in the array, r.

getMaximum

public static double getMaximum(DoubleArray r,
                                BoolArray valid)
This method returns the maximum value in an array.

Parameters:
r - An array that contains the data values to check.
valid - An array that specifies a true or false value for every value in the r array, specifying if the value is valid.
Returns:
Returns the maximum value in the array, r.

getMinimum

public static double getMinimum(double[] rbuffer)
This method returns the minimum value in an array.

Parameters:
rbuffer - An array that contains the data values to check.
Returns:
Returns the minimum value in the array, r.

getMinimum

public static double getMinimum(DoubleArray r)
This method returns the minimum value in an array.

Parameters:
r - An array that contains the data values to check.
Returns:
Returns the minimum value in the array, r.

getMinimum

public static double getMinimum(DoubleArray2D rc,
                                BoolArray valid,
                                int ngroup)
This method returns the minimum value in a 2D array.

Parameters:
rc - A 2D array that contains the data values to check.
valid - An array that specifies a true or false value for every value in the r array, specifying if the value is valid.
ngroup - Number of groups to analyze in array.
Returns:
Returns the minimum value in the array, r.

getMinimum

public static double getMinimum(DoubleArray r,
                                BoolArray valid)
This method returns the minimum value in an array.

Parameters:
r - An array that contains the data values to check.
valid - An array that specifies a true or false value for every value in the r array, specifying if the value is valid.
Returns:
Returns the minimum value in the array, r.

getNumColumns

public static int getNumColumns(double[][] y)
This method returns the number of columns in a 2D double array.

Returns:
This method returns the number of columns in a 2D double array.

getNumColumns

public static int getNumColumns(java.util.GregorianCalendar[][] y)
This method returns the number of columns in a 2D GregorianCalendar array.

Returns:
This method returns the number of columns in a 2D GregorianCalendar array.

getRandomDouble

public static double getRandomDouble()
This method returns a random value in the range 0.0 to 1.0.

Returns:
Returns a random value in the range 0.0 to 1.0.

isKindOf

public static boolean isKindOf(java.lang.Object obj,
                               java.lang.String typestring)
This method checks to see if an object is of a specific com.quinncurtis.chart2dnet class type. The method will return true if the object matches the class specified by the type string, or if any super class of the object matches.

Parameters:
obj - The com.quinncurtis.chart2dnet object that is tested.
typestring - A string representing a com.quinncurtis.chart2dnet class. For example, the string "Obj" will result in true being returned for all com.quinncurtis.chart2dnet objects since all objects have Obj as a super class. The string "MultiLinePlot" will only return true if the test object of the MultiLinePlot type.
Returns:
Returns true if the object matches the class specified by the type string, or if any super class of the object matches.

isKindOf

public static boolean isKindOf(java.lang.Object obj,
                               java.lang.String typestring,
                               boolean appendqc)
This method checks to see if an object is of a specific com.quinncurtis.chart2dnet class type. The method will return true if the object matches the class specified by the type string, or if any super class of the object matches.

Parameters:
obj - The com.quinncurtis.chart2dnet object that is tested.
typestring - A string representing a com.quinncurtis.chart2dnet class. For example, the string "Obj" will result in true being returned for all com.quinncurtis.chart2dnet objects since all objects have Obj as a super class. The string "MultiLinePlot" will only return true if the test object of the MultiLinePlot type.
appendqc - True appends "com.quinncurtis.chart2dnet." to the front of the type string.
Returns:
Returns true if the object matches the class specified by the type string, or if any super class of the object matches.

isStackedPlotType

public static boolean isStackedPlotType(ChartPlot plotobj)
This method returns true if a plot object is one of the stacked (STACKEDBAR or STACKEDLINE) chart types.

Parameters:
plotobj - The plot object to test.
Returns:
This method returns true if a plot object is one of the stacked (STACKEDBAR or STACKEDLINE) chart types.

isType

public static boolean isType(java.lang.Object obj,
                             java.lang.String typestring)
This method checks to see if an object is of a specific com.quinncurtis.chart2dnet class type. The method will return true if the object matches the class specified by the type string, or if any super class of the object matches.

Parameters:
obj - The com.quinncurtis.chart2dnet object that is tested.
typestring - A string representing a com.quinncurtis.chart2dnet class. For example, the string "Obj" will result in true being returned for all com.quinncurtis.chart2dnet objects since all objects have Obj as a super class. The string "MultiLinePlot" will only return true if the test object of the MultiLinePlot type.
Returns:
Returns true if the object matches the class specified by the type string, or if any super class of the object matches.

log10Abs

public static double log10Abs(double r)
Converts the absolute value of a number to its log base 10 value.

Parameters:
r - A floating point value in the positive range MIN_LOG_VALUE to MAX_LOG_VALUE.
Returns:
Returns the log base 10 value of abs(r).

log10Ex

public static double log10Ex(double r)
Converts a number to its log base 10 value.

Parameters:
r - A floating point value in the positive range MIN_LOG_VALUE to MAX_LOG_VALUE.
Returns:
Returns the log base 10 value of r. The return value for input values less than or equal to 0 is 1 to minimize undesirable chart side affects.

makeCompressArray

public static DoubleArray makeCompressArray(int ctype,
                                            int wSkip,
                                            int lFirst,
                                            int lLast,
                                            DoubleArray source,
                                            BoolArray validflags)
This methods creates and returns a new array that is the data reduced version of the source array. The new, compressed array will contain ((endindex - startindex + 1) / wSkip) datapoints.

Parameters:
ctype - The compression type for the source values. Use one of the data compression type constants: DATACOMPRESS_NONE (returns an array containing the points in the specified range, no compression), DATACOMPRESS_SKIP (sample the array every interval points), DATACOMPRESS_AVERAGE (use the average value in each interval of wSkip points), DATACOMPRESS_MIN (use the minimum value in each interval of wSkip points), DATACOMPRESS_MAX (use the maximum value in each interval of wSkip points), and DATACOMPRESS_MINMAX (use the minimum and maximum value in each interval of wSkip points).
wSkip - The number of data points in each segment that is reduced to a single datapoint (the interval is wSkip 2 for the DATACOMPRESS_MINMAX compression type because it is reduced to two data points, min and max) in the compressed dataset.
lFirst - The starting point, inclusive, in the source array for the data compression.
lLast - The ending index, inclusive, in the source array for the data compression.
source - The source array of data to be reduced.
validflags - An array, the same size as the source array, that specify whether individual data points in the source array are valid.
Returns:
Returns the new, compressed array, size (endindex - startindex + 1) / wSkip).

makeGroupCompressArray

public static DoubleArray2D makeGroupCompressArray(int ctype,
                                                   int wSkip,
                                                   int lFirst,
                                                   int lLast,
                                                   DoubleArray2D source,
                                                   BoolArray validflags)
This methods creates and returns a new group data array that is the data reduced version of the source array. The new, compressed array will have dimensions of [ngroups,((endindex - startindex + 1) / wSkip)].

Parameters:
ctype - The compression type for the source values. Use one of the data compression type constants: DATACOMPRESS_NONE (returns an array containing the points in the specified range, no compression), DATACOMPRESS_SKIP (sample the array every interval points), DATACOMPRESS_AVERAGE (use the average value in each interval of wSkip points), DATACOMPRESS_MIN (use the minimum value in each interval of wSkip points), DATACOMPRESS_MAX (use the maximum value in each interval of wSkip points), and DATACOMPRESS_MINMAX (use the minimum and maximum value in each interval of wSkip points).
wSkip - The number of data points in each segment that is reduced to a single datapoint (the interval is wSkip 2 for the DATACOMPRESS_MINMAX compression type because it is reduced to two data points, min and max) in the compressed dataset.
lFirst - The starting point, inclusive, in the source array for the data compression.
lLast - The ending index, inclusive, in the source array for the data compression.
source - The source array (2D array of group data dimensioned as [ngrups,numpoints]) of data to be reduced.
validflags - An array, the size [numpoints], that specify whether a given index (source[,index]) in the source array is valid.
Returns:
Returns the new, compressed array with dimensions of [ngroups,((endindex - startindex + 1) / wSkip)].

makeTimeCompressArray

public static DoubleArray makeTimeCompressArray(int compresstimefield,
                                                int compresstype,
                                                int lFirst,
                                                int lLast,
                                                DoubleArray sourcetime,
                                                DoubleArray sourcey,
                                                BoolArray validflags)
This methods creates and returns a new array of time based values that is the data reduced version of the source array of time based values. The values are compressed in the time dimension so that all values with the same compresstimefield value are grouped together and summarized with a single value. For example, the original data represends hourly data and you select a compresstimefield value of ChartConstants.DAY_OF_YEAR, the hourly data will be compressed to a single value for that day. One years worth of data, 24 x 365 values in this case, will be reduced to 365 values.

Parameters:
compresstimefield - All values with the same time field value are compressed to a single value. Use one of the time field constants in the - ChartConstants.YEAR, ChartConstants.MONTH, ChartConstants.WEEK_OF_YEAR, ChartConstants.WEEK_OF_MONTH, ChartConstants.DAY_OF_YEAR, ChartConstants.HOUR_OF_DAY, ChartConstants.MINUTE.
compresstype - The compression type for the source values. Use one of the data compression type constants: DATACOMPRESS_NONE (returns an array containing the points in the specified range, no compression), DATACOMPRESS_SKIP (sample the array every interval points), DATACOMPRESS_AVERAGE (use the average value in each interval of wSkip points), DATACOMPRESS_MIN (use the minimum value in each interval of wSkip points), DATACOMPRESS_MAX (use the maximum value in each interval of wSkip points), and DATACOMPRESS_MINMAX (use the minimum and maximum value in each interval of wSkip points).
lFirst - The starting point, inclusive, in the source array for the data compression.
lLast - The ending index, inclusive, in the source array for the data compression.
sourcetime - The source time array for the data to be reduced. It must be time based values.
sourcey - The source array that is actually reduced. It can be either numeric y-values, or time based values.
validflags - An array, the same size as the source array, that specify whether individual data points in the source array are valid.
Returns:
Returns the new, compressed array.

nearTest

public static boolean nearTest(double a1,
                               double a2,
                               double threshold)
This method returns true if the difference between two numbers is less than the specified threshold value.

Parameters:
a1 - The first of two numbers.
a2 - The second of two numbers.
threshold - The threshold value.
Returns:
Returns true if (abs(a2-a1) less than threshold).

numToString

public static java.lang.String numToString(double num,
                                           int format,
                                           int decs,
                                           java.lang.String numStrPostfix)
This method converts a numeric value to a string using the specified string format.

Parameters:
num - The input number.
format - The numeric format used in the conversion. Use one of the axis label format constants: DECIMALFORMAT, SCIENTIFICFORMAT, BUSINESSFORMAT, ENGINEERINGFORMAT, PERCENTFORMAT, BUSINESSCURRENCYFORMAT, CURRENCYFORMAT.
decs - The number of digits to display to the right of the decimal point.
numStrPostfix - A string specifying the post fix charactors for the BUSINESSFORMAT and BUSINESSCURRENCYFORMAT. The default string is "KMBT".
Returns:
Returns the value of num as a formatted string.

swapCoords

public static void swapCoords(ChartPoint2D source)

swapCoords

public static void swapCoords(ChartPoint2D dest,
                              ChartPoint2D source)
Swaps the values of two points

Parameters:
dest - The first point.
source - The second point.

toDegrees

public static double toDegrees(double radians)
This method converts from radians to degrees.

Parameters:
radians - The radians to convert.
Returns:
Returns the value of radians in degrees.

toRadians

public static double toRadians(double degrees)
This method converts from degrees to radians.

Parameters:
degrees - The degrees to convert.
Returns:
Returns the value of degrees in radians.