|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.quinncurtis.chart2djava.ChartView
com.quinncurtis.spcchartjava.SPCChartBase
public class SPCChartBase
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.
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 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 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 |
---|
public static final int ALARM_HIGHLIGHT_BAR
public static final int ALARM_HIGHLIGHT_NONE
public static final int ALARM_HIGHLIGHT_OUTLINE
public static final int ALARM_HIGHLIGHT_SYMBOL
public static final int ALARM_HIGHLIGHT_TEXT
public static final int ALARM_NO_HIGHLIGHT_SYMBOL
Constructor Detail |
---|
public SPCChartBase()
public SPCChartBase(int charttype, int numcategories, int numsamplespersubgroup, int numdatapointsinview, int timeincrementminutes)
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. *public SPCChartBase(java.awt.Rectangle positionRect, javax.swing.JPanel parent, int charttype, int numcategories, int numsamplespersubgroup, int numdatapointsinview, int timeincrementminutes)
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 |
---|
public int addAnnotation(int chart, java.util.GregorianCalendar x, double y, ChartText textobj)
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.public int addAnnotation(int chart, int datapointindex, ChartText textobj)
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.public int addAnnotation(int chart, int datapointindex, java.lang.String text)
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.public int addAnnotation(SPCChartObjects chartobjects, java.util.GregorianCalendar x, double y, ChartText textobj)
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.public int addAnnotation(SPCChartObjects chartobjects, int datapointindex, ChartText textobj)
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.public int addAnnotation(SPCChartObjects chartobjects, int datapointindex, java.lang.String text)
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.public void adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
adjustmentValueChanged
in interface java.awt.event.AdjustmentListener
e
- Event arguments for the event.public void autoCalculateControlLimits()
public void autoCalculatePrimaryControlLimits()
public void autoCalculateSecondaryControlLimits()
public void autoScaleChartYRange(SPCChartObjects chartobjects)
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.public void autoScalePrimaryChartYRange()
public void autoScaleSecondaryChartYRange()
public void copy(SPCChartBase source)
source
- The source object.public void draw(java.awt.Graphics2D g)
draw
in class ChartView
g
- The graphics context the chart is drawn to.public boolean getAutoLogAlarmsAsNotes()
public double getBottomLabelMargin()
public double getCalculatedValueHistoryStatistic(int index, int stattype)
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:
public int getChartAlarmEmphasisMode()
public SPCControlChartData getChartData()
public boolean getChartInitialized()
public SPCGeneralizedTableDisplay getChartTable()
public static java.lang.String getDefaultChartFontString()
public double getDefaultControlLimitSigma()
public boolean getEnableAlarmStatusValues()
public boolean getEnableCalculatedValues()
public boolean getEnableCategoryValues()
public boolean getEnableDataToolTip()
public boolean getEnableInputStringsDisplay()
public boolean getEnableNotes()
public boolean getEnableNotesToolTip()
public boolean getEnableProcessCapabilityValues()
public boolean getEnableScrollBar()
public boolean getEnableTimeValues()
public boolean getEnableTotalSamplesValues()
public double getGraphBottomPos()
public double getGraphStartPosX()
public double getGraphStartPosY1()
public double getGraphStartPosY2()
public double getGraphStopPosX()
public double getGraphStopPosY1()
public double getGraphStopPosY2()
public double getGraphTopTableOffset()
public int getHeaderStringsLevel()
public static java.lang.String getHighAlarmStatusString()
public javax.swing.JScrollBar getHScrollBar()
public double getInterGraphMargin()
public static java.lang.String getLowAlarmStatusString()
public SPCChartObjects getPrimaryChart()
public double getScrollBarBottomPosition()
public int getScrollBarPixelHeight()
public SPCChartObjects getSecondaryChart()
public int getSPCChartType()
public int getTableAlarmEmphasisMode()
public double getTableStartPosY()
public int getXScaleMode()
public void initSPCChartBase(int charttype, int numcategories, int numsamplespersubgroup, int numdatapointsinview, double timeincrementminutes)
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. *public boolean isTimeScale(PhysicalCoordinates ptransform)
ptransform
- The coordinate system of the chart.
public boolean isVariableSampleSizeControlChart()
public void makeControlLinePlot(PhysicalCoordinates ptransform, SPCControlPlotObjectData plotobjdata)
ptransform
- The coordinate system of the SPC chart.plotobjdata
- Holds object information specific to the control line.public void postAddCustomChartObjects()
public void preAddCustomChartObjects()
public void rebuildChartUsingCurrentData()
public void rescaleGraphsToScrollbar(int scrollpos)
scrollpos
- The thumb position of the scroll bar.public void resetSPCChartData()
public void setAutoLogAlarmsAsNotes(boolean value)
public void setBottomLabelMargin(double value)
public void setChartAlarmEmphasisMode(int value)
public static void setDefaultChartFontString(java.lang.String value)
public void setDefaultControlLimitSigma(double value)
public void setEnableAlarmStatusValues(boolean value)
public void setEnableCalculatedValues(boolean value)
public void setEnableCategoryValues(boolean value)
public void setEnableDataToolTip(boolean value)
public void setEnableInputStringsDisplay(boolean value)
public void setEnableNotes(boolean value)
public void setEnableNotesToolTip(boolean value)
public void setEnableProcessCapabilityValues(boolean value)
public void setEnableScrollBar(boolean value)
public void setEnableTimeValues(boolean value)
public void setEnableTotalSamplesValues(boolean value)
public void setGraphBottomPos(double value)
public void setGraphStartPosX(double value)
public void setGraphStopPosX(double value)
public void setGraphTopTableOffset(double value)
public void setHeaderStringsLevel(int value)
public static void setHighAlarmStatusString(java.lang.String value)
public void setInterGraphMargin(double value)
public static void setLowAlarmStatusString(java.lang.String value)
public void setPrimaryChart(SPCChartObjects value)
public void setScrollBarBottomPosition(double value)
public void setScrollBarPixelHeight(int value)
public void setSecondaryChart(SPCChartObjects value)
public void setSPCChartType(int value)
public void setTableAlarmEmphasisMode(int value)
public void setTableStartPosY(double value)
public void setXScaleMode(int value)
public void updateControlLimitLabel(PhysicalCoordinates ptransform, SPCControlPlotObjectData controllimitdata, int xjust, int yjust)
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.public void useNoTable(boolean primary, boolean secondary, boolean histograms, java.lang.String title)
primary
- Specify true for primary chart.secondary
- Specify true for secondary chart.histograms
- Specify true for chart histograms.title
- Chart title string.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |