|
|||||||||
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.ProbabilityChart
public class ProbabilityChart
Probability chart template. The class includes all of the objects needed to draw a complete Probability chart. These objects include objects for data, coordinate systems, titles, axes, axes labels, grids, numeric labels, and scatter plot.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Field Summary |
---|
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 | |
---|---|
ProbabilityChart()
Default constructor for the class. |
|
ProbabilityChart(double[] xvalues,
double[] yvalues)
Constructor initializes the x- and y-values of the datapoints plotted in the probability plot. |
Method Summary | |
---|---|
void |
buildChart()
Builds the probability chart using the base objects ChartView. |
void |
buildChart(ChartView chartVu)
Builds the probability chart using the passed in ChartView object. |
void |
copy(ProbabilityChart source)
Copies the source ProbabilityChart object. |
void |
draw(java.awt.Graphics2D g)
Overrides the Draw method of the underlying ChartView class. |
ProbabilityCoordinates |
getCoordinateSystem()
Get the probability coordinate system for the chart. |
static java.awt.Font |
getDefaultAxisLabelsFont()
Get the default font used for the axes labels and axes titles. |
static java.awt.Font |
getDefaultAxisTitleFont()
Get the default font object used for the axes titles. |
static java.lang.String |
getDefaultChartFontString()
Get the default font used in the chart. |
static void |
getDefaultChartFontString(java.lang.String value)
Get the default font used in the chart. |
static java.awt.Font |
getDefaultFooterFont()
Get the font used for the chart footer. |
ChartRectangle2D |
getDefaultGraphBorder()
Get the default graph border object for the chart. |
static java.awt.Font |
getDefaultMainTitleFont()
Get the font used for the main title. |
static java.awt.Font |
getDefaultSigmaFont()
Get the default font object used for the axis labels sigma character. |
static java.awt.Font |
getDefaultSubHeadFont()
Get the font used for the main title. |
static java.awt.Font |
getDefaultToolTipFont()
Get the default font object used for the tooltip. |
ChartTitle |
getFooter()
Get the footer object for the chart. |
Background |
getGraphBackground()
Get the graph background object. |
ChartTitle |
getMainTitle()
Get the main title object for the chart. |
ChartAttribute |
getPlotAttrib()
Get the default primary plot attribute object for the plot of the chart. |
Background |
getPlotBackground()
Get the plot background object. |
SimpleDataset |
getProbabilityDataset()
Get the dataset holding the data values of the plot. |
SimpleScatterPlot |
getProbabilityPlot()
Get probability plot scatter plot object. |
boolean |
getResetOnDraw()
Get True the ChartView object list is cleared with each redraw |
ProbabilitySigmaAxis |
getSigmaAxis()
Get the sigma y-axis object of the chart. |
NumericAxisLabels |
getSigmaAxisLab()
Get the sigma y-axis labels object of the chart. |
ChartTitle |
getSubHead()
Get the subhead title object for the chart. |
int |
getSymbolSize()
Get the default symbol size. |
ChartText |
getTextTemplate()
Get the default text object template for the data tooltip. |
ChartSymbol |
getToolTipSymbol()
Get the tooltip symbol object for the data tooltip. |
LinearAxis |
getXAxis()
Get the x-axis object of the chart. |
NumericAxisLabels |
getXAxisLab()
Get the x-axis labels object of the chart. |
AxisTitle |
getXAxisTitle()
Get the x-axis title object of the of the chart. |
Grid |
getXGrid()
Get the x-axis grid object of the of the chart. |
DoubleArray |
getXValues()
Get the DoubleArray of the x-values of the data points plotted in the probability plot. |
NumericLabel |
getXValueTemplate()
Get the default x-value object template for the data tooltip. |
ProbabilityAxis |
getYAxis1()
Get the left probability y-axis object of the chart. |
ProbabilityAxis |
getYAxis2()
Get the right probability y-axis object of the chart. |
NumericAxisLabels |
getYAxisLab1()
Get the left probability y-axis labels object of the chart. |
NumericAxisLabels |
getYAxisLab2()
Get the right probability y-axis labels object of the chart. |
AxisTitle |
getYAxisTitle()
Get the y-axis title object of the of the chart. |
Grid |
getYGrid()
Get the y-axis title object of the of the chart. |
DoubleArray |
getYValues()
Get the DoubleArray of the y-values of the data points plotted in the probability plot. |
NumericLabel |
getYValueTemplate()
Get the default y-value object template for the data tooltip. |
void |
initProbabilityChart(double[] xvalues,
double[] yvalues)
Initializes the x- and y-values of the datapoints plotted in the probability plot. |
void |
initProbabilityDatasets()
Builds the histogram dataset, histogramDataset, using the values in frequencyValues and frequencyLimits. |
static void |
setDefaultAxisLabelsFont(java.awt.Font value)
Set the default font used for the axes labels and axes titles. |
static void |
setDefaultAxisTitleFont(java.awt.Font value)
Set the default font object used for the axes titles. |
static void |
setDefaultFooterFont(java.awt.Font value)
Set the font used for the chart footer. |
void |
setDefaultGraphBorder(ChartRectangle2D value)
Set the default graph border object for the chart. |
static void |
setDefaultMainTitleFont(java.awt.Font value)
Set the font used for the main title. |
static void |
setDefaultSigmaFont(java.awt.Font value)
Set the default font object used for the axis labels sigma character. |
static void |
setDefaultSubHeadFont(java.awt.Font value)
Set the font used for the main title. |
static void |
setDefaultToolTipFont(java.awt.Font value)
/** Set the default font object used for the tooltip. |
void |
setResetOnDraw(boolean value)
Set True the ChartView object list is cleared with each redraw |
void |
setSymbolSize(int value)
Set the default symbol size. |
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 |
Constructor Detail |
---|
public ProbabilityChart()
public ProbabilityChart(double[] xvalues, double[] yvalues)
xvalues
- The x-values of the datapoints plotted in the probability plot.yvalues
- The y-values of the datapoints plotted in the probability plot.Method Detail |
---|
public void buildChart()
public void buildChart(ChartView chartVu)
chartVu
- A ChartView object that the probability chart is to be drawn in.public void copy(ProbabilityChart source)
source
- The source ProbabilityChart object.public void draw(java.awt.Graphics2D g)
draw
in class ChartView
g
- The graphics context the chart is drawn to.public ProbabilityCoordinates getCoordinateSystem()
public static java.awt.Font getDefaultAxisLabelsFont()
public static java.awt.Font getDefaultAxisTitleFont()
public static java.lang.String getDefaultChartFontString()
public static void getDefaultChartFontString(java.lang.String value)
public static java.awt.Font getDefaultFooterFont()
public ChartRectangle2D getDefaultGraphBorder()
public static java.awt.Font getDefaultMainTitleFont()
public static java.awt.Font getDefaultSigmaFont()
public static java.awt.Font getDefaultSubHeadFont()
public static java.awt.Font getDefaultToolTipFont()
public ChartTitle getFooter()
public Background getGraphBackground()
public ChartTitle getMainTitle()
public ChartAttribute getPlotAttrib()
public Background getPlotBackground()
public SimpleDataset getProbabilityDataset()
public SimpleScatterPlot getProbabilityPlot()
public boolean getResetOnDraw()
public ProbabilitySigmaAxis getSigmaAxis()
public NumericAxisLabels getSigmaAxisLab()
public ChartTitle getSubHead()
public int getSymbolSize()
public ChartText getTextTemplate()
public ChartSymbol getToolTipSymbol()
public LinearAxis getXAxis()
public NumericAxisLabels getXAxisLab()
public AxisTitle getXAxisTitle()
public Grid getXGrid()
public DoubleArray getXValues()
public NumericLabel getXValueTemplate()
public ProbabilityAxis getYAxis1()
public ProbabilityAxis getYAxis2()
public NumericAxisLabels getYAxisLab1()
public NumericAxisLabels getYAxisLab2()
public AxisTitle getYAxisTitle()
public Grid getYGrid()
public DoubleArray getYValues()
public NumericLabel getYValueTemplate()
public void initProbabilityChart(double[] xvalues, double[] yvalues)
xvalues
- The x-values of the datapoints plotted in the probability plot.yvalues
- The y-values of the datapoints plotted in the probability plot.public void initProbabilityDatasets()
public static void setDefaultAxisLabelsFont(java.awt.Font value)
public static void setDefaultAxisTitleFont(java.awt.Font value)
public static void setDefaultFooterFont(java.awt.Font value)
public void setDefaultGraphBorder(ChartRectangle2D value)
public static void setDefaultMainTitleFont(java.awt.Font value)
public static void setDefaultSigmaFont(java.awt.Font value)
public static void setDefaultSubHeadFont(java.awt.Font value)
public static void setDefaultToolTipFont(java.awt.Font value)
public void setResetOnDraw(boolean value)
public void setSymbolSize(int value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |