public abstract class Chart extends Dashboard implements com.mindfusion.common.ObservableListListener<java.lang.String>
javax.swing.JComponent.AccessibleJComponent
tooltipBrush, tooltipPen
TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Modifier | Constructor and Description |
---|---|
protected |
Chart()
Initializes a new instance of the
Chart class. |
protected |
Chart(SeriesRenderer renderer)
Initializes a new instance of the
Chart class. |
Modifier and Type | Method and Description |
---|---|
void |
elementAdded(java.lang.String newElement) |
void |
elementRemoved(java.lang.String oldElement) |
boolean |
getAllowMoveLegend()
Gets a value indicating whether users are allowed to move the legend.
|
com.mindfusion.charting.components.GridPanel |
getChartPanel()
Gets the
GridPanel that contains the chart's PlotPanel and axis renderers. |
java.lang.Object |
getDataSource()
Gets the chart's data source.
|
com.mindfusion.common.ObservableList<java.lang.String> |
getInnerLabelsDataFields()
Gets the names of fields in the data source whose values
are shown as inner labels of rendered graphical elements.
|
LabelKinds |
getLegendElementLabelKind() |
com.mindfusion.charting.components.LayoutAlignment |
getLegendHorizontalAlignment()
Gets the horizontal alignment of the legend.
|
Margins |
getLegendMargin()
Gets the margin space around the legend.
|
LegendRenderer |
getLegendRenderer()
Gets the
LegendRenderer component used to draw the chart's legend. |
java.lang.String |
getLegendTitle()
Gets the legend title.
|
com.mindfusion.charting.components.LayoutAlignment |
getLegendVerticalAlignment()
Gets the vertical alignment of the legend.
|
int |
getMaxLegendItemsPerColumn() |
com.mindfusion.common.ObservableList<java.lang.String> |
getOuterLabelsDataFields()
Gets the names of fields in the data source whose values
are shown as outer labels of rendered graphical elements.
|
Plot |
getPlot()
Gets the chart's
Plot component. |
java.awt.Image |
getPlotImage()
Gets the Image drawn inside chart's plot area.
|
com.mindfusion.charting.components.ImageAlign |
getPlotImageAlign()
Gets the alignment of
PlotImage relatively to the plot boundaries. |
boolean |
getPlotImageAutoSize()
Gets whether auto-size mode is enabled for
PlotImage . |
com.mindfusion.charting.components.Panel |
getPlotPanel()
Gets the
Panel that contains the chart's plot and associated elements. |
java.util.EnumSet<LabelKinds> |
getShowDataLabels()
Gets what kind of labels from data series should be drawn.
|
boolean |
getShowHighlight()
Gets a value indicating whether to highlight hovered data items.
|
boolean |
getShowLegend()
Gets a value indicating whether the chart should draw a legend.
|
boolean |
getShowToolTips()
Gets a value indicating whether to show tooltips.
|
boolean |
getShowZoomWidgets()
Gets a value indicating whether the plot should show zoom buttons.
|
java.lang.String |
getSubtitle()
Gets the sub-title of this chart.
|
com.mindfusion.drawing.Brush |
getSubtitleBrush()
Gets the
Brush used to draw chart's Subtitle . |
java.lang.String |
getSubtitleFontName()
Gets the name of Font used to draw chart's
Subtitle . |
java.lang.Double |
getSubtitleFontSize()
Gets the size of Font used to draw chart's
Subtitle . |
java.util.EnumSet<com.mindfusion.drawing.FontStyle> |
getSubtitleFontStyle()
Gets the style of Font used to draw chart's
Subtitle . |
Margins |
getSubtitleMargin()
Gets the margin space around
Subtitle . |
java.lang.String |
getTitle()
Gets the title of this chart.
|
com.mindfusion.drawing.Brush |
getTitleBrush()
Gets the
Brush used to draw chart's Title. |
java.lang.String |
getTitleFontName()
Gets the name of Font used to draw chart's Title.
|
java.lang.Double |
getTitleFontSize()
Gets the size of Font used to draw chart's Title.
|
java.util.EnumSet<com.mindfusion.drawing.FontStyle> |
getTitleFontStyle()
Gets the style of Font used to draw chart's Title.
|
Margins |
getTitleMargin()
Gets the margin space around Title.
|
com.mindfusion.common.ObservableList<java.lang.String> |
getToolTipsDataFields()
Gets the names of fields in the data source whose values
are shown as tooltips of rendered graphical elements.
|
com.mindfusion.common.ObservableList<java.lang.String> |
getXAxisLabelsDataFields()
Gets the names of fields in the data source whose values
are shown as X axis labels of rendered graphical elements.
|
com.mindfusion.common.ObservableList<java.lang.String> |
getXDataFields()
Gets the names of fields in the data source whose values
are assigned to X coordinates of rendered graphical elements.
|
com.mindfusion.common.ObservableList<java.lang.String> |
getYAxisLabelsDataFields()
Gets the names of fields in the data source whose values
are shown as Y axis labels of rendered graphical elements.
|
com.mindfusion.common.ObservableList<java.lang.String> |
getYDataFields()
Gets the names of fields in the data source whose values
are assigned to Y coordinates of rendered graphical elements.
|
com.mindfusion.common.ObservableList<java.lang.String> |
getZAxisLabelsDataFields()
Gets the names of fields in the data source whose values
are shown as Z axis labels of rendered graphical elements.
|
com.mindfusion.common.ObservableList<java.lang.String> |
getZDataFields()
Gets the names of fields in the data source whose values
are assigned to Z coordinates of rendered graphical elements.
|
void |
resetZoom()
Resets zoom level to original data range.
|
void |
setAllowMoveLegend(boolean value)
Sets a value indicating whether users are allowed to move the legend.
|
void |
setChartPanel(com.mindfusion.charting.components.GridPanel value)
Sets the
GridPanel that contains the chart's PlotPanel and axis renderers. |
void |
setDataSource(java.lang.Object value)
Sets the chart's data source.
|
void |
setInnerLabelsDataFields(com.mindfusion.common.ObservableList<java.lang.String> value)
Sets the names of fields in the data source whose values
are shown as inner labels of rendered graphical elements.
|
void |
setLegendElementLabelKind(LabelKinds value) |
void |
setLegendHorizontalAlignment(com.mindfusion.charting.components.LayoutAlignment value)
Sets the horizontal alignment of the legend.
|
void |
setLegendMargin(Margins value)
Sets the margin space around the legend.
|
void |
setLegendTitle(java.lang.String value)
Sets the legend title.
|
void |
setLegendVerticalAlignment(com.mindfusion.charting.components.LayoutAlignment value)
Sets the vertical alignment of the legend.
|
void |
setMaxLegendItemsPerColumn(int value) |
void |
setOuterLabelsDataFields(com.mindfusion.common.ObservableList<java.lang.String> value)
Sets the names of fields in the data source whose values
are shown as outer labels of rendered graphical elements.
|
void |
setPlotImage(java.awt.Image value)
Sets the Image drawn inside chart's plot area.
|
void |
setPlotImageAlign(com.mindfusion.charting.components.ImageAlign value)
Sets the alignment of
PlotImage relatively to the plot boundaries. |
void |
setPlotImageAutoSize(boolean value)
Sets whether auto-size mode is enabled for
PlotImage . |
void |
setShowDataLabels(java.util.EnumSet<LabelKinds> value)
Sets what kind of labels from data series should be drawn.
|
void |
setShowHighlight(boolean value)
Sets a value indicating whether to highlight hovered data items.
|
void |
setShowLegend(boolean value)
Sets a value indicating whether the chart should draw a legend.
|
void |
setShowToolTips(boolean value)
Sets a value indicating whether to show tooltips.
|
void |
setShowZoomWidgets(boolean value)
Sets a value indicating whether the plot should show zoom buttons.
|
void |
setSubtitle(java.lang.String value)
Sets the sub-title of this chart.
|
void |
setSubtitleBrush(com.mindfusion.drawing.Brush value)
Sets the
Brush used to draw chart's Subtitle . |
void |
setSubtitleFontName(java.lang.String value)
Sets the name of Font used to draw chart's
Subtitle . |
void |
setSubtitleFontSize(java.lang.Double value)
Sets the size of Font used to draw chart's
Subtitle . |
void |
setSubtitleFontStyle(java.util.EnumSet<com.mindfusion.drawing.FontStyle> value)
Sets the style of Font used to draw chart's
Subtitle . |
void |
setSubtitleMargin(Margins value)
Sets the margin space around
Subtitle . |
void |
setTitle(java.lang.String value)
Sets the title of this chart.
|
void |
setTitleBrush(com.mindfusion.drawing.Brush value)
Sets the
Brush used to draw chart's Title. |
void |
setTitleFontName(java.lang.String value)
Sets the name of Font used to draw chart's Title.
|
void |
setTitleFontSize(java.lang.Double value)
Sets the size of Font used to draw chart's Title.
|
void |
setTitleFontStyle(java.util.EnumSet<com.mindfusion.drawing.FontStyle> value)
Sets the style of Font used to draw chart's Title.
|
void |
setTitleMargin(Margins value)
Sets the margin space around Title.
|
void |
setToolTipsDataFields(com.mindfusion.common.ObservableList<java.lang.String> value)
Sets the names of fields in the data source whose values
are shown as tooltips of rendered graphical elements.
|
void |
setXAxisLabelsDataFields(com.mindfusion.common.ObservableList<java.lang.String> value)
Sets the names of fields in the data source whose values
are shown as X axis labels of rendered graphical elements.
|
void |
setXDataFields(com.mindfusion.common.ObservableList<java.lang.String> value)
Sets the names of fields in the data source whose values
are assigned to X coordinates of rendered graphical elements.
|
void |
setYAxisLabelsDataFields(com.mindfusion.common.ObservableList<java.lang.String> value)
Sets the names of fields in the data source whose values
are shown as Y axis labels of rendered graphical elements.
|
void |
setYDataFields(com.mindfusion.common.ObservableList<java.lang.String> value)
Sets the names of fields in the data source whose values
are assigned to Y coordinates of rendered graphical elements.
|
void |
setZAxisLabelsDataFields(com.mindfusion.common.ObservableList<java.lang.String> value)
Sets the names of fields in the data source whose values
are shown as Z axis labels of rendered graphical elements.
|
void |
setZDataFields(com.mindfusion.common.ObservableList<java.lang.String> value)
Sets the names of fields in the data source whose values
are assigned to Z coordinates of rendered graphical elements.
|
void |
zoomOut()
Zooms out of current data range.
|
addDataItemClickedListener, associateJComponent, createImage, createImage, dataBind, dissociateJComponent, exportImage, exportImage, exportPdf, exportPdf, fireDataItemClicked, getAllowZoom, getBackgroundImage, getBackgroundImageAlign, getBackgroundImageAutoSize, getLayoutBuilder, getLayoutPanel, getRootPanel, getTheme, hitTest, invalidate, invalidate, invalidateLayout, invalidateLayout, isAnimated, paintComponent, print, print, removeDataItemClickedListener, setAllowZoom, setBackgroundImage, setBackgroundImageAlign, setBackgroundImageAutoSize, setLayoutBuilder, setLayoutPanel, setLicenseKey, setPrintMargins, setRootPanel, setTheme
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, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, 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, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
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, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, 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, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected Chart()
Chart
class.protected Chart(SeriesRenderer renderer)
Chart
class.renderer
- A SeriesRenderer
used to draw chart's data series.public com.mindfusion.charting.components.Panel getPlotPanel()
Panel
that contains the chart's plot and associated elements.public com.mindfusion.charting.components.GridPanel getChartPanel()
GridPanel
that contains the chart's PlotPanel
and axis renderers.public void setChartPanel(com.mindfusion.charting.components.GridPanel value)
GridPanel
that contains the chart's PlotPanel
and axis renderers.public void zoomOut()
public void resetZoom()
public java.lang.String getTitle()
public void setTitle(java.lang.String value)
public Margins getTitleMargin()
public void setTitleMargin(Margins value)
public java.lang.String getTitleFontName()
public void setTitleFontName(java.lang.String value)
public java.lang.Double getTitleFontSize()
public void setTitleFontSize(java.lang.Double value)
public java.util.EnumSet<com.mindfusion.drawing.FontStyle> getTitleFontStyle()
public void setTitleFontStyle(java.util.EnumSet<com.mindfusion.drawing.FontStyle> value)
public com.mindfusion.drawing.Brush getTitleBrush()
Brush
used to draw chart's Title.public void setTitleBrush(com.mindfusion.drawing.Brush value)
Brush
used to draw chart's Title.public java.lang.String getSubtitle()
public void setSubtitle(java.lang.String value)
public void setSubtitleMargin(Margins value)
Subtitle
.public java.lang.String getSubtitleFontName()
Subtitle
.public void setSubtitleFontName(java.lang.String value)
Subtitle
.public java.lang.Double getSubtitleFontSize()
Subtitle
.public void setSubtitleFontSize(java.lang.Double value)
Subtitle
.public java.util.EnumSet<com.mindfusion.drawing.FontStyle> getSubtitleFontStyle()
Subtitle
.public void setSubtitleFontStyle(java.util.EnumSet<com.mindfusion.drawing.FontStyle> value)
Subtitle
.public com.mindfusion.drawing.Brush getSubtitleBrush()
Brush
used to draw chart's Subtitle
.public void setSubtitleBrush(com.mindfusion.drawing.Brush value)
Brush
used to draw chart's Subtitle
.public java.awt.Image getPlotImage()
public void setPlotImage(java.awt.Image value)
public boolean getPlotImageAutoSize()
PlotImage
.public void setPlotImageAutoSize(boolean value)
PlotImage
.public com.mindfusion.charting.components.ImageAlign getPlotImageAlign()
PlotImage
relatively to the plot boundaries.public void setPlotImageAlign(com.mindfusion.charting.components.ImageAlign value)
PlotImage
relatively to the plot boundaries.public java.lang.String getLegendTitle()
public void setLegendTitle(java.lang.String value)
public com.mindfusion.charting.components.LayoutAlignment getLegendHorizontalAlignment()
public void setLegendHorizontalAlignment(com.mindfusion.charting.components.LayoutAlignment value)
public com.mindfusion.charting.components.LayoutAlignment getLegendVerticalAlignment()
public void setLegendVerticalAlignment(com.mindfusion.charting.components.LayoutAlignment value)
public Margins getLegendMargin()
public void setLegendMargin(Margins value)
public LabelKinds getLegendElementLabelKind()
public void setLegendElementLabelKind(LabelKinds value)
public boolean getShowLegend()
public void setShowLegend(boolean value)
public LegendRenderer getLegendRenderer()
LegendRenderer
component used to draw the chart's legend.public int getMaxLegendItemsPerColumn()
public void setMaxLegendItemsPerColumn(int value)
public boolean getShowZoomWidgets()
public void setShowZoomWidgets(boolean value)
public java.util.EnumSet<LabelKinds> getShowDataLabels()
public void setShowDataLabels(java.util.EnumSet<LabelKinds> value)
public boolean getShowHighlight()
public void setShowHighlight(boolean value)
value
- true to highlight hovered data items, or false otherwise.public boolean getShowToolTips()
public void setShowToolTips(boolean value)
value
- true to show tooltips, or false otherwise.public boolean getAllowMoveLegend()
public void setAllowMoveLegend(boolean value)
public java.lang.Object getDataSource()
public void setDataSource(java.lang.Object value)
public com.mindfusion.common.ObservableList<java.lang.String> getXDataFields()
public void setXDataFields(com.mindfusion.common.ObservableList<java.lang.String> value)
public com.mindfusion.common.ObservableList<java.lang.String> getYDataFields()
public void setYDataFields(com.mindfusion.common.ObservableList<java.lang.String> value)
public com.mindfusion.common.ObservableList<java.lang.String> getZDataFields()
public void setZDataFields(com.mindfusion.common.ObservableList<java.lang.String> value)
public com.mindfusion.common.ObservableList<java.lang.String> getInnerLabelsDataFields()
public void setInnerLabelsDataFields(com.mindfusion.common.ObservableList<java.lang.String> value)
public com.mindfusion.common.ObservableList<java.lang.String> getOuterLabelsDataFields()
public void setOuterLabelsDataFields(com.mindfusion.common.ObservableList<java.lang.String> value)
public com.mindfusion.common.ObservableList<java.lang.String> getToolTipsDataFields()
public void setToolTipsDataFields(com.mindfusion.common.ObservableList<java.lang.String> value)
public com.mindfusion.common.ObservableList<java.lang.String> getXAxisLabelsDataFields()
public void setXAxisLabelsDataFields(com.mindfusion.common.ObservableList<java.lang.String> value)
public com.mindfusion.common.ObservableList<java.lang.String> getYAxisLabelsDataFields()
public void setYAxisLabelsDataFields(com.mindfusion.common.ObservableList<java.lang.String> value)
public com.mindfusion.common.ObservableList<java.lang.String> getZAxisLabelsDataFields()
public void setZAxisLabelsDataFields(com.mindfusion.common.ObservableList<java.lang.String> value)
public void elementAdded(java.lang.String newElement)
elementAdded
in interface com.mindfusion.common.ObservableListListener<java.lang.String>
public void elementRemoved(java.lang.String oldElement)
elementRemoved
in interface com.mindfusion.common.ObservableListListener<java.lang.String>