com.quinncurtis.spcchartjava
Class SPCChartBase

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by com.quinncurtis.chart2djava.ChartView
                      extended by com.quinncurtis.spcchartjava.SPCChartBase
All Implemented Interfaces:
ChartConstants, java.awt.event.AdjustmentListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.accessibility.Accessible
Direct Known Subclasses:
SPCBatchAttributeControlChart, SPCBatchVariableControlChart, SPCTimeAttributeControlChart, SPCTimeVariableControlChart

public class SPCChartBase
extends ChartView
implements java.awt.event.AdjustmentListener

The base class for all SPC Charts. The varaible control charts and attribute control charts are both derived from this base class. It contains objects for the SPC data, chart table, two charts and two histograms.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Field Summary
static int ALARM_HIGHLIGHT_BAR
          Alarm highlight constant: Bar alarm highlight
static int ALARM_HIGHLIGHT_NONE
          Alarm highlight constant: No alarm highlight
static int ALARM_HIGHLIGHT_OUTLINE
          Alarm highlight constant: Outline alarm highlight
static int ALARM_HIGHLIGHT_SYMBOL
          Chart alarm emphasis mode for scatter plot symbol
static int ALARM_HIGHLIGHT_TEXT
          Alarm highlight constant: Text alarm highlight
static int ALARM_NO_HIGHLIGHT_SYMBOL
          Chart alarm emphasis mode for scatter plot symbol
 
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
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, chartObjIDCntr, chartObjType, 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, thisChartObjID, 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
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
SPCChartBase()
          The default class constructor.
SPCChartBase(int charttype, int numcategories, int numsamplespersubgroup, int numdatapointsinview, int timeincrementminutes)
          This constructor initializes the most important values in the creattion of an SPC chart.
SPCChartBase(java.awt.Rectangle positionRect, javax.swing.JPanel parent, int charttype, int numcategories, int numsamplespersubgroup, int numdatapointsinview, int timeincrementminutes)
          This constructor initializes the most important values in the creattion of an SPC chart.
 
Method Summary
 int addAnnotation(int chart, java.util.GregorianCalendar x, double y, ChartText textobj)
          Add a simple annotation at a specific point in the specified SPC chart.
 int addAnnotation(int chart, int datapointindex, ChartText textobj)
          Add a simple annotation to a data point in the specified SPC chart.
 int addAnnotation(int chart, int datapointindex, java.lang.String text)
          Add a simple annotation to a data point in the specified SPC chart.
 int addAnnotation(SPCChartObjects chartobjects, java.util.GregorianCalendar x, double y, ChartText textobj)
          Add a simple annotation at a specific point in the specified SPC chart.
 int addAnnotation(SPCChartObjects chartobjects, int datapointindex, ChartText textobj)
          Add a simple annotation to a data point in the specified SPC chart.
 int addAnnotation(SPCChartObjects chartobjects, int datapointindex, java.lang.String text)
          Add a simple annotation to a data point in the specified SPC chart.
 void adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
          The event delegate used to process changes in the scroll bar.
 void autoCalculateControlLimits()
          Using the current sampled data values, high, target and low control limits are calculated for both primary and secondary charts using an algorithim appropriate to the SPC chart type.
 void autoCalculatePrimaryControlLimits()
          Using the current sampled data values, high, target and low control limits are calculated for the primary chart using an algorithim appropriate to the SPC chart type.
 void autoCalculateSecondaryControlLimits()
          Using the current sampled data values, high, target and low control limits are calculated for the primary chart using an algorithim appropriate to the SPC chart type.
 void autoScaleChartYRange(SPCChartObjects chartobjects)
          Auto-scale the y-range of the SPC chart so that all of the sampled data and chart control limits are within the bounds of the y-axis.
 void autoScalePrimaryChartYRange()
          Auto-scale the y-range of the primary SPC chart so that all of the sampled data and chart control limits are within the bounds of the y-axis.
 void autoScaleSecondaryChartYRange()
          Auto-scale the y-range of the SPC chart so that all of the sampled data and chart control limits are within the bounds of the y-axis.
 void copy(SPCChartBase source)
          Copies the source object.
 void draw(java.awt.Graphics2D g)
          Overrides the Draw method of the underlying ChartView class, so that the scroll bar can be properly repositioned if the size of the window changes.
 boolean getAutoLogAlarmsAsNotes()
          Get true to automatically log alarm conditions to the samples intervals notes object.
 double getBottomLabelMargin()
          Get an additional margin, in normalized coordinates, if only the primary graphs is displayed, allowing for the x-axis labels
 double getCalculatedValueHistoryStatistic(int index, int stattype)
          Calculate a process statistic.
 int getChartAlarmEmphasisMode()
          Get the chart alarm emphasis mode
 SPCControlChartData getChartData()
          Get the object that holds the descriptive text, sampled and calculated values associated with the control chart.
 boolean getChartInitialized()
          Returns true if the control chart has been initialized at least once.
 SPCGeneralizedTableDisplay getChartTable()
          Get the object that holds the data table information needed to display the data table along with the chart
static java.lang.String getDefaultChartFontString()
          Get the default font used in the table display.
 double getDefaultControlLimitSigma()
          Get that SPC control limits are to be calculated using the 3 sigma level standard.
 boolean getEnableAlarmStatusValues()
          If set true enables the alarm status row of the data table
 boolean getEnableCalculatedValues()
          If set true enables the calculated values rows of the data table
 boolean getEnableCategoryValues()
          If set true enables the category or sample values rows of the data table
 boolean getEnableDataToolTip()
          If set true enables data tooltips
 boolean getEnableInputStringsDisplay()
          If set true enables the input string rows of the data table
 boolean getEnableNotes()
          If set true enables the notes row of the data table
 boolean getEnableNotesToolTip()
          If set true enables data tooltips
 boolean getEnableProcessCapabilityValues()
          If set true enables the process capability values rows of the data table
 boolean getEnableScrollBar()
          If set true the scroll bar is added to the bottom of the chart.
 boolean getEnableTimeValues()
          If set true enables the time row of the data table
 boolean getEnableTotalSamplesValues()
          If set true enables the total of sampled values row of the data table
 double getGraphBottomPos()
          Get the bottom edge, using normalized coordinates, of the plotting area for the secondary chart
 double getGraphStartPosX()
          Get the left edge, using normalized coordinates, of the plotting area for both primary and secondary charts
 double getGraphStartPosY1()
          Get the top edge, using normalized coordinates, of the plotting area for the primary chart
 double getGraphStartPosY2()
          Get the top edge, using normalized coordinates, of the plotting area for the secondary chart
 double getGraphStopPosX()
          Get the right edge, using normalized coordinates, of the plotting area for both primary and secondary charts
 double getGraphStopPosY1()
          Get the bottom edge, using normalized coordinates, of the plotting area for the primary chart
 double getGraphStopPosY2()
          Get the bottom edge, using normalized coordinates, of the plotting area for the secondary chart
 double getGraphTopTableOffset()
          Get the offset of the top of the primary chart from the bottom of the data table, using normalized coordinates
 int getHeaderStringsLevel()
          Get the level of header strings to include in the chart.
static java.lang.String getHighAlarmStatusString()
          Get the indicator of a high alarm in the alarm status field of the table.
 javax.swing.JScrollBar getHScrollBar()
          Get a reference to the charts scrollbar.
 double getInterGraphMargin()
          Get the margin, in normalized coordinates, between the primary and seconday charts
static java.lang.String getLowAlarmStatusString()
          Get the indicator of a low alarm in the alarm status field of the table.
 SPCChartObjects getPrimaryChart()
          Get the object that holds he the chart objects needed to display the primary chart
 double getScrollBarBottomPosition()
          Get the bottom edge, using normalized coordinates, of the optional scroll bar
 int getScrollBarPixelHeight()
          Get the height of the scrollbar in pixels
 SPCChartObjects getSecondaryChart()
          Get the object that holds he the chart objects needed to display the secondary chart
 int getSPCChartType()
          Specifies the control chart type: use one of the SPCControlChartData chart type constants: MEAN_RANGE_CHART, MEDIAN_RANGE_CHART, MEAN_SIGMA_CHART, INDIVIDUAL_RANGE_CHART, CUSTOM_ATTRIBUTE_CONTROL_CHART, PERCENT_DEFECTIVE_PARTS_CHART, FRACTION_DEFECTIVE_PARTS_CHART, NUMBER_DEFECTIVE_PARTS_CHART, NUMBER_DEFECTS_CHART, NUMBER_DEFECTS_PERUNIT_CHART .
 int getTableAlarmEmphasisMode()
          Get the table alarm emphasis mode
 double getTableStartPosY()
          Get the top edge, using normalized coordinates, of the SPC chart table
 int getXScaleMode()
          Get whether the x-axis is time based, or numeric based.
 void initSPCChartBase(int charttype, int numcategories, int numsamplespersubgroup, int numdatapointsinview, double timeincrementminutes)
          This initialization method initializes the most important values in the creattion of an SPC chart.
 boolean isTimeScale(PhysicalCoordinates ptransform)
          Returns true if the coordinate system has a time based x-axis.
 boolean isVariableSampleSizeControlChart()
          Returns true if the control chart is one of the Variable Sample Size control charts: MEAN_SIGMA_CHART_VSS, FRACTION_DEFECTIVE_PARTS_CHART_VSS, PERCENT_DEFECTIVE_PARTS_CHART_VSS, NUMBER_DEFECTS_PERUNIT_CHART_VSS, EWMA_CHART.
 void makeControlLinePlot(PhysicalCoordinates ptransform, SPCControlPlotObjectData plotobjdata)
          Draw a control line, either a simple straight line, or a variable control line, for the specified chart.
 void postAddCustomChartObjects()
          Override this method if you want to add custom chart objects to the ChartView, after the standard SPC Chart objects are added.
 void preAddCustomChartObjects()
          Override this method if you want to add custom chart objects to the ChartView, before the standard SPC Chart objects are added.
 void rebuildChartUsingCurrentData()
          Rebuild the graph taking into account the most recent data values.
 void rescaleGraphsToScrollbar(int scrollpos)
          Rescale primary and secondary charts based on the position of the value of the scroll bar.
 void resetSPCChartData()
          Reset the history buffers of all of the SPC data objects.
 void setAutoLogAlarmsAsNotes(boolean value)
          Set true to automatically log alarm conditions to the samples intervals notes object.
 void setBottomLabelMargin(double value)
          Set an additional margin, in normalized coordinates, if only the primary graphs is displayed, allowing for the x-axis labels
 void setChartAlarmEmphasisMode(int value)
          Set the chart alarm emphasis mode
static void setDefaultChartFontString(java.lang.String value)
          Set the default font used in the table display.
 void setDefaultControlLimitSigma(double value)
          Set that SPC control limits are to be calculated using the 3 sigma level standard.
 void setEnableAlarmStatusValues(boolean value)
          Returns true if alarm status row enabled
 void setEnableCalculatedValues(boolean value)
          If set true enables the calculated values rows of the data table
 void setEnableCategoryValues(boolean value)
          If set true enables the category or sample values rows of the data table
 void setEnableDataToolTip(boolean value)
          If set true enables data tooltips
 void setEnableInputStringsDisplay(boolean value)
          If set true enables the input string rows of the data table
 void setEnableNotes(boolean value)
          If set true enables the notes row of the data table
 void setEnableNotesToolTip(boolean value)
          If set true enables data tooltips
 void setEnableProcessCapabilityValues(boolean value)
          If set true enables the process capability values rows of the data table
 void setEnableScrollBar(boolean value)
          If set true the scroll bar is added to the bottom of the chart.
 void setEnableTimeValues(boolean value)
          If set true enables the time row of the data table
 void setEnableTotalSamplesValues(boolean value)
          If set true enables the total of sampled values row of the data table
 void setGraphBottomPos(double value)
          Set the bottom edge, using normalized coordinates, of the plotting area for the secondary chart
 void setGraphStartPosX(double value)
          Set the left edge, using normalized coordinates, of the plotting area for both primary and secondary charts
 void setGraphStopPosX(double value)
          Set the right edge, using normalized coordinates, of the plotting area for both primary and secondary charts
 void setGraphTopTableOffset(double value)
          Set the offset of the top of the primary chart from the bottom of the data table, using normalized coordinates
 void setHeaderStringsLevel(int value)
          Set the level of header strings to include in the chart.
static void setHighAlarmStatusString(java.lang.String value)
          Set the indicator of a high alarm in the alarm status field of the table.
 void setInterGraphMargin(double value)
          Set the margin, in normalized coordinates, between the primary and seconday charts
static void setLowAlarmStatusString(java.lang.String value)
          Set the indicator of a low alarm in the alarm status field of the table.
 void setPrimaryChart(SPCChartObjects value)
          Get the object that holds he the chart objects needed to display the primary chart
 void setScrollBarBottomPosition(double value)
          Set the bottom edge, using normalized coordinates, of the optional scroll bar
 void setScrollBarPixelHeight(int value)
          Set the height of the scrollbar in pixels
 void setSecondaryChart(SPCChartObjects value)
          Get the object that holds he the chart objects needed to display the secondary chart
 void setSPCChartType(int value)
          Specifies the control chart type: use one of the SPCControlChartData chart type constants: MEAN_RANGE_CHART, MEDIAN_RANGE_CHART, MEAN_SIGMA_CHART, INDIVIDUAL_RANGE_CHART, CUSTOM_ATTRIBUTE_CONTROL_CHART, PERCENT_DEFECTIVE_PARTS_CHART, FRACTION_DEFECTIVE_PARTS_CHART, NUMBER_DEFECTIVE_PARTS_CHART, NUMBER_DEFECTS_CHART, NUMBER_DEFECTS_PERUNIT_CHART .
 void setTableAlarmEmphasisMode(int value)
          Set the table alarm emphasis mode
 void setTableStartPosY(double value)
          Get the top edge, using normalized coordinates, of the SPC chart table
 void setXScaleMode(int value)
          Set whether the x-axis is time based, or numeric based.
 void updateControlLimitLabel(PhysicalCoordinates ptransform, SPCControlPlotObjectData controllimitdata, int xjust, int yjust)
          Creates a numeric label of the control limit, and adds the numeric label to the spc chart.
 void useNoTable(boolean primary, boolean secondary, boolean histograms, java.lang.String title)
          Skip the table part and just have a title.
 
Methods inherited from class com.quinncurtis.chart2djava.ChartView
addChartObject, addDLL, calcResizedWindowFontMultiplier, checkMode, clone, copy, deleteChartObject, drawObject, enabledNoDraw, findObj, findObj, getBackgroundDrawEnable, getChartObjectsVector, getDefaultPreferredSize, getLicensePath, getMinimumSize, getPreferredSize, getRenderingHints, getResizeMode, getResizeMultiplier, getViewport, getZOrderSortEnable, loadLicenseFileAsResource, paintBorder, paintComponent, paintComponents, postDraw, preDraw, resetChartObjectList, resetPreviousChartObjectList, resetViewport, setBackgroundDrawEnable, setDefaultPreferredSize, setLicensePath, setMinimumSize, setPreferredSize, setPreferredSize, setRenderingHints, setRenderingHints, setResizeMode, setResizeMultiplier, setZOrderSortEnable, sortChartObjectsByZOrder, updateDraw, updateDraw
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setNextFocusableComponent, setOpaque, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ALARM_HIGHLIGHT_BAR

