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 theXYPlot
class.- 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 void
addXYItemClickListener(XYItemClickListener listener)
Registers a listener to receive notification of category item clicks.void
fireXYItemClickEvent(XYItemClickEvent event)
Fires a category item click event.org.jfree.chart.plot.PlotOrientation
getOrientation()
Returns the orientation for the plot.java.lang.String
getToolTipFormat()
Returns the format string for the item tool tips.java.awt.Paint
getXAxisGridlinePaint()
Returns the grid line paint for the gridlines perpendicular to the x-axis.java.lang.String
getXAxisLabel()
Returns the x-axis label.java.awt.Font
getXAxisLabelFont()
Returns the font for the x-axis label.java.awt.Paint
getXAxisLabelPaint()
Returns the paint for the x-axis label.org.jfree.chart.axis.AxisLocation
getXAxisLocation()
Returns the permitted axis locations for the x-axis.double
getXAxisLowerMargin()
Returns the lower margin for the x-axis.java.awt.Font
getXAxisTickLabelFont()
Returns the font for the x-axis tick labels.java.awt.Paint
getXAxisTickLabelPaint()
Returns the paint for the x-axis tick labels.double
getXAxisUpperMargin()
Returns the upper margin for the x-axis.boolean
getYAxisAutoRangeIncludesZero()
Returns the flag that controls whether or not the auto range calculation is forced to include zero.java.awt.Paint
getYAxisGridlinePaint()
Returns the y-axis gridline paint.java.lang.String
getYAxisLabel()
Returns the y-axis label.java.awt.Font
getYAxisLabelFont()
Returns the font for the y-axis label.java.awt.Paint
getYAxisLabelPaint()
Returns the paint for the y-axis label.org.jfree.chart.axis.AxisLocation
getYAxisLocation()
Returns the permitted axis locations for the y-axis.double
getYAxisLowerMargin()
Returns the lower margin for the y-axis.AxisScale
getYAxisScale()
Returns the scale type for the y-axis.java.awt.Font
getYAxisTickLabelFont()
Returns the font for the y-axis tick labels.java.awt.Paint
getYAxisTickLabelPaint()
Returns the paint for the y-axis tick labels.double
getYAxisUpperMargin()
Returns the upper margin for the y-axis.boolean
isXAxisGridlinesVisible()
Returnstrue
if the x-axis gridlines are visible, andfalse
otherwise.boolean
isXAxisInverted()
Returnstrue
if the x-axis is inverted, andfalse
otherwise.boolean
isXAxisNegativeArrowVisible()
Returns a flag that controls whether or not an arrow-head is displayed at the negative end of the x-axis.boolean
isXAxisPositiveArrowVisible()
Returns a flag that controls whether or not an arrow-head is displayed at the positive end of the x-axis.boolean
isYAxisGridlinesVisible()
Returnstrue
if the y-axis gridlines are visible, andfalse
otherwise.boolean
isYAxisInverted()
Returnstrue
if the y-axis is inverted, andfalse
otherwise.boolean
isYAxisNegativeArrowVisible()
Returns a flag that controls whether or not an arrow-head is displayed at the negative end of the y-axis.boolean
isYAxisPositiveArrowVisible()
Returns a flag that controls whether or not an arrow-head is displayed at the positive end of the y-axis.void
mouseClicked(java.awt.event.MouseEvent event)
If the user clicks on the chart, see if that translates into an event that we report...void
removeXYItemClickListener(XYItemClickListener listener)
Unregisters a listener so that it no longer receives notification of category item clicks.void
setOrientation(org.jfree.chart.plot.PlotOrientation orientation)
Sets the orientation for the plot and fires aPropertyChangeEvent
for theorientation
property.void
setToolTipFormat(java.lang.String format)
Sets the format string for the section tool tips and fires aPropertyChangeEvent
for thetoolTipFormat
property.void
setXAxisGridlinePaint(java.awt.Paint paint)
Sets the paint for the x-axis gridlines and fires aPropertyChangeEvent
for thexAxisGridlinePaint
property.void
setXAxisGridlinesVisible(boolean visible)
Sets a flag that controls whether or not the x-axis gridlines are drawn and fires aPropertyChangeEvent
for thexAxisGridlinesVisible
property.void
setXAxisInverted(boolean inverted)
Sets a flag that controls whether or not the x-axis is inverted and fires aPropertyChangeEvent
for thexAxisInverted
property.void
setXAxisLabel(java.lang.String label)
Sets the x-axis label and fires aPropertyChangeEvent
for thexAxisLabel
property.void
setXAxisLabelFont(java.awt.Font font)
Sets the font for the x-axis label and fires aPropertyChangeEvent
for thexAxisLabelFont
property.void
setXAxisLabelPaint(java.awt.Paint paint)
Sets the paint for the x-axis label and fires aPropertyChangeEvent
for thexAxisLabelPaint
property.void
setXAxisLocation(org.jfree.chart.axis.AxisLocation location)
Sets the axis location for the x-axis and fires aPropertyChangeEvent
for thexAxisLocation
argument.void
setXAxisLowerMargin(double margin)
Sets the lower margin for the x-axis and fires aPropertyChangeEvent
for thexAxisLowerMargin
property.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 aPropertyChangeEvent
for thexAxisNegativeArrowVisible
property.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 aPropertyChangeEvent
for theyAxisPositiveArrowVisible
property.void
setXAxisTickLabelFont(java.awt.Font font)
Sets the font for the x-axis tick labels and fires aPropertyChangeEvent
for thexAxisTickLabelFont
property.void
setXAxisTickLabelPaint(java.awt.Paint paint)
Sets the paint for the x-axis tick labels and fires aPropertyChangeEvent
for thexAxisTickLabelPaint
property.void
setXAxisUpperMargin(double margin)
Sets the upper margin for the x-axis and fires aPropertyChangeEvent
for thexAxisUpperMargin
property.void
setYAxisAutoRangeIncludesZero(boolean include)
Sets the flag that controls whether or not the auto range calculation is forced to include zero, and fires aPropertyChangeEvent
for theyAxisAutoRangeIncludesZero
property.void
setYAxisGridlinePaint(java.awt.Paint paint)
Sets the y-axis gridline paint and fires aPropertyChangeEvent
for theyAxisGridlinePaint
property.void
setYAxisGridlinesVisible(boolean visible)
Sets a flag that controls whether or not the y-axis gridlines are drawn and fires aPropertyChangeEvent
for theyAxisGridlinesVisible
property.void
setYAxisInverted(boolean inverted)
Sets a flag that controls whether or not the y-axis is inverted and fires aPropertyChangeEvent
for theyAxisInverted
property.void
setYAxisLabel(java.lang.String label)
Sets the y-axis label and fires aPropertyChangeEvent
for theyAxisLabel
property.void
setYAxisLabelFont(java.awt.Font font)
Sets the font for the y-axis label and fires aPropertyChangeEvent
for theyAxisLabelFont
property.void
setYAxisLabelPaint(java.awt.Paint paint)
Sets the paint for the y-axis label and fires aPropertyChangeEvent
for theyAxisLabelPaint
property.void
setYAxisLocation(org.jfree.chart.axis.AxisLocation location)
Sets the axis location for the y-axis and fires aPropertyChangeEvent
for theyAxisLocation
property.void
setYAxisLowerMargin(double margin)
Sets the lower margin for the y-axis and fires aPropertyChangeEvent
for theyAxisLowerMargin
property.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 aPropertyChangeEvent
for theyAxisNegativeArrowVisible
property.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 aPropertyChangeEvent
for theyAxisPositiveArrowVisible
property.void
setYAxisScale(AxisScale scale)
Sets the scale type for the y-axis and fires aPropertyChangeEvent
for theyAxisScale
property.void
setYAxisTickLabelFont(java.awt.Font font)
Sets the font for the y-axis tick labels and fires aPropertyChangeEvent
for theyAxisTickLabelFont
property.void
setYAxisTickLabelPaint(java.awt.Paint paint)
Sets the paint for the y-axis tick labels and fires aPropertyChangeEvent
for theyAxisTickLabelPaint
property.void
setYAxisUpperMargin(double margin)
Sets the upper margin for the y-axis and fires aPropertyChangeEvent
for theyAxisUpperMargin
property.-
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 aPropertyChangeEvent
for theorientation
property.- Parameters:
orientation
- the orientation (null
not 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 aPropertyChangeEvent
for thexAxisLabel
property.- 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 aPropertyChangeEvent
for thexAxisLabelFont
property.- Parameters:
font
- the font (null
not 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 aPropertyChangeEvent
for thexAxisLabelPaint
property.- Parameters:
paint
- the paint (null
not permitted).- See Also:
getXAxisLabelPaint()
-
isXAxisInverted
public boolean isXAxisInverted()
Returnstrue
if the x-axis is inverted, andfalse
otherwise.- 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 aPropertyChangeEvent
for thexAxisInverted
property.- 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 aPropertyChangeEvent
for thexAxisLowerMargin
property.- 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 aPropertyChangeEvent
for thexAxisUpperMargin
property.- Parameters:
margin
- the margin.- See Also:
getXAxisUpperMargin()
-
isXAxisGridlinesVisible
public boolean isXAxisGridlinesVisible()
Returnstrue
if the x-axis gridlines are visible, andfalse
otherwise.- 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 aPropertyChangeEvent
for thexAxisGridlinesVisible
property.- 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 aPropertyChangeEvent
for thexAxisTickLabelFont
property.- Parameters:
font
- the font (null
not 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 aPropertyChangeEvent
for thexAxisTickLabelPaint
property.- Parameters:
paint
- the paint (null
not 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 aPropertyChangeEvent
for theyAxisLabel
property.- 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 aPropertyChangeEvent
for theyAxisLabelFont
property.- Parameters:
font
- the font (null
not 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 aPropertyChangeEvent
for theyAxisLabelPaint
property.- Parameters:
paint
- the paint (null
not 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 aPropertyChangeEvent
for theyAxisScale
property.- Parameters:
scale
- the scale type.- See Also:
getYAxisScale()
-
isYAxisInverted
public boolean isYAxisInverted()
Returnstrue
if the y-axis is inverted, andfalse
otherwise.- 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 aPropertyChangeEvent
for theyAxisInverted
property.- 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 aPropertyChangeEvent
for theyAxisAutoRangeIncludesZero
property.- 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 aPropertyChangeEvent
for theyAxisLowerMargin
property.- 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 aPropertyChangeEvent
for theyAxisUpperMargin
property.- Parameters:
margin
- the margin.- See Also:
getYAxisUpperMargin()
-
isYAxisGridlinesVisible
public boolean isYAxisGridlinesVisible()
Returnstrue
if the y-axis gridlines are visible, andfalse
otherwise.- 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 aPropertyChangeEvent
for theyAxisGridlinesVisible
property.- 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 aPropertyChangeEvent
for thexAxisGridlinePaint
property.- 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 aPropertyChangeEvent
for theyAxisGridlinePaint
property.- 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 aPropertyChangeEvent
for theyAxisTickLabelFont
property.- Parameters:
font
- the font (null
not 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 aPropertyChangeEvent
for theyAxisTickLabelPaint
property.- Parameters:
paint
- the paint (null
not 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 aPropertyChangeEvent
for thexAxisLocation
argument.- Parameters:
location
- the location (null
not 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 aPropertyChangeEvent
for theyAxisLocation
property.- Parameters:
location
- the location (null
not 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 aPropertyChangeEvent
for thetoolTipFormat
property.- 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 aPropertyChangeEvent
for theyAxisPositiveArrowVisible
property.- 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 aPropertyChangeEvent
for thexAxisNegativeArrowVisible
property.- 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 aPropertyChangeEvent
for theyAxisPositiveArrowVisible
property.- 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 aPropertyChangeEvent
for theyAxisNegativeArrowVisible
property.- 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 (null
not 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 (null
not 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:
mouseClicked
in interfacejava.awt.event.MouseListener
- Overrides:
mouseClicked
in classAbstractChart
- Parameters:
event
- the event.
-
-