Package org.jfree.beans
Class AbstractXYChart
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- org.jfree.beans.AbstractChart
-
- org.jfree.beans.AbstractXYChart
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.awt.event.MouseListener,java.awt.event.MouseMotionListener,java.awt.image.ImageObserver,java.awt.MenuContainer,java.io.Serializable,java.util.EventListener,org.jfree.chart.event.ChartChangeListener
- Direct Known Subclasses:
JTimeSeriesChart,NumericalXYChart
public abstract class AbstractXYChart extends AbstractChart
A base class for beans that use theXYPlotclass.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.jfree.beans.AbstractChart
chart, chartBuffer, chartBufferHeight, chartBufferWidth, info, legend, legendPosition, listeners, scaleX, scaleY, sourceSubtitle, subtitle
-
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
-
-
Constructor Summary
Constructors Constructor Description AbstractXYChart()Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddXYItemClickListener(XYItemClickListener listener)Registers a listener to receive notification of category item clicks.voidfireXYItemClickEvent(XYItemClickEvent event)Fires a category item click event.org.jfree.chart.plot.PlotOrientationgetOrientation()Returns the orientation for the plot.java.lang.StringgetToolTipFormat()Returns the format string for the item tool tips.java.awt.PaintgetXAxisGridlinePaint()Returns the grid line paint for the gridlines perpendicular to the x-axis.java.lang.StringgetXAxisLabel()Returns the x-axis label.java.awt.FontgetXAxisLabelFont()Returns the font for the x-axis label.java.awt.PaintgetXAxisLabelPaint()Returns the paint for the x-axis label.org.jfree.chart.axis.AxisLocationgetXAxisLocation()Returns the permitted axis locations for the x-axis.doublegetXAxisLowerMargin()Returns the lower margin for the x-axis.java.awt.FontgetXAxisTickLabelFont()Returns the font for the x-axis tick labels.java.awt.PaintgetXAxisTickLabelPaint()Returns the paint for the x-axis tick labels.doublegetXAxisUpperMargin()Returns the upper margin for the x-axis.booleangetYAxisAutoRangeIncludesZero()Returns the flag that controls whether or not the auto range calculation is forced to include zero.java.awt.PaintgetYAxisGridlinePaint()Returns the y-axis gridline paint.java.lang.StringgetYAxisLabel()Returns the y-axis label.java.awt.FontgetYAxisLabelFont()Returns the font for the y-axis label.java.awt.PaintgetYAxisLabelPaint()Returns the paint for the y-axis label.org.jfree.chart.axis.AxisLocationgetYAxisLocation()Returns the permitted axis locations for the y-axis.doublegetYAxisLowerMargin()Returns the lower margin for the y-axis.AxisScalegetYAxisScale()Returns the scale type for the y-axis.java.awt.FontgetYAxisTickLabelFont()Returns the font for the y-axis tick labels.java.awt.PaintgetYAxisTickLabelPaint()Returns the paint for the y-axis tick labels.doublegetYAxisUpperMargin()Returns the upper margin for the y-axis.booleanisXAxisGridlinesVisible()Returnstrueif the x-axis gridlines are visible, andfalseotherwise.booleanisXAxisInverted()Returnstrueif the x-axis is inverted, andfalseotherwise.booleanisXAxisNegativeArrowVisible()Returns a flag that controls whether or not an arrow-head is displayed at the negative end of the x-axis.booleanisXAxisPositiveArrowVisible()Returns a flag that controls whether or not an arrow-head is displayed at the positive end of the x-axis.booleanisYAxisGridlinesVisible()Returnstrueif the y-axis gridlines are visible, andfalseotherwise.booleanisYAxisInverted()Returnstrueif the y-axis is inverted, andfalseotherwise.booleanisYAxisNegativeArrowVisible()Returns a flag that controls whether or not an arrow-head is displayed at the negative end of the y-axis.booleanisYAxisPositiveArrowVisible()Returns a flag that controls whether or not an arrow-head is displayed at the positive end of the y-axis.voidmouseClicked(java.awt.event.MouseEvent event)If the user clicks on the chart, see if that translates into an event that we report...voidremoveXYItemClickListener(XYItemClickListener listener)Unregisters a listener so that it no longer receives notification of category item clicks.voidsetOrientation(org.jfree.chart.plot.PlotOrientation orientation)Sets the orientation for the plot and fires aPropertyChangeEventfor theorientationproperty.voidsetToolTipFormat(java.lang.String format)Sets the format string for the section tool tips and fires aPropertyChangeEventfor thetoolTipFormatproperty.voidsetXAxisGridlinePaint(java.awt.Paint paint)Sets the paint for the x-axis gridlines and fires aPropertyChangeEventfor thexAxisGridlinePaintproperty.voidsetXAxisGridlinesVisible(boolean visible)Sets a flag that controls whether or not the x-axis gridlines are drawn and fires aPropertyChangeEventfor thexAxisGridlinesVisibleproperty.voidsetXAxisInverted(boolean inverted)Sets a flag that controls whether or not the x-axis is inverted and fires aPropertyChangeEventfor thexAxisInvertedproperty.voidsetXAxisLabel(java.lang.String label)Sets the x-axis label and fires aPropertyChangeEventfor thexAxisLabelproperty.voidsetXAxisLabelFont(java.awt.Font font)Sets the font for the x-axis label and fires aPropertyChangeEventfor thexAxisLabelFontproperty.voidsetXAxisLabelPaint(java.awt.Paint paint)Sets the paint for the x-axis label and fires aPropertyChangeEventfor thexAxisLabelPaintproperty.voidsetXAxisLocation(org.jfree.chart.axis.AxisLocation location)Sets the axis location for the x-axis and fires aPropertyChangeEventfor thexAxisLocationargument.voidsetXAxisLowerMargin(double margin)Sets the lower margin for the x-axis and fires aPropertyChangeEventfor thexAxisLowerMarginproperty.voidsetXAxisNegativeArrowVisible(boolean visible)Sets the flag that controls whether or not an arrow-head is displayed at the negative end of the x-axis and fires aPropertyChangeEventfor thexAxisNegativeArrowVisibleproperty.voidsetXAxisPositiveArrowVisible(boolean visible)Sets the flag that controls whether or not an arrow-head is displayed at the positive end of the y-axis and fires aPropertyChangeEventfor theyAxisPositiveArrowVisibleproperty.voidsetXAxisTickLabelFont(java.awt.Font font)Sets the font for the x-axis tick labels and fires aPropertyChangeEventfor thexAxisTickLabelFontproperty.voidsetXAxisTickLabelPaint(java.awt.Paint paint)Sets the paint for the x-axis tick labels and fires aPropertyChangeEventfor thexAxisTickLabelPaintproperty.voidsetXAxisUpperMargin(double margin)Sets the upper margin for the x-axis and fires aPropertyChangeEventfor thexAxisUpperMarginproperty.voidsetYAxisAutoRangeIncludesZero(boolean include)Sets the flag that controls whether or not the auto range calculation is forced to include zero, and fires aPropertyChangeEventfor theyAxisAutoRangeIncludesZeroproperty.voidsetYAxisGridlinePaint(java.awt.Paint paint)Sets the y-axis gridline paint and fires aPropertyChangeEventfor theyAxisGridlinePaintproperty.voidsetYAxisGridlinesVisible(boolean visible)Sets a flag that controls whether or not the y-axis gridlines are drawn and fires aPropertyChangeEventfor theyAxisGridlinesVisibleproperty.voidsetYAxisInverted(boolean inverted)Sets a flag that controls whether or not the y-axis is inverted and fires aPropertyChangeEventfor theyAxisInvertedproperty.voidsetYAxisLabel(java.lang.String label)Sets the y-axis label and fires aPropertyChangeEventfor theyAxisLabelproperty.voidsetYAxisLabelFont(java.awt.Font font)Sets the font for the y-axis label and fires aPropertyChangeEventfor theyAxisLabelFontproperty.voidsetYAxisLabelPaint(java.awt.Paint paint)Sets the paint for the y-axis label and fires aPropertyChangeEventfor theyAxisLabelPaintproperty.voidsetYAxisLocation(org.jfree.chart.axis.AxisLocation location)Sets the axis location for the y-axis and fires aPropertyChangeEventfor theyAxisLocationproperty.voidsetYAxisLowerMargin(double margin)Sets the lower margin for the y-axis and fires aPropertyChangeEventfor theyAxisLowerMarginproperty.voidsetYAxisNegativeArrowVisible(boolean visible)Sets the flag that controls whether or not an arrow-head is displayed at the negative end of the y-axis and fires aPropertyChangeEventfor theyAxisNegativeArrowVisibleproperty.voidsetYAxisPositiveArrowVisible(boolean visible)Sets the flag that controls whether or not an arrow-head is displayed at the positive end of the y-axis and fires aPropertyChangeEventfor theyAxisPositiveArrowVisibleproperty.voidsetYAxisScale(AxisScale scale)Sets the scale type for the y-axis and fires aPropertyChangeEventfor theyAxisScaleproperty.voidsetYAxisTickLabelFont(java.awt.Font font)Sets the font for the y-axis tick labels and fires aPropertyChangeEventfor theyAxisTickLabelFontproperty.voidsetYAxisTickLabelPaint(java.awt.Paint paint)Sets the paint for the y-axis tick labels and fires aPropertyChangeEventfor theyAxisTickLabelPaintproperty.voidsetYAxisUpperMargin(double margin)Sets the upper margin for the y-axis and fires aPropertyChangeEventfor theyAxisUpperMarginproperty.-
Methods inherited from class org.jfree.beans.AbstractChart
actionPerformed, addLegendClickListener, chartChanged, createDefaultChart, createPopup, doSaveAs, fireLegendClickEvent, getAntiAlias, getChartBackgroundImage, getChartBackgroundImageAlpha, getChartBackgroundPaint, getChartBorderPaint, getChartBorderStroke, getChartPadding, getLegendItemFont, getLegendItemPaint, getLegendPosition, getPlotBackgroundAlpha, getPlotBackgroundPaint, getScreenDataArea, getSource, getSourceFont, getSourcePaint, getSubtitle, getSubtitleFont, getSubtitlePaint, getTitle, getTitleFont, getTitlePaint, getToolTipText, isChartBorderVisible, isPlotOutlineVisible, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, paintComponent, removeLegendClickListener, restoreAutoBounds, restoreAutoDomainBounds, restoreAutoRangeBounds, setAntiAlias, setChartBackgroundImage, setChartBackgroundImageAlpha, setChartBackgroundPaint, setChartBorderPaint, setChartBorderStroke, setChartBorderVisible, setChartPadding, setLegendItemFont, setLegendItemPaint, setLegendPosition, setPlotBackgroundAlpha, setPlotBackgroundPaint, setPlotOutlineVisible, setSource, setSourceFont, setSourcePaint, setSubtitle, setSubtitleFont, setSubtitlePaint, setTitle, setTitleFont, setTitlePaint, setToolTipsEnabled, translateJava2DToScreen, translateScreenToJava2D, zoom
-
Methods inherited from class javax.swing.JComponent
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, getTopLevelAncestor, getTransferHandler, getUI, 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
-
Methods inherited from class java.awt.Container
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
-
Methods inherited from class java.awt.Component
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, 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, 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, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
-
-
-
Constructor Detail
-
AbstractXYChart
public AbstractXYChart()
Creates a new instance.
-
-
Method Detail
-
getOrientation
public org.jfree.chart.plot.PlotOrientation getOrientation()
Returns the orientation for the plot.- Returns:
- The orientation.
- See Also:
setOrientation(PlotOrientation)
-
setOrientation
public void setOrientation(org.jfree.chart.plot.PlotOrientation orientation)
Sets the orientation for the plot and fires aPropertyChangeEventfor theorientationproperty.- Parameters:
orientation- the orientation (nullnot permitted).- See Also:
setOrientation(PlotOrientation)
-
getXAxisLabel
public java.lang.String getXAxisLabel()
Returns the x-axis label.- Returns:
- The x-axis label.
- See Also:
setXAxisLabel(String)
-
setXAxisLabel
public void setXAxisLabel(java.lang.String label)
Sets the x-axis label and fires aPropertyChangeEventfor thexAxisLabelproperty.- Parameters:
label- the new label.- See Also:
getXAxisLabel()
-
getXAxisLabelFont
public java.awt.Font getXAxisLabelFont()
Returns the font for the x-axis label.- Returns:
- The font for the x-axis label.
- See Also:
setXAxisLabelFont(Font)
-
setXAxisLabelFont
public void setXAxisLabelFont(java.awt.Font font)
Sets the font for the x-axis label and fires aPropertyChangeEventfor thexAxisLabelFontproperty.- Parameters:
font- the font (nullnot permitted).- See Also:
getXAxisLabelFont()
-
getXAxisLabelPaint
public java.awt.Paint getXAxisLabelPaint()
Returns the paint for the x-axis label.- Returns:
- The paint for the x-axis label.
- See Also:
setXAxisLabelPaint(Paint)
-
setXAxisLabelPaint
public void setXAxisLabelPaint(java.awt.Paint paint)
Sets the paint for the x-axis label and fires aPropertyChangeEventfor thexAxisLabelPaintproperty.- Parameters:
paint- the paint (nullnot permitted).- See Also:
getXAxisLabelPaint()
-
isXAxisInverted
public boolean isXAxisInverted()
Returnstrueif the x-axis is inverted, andfalseotherwise.- Returns:
- A boolean.
- See Also:
setXAxisInverted(boolean)
-
setXAxisInverted
public void setXAxisInverted(boolean inverted)
Sets a flag that controls whether or not the x-axis is inverted and fires aPropertyChangeEventfor thexAxisInvertedproperty.- Parameters:
inverted- the new flag value.- See Also:
isXAxisInverted()
-
getXAxisLowerMargin
public double getXAxisLowerMargin()
Returns the lower margin for the x-axis.- Returns:
- The lower margin.
- See Also:
setXAxisLowerMargin(double)
-
setXAxisLowerMargin
public void setXAxisLowerMargin(double margin)
Sets the lower margin for the x-axis and fires aPropertyChangeEventfor thexAxisLowerMarginproperty.- Parameters:
margin- the margin.- See Also:
getXAxisLowerMargin()
-
getXAxisUpperMargin
public double getXAxisUpperMargin()
Returns the upper margin for the x-axis.- Returns:
- The upper margin for the x-axis.
- See Also:
setXAxisUpperMargin(double)
-
setXAxisUpperMargin
public void setXAxisUpperMargin(double margin)
Sets the upper margin for the x-axis and fires aPropertyChangeEventfor thexAxisUpperMarginproperty.- Parameters:
margin- the margin.- See Also:
getXAxisUpperMargin()
-
isXAxisGridlinesVisible
public boolean isXAxisGridlinesVisible()
Returnstrueif the x-axis gridlines are visible, andfalseotherwise.- Returns:
- A boolean.
- See Also:
setXAxisGridlinesVisible(boolean)
-
setXAxisGridlinesVisible
public void setXAxisGridlinesVisible(boolean visible)
Sets a flag that controls whether or not the x-axis gridlines are drawn and fires aPropertyChangeEventfor thexAxisGridlinesVisibleproperty.- Parameters:
visible- the new flag value.- See Also:
isXAxisGridlinesVisible()
-
getXAxisTickLabelFont
public java.awt.Font getXAxisTickLabelFont()
Returns the font for the x-axis tick labels.- Returns:
- The font for the x-axis tick labels.
- See Also:
setXAxisTickLabelFont(Font)
-
setXAxisTickLabelFont
public void setXAxisTickLabelFont(java.awt.Font font)
Sets the font for the x-axis tick labels and fires aPropertyChangeEventfor thexAxisTickLabelFontproperty.- Parameters:
font- the font (nullnot permitted).- See Also:
getXAxisTickLabelFont()
-
getXAxisTickLabelPaint
public java.awt.Paint getXAxisTickLabelPaint()
Returns the paint for the x-axis tick labels.- Returns:
- The paint for the x-axis tick labels.
- See Also:
setXAxisTickLabelPaint(Paint)
-
setXAxisTickLabelPaint
public void setXAxisTickLabelPaint(java.awt.Paint paint)
Sets the paint for the x-axis tick labels and fires aPropertyChangeEventfor thexAxisTickLabelPaintproperty.- Parameters:
paint- the paint (nullnot permitted).- See Also:
getXAxisTickLabelPaint()
-
getYAxisLabel
public java.lang.String getYAxisLabel()
Returns the y-axis label.- Returns:
- The y-axis label.
- See Also:
setYAxisLabel(String)
-
setYAxisLabel
public void setYAxisLabel(java.lang.String label)
Sets the y-axis label and fires aPropertyChangeEventfor theyAxisLabelproperty.- Parameters:
label- the label.- See Also:
getYAxisLabel()
-
getYAxisLabelFont
public java.awt.Font getYAxisLabelFont()
Returns the font for the y-axis label.- Returns:
- The font for the y-axis label.
- See Also:
setYAxisLabelFont(Font)
-
setYAxisLabelFont
public void setYAxisLabelFont(java.awt.Font font)
Sets the font for the y-axis label and fires aPropertyChangeEventfor theyAxisLabelFontproperty.- Parameters:
font- the font (nullnot permitted).- See Also:
getYAxisLabelFont()
-
getYAxisLabelPaint
public java.awt.Paint getYAxisLabelPaint()
Returns the paint for the y-axis label.- Returns:
- The paint for the y-axis label.
- See Also:
setYAxisLabelPaint(Paint)
-
setYAxisLabelPaint
public void setYAxisLabelPaint(java.awt.Paint paint)
Sets the paint for the y-axis label and fires aPropertyChangeEventfor theyAxisLabelPaintproperty.- Parameters:
paint- the paint (nullnot permitted).- See Also:
getYAxisLabelPaint()
-
getYAxisScale
public AxisScale getYAxisScale()
Returns the scale type for the y-axis.- Returns:
- The scale type.
- See Also:
setYAxisScale(AxisScale)
-
setYAxisScale
public void setYAxisScale(AxisScale scale)
Sets the scale type for the y-axis and fires aPropertyChangeEventfor theyAxisScaleproperty.- Parameters:
scale- the scale type.- See Also:
getYAxisScale()
-
isYAxisInverted
public boolean isYAxisInverted()
Returnstrueif the y-axis is inverted, andfalseotherwise.- Returns:
- A boolean.
- See Also:
setYAxisInverted(boolean)
-
setYAxisInverted
public void setYAxisInverted(boolean inverted)
Sets a flag that controls whether or not the y-axis is inverted and fires aPropertyChangeEventfor theyAxisInvertedproperty.- Parameters:
inverted- the new flag value.- See Also:
isYAxisInverted()
-
getYAxisAutoRangeIncludesZero
public boolean getYAxisAutoRangeIncludesZero()
Returns the flag that controls whether or not the auto range calculation is forced to include zero.- Returns:
- A boolean.
- See Also:
setYAxisAutoRangeIncludesZero(boolean)
-
setYAxisAutoRangeIncludesZero
public void setYAxisAutoRangeIncludesZero(boolean include)
Sets the flag that controls whether or not the auto range calculation is forced to include zero, and fires aPropertyChangeEventfor theyAxisAutoRangeIncludesZeroproperty.- Parameters:
include- the new flag value.- See Also:
getYAxisAutoRangeIncludesZero()
-
getYAxisLowerMargin
public double getYAxisLowerMargin()
Returns the lower margin for the y-axis.- Returns:
- The lower margin.
- See Also:
setYAxisLowerMargin(double)
-
setYAxisLowerMargin
public void setYAxisLowerMargin(double margin)
Sets the lower margin for the y-axis and fires aPropertyChangeEventfor theyAxisLowerMarginproperty.- Parameters:
margin- the margin.- See Also:
getYAxisLowerMargin()
-
getYAxisUpperMargin
public double getYAxisUpperMargin()
Returns the upper margin for the y-axis.- Returns:
- The upper margin for the y-axis.
- See Also:
setYAxisUpperMargin(double)
-
setYAxisUpperMargin
public void setYAxisUpperMargin(double margin)
Sets the upper margin for the y-axis and fires aPropertyChangeEventfor theyAxisUpperMarginproperty.- Parameters:
margin- the margin.- See Also:
getYAxisUpperMargin()
-
isYAxisGridlinesVisible
public boolean isYAxisGridlinesVisible()
Returnstrueif the y-axis gridlines are visible, andfalseotherwise.- Returns:
- A boolean.
- See Also:
setYAxisGridlinesVisible(boolean)
-
setYAxisGridlinesVisible
public void setYAxisGridlinesVisible(boolean visible)
Sets a flag that controls whether or not the y-axis gridlines are drawn and fires aPropertyChangeEventfor theyAxisGridlinesVisibleproperty.- Parameters:
visible- the new flag value.- See Also:
isYAxisGridlinesVisible()
-
getXAxisGridlinePaint
public java.awt.Paint getXAxisGridlinePaint()
Returns the grid line paint for the gridlines perpendicular to the x-axis.- Returns:
- The paint.
- See Also:
setXAxisGridlinePaint(Paint)
-
setXAxisGridlinePaint
public void setXAxisGridlinePaint(java.awt.Paint paint)
Sets the paint for the x-axis gridlines and fires aPropertyChangeEventfor thexAxisGridlinePaintproperty.- Parameters:
paint- the paint.- See Also:
getXAxisGridlinePaint()
-
getYAxisGridlinePaint
public java.awt.Paint getYAxisGridlinePaint()
Returns the y-axis gridline paint.- Returns:
- The y-axis gridline paint.
- See Also:
setYAxisGridlinePaint(Paint)
-
setYAxisGridlinePaint
public void setYAxisGridlinePaint(java.awt.Paint paint)
Sets the y-axis gridline paint and fires aPropertyChangeEventfor theyAxisGridlinePaintproperty.- Parameters:
paint- the paint.- See Also:
getYAxisGridlinePaint()
-
getYAxisTickLabelFont
public java.awt.Font getYAxisTickLabelFont()
Returns the font for the y-axis tick labels.- Returns:
- The font for the y-axis tick labels.
- See Also:
setYAxisTickLabelFont(Font)
-
setYAxisTickLabelFont
public void setYAxisTickLabelFont(java.awt.Font font)
Sets the font for the y-axis tick labels and fires aPropertyChangeEventfor theyAxisTickLabelFontproperty.- Parameters:
font- the font (nullnot permitted).- See Also:
getYAxisTickLabelFont()
-
getYAxisTickLabelPaint
public java.awt.Paint getYAxisTickLabelPaint()
Returns the paint for the y-axis tick labels.- Returns:
- The paint for the y-axis tick labels.
- See Also:
setYAxisTickLabelPaint(Paint)
-
setYAxisTickLabelPaint
public void setYAxisTickLabelPaint(java.awt.Paint paint)
Sets the paint for the y-axis tick labels and fires aPropertyChangeEventfor theyAxisTickLabelPaintproperty.- Parameters:
paint- the paint (nullnot permitted).- See Also:
getYAxisTickLabelPaint()
-
getXAxisLocation
public org.jfree.chart.axis.AxisLocation getXAxisLocation()
Returns the permitted axis locations for the x-axis.- Returns:
- The axis location.
- See Also:
setXAxisLocation(AxisLocation)
-
setXAxisLocation
public void setXAxisLocation(org.jfree.chart.axis.AxisLocation location)
Sets the axis location for the x-axis and fires aPropertyChangeEventfor thexAxisLocationargument.- Parameters:
location- the location (nullnot permitted).- See Also:
getXAxisLocation()
-
getYAxisLocation
public org.jfree.chart.axis.AxisLocation getYAxisLocation()
Returns the permitted axis locations for the y-axis.- Returns:
- The axis location.
- See Also:
setYAxisLocation(AxisLocation)
-
setYAxisLocation
public void setYAxisLocation(org.jfree.chart.axis.AxisLocation location)
Sets the axis location for the y-axis and fires aPropertyChangeEventfor theyAxisLocationproperty.- Parameters:
location- the location (nullnot permitted).- See Also:
getYAxisLocation()
-
getToolTipFormat
public java.lang.String getToolTipFormat()
Returns the format string for the item tool tips.- Returns:
- The format string.
- See Also:
setToolTipFormat(String)
-
setToolTipFormat
public void setToolTipFormat(java.lang.String format)
Sets the format string for the section tool tips and fires aPropertyChangeEventfor thetoolTipFormatproperty.- Parameters:
format- the format string.- See Also:
getToolTipFormat()
-
isXAxisPositiveArrowVisible
public boolean isXAxisPositiveArrowVisible()
Returns a flag that controls whether or not an arrow-head is displayed at the positive end of the x-axis.- Returns:
- A boolean.
- See Also:
setXAxisPositiveArrowVisible(boolean)
-
setXAxisPositiveArrowVisible
public void setXAxisPositiveArrowVisible(boolean visible)
Sets the flag that controls whether or not an arrow-head is displayed at the positive end of the y-axis and fires aPropertyChangeEventfor theyAxisPositiveArrowVisibleproperty.- Parameters:
visible- the new flag value.- See Also:
isYAxisPositiveArrowVisible()
-
isXAxisNegativeArrowVisible
public boolean isXAxisNegativeArrowVisible()
Returns a flag that controls whether or not an arrow-head is displayed at the negative end of the x-axis.- Returns:
- A boolean.
- See Also:
setXAxisNegativeArrowVisible(boolean)
-
setXAxisNegativeArrowVisible
public void setXAxisNegativeArrowVisible(boolean visible)
Sets the flag that controls whether or not an arrow-head is displayed at the negative end of the x-axis and fires aPropertyChangeEventfor thexAxisNegativeArrowVisibleproperty.- Parameters:
visible- the new flag value.- See Also:
isXAxisNegativeArrowVisible()
-
isYAxisPositiveArrowVisible
public boolean isYAxisPositiveArrowVisible()
Returns a flag that controls whether or not an arrow-head is displayed at the positive end of the y-axis.- Returns:
- A boolean.
- See Also:
setYAxisPositiveArrowVisible(boolean)
-
setYAxisPositiveArrowVisible
public void setYAxisPositiveArrowVisible(boolean visible)
Sets the flag that controls whether or not an arrow-head is displayed at the positive end of the y-axis and fires aPropertyChangeEventfor theyAxisPositiveArrowVisibleproperty.- Parameters:
visible- the new flag value.- See Also:
isYAxisPositiveArrowVisible()
-
isYAxisNegativeArrowVisible
public boolean isYAxisNegativeArrowVisible()
Returns a flag that controls whether or not an arrow-head is displayed at the negative end of the y-axis.- Returns:
- A boolean.
- See Also:
setYAxisNegativeArrowVisible(boolean)
-
setYAxisNegativeArrowVisible
public void setYAxisNegativeArrowVisible(boolean visible)
Sets the flag that controls whether or not an arrow-head is displayed at the negative end of the y-axis and fires aPropertyChangeEventfor theyAxisNegativeArrowVisibleproperty.- Parameters:
visible- the new flag value.- See Also:
isYAxisNegativeArrowVisible()
-
addXYItemClickListener
public void addXYItemClickListener(XYItemClickListener listener)
Registers a listener to receive notification of category item clicks.- Parameters:
listener- the listener (nullnot permitted).
-
removeXYItemClickListener
public void removeXYItemClickListener(XYItemClickListener listener)
Unregisters a listener so that it no longer receives notification of category item clicks.- Parameters:
listener- the listener (nullnot permitted).
-
fireXYItemClickEvent
public void fireXYItemClickEvent(XYItemClickEvent event)
Fires a category item click event.- Parameters:
event- the event.
-
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent event)
If the user clicks on the chart, see if that translates into an event that we report...- Specified by:
mouseClickedin interfacejava.awt.event.MouseListener- Overrides:
mouseClickedin classAbstractChart- Parameters:
event- the event.
-
-