public static final int ALARM_HIGHLIGHT_BAR
Alarm highlight constant: Bar alarm highlight

See Also:
Constant Field Values

ALARM_HIGHLIGHT_NONE

public static final int ALARM_HIGHLIGHT_NONE
Alarm highlight constant: No alarm highlight

See Also:
Constant Field Values

ALARM_HIGHLIGHT_OUTLINE

public static final int ALARM_HIGHLIGHT_OUTLINE
Alarm highlight constant: Outline alarm highlight

See Also:
Constant Field Values

ALARM_HIGHLIGHT_SYMBOL

public static final int ALARM_HIGHLIGHT_SYMBOL
Chart alarm emphasis mode for scatter plot symbol

See Also:
Constant Field Values

ALARM_HIGHLIGHT_TEXT

public static final int ALARM_HIGHLIGHT_TEXT
Alarm highlight constant: Text alarm highlight

See Also:
Constant Field Values

ALARM_NO_HIGHLIGHT_SYMBOL

public static final int ALARM_NO_HIGHLIGHT_SYMBOL
Chart alarm emphasis mode for scatter plot symbol

See Also:
Constant Field Values
Constructor Detail

SPCChartBase

public SPCChartBase()
The default class constructor.


SPCChartBase

public SPCChartBase(int charttype,
                    int numcategories,
                    int numsamplespersubgroup,
                    int numdatapointsinview,
                    int timeincrementminutes)
This constructor initializes the most important values in the creattion of an SPC chart.

Parameters:
charttype - The SPC chart type parameter. Use one of the SPCControlChartData SPC chart types: MEAN_RANGE_CHART, MEDIAN_RANGE_CHART, MEAN_SIGMA_CHART, INDIVIDUAL_RANGE_CHART, CUSTOM_ATTRIBUTE_CONTROL_CHART, PERCENT_DEFECTIVE_PARTS_CHART, FRACTION_DEFECTIVE_PARTS_CHART, NUMBER_DEFECTIVE_PARTS_CHART, NUMBER_DEFECTS_CHART, NUMBER_DEFECTS_PERUNIT_CHART .
numcategories - For Variable Control Charts (MEAN_RANGE_CHART, MEDIAN_RANGE_CHART, MEAN_SIGMA_CHART, INDIVIDUAL_RANGE_CHART) this value specifies the number of samples that make up a sample subgroup. In Attribute Control Charts this value represents the number of defect categories used to determine defect counts.
numsamplespersubgroup - In Variable Control charts this value is the same as numcategories, it represents the number of samples that make up a sample subgroup. In an Attribute Control chart it represents the total sample size per sample subgroup from which the defect data is counted.
numdatapointsinview - Specifies the number of sample subgroups displayed in the graph at one time. *
timeincrementminutes - Specifies the normal time increment between adjacent subgroup samples. *

SPCChartBase

public SPCChartBase(java.awt.Rectangle positionRect,
                    javax.swing.JPanel parent,
                    int charttype,
                    int numcategories,
                    int numsamplespersubgroup,
                    int numdatapointsinview,
                    int timeincrementminutes)
This constructor initializes the most important values in the creattion of an SPC chart.

Parameters:
positionRect - Specifies the position of ChartView in the parent Form.
parent - The parent form the ChartView is placed in.
charttype - The SPC chart type parameter. Use one of the SPCControlChartData SPC chart types: MEAN_RANGE_CHART, MEDIAN_RANGE_CHART, MEAN_SIGMA_CHART, INDIVIDUAL_RANGE_CHART, CUSTOM_ATTRIBUTE_CONTROL_CHART, PERCENT_DEFECTIVE_PARTS_CHART, FRACTION_DEFECTIVE_PARTS_CHART, NUMBER_DEFECTIVE_PARTS_CHART, NUMBER_DEFECTS_CHART, NUMBER_DEFECTS_PERUNIT_CHART .
numcategories - For Variable Control Charts (MEAN_RANGE_CHART, MEDIAN_RANGE_CHART, MEAN_SIGMA_CHART, INDIVIDUAL_RANGE_CHART) this value specifies the number of samples that make up a sample subgroup. In Attribute Control Charts this value represents the number of defect categories used to determine defect counts.
numsamplespersubgroup - In Variable Control charts this value is the same as numcategories, it represents the number of samples that make up a sample subgroup. In an Attribute Control chart it represents the total sample size per sample subgroup from which the defect data is counted.
numdatapointsinview - Specifies the number of sample subgroups displayed in the graph at one time. *
timeincrementminutes - Specifies the normal time increment between adjacent subgroup samples. *
Method Detail

addAnnotation

public int addAnnotation(int chart,
                         java.util.GregorianCalendar x,
                         double y,
                         ChartText textobj)
Add a simple annotation at a specific point in the specified SPC chart.

Parameters:
chart - The id of the SPCChartObjects class of the SPC chart. Use one of the SPCChartObjects constants: PRIMARY_CHART or SECONDARY_CHART.
x - The x-value of the point the annotation is for.
y - The y-value of the point the annotation is for.
textobj - A ChartText object representing the annotation.

addAnnotation

public int addAnnotation(int chart,
                         int datapointindex,
                         ChartText textobj)
Add a simple annotation to a data point in the specified SPC chart.

Parameters:
chart - Specifies whether the annotation is added to the primary, or secondary chart. Use one of the SPChartObjects constants: SPCChartObjects.PRIMARY_CHART or SPCChartObjects.SECONDARY_CHART.
datapointindex - The index of the data point the annotation is for.
textobj - A ChartText object representing the annotation.

addAnnotation

public int addAnnotation(int chart,
                         int datapointindex,
                         java.lang.String text)
Add a simple annotation to a data point in the specified SPC chart.

Parameters:
chart - Specifies whether the annotation is added to the primary, or secondary chart. Use one of the SPChartObjects constants: SPCChartObjects.PRIMARY_CHART or SPCChartObjects.SECONDARY_CHART.
datapointindex - The index of the data point the annotation is for.
text - A string string representing the annotation.

addAnnotation

public int addAnnotation(SPCChartObjects chartobjects,
                         java.util.GregorianCalendar x,
                         double y,
                         ChartText textobj)
Add a simple annotation at a specific point in the specified SPC chart.

Parameters:
chartobjects - The SPCChartObjects class of the SPC chart.
x - The time-base x-value of the point the annotation is for.
y - The y-value of the point the annotation is for.
textobj - A ChartText object representing the annotation.

addAnnotation

public int addAnnotation(SPCChartObjects chartobjects,
                         int datapointindex,
                         ChartText textobj)
Add a simple annotation to a data point in the specified SPC chart.

Parameters:
chartobjects - The SPCChartObjects class of the SPC chart.
datapointindex - The index of the data point the annotation is for.
textobj - A ChartText object representing the annotation.

addAnnotation

public int addAnnotation(SPCChartObjects chartobjects,
                         int datapointindex,
                         java.lang.String text)
Add a simple annotation to a data point in the specified SPC chart.

Parameters:
chartobjects - The SPCChartObjects class of the SPC chart.
datapointindex - The index of the data point the annotation is for.
text - A string string representing the annotation.

adjustmentValueChanged

public void adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
The event delegate used to process changes in the scroll bar.

Specified by:
adjustmentValueChanged in interface java.awt.event.AdjustmentListener
Parameters:
e - Event arguments for the event.

autoCalculateControlLimits

public void autoCalculateControlLimits()
Using the current sampled data values, high, target and low control limits are calculated for both primary and secondary charts using an algorithim appropriate to the SPC chart type.


autoCalculatePrimaryControlLimits

public void autoCalculatePrimaryControlLimits()
Using the current sampled data values, high, target and low control limits are calculated for the primary chart using an algorithim appropriate to the SPC chart type.


autoCalculateSecondaryControlLimits

public void autoCalculateSecondaryControlLimits()
Using the current sampled data values, high, target and low control limits are calculated for the primary chart using an algorithim appropriate to the SPC chart type.


autoScaleChartYRange

public void autoScaleChartYRange(SPCChartObjects chartobjects)
Auto-scale the y-range of the SPC chart so that all of the sampled data and chart control limits are within the bounds of the y-axis.

Parameters:
chartobjects - The SPCChartObjects class of the SPC chart. The y-axis of this chart is scaled so that all of the sampled data and chart control limits are within the bounds of the y-axis.

autoScalePrimaryChartYRange

public void autoScalePrimaryChartYRange()
Auto-scale the y-range of the primary SPC chart so that all of the sampled data and chart control limits are within the bounds of the y-axis.


autoScaleSecondaryChartYRange

public void autoScaleSecondaryChartYRange()
Auto-scale the y-range of the SPC chart so that all of the sampled data and chart control limits are within the bounds of the y-axis.


copy

public void copy(SPCChartBase source)
Copies the source object.

Parameters:
source - The source object.

draw

public void draw(java.awt.Graphics2D g)
Overrides the Draw method of the underlying ChartView class, so that the scroll bar can be properly repositioned if the size of the window changes.

Overrides:
draw in class ChartView
Parameters:
g - The graphics context the chart is drawn to.

getAutoLogAlarmsAsNotes

public boolean getAutoLogAlarmsAsNotes()
Get true to automatically log alarm conditions to the samples intervals notes object.


getBottomLabelMargin

public double getBottomLabelMargin()
Get an additional margin, in normalized coordinates, if only the primary graphs is displayed, allowing for the x-axis labels


getCalculatedValueHistoryStatistic

public double getCalculatedValueHistoryStatistic(int index,
                                                 int stattype)
Calculate a process statistic.

