public class PMIChart extends PMILineChartPanel implements MutableDynamicPropertyProvider, DesignerInitializable, ExtensibleComponent, LocaleListener
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static int |
CHART_CATEGORY |
static int |
CHART_XY |
static java.lang.String |
DEFAULT_X_AXIS_NAME |
static java.lang.String |
DEFAULT_Y_AXIS_NAME |
protected java.util.TreeMap<java.lang.String,DynamicPropertyDescriptor> |
dynamicProps |
static int |
ORIENTATION_HORIZONTAL |
static int |
ORIENTATION_VERTICAL |
protected java.util.List<PlotProperties> |
plotProperties |
protected java.lang.String |
selectedData |
protected org.jfree.chart.entity.ChartEntity |
selectedEntity |
protected boolean |
selectionEnabled |
protected java.awt.Color |
selectionHighlightColor |
protected float |
selectionHighlightWidth |
static int |
SHARED_DOMAIN |
static int |
SHARED_RANGE |
protected java.util.HashMap<java.lang.String,AxisConfig> |
xAxes |
protected java.util.HashMap<java.lang.String,AxisConfig> |
yAxes |
antialias, gridlineColor, gridlineDashPattern, gridlineStroke, gridlineWidth, legend, mode, MODE_MARK, MODE_PAN, MODE_XTRACE, MODE_ZOOM, panLine, panLineStroke, panStartPoint, plotBackground, propertiesLoading, selectedXValue, selectedXValueListener, title, titleFont, tooltips
context, cursorCode, print, properties, save, showPopup, zoom
DEFAULT_BUFFER_USED, DEFAULT_HEIGHT, DEFAULT_MAXIMUM_DRAW_HEIGHT, DEFAULT_MAXIMUM_DRAW_WIDTH, DEFAULT_MINIMUM_DRAW_HEIGHT, DEFAULT_MINIMUM_DRAW_WIDTH, DEFAULT_WIDTH, DEFAULT_ZOOM_TRIGGER_DISTANCE, localizationResources, PRINT_COMMAND, PROPERTIES_COMMAND, SAVE_COMMAND, ZOOM_IN_BOTH_COMMAND, ZOOM_IN_DOMAIN_COMMAND, ZOOM_IN_RANGE_COMMAND, ZOOM_OUT_BOTH_COMMAND, ZOOM_OUT_DOMAIN_COMMAND, ZOOM_OUT_RANGE_COMMAND, ZOOM_RESET_BOTH_COMMAND, ZOOM_RESET_DOMAIN_COMMAND, ZOOM_RESET_RANGE_COMMAND
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
RESERVED_SET_KEY
COMPONENT_RUNNING
COMPONENT_LOCKED, COMPONENT_PERMISSIONS, COMPONENT_SECURITY, COMPONENT_TRANSLATIONS
Constructor and Description |
---|
PMIChart() |
Modifier and Type | Method and Description |
---|---|
void |
clearSelection() |
protected org.jfree.chart.JFreeChart |
createChartImpl() |
java.lang.String |
entityToString(org.jfree.chart.entity.ChartEntity entity) |
int |
getChartType() |
java.util.TreeMap<java.lang.String,DynamicPropertyDescriptor> |
getDynamicProps() |
java.util.Map<java.lang.String,ExtensionFunction> |
getExtensionFunctions() |
int |
getExtractOrder() |
int |
getOrientation() |
java.util.List<PlotProperties> |
getPlotProperties() |
protected AutoAnnotateXYPlot[] |
getPlots() |
DynamicPropertyDescriptor[] |
getProperties() |
java.lang.Object |
getPropertyValue(java.lang.String name) |
java.lang.String |
getSelectedData() |
protected org.jfree.chart.entity.ChartEntity |
getSelectedEntity() |
java.awt.Color |
getSelectionHighlightColor() |
float |
getSelectionHighlightWidth() |
int |
getSubplotMode() |
java.util.HashMap<java.lang.String,AxisConfig> |
getXAxes() |
java.util.HashMap<java.lang.String,AxisConfig> |
getYAxes() |
void |
initialize() |
boolean |
isPropertyDefined(java.lang.String name) |
boolean |
isSelectionEnabled() |
void |
localeChanged(java.util.Locale newLocale) |
protected void |
onStartup()
Subclasses should override this to provide startup logic.
|
void |
paintComponent(java.awt.Graphics graphics) |
void |
refreshChart(int subplotIndex,
int index)
Refreshes the dataset (calls XYNumericDataSet.fireChange()) for the specified subplot and dataset.
|
void |
refreshChart(java.lang.String dataSetName)
Refreshes the dataset named.
|
void |
setChartType(int i) |
void |
setDatasetEnabled(java.lang.String dataSetName,
boolean vis)
Sets a dataset to be enabled or not (drawn vs.
|
void |
setDatasetPlotNumber(java.lang.String dataSetName,
int plotNumber)
Sets a dataset's plot number
|
void |
setDatasetXAxis(java.lang.String dataSetName,
java.lang.String axisName)
Sets a dataset's X axis name
|
void |
setDatasetYAxis(java.lang.String dataSetName,
java.lang.String axisName)
Sets a dataset's Y axis name
|
void |
setDynamicProps(java.util.TreeMap<java.lang.String,DynamicPropertyDescriptor> map) |
void |
setExtensionFunctions(java.util.Map<java.lang.String,ExtensionFunction> map) |
void |
setExtractOrder(int extractOrder) |
void |
setName(java.lang.String newName) |
void |
setOrientation(int i) |
void |
setPlotProperties(java.util.List<PlotProperties> list) |
void |
setPropertyValue(java.lang.String name,
java.lang.Object value)
Sets a named dataset's value
|
void |
setSelectedData(java.lang.String selectedData) |
protected void |
setSelectedEntity(org.jfree.chart.entity.ChartEntity selectedEntity) |
void |
setSelectionEnabled(boolean selectionEnabled) |
void |
setSelectionHighlightColor(java.awt.Color selectionHighlightColor) |
void |
setSelectionHighlightWidth(float selectionHighlightWidth) |
void |
setSeriesEnabled(java.lang.String dataSetName,
java.lang.String seriesName,
boolean vis) |
void |
setSubplotMode(int i) |
void |
setXAxes(java.util.HashMap<java.lang.String,AxisConfig> map) |
void |
setYAxes(java.util.HashMap<java.lang.String,AxisConfig> map) |
_setSelectedXValue, actionPerformed, createChart, createEmptyChart, createPopupMenu, createTitle, doSaveAs, getGridlineColor, getGridlineDashPattern, getGridlineStroke, getGridlineWidth, getPlotBackground, getPNGBytes, getPointInRectangle, getPropertiesLoading, getSelectedXValue, getTitle, getTitleFont, getXTraceTrackMouse, isAntialias, isLegend, isOpaque, isTooltips, mouseDragged, mouseMoved, mousePressed, mouseReleased, print, redrawAtEventPoint, resetAxes, respectDomainRangeOnPan, restoreAutoBounds, saveAsImage, saveAsImage, setAntialias, setAutoAnnotationMode, setBackground, setBounds, setFont, setForeground, setGridlineColor, setGridlineDashPattern, setGridlineWidth, setLegend, setMode, setPlotBackground, setPropertiesLoading, setSelectedXValue, setTitle, setTitleFont, setTooltips, setXTraceTrackMouse
createChartPrintJob, displayPopupMenu, getAppContext, getCursorCode, getDataQuality, getScientificNumberFormat, getToolTipText, getToolTipText, isShowPopup, onShutdown, paintChildren, print, setCursorCode, setDataQuality, setShowPopup, setVisible, shutdownComponent, startupComponent, translate, translateTerm, updateQuality
addChartMouseListener, chartChanged, chartProgress, doEditChartProperties, getAnchor, getChart, getChartRenderingInfo, getDefaultDirectoryForSaveAs, getDismissDelay, getEntityForPoint, getFillZoomRectangle, getHorizontalAxisTrace, getHorizontalTraceLine, getInitialDelay, getListeners, getMaximumDrawHeight, getMaximumDrawWidth, getMinimumDrawHeight, getMinimumDrawWidth, getPopupMenu, getRefreshBuffer, getReshowDelay, getScaleX, getScaleY, getScreenDataArea, getScreenDataArea, getVerticalAxisTrace, getVerticalTraceLine, getZoomAroundAnchor, getZoomInFactor, getZoomOutFactor, getZoomTriggerDistance, isDomainZoomable, isEnforceFileExtensions, isRangeZoomable, mouseClicked, mouseEntered, mouseExited, removeChartMouseListener, restoreAutoDomainBounds, restoreAutoRangeBounds, scale, setAnchor, setChart, setDefaultDirectoryForSaveAs, setDismissDelay, setDisplayToolTips, setDomainZoomable, setEnforceFileExtensions, setFillZoomRectangle, setHorizontalAxisTrace, setHorizontalTraceLine, setInitialDelay, setMaximumDrawHeight, setMaximumDrawWidth, setMinimumDrawHeight, setMinimumDrawWidth, setMouseZoomable, setMouseZoomable, setPopupMenu, setRangeZoomable, setRefreshBuffer, setReshowDelay, setVerticalAxisTrace, setVerticalTraceLine, setZoomAroundAnchor, setZoomInFactor, setZoomOutFactor, setZoomTriggerDistance, translateJava2DToScreen, translateScreenToJava2D, updateUI, zoom, zoomInBoth, zoomInDomain, zoomInRange, zoomOutBoth, zoomOutDomain, zoomOutRange
getAccessibleContext, getUI, getUIClassID, paramString, setUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, 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, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, 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, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAppContext, shutdownComponent, startupComponent
public static final java.lang.String DEFAULT_X_AXIS_NAME
public static final java.lang.String DEFAULT_Y_AXIS_NAME
public static final int CHART_CATEGORY
public static final int CHART_XY
public static final int ORIENTATION_HORIZONTAL
public static final int ORIENTATION_VERTICAL
public static final int SHARED_DOMAIN
public static final int SHARED_RANGE
protected java.util.TreeMap<java.lang.String,DynamicPropertyDescriptor> dynamicProps
protected java.util.HashMap<java.lang.String,AxisConfig> xAxes
protected java.util.HashMap<java.lang.String,AxisConfig> yAxes
protected java.util.List<PlotProperties> plotProperties
protected java.awt.Color selectionHighlightColor
protected float selectionHighlightWidth
protected org.jfree.chart.entity.ChartEntity selectedEntity
protected boolean selectionEnabled
protected java.lang.String selectedData
public java.awt.Color getSelectionHighlightColor()
public void setSelectionHighlightColor(java.awt.Color selectionHighlightColor)
public float getSelectionHighlightWidth()
public void setSelectionHighlightWidth(float selectionHighlightWidth)
protected org.jfree.chart.entity.ChartEntity getSelectedEntity()
protected void setSelectedEntity(org.jfree.chart.entity.ChartEntity selectedEntity)
public void clearSelection()
public boolean isSelectionEnabled()
public void setSelectionEnabled(boolean selectionEnabled)
public java.lang.String getSelectedData()
public void setSelectedData(java.lang.String selectedData)
public void localeChanged(java.util.Locale newLocale)
localeChanged
in interface LocaleListener
localeChanged
in class PMIChartPanel
public java.lang.String entityToString(org.jfree.chart.entity.ChartEntity entity)
public void paintComponent(java.awt.Graphics graphics)
paintComponent
in class PMILineChartPanel
public void setName(java.lang.String newName)
setName
in class PMIChartPanel
public void initialize()
initialize
in interface DesignerInitializable
public java.util.Map<java.lang.String,ExtensionFunction> getExtensionFunctions()
getExtensionFunctions
in interface ExtensibleComponent
public void setExtensionFunctions(java.util.Map<java.lang.String,ExtensionFunction> map)
setExtensionFunctions
in interface ExtensibleComponent
protected org.jfree.chart.JFreeChart createChartImpl()
createChartImpl
in class PMILineChartPanel
protected void onStartup()
PMIChartPanel
onStartup
in class PMIChartPanel
protected AutoAnnotateXYPlot[] getPlots()
getPlots
in class PMILineChartPanel
public void refreshChart(java.lang.String dataSetName)
dataSetName
- The name of the dataset whose data needs refreshing (redrawing)public void refreshChart(int subplotIndex, int index)
subplotIndex
- The index of the subplot, if applicable. ONE INDEXED.index
- The index of the dataset. Mandatory. ZERO INDEXED.public void setSeriesEnabled(java.lang.String dataSetName, java.lang.String seriesName, boolean vis)
public void setDatasetEnabled(java.lang.String dataSetName, boolean vis)
public void setDatasetPlotNumber(java.lang.String dataSetName, int plotNumber) throws java.lang.Exception
java.lang.Exception
public void setDatasetYAxis(java.lang.String dataSetName, java.lang.String axisName) throws java.lang.Exception
java.lang.Exception
public void setDatasetXAxis(java.lang.String dataSetName, java.lang.String axisName) throws java.lang.Exception
java.lang.Exception
public int getChartType()
public void setChartType(int i)
public void setPropertyValue(java.lang.String name, java.lang.Object value) throws java.lang.ClassCastException
setPropertyValue
in interface DynamicPropertyProvider
java.lang.ClassCastException
public boolean isPropertyDefined(java.lang.String name)
isPropertyDefined
in interface DynamicPropertyProvider
public DynamicPropertyDescriptor[] getProperties()
getProperties
in interface DynamicPropertyProvider
public java.lang.Object getPropertyValue(java.lang.String name)
getPropertyValue
in interface DynamicPropertyProvider
public java.util.TreeMap<java.lang.String,DynamicPropertyDescriptor> getDynamicProps()
getDynamicProps
in interface MutableDynamicPropertyProvider
public int getOrientation()
public java.util.HashMap<java.lang.String,AxisConfig> getXAxes()
public java.util.HashMap<java.lang.String,AxisConfig> getYAxes()
public void setDynamicProps(java.util.TreeMap<java.lang.String,DynamicPropertyDescriptor> map)
setDynamicProps
in interface MutableDynamicPropertyProvider
public void setOrientation(int i)
public void setXAxes(java.util.HashMap<java.lang.String,AxisConfig> map)
public void setYAxes(java.util.HashMap<java.lang.String,AxisConfig> map)
public int getSubplotMode()
public void setSubplotMode(int i)
public java.util.List<PlotProperties> getPlotProperties()
public void setPlotProperties(java.util.List<PlotProperties> list)
public int getExtractOrder()
public void setExtractOrder(int extractOrder)