Parameters:
index - Specifies the index of the calculated value statistic you want.
stattype - Specifies which statistic you want. User one of the SPCCalculatedValueRecord constants: SPC_SUM_CALC, SPC_MEAN_CALC, SPC_MEAN_VSS_CALC, SPC_MEAN_N_MINUS_1_CALC, SPC_MEDIAN_CALC , SPC_RANGE_CALC, SPC_STD_DEVIATION_CALC, SPC_STD_DEVIATION_VSS_CALC, SPC_VARIANCE_CALC, SPC_MIN_CALC, SPC_MAX_CALC, SPC_PERCENT_DEFECTIVE_PARTS_CALC, SPC_FRACTION_DEFECTIVE_PARTS_CALC, SPC_FRACTION_DEFECTIVE_PARTS_VSS_CALC, SPC_PERCENT_DEFECTIVE_PARTS_VSS_CALC, SPC_TOTAL_DEFECTIVE_PARTS_CALC, SPC_PERCENT_DEFECTS_CALC, SPC_FRACTION_DEFECTS_CALC, SPC_FRACTION_DEFECTS_VSS_CALC, SPC_TOTAL_DEFECTS_CALC:
Returns:
Returns the process statistic.

getChartAlarmEmphasisMode

public int getChartAlarmEmphasisMode()
Get the chart alarm emphasis mode


getChartData

public SPCControlChartData getChartData()
Get the object that holds the descriptive text, sampled and calculated values associated with the control chart.


getChartInitialized

public boolean getChartInitialized()
Returns true if the control chart has been initialized at least once.


getChartTable

public SPCGeneralizedTableDisplay getChartTable()
Get the object that holds the data table information needed to display the data table along with the chart


getDefaultChartFontString

public static java.lang.String getDefaultChartFontString()
Get the default font used in the table display.


getDefaultControlLimitSigma

public double getDefaultControlLimitSigma()
Get that SPC control limits are to be calculated using the 3 sigma level standard.


getEnableAlarmStatusValues

public boolean getEnableAlarmStatusValues()
If set true enables the alarm status row of the data table


getEnableCalculatedValues

public boolean getEnableCalculatedValues()
If set true enables the calculated values rows of the data table


getEnableCategoryValues

public boolean getEnableCategoryValues()
If set true enables the category or sample values rows of the data table


getEnableDataToolTip

public boolean getEnableDataToolTip()
If set true enables data tooltips


getEnableInputStringsDisplay

public boolean getEnableInputStringsDisplay()
If set true enables the input string rows of the data table


getEnableNotes

public boolean getEnableNotes()
If set true enables the notes row of the data table


getEnableNotesToolTip

public boolean getEnableNotesToolTip()
If set true enables data tooltips


getEnableProcessCapabilityValues

public boolean getEnableProcessCapabilityValues()
If set true enables the process capability values rows of the data table


getEnableScrollBar

public boolean getEnableScrollBar()
If set true the scroll bar is added to the bottom of the chart.


getEnableTimeValues

public boolean getEnableTimeValues()
If set true enables the time row of the data table


getEnableTotalSamplesValues

public boolean getEnableTotalSamplesValues()
If set true enables the total of sampled values row of the data table


getGraphBottomPos

public double getGraphBottomPos()
Get the bottom edge, using normalized coordinates, of the plotting area for the secondary chart


getGraphStartPosX

public double getGraphStartPosX()
Get the left edge, using normalized coordinates, of the plotting area for both primary and secondary charts


getGraphStartPosY1

public double getGraphStartPosY1()
Get the top edge, using normalized coordinates, of the plotting area for the primary chart


getGraphStartPosY2

public double getGraphStartPosY2()
Get the top edge, using normalized coordinates, of the plotting area for the secondary chart


getGraphStopPosX

public double getGraphStopPosX()
Get the right edge, using normalized coordinates, of the plotting area for both primary and secondary charts


getGraphStopPosY1

public double getGraphStopPosY1()
Get the bottom edge, using normalized coordinates, of the plotting area for the primary chart


getGraphStopPosY2

public double getGraphStopPosY2()
Get the bottom edge, using normalized coordinates, of the plotting area for the secondary chart


getGraphTopTableOffset

public double getGraphTopTableOffset()
Get the offset of the top of the primary chart from the bottom of the data table, using normalized coordinates


getHeaderStringsLevel

public int getHeaderStringsLevel()
Get the level of header strings to include in the chart. Use one of the SPCControlChartData header strings constants: HEADER_STRINGS_LEVEL0, HEADER_STRINGS_LEVEL1, HEADER_STRINGS_LEVEL2, or HEADER_STRINGS_LEVEL3


getHighAlarmStatusString

public static java.lang.String getHighAlarmStatusString()
Get the indicator of a high alarm in the alarm status field of the table.


getHScrollBar

public javax.swing.JScrollBar getHScrollBar()
Get a reference to the charts scrollbar.


getInterGraphMargin

public double getInterGraphMargin()
Get the margin, in normalized coordinates, between the primary and seconday charts


getLowAlarmStatusString

public static java.lang.String getLowAlarmStatusString()
Get the indicator of a low alarm in the alarm status field of the table.


getPrimaryChart

public SPCChartObjects getPrimaryChart()
Get the object that holds he the chart objects needed to display the primary chart


getScrollBarBottomPosition

public double getScrollBarBottomPosition()
Get the bottom edge, using normalized coordinates, of the optional scroll bar


getScrollBarPixelHeight

public int getScrollBarPixelHeight()
Get the height of the scrollbar in pixels


getSecondaryChart

public SPCChartObjects getSecondaryChart()
Get the object that holds he the chart objects needed to display the secondary chart


getSPCChartType

public int getSPCChartType()
Specifies the control chart type: use one of the SPCControlChartData chart type constants: MEAN_RANGE_CHART, MEDIAN_RANGE_CHART, MEAN_SIGMA_CHART, INDIVIDUAL_RANGE_CHART, CUSTOM_ATTRIBUTE_CONTROL_CHART, PERCENT_DEFECTIVE_PARTS_CHART, FRACTION_DEFECTIVE_PARTS_CHART, NUMBER_DEFECTIVE_PARTS_CHART, NUMBER_DEFECTS_CHART, NUMBER_DEFECTS_PERUNIT_CHART .


getTableAlarmEmphasisMode

public int getTableAlarmEmphasisMode()
Get the table alarm emphasis mode


getTableStartPosY

public double getTableStartPosY()
Get the top edge, using normalized coordinates, of the SPC chart table


getXScaleMode

public int getXScaleMode()
Get whether the x-axis is time based, or numeric based.


initSPCChartBase

public void initSPCChartBase(int charttype,
                             int numcategories,
                             int numsamplespersubgroup,
                             int numdatapointsinview,
                             double timeincrementminutes)
This initialization method initializes the most important values in the creattion of an SPC chart.

Parameters:
charttype - The SPC chart type parameter. Use one of the SPCControlChartData SPC chart types: MEAN_RANGE_CHART, MEDIAN_RANGE_CHART, MEAN_SIGMA_CHART, INDIVIDUAL_RANGE_CHART, CUSTOM_ATTRIBUTE_CONTROL_CHART, PERCENT_DEFECTIVE_PARTS_CHART, FRACTION_DEFECTIVE_PARTS_CHART, NUMBER_DEFECTIVE_PARTS_CHART, NUMBER_DEFECTS_CHART, NUMBER_DEFECTS_PERUNIT_CHART .
numcategories - For Variable Control Charts (MEAN_RANGE_CHART, MEDIAN_RANGE_CHART, MEAN_SIGMA_CHART, INDIVIDUAL_RANGE_CHART) this value specifies the number of samples that make up a sample subgroup. In Attribute Control Charts this value represents the number of defect categories used to determine defect counts.
numsamplespersubgroup - In Variable Control charts this value is the same as numcategories, it represents the number of samples that make up a sample subgroup. In an Attribute Control chart it represents the total sample size per sample subgroup from which the defect data is counted.
numdatapointsinview - Specifies the number of sample subgroups displayed in the graph at one time. *
timeincrementminutes - Specifies the normal time increment between adjacent subgroup samples. *

isTimeScale

public boolean isTimeScale(PhysicalCoordinates ptransform)
Returns true if the coordinate system has a time based x-axis.

Parameters:
ptransform - The coordinate system of the chart.
Returns:
Returns true if the coordinate system has a time based x-axis.

isVariableSampleSizeControlChart

public boolean isVariableSampleSizeControlChart()
Returns true if the control chart is one of the Variable Sample Size control charts: MEAN_SIGMA_CHART_VSS, FRACTION_DEFECTIVE_PARTS_CHART_VSS, PERCENT_DEFECTIVE_PARTS_CHART_VSS, NUMBER_DEFECTS_PERUNIT_CHART_VSS, EWMA_CHART.


makeControlLinePlot

public void makeControlLinePlot(PhysicalCoordinates ptransform,
                                SPCControlPlotObjectData plotobjdata)
Draw a control line, either a simple straight line, or a variable control line, for the specified chart.

Parameters:
ptransform - The coordinate system of the SPC chart.
plotobjdata - Holds object information specific to the control line.

postAddCustomChartObjects

public void postAddCustomChartObjects()
Override this method if you want to add custom chart objects to the ChartView, after the standard SPC Chart objects are added.


preAddCustomChartObjects

public void preAddCustomChartObjects()
Override this method if you want to add custom chart objects to the ChartView, before the standard SPC Chart objects are added.


rebuildChartUsingCurrentData

public void rebuildChartUsingCurrentData()
Rebuild the graph taking into account the most recent data values.


rescaleGraphsToScrollbar

public void rescaleGraphsToScrollbar(int scrollpos)
Rescale primary and secondary charts based on the position of the value of the scroll bar.

Parameters:
scrollpos - The thumb position of the scroll bar.

resetSPCChartData

public void resetSPCChartData()
Reset the history buffers of all of the SPC data objects.


setAutoLogAlarmsAsNotes

public void setAutoLogAlarmsAsNotes(boolean value)
Set true to automatically log alarm conditions to the samples intervals notes object.


setBottomLabelMargin

public void setBottomLabelMargin(double value)
Set an additional margin, in normalized coordinates, if only the primary graphs is displayed, allowing for the x-axis labels


setChartAlarmEmphasisMode

public void setChartAlarmEmphasisMode(int value)
Set the chart alarm emphasis mode


setDefaultChartFontString

public static void setDefaultChartFontString(java.lang.String value)
Set the default font used in the table display.


setDefaultControlLimitSigma

public void setDefaultControlLimitSigma(double value)
Set that SPC control limits are to be calculated using the 3 sigma level standard.


setEnableAlarmStatusValues

public void setEnableAlarmStatusValues(boolean value)
Returns true if alarm status row enabled


setEnableCalculatedValues

public void setEnableCalculatedValues(boolean value)
If set true enables the calculated values rows of the data table


setEnableCategoryValues

public void setEnableCategoryValues(boolean value)
If set true enables the category or sample values rows of the data table


setEnableDataToolTip

public void setEnableDataToolTip(boolean value)
If set true enables data tooltips


setEnableInputStringsDisplay

public void setEnableInputStringsDisplay(boolean value)
If set true enables the input string rows of the data table


setEnableNotes

public void setEnableNotes(boolean value)
If set true enables the notes row of the data table


setEnableNotesToolTip

public void setEnableNotesToolTip(boolean value)
If set true enables data tooltips


setEnableProcessCapabilityValues

public void setEnableProcessCapabilityValues(boolean value)
If set true enables the process capability values rows of the data table


setEnableScrollBar

public void setEnableScrollBar(boolean value)
If set true the scroll bar is added to the bottom of the chart.


setEnableTimeValues

public void setEnableTimeValues(boolean value)
If set true enables the time row of the data table


setEnableTotalSamplesValues

public void setEnableTotalSamplesValues(boolean value)
If set true enables the total of sampled values row of the data table


setGraphBottomPos

public void setGraphBottomPos(double value)
Set the bottom edge, using normalized coordinates, of the plotting area for the secondary chart


setGraphStartPosX

public void setGraphStartPosX(double value)
Set the left edge, using normalized coordinates, of the plotting area for both primary and secondary charts


setGraphStopPosX

public void setGraphStopPosX(double value)
Set the right edge, using normalized coordinates, of the plotting area for both primary and secondary charts


setGraphTopTableOffset

public void setGraphTopTableOffset(double value)
Set the offset of the top of the primary chart from the bottom of the data table, using normalized coordinates


setHeaderStringsLevel

public void setHeaderStringsLevel(int value)
Set the level of header strings to include in the chart. Use one of the SPCControlChartData header strings constants: HEADER_STRINGS_LEVEL0, HEADER_STRINGS_LEVEL1, HEADER_STRINGS_LEVEL2, or HEADER_STRINGS_LEVEL3


setHighAlarmStatusString

public static void setHighAlarmStatusString(java.lang.String value)
Set the indicator of a high alarm in the alarm status field of the table.


setInterGraphMargin

public void setInterGraphMargin(double value)
Set the margin, in normalized coordinates, between the primary and seconday charts


setLowAlarmStatusString

public static void setLowAlarmStatusString(java.lang.String value)
Set the indicator of a low alarm in the alarm status field of the table.


setPrimaryChart

public void setPrimaryChart(SPCChartObjects value)
Get the object that holds he the chart objects needed to display the primary chart


setScrollBarBottomPosition

public void setScrollBarBottomPosition(double value)
Set the bottom edge, using normalized coordinates, of the optional scroll bar


setScrollBarPixelHeight

public void setScrollBarPixelHeight(int value)
Set the height of the scrollbar in pixels


setSecondaryChart

public void setSecondaryChart(SPCChartObjects value)
Get the object that holds he the chart objects needed to display the secondary chart


setSPCChartType

public void setSPCChartType(int value)
Specifies the control chart type: use one of the SPCControlChartData chart type constants: MEAN_RANGE_CHART, MEDIAN_RANGE_CHART, MEAN_SIGMA_CHART, INDIVIDUAL_RANGE_CHART, CUSTOM_ATTRIBUTE_CONTROL_CHART, PERCENT_DEFECTIVE_PARTS_CHART, FRACTION_DEFECTIVE_PARTS_CHART, NUMBER_DEFECTIVE_PARTS_CHART, NUMBER_DEFECTS_CHART, NUMBER_DEFECTS_PERUNIT_CHART .


setTableAlarmEmphasisMode

public void setTableAlarmEmphasisMode(int value)
Set the table alarm emphasis mode


setTableStartPosY

public void setTableStartPosY(double value)
Get the top edge, using normalized coordinates, of the SPC chart table


setXScaleMode

public void setXScaleMode(int value)
Set whether the x-axis is time based, or numeric based.


updateControlLimitLabel

public void updateControlLimitLabel(PhysicalCoordinates ptransform,
                                    SPCControlPlotObjectData controllimitdata,
                                    int xjust,
                                    int yjust)
Creates a numeric label of the control limit, and adds the numeric label to the spc chart.

Parameters:
ptransform - The coordinate system of the chart.
controllimitdata - Stores references to the plot objects and contains the control limit data.
xjust - Specifies the x-justification of the control limit label.
yjust - Specifies the y-justification of the control limit label.

useNoTable

public void useNoTable(boolean primary,
                       boolean secondary,
                       boolean histograms,
                       java.lang.String title)
Skip the table part and just have a title. Allow for primary and/or secondary charts

Parameters:
primary - Specify true for primary chart.
secondary - Specify true for secondary chart.
histograms - Specify true for chart histograms.
title - Chart title string.