com.ijchart.xychart.plot
Class AbstractAxisPlot

java.lang.Object
  extended by com.ijchart.xychart.plot.AbstractPlot
      extended by com.ijchart.xychart.plot.AbstractAxisPlot
All Implemented Interfaces:
IAxisChangeListener, IDatasetChangeListener, IRenderChangeListener, IZoomable, java.io.Serializable, java.lang.Cloneable, java.util.EventListener
Direct Known Subclasses:
CategoryPlot, XYPlot

public abstract class AbstractAxisPlot
extends AbstractPlot
implements IRenderChangeListener, java.lang.Cloneable, java.io.Serializable

Title: IJChart

Description: a chart library for the Java(tm) platform.

The plot object which have two axis at least.

Copyright: Copyright (c) 2013

Company:

Version:
1.0
Author:
zhang feng min,shanghai china. Contract me by email.
See Also:
Serialized Form

Field Summary
static ChartOrientation DEFAULT_CHART_ORIENTATION
           The default chart orientation.
static java.awt.Paint DEFAULT_CROSSHAIR_PAINT
           The default crosshair paint.
static java.awt.Stroke DEFAULT_CROSSHAIR_STROKE
           The default crosshair stroke.
static boolean DEFAULT_DOMAIN_CROSSHAIR_LOCKED_ON_DATA
           A default flag that controls whether or not the crosshair locks onto actual data points.
static boolean DEFAULT_DOMAIN_CROSSHAIR_VISIBLE
           A default flag that controls whether or not a domain crosshair is drawn.
static boolean DEFAULT_DOMAIN_GRIDLINE_VISIBLE
           The default visibility of the grid lines plotted against the domain axis.
static boolean DEFAULT_DOMAIN_ZERO_BASELINE_VISIBLE
           A default flag that controls whether or not the zero baseline against the domain axis is visible.
static java.awt.Paint DEFAULT_GRIDLINE_PAINT
           The default grid line paint.
static java.awt.Stroke DEFAULT_GRIDLINE_STROKE
           The default grid line stroke.
static boolean DEFAULT_VALUE_CROSSHAIR_LOCKED_ON_DATA
           A default flag that controls whether or not the crosshair locks onto actual data points.
static boolean DEFAULT_VALUE_CROSSHAIR_VISIBLE
           A default flag that controls whether or not a value crosshair is drawn.
static boolean DEFAULT_VALUE_GRIDLINE_VISIBLE
           The default visibility of the grid lines plotted against the value axis.
protected  java.util.List domainAxes
           Storage for the domain axes.
protected  java.util.Hashtable renderToDomainAxis
           Storage for keys that map render to domain axis.
protected  java.util.Hashtable renderToValueAxis
           Storage for keys that map render to value axis.
protected  java.util.List valueAxes
           Storage for the value axes.
 
Fields inherited from class com.ijchart.xychart.plot.AbstractPlot
dataArea, DEFAULT_BACKGROUND_ALPHA, DEFAULT_BACKGROUND_IMAGE_ALIGNMENT, DEFAULT_BACKGROUND_PAINT, DEFAULT_BORDER_PAINT, DEFAULT_BORDER_STROKE, DEFAULT_BORDER_VISIBLE, DEFAULT_DRAW_NO_DATA_MESSAGE, DEFAULT_DRAWINT_SUPPLIER, DEFAULT_FOREGROUND_ALPHA, DEFAULT_INSETS, DEFAULT_MINIMUM_HEIGHT_TO_DRAW, DEFAULT_MINIMUM_WIDTH_TO_DRAW, DEFAULT_NO_DATA_MESSAGE, DEFAULT_NO_DATA_MESSAGE_FONT, DEFAULT_NO_DATA_MESSAGE_PAINT, DEFAULT_RENDER_CALL_ORDER, drawNoDataMessage, plotShapes, renderingOrder, renderShapesList
 
Constructor Summary
AbstractAxisPlot()
           The default constructor.
 
Method Summary
protected  void allocateRenderShapesList(int renderSize)
           Allocate render shapes.
 void clearDomainAxes()
           Clears the domain axes from the plot and sends a PlotChangeEvent to all registered listeners.
 void clearValueAxes()
           Clears the value axes from the plot and sends a PlotChangeEvent to all registered listeners.
 java.lang.Object clone()
          Returns a clone of the plot.
 boolean drawCrosshair(java.awt.geom.Point2D mouseClickPoint)
           Draws the crosshair.
protected  void drawValueGridlines(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D dataArea, RenderShapeCollection renderShapes, int valueAxesSize)
           Draws the first value axis gridlines for the plot.
 boolean equals(java.lang.Object obj)
           Tests the plot for equality with an arbitrary object.
 RectangleInsets getAxisOffset()
           Returns the axis offset.
 java.awt.geom.Point2D getCrosshairPoint(java.awt.geom.Point2D mouseClickPoint)
           Returns the crosshair point.
 java.awt.Paint getDomainCrosshairPaint()
           Returns the Paint used to draw the crosshair.
 java.awt.Stroke getDomainCrosshairStroke()
           Returns the Stroke used to draw the crosshair (if visible).
 java.awt.Paint getDomainGridlinePaint()
           Returns the paint used to draw grid-lines against the domain axis.
 java.awt.Stroke getDomainGridlineStroke()
           Returns the stroke used to draw the domain grid-lines.
 ChartOrientation getOrientation()
           Returns the orientation of the plot.
 int getRenderIndexForValueAxis(int valueAxisIndex)
           Returns the render index for a value axis index.
protected  RenderShapeCollection getRenderShapeCollection(int valueAxisIndex)
           Returns the RenderShapeCollection for a value axis index.
 AbstractValueAxis getValueAxis()
           Returns the value axis for the plot.
 AbstractValueAxis getValueAxis(int index)
           Returns a value axis.
 AbstractValueAxis getValueAxisByRenderIndex(int renderIndex)
           Returns a value axis.
 int getValueAxisCount()
           Returns the number of value axes.
 RectangleEdge getValueAxisEdge()
           Returns the edge where the primary value axis is located.
 RectangleEdge getValueAxisEdge(int index)
           Returns the edge for a value axis.
 int getValueAxisIndex(AbstractValueAxis axis)
           Returns the index of the specified axis, or -1 if the axis is not assigned to the plot.
 AxisLocation getValueAxisLocation()
           Returns the value axis location.
 AxisLocation getValueAxisLocation(int index)
           Returns the location for a value axis.
 java.awt.Paint getValueCrosshairPaint()
           Returns the Paint used to draw the crosshair.
 java.awt.Stroke getValueCrosshairStroke()
           Returns the Stroke used to draw the crosshair (if visible).
 java.awt.Paint getValueGridlinePaint()
           Returns the paint used to draw the value axis grid-lines.
 java.awt.Stroke getValueGridlineStroke()
           Returns the stroke used to draw the value axis grid-lines.
 int hashCode()
           Returns a hash code for this object.
 boolean isDomainCrosshairLockedOnData()
           Returns a flag indicating whether or not the crosshair should "lock-on" to actual data values.
 boolean isDomainCrosshairVisible()
           Returns a flag indicating whether or not the domain crosshair is visible.
 boolean isDomainGridlineVisible()
           Returns the flag that controls whether the grid-lines for the domain axis are visible.
 boolean isValueCrosshairLockedOnData()
           Returns a flag indicating whether or not the crosshair should "lock-on" to actual data values.
 boolean isValueCrosshairVisible()
           Returns a flag indicating whether or not the value crosshair is visible.
 boolean isValueGridlineVisible()
           Returns the flag that controls whether the grid-lines for the value axis are visible.
 void mapRenderToDomainAxis(int renderIndex, int domainAxisIndex)
           Maps a render to a domain axis.
 void mapRenderToValueAxis(int renderIndex, int valueAxisIndex)
           Maps a render to a domain axis.
 void mapValueAxisToRender(int valueAxisIndex, int renderIndex)
           Maps a value axis to a render.
 void setAxisOffset(RectangleInsets offset)
           Sets the axis offsets (gap between the data area and the axes) and sends a PlotChangeEvent to all registered listeners.
 void setDomainCrosshairLockedOnData(boolean flag)
           Sets the flag indicating whether or not the domain crosshair should "lock-on" to actual data values.
 void setDomainCrosshairPaint(java.awt.Paint paint)
           Sets the paint used to draw the crosshairs (if visible) and sends a PlotChangeEvent to all registered listeners.
 void setDomainCrosshairStroke(java.awt.Stroke stroke)
           Sets the Stroke used to draw the crosshairs (if visible) and notifies registered listeners that the axis has been modified.
 void setDomainCrosshairVisible(boolean flag)
           Sets the flag indicating whether or not the domain crosshair is visible and, if the flag changes, sends a PlotChangeEvent to all registered listeners.
 void setDomainGridlinePaint(java.awt.Paint paint)
           Sets the paint used to draw the grid-lines (if any) against the domain axis and sends a PlotChangeEvent to all registered listeners.
 void setDomainGridlineStroke(java.awt.Stroke stroke)
           Sets the stroke used to draw grid-lines against the domain axis and sends a PlotChangeEvent to all registered listeners.
 void setDomainGridlineVisible(boolean visible)
           Sets the flag that controls whether or not grid-lines are drawn against the domain axis.
 void setOrientation(ChartOrientation orientation)
           Sets the orientation for the plot and sends a PlotChangeEvent to all registered listeners.
 void setValueAxes(AbstractValueAxis[] axes)
           Sets the value axes for this plot and sends a PlotChangeEvent to all registered listeners.
 void setValueAxes(AbstractValueAxis[] axes, int startIndex)
           Sets the value axes for this plot and sends a PlotChangeEvent to all registered listeners.
 void setValueAxis(AbstractValueAxis axis)
           Sets the value axis for the plot and sends a PlotChangeEvent to all registered listeners.
 void setValueAxis(int index, AbstractValueAxis axis)
           Sets the value axis for the plot and sends a PlotChangeEvent to all registered listeners.
 void setValueAxis(int index, AbstractValueAxis axis, boolean notify)
           Sets a value axis and, if requested, sends a PlotChangeEvent to all registered listeners.
 void setValueAxisLocation(AxisLocation location)
           Sets the location of the value axis and sends a PlotChangeEvent to all registered listeners.
 void setValueAxisLocation(AxisLocation location, boolean notify)
           Sets the location of the value axis and sends a PlotChangeEvent to all registered listeners.
 void setValueAxisLocation(int index, AxisLocation location)
           Sets the location of the value axis and sends a PlotChangeEvent to all registered listeners.
 void setValueAxisLocation(int index, AxisLocation location, boolean notify)
           Sets the location of the value axis and sends a PlotChangeEvent to all registered listeners.
 void setValueCrosshairLockedOnData(boolean flag)
           Sets the flag indicating whether or not the value crosshair should "lock-on" to actual data values.
 void setValueCrosshairPaint(java.awt.Paint paint)
           Sets the paint used to draw the crosshairs (if visible) and sends a PlotChangeEvent to all registered listeners.
 void setValueCrosshairStroke(java.awt.Stroke stroke)
           Sets the Stroke used to draw the crosshairs (if visible) and notifies registered listeners that the axis has been modified.
 void setValueCrosshairVisible(boolean flag)
           Sets the flag indicating whether or not the value crosshair is visible and, if the flag changes, sends a PlotChangeEvent to all registered listeners.
 void setValueGridlinePaint(java.awt.Paint paint)
           Sets the paint used to draw the grid lines against the value axis and sends a PlotChangeEvent to all registered listeners.
 void setValueGridlineStroke(java.awt.Stroke stroke)
           Sets the stroke used to draw the grid-lines against the value axis and sends a PlotChangeEvent to all registered listeners.
 void setValueGridlineVisible(boolean visible)
           Sets the flag that controls whether or not grid-lines are drawn against the value axis.
 java.lang.String toString()
           Override toString method.
protected  void translateMarkerShapes()
           Translate marker shape for 3D chart.
 void zoomValueAxes(java.awt.geom.Rectangle2D selectArea, java.awt.geom.Rectangle2D dataArea, java.awt.geom.Point2D source)
           Zoom value axes.
 
Methods inherited from class com.ijchart.xychart.plot.AbstractPlot
addChangeListener, axisChanged, datasetChanged, draw, drawBackground, drawBackgroundImage, drawBorder, drawNoDataMessage, firePlotChanged, getBackgroundAlpha, getBackgroundImage, getBackgroundImageAlignment, getBackgroundImageAlpha, getBackgroundPaint, getBorderPaint, getBorderStroke, getDataArea, getDrawingSupplier, getForegroundAlpha, getInsets, getNoDataMessage, getNoDataMessageFont, getNoDataMessagePaint, getPlotType, getRenderDrawOrder, getRenders, getRenderShapesList, getSubPlots, handleClick, isBorderVisible, isDomainZoomable, isDrawNoDataMessage, isValueZoomable, notifyListeners, removeChangeListener, renderChanged, resolveDomainAxisLocation, resolveValueAxisLocation, setBackgroundAlpha, setBackgroundImage, setBackgroundImageAlignment, setBackgroundImageAlpha, setBackgroundPaint, setBorderPaint, setBorderStroke, setBorderVisible, setDrawingSupplier, setDrawNoDataMessage, setForegroundAlpha, setInsets, setListObject, setNoDataMessage, setNoDataMessageFont, setNoDataMessagePaint, setRenderDrawOrder, zoomDomainAxes
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ijchart.xychart.listener.IRenderChangeListener
renderChanged
 

Field Detail

DEFAULT_CHART_ORIENTATION

public static final ChartOrientation DEFAULT_CHART_ORIENTATION
The default chart orientation.


DEFAULT_DOMAIN_CROSSHAIR_VISIBLE

public static final boolean DEFAULT_DOMAIN_CROSSHAIR_VISIBLE
A default flag that controls whether or not a domain crosshair is drawn.

See Also:
Constant Field Values

DEFAULT_DOMAIN_CROSSHAIR_LOCKED_ON_DATA

public static final boolean DEFAULT_DOMAIN_CROSSHAIR_LOCKED_ON_DATA
A default flag that controls whether or not the crosshair locks onto actual data points.

See Also:
Constant Field Values

DEFAULT_DOMAIN_ZERO_BASELINE_VISIBLE

public static final boolean DEFAULT_DOMAIN_ZERO_BASELINE_VISIBLE
A default flag that controls whether or not the zero baseline against the domain axis is visible.

See Also:
Constant Field Values

DEFAULT_VALUE_CROSSHAIR_VISIBLE

public static final boolean DEFAULT_VALUE_CROSSHAIR_VISIBLE
A default flag that controls whether or not a value crosshair is drawn.

See Also:
Constant Field Values

DEFAULT_VALUE_CROSSHAIR_LOCKED_ON_DATA

public static final boolean DEFAULT_VALUE_CROSSHAIR_LOCKED_ON_DATA
A default flag that controls whether or not the crosshair locks onto actual data points.

See Also:
Constant Field Values

DEFAULT_DOMAIN_GRIDLINE_VISIBLE

public static final boolean DEFAULT_DOMAIN_GRIDLINE_VISIBLE
The default visibility of the grid lines plotted against the domain axis.

See Also:
Constant Field Values

DEFAULT_VALUE_GRIDLINE_VISIBLE

public static final boolean DEFAULT_VALUE_GRIDLINE_VISIBLE
The default visibility of the grid lines plotted against the value axis.

See Also:
Constant Field Values

DEFAULT_GRIDLINE_STROKE

public static final java.awt.Stroke DEFAULT_GRIDLINE_STROKE
The default grid line stroke.


DEFAULT_GRIDLINE_PAINT

public static final java.awt.Paint DEFAULT_GRIDLINE_PAINT
The default grid line paint.


DEFAULT_CROSSHAIR_STROKE

public static final java.awt.Stroke DEFAULT_CROSSHAIR_STROKE
The default crosshair stroke.


DEFAULT_CROSSHAIR_PAINT

public static final java.awt.Paint DEFAULT_CROSSHAIR_PAINT
The default crosshair paint.


domainAxes

protected java.util.List domainAxes
Storage for the domain axes.


valueAxes

protected java.util.List valueAxes
Storage for the value axes.


renderToDomainAxis

protected java.util.Hashtable renderToDomainAxis
Storage for keys that map render to domain axis.


renderToValueAxis

protected java.util.Hashtable renderToValueAxis
Storage for keys that map render to value axis.

Constructor Detail

AbstractAxisPlot

public AbstractAxisPlot()
The default constructor.

Method Detail

getOrientation

public ChartOrientation getOrientation()
Returns the orientation of the plot.

Specified by:
getOrientation in interface IZoomable
Returns:
The orientation of the plot (never null).

setOrientation

public void setOrientation(ChartOrientation orientation)
Sets the orientation for the plot and sends a PlotChangeEvent to all registered listeners.

Parameters:
orientation - ChartOrientation The orientation (null not permitted).

getAxisOffset

public RectangleInsets getAxisOffset()
Returns the axis offset.

Returns:
The axis offset (never null).

setAxisOffset

public void setAxisOffset(RectangleInsets offset)
Sets the axis offsets (gap between the data area and the axes) and sends a PlotChangeEvent to all registered listeners.

Parameters:
offset - RectangleInsets The offset (null not permitted).

clearDomainAxes

public void clearDomainAxes()
Clears the domain axes from the plot and sends a PlotChangeEvent to all registered listeners.


getValueAxis

public AbstractValueAxis getValueAxis()
Returns the value axis for the plot.

Returns:
AbstractValueAxis The value axis (possibly null).

getValueAxis

public AbstractValueAxis getValueAxis(int index)
Returns a value axis.

Parameters:
index - int The axis index,must be greater than or equal to 0.
Returns:
AbstractValueAxis The axis (null possible).

getValueAxisByRenderIndex

public AbstractValueAxis getValueAxisByRenderIndex(int renderIndex)
Returns a value axis.

Parameters:
renderIndex - The index of render.
Returns:
The value axis (null possible).

setValueAxis

public void setValueAxis(AbstractValueAxis axis)
Sets the value axis for the plot and sends a PlotChangeEvent to all registered listeners.

Parameters:
axis - AbstractValueAxis The axis (null not permitted).

setValueAxis

public void setValueAxis(int index,
                         AbstractValueAxis axis)
Sets the value axis for the plot and sends a PlotChangeEvent to all registered listeners.

Parameters:
index - int The axis index,must be greater than or equal to 0.
axis - AbstractValueAxis The axis (null not permitted).

setValueAxis

public void setValueAxis(int index,
                         AbstractValueAxis axis,
                         boolean notify)
Sets a value axis and, if requested, sends a PlotChangeEvent to all registered listeners.

Parameters:
index - int The axis index,must be greater than or equal to 0.
axis - AbstractValueAxis The value axis (null not permitted).
notify - boolean Whether or not notify listeners.

setValueAxes

public void setValueAxes(AbstractValueAxis[] axes)
Sets the value axes for this plot and sends a PlotChangeEvent to all registered listeners.

Parameters:
axes - AbstractValueAxis[] The axes (null not permitted).

setValueAxes

public void setValueAxes(AbstractValueAxis[] axes,
                         int startIndex)
Sets the value axes for this plot and sends a PlotChangeEvent to all registered listeners.

Parameters:
axes - AbstractValueAxis[] The axes (null not permitted).
startIndex - int The beginning of the index value, startIndex before the target will not be covered. must be greater than or equal to 0.

getValueAxisIndex

public int getValueAxisIndex(AbstractValueAxis axis)
Returns the index of the specified axis, or -1 if the axis is not assigned to the plot.

Parameters:
axis - The value axis (null not permitted).
Returns:
int The axis index.

getValueAxisLocation

public AxisLocation getValueAxisLocation()
Returns the value axis location.

Returns:
AxisLocation The location (never null).

getValueAxisLocation

public AxisLocation getValueAxisLocation(int index)
Returns the location for a value axis.

Parameters:
index - The axis index,must be greater than or equal to 0.
Returns:
AxisLocation The location.

setValueAxisLocation

public void setValueAxisLocation(AxisLocation location)
Sets the location of the value axis and sends a PlotChangeEvent to all registered listeners.

Parameters:
location - AxisLocation The location (null not permitted).

mapRenderToDomainAxis

public void mapRenderToDomainAxis(int renderIndex,
                                  int domainAxisIndex)
Maps a render to a domain axis.

Parameters:
renderIndex - int The index of render object.
domainAxisIndex - int The index of domain axis.

mapRenderToValueAxis

public void mapRenderToValueAxis(int renderIndex,
                                 int valueAxisIndex)
Maps a render to a domain axis.

Parameters:
renderIndex - int The index of render object.
valueAxisIndex - int The index of value axis.

setValueAxisLocation

public void setValueAxisLocation(AxisLocation location,
                                 boolean notify)
Sets the location of the value axis and sends a PlotChangeEvent to all registered listeners.

Parameters:
location - AxisLocation The location (null not permitted).
notify - Whether or not notify listeners.

setValueAxisLocation

public void setValueAxisLocation(int index,
                                 AxisLocation location)
Sets the location of the value axis and sends a PlotChangeEvent to all registered listeners.

Parameters:
index - int The axis index,must be greater than or equal to 0.
location - AxisLocation The location (null not permitted).

setValueAxisLocation

public void setValueAxisLocation(int index,
                                 AxisLocation location,
                                 boolean notify)
Sets the location of the value axis and sends a PlotChangeEvent to all registered listeners.

Parameters:
index - int The axis index,must be greater than or equal to 0.
location - AxisLocation The location (null not permitted).
notify - Whether or not notify listeners.

getValueAxisEdge

public RectangleEdge getValueAxisEdge()
Returns the edge where the primary value axis is located.

Returns:
The edge (never null).

getValueAxisEdge

public RectangleEdge getValueAxisEdge(int index)
Returns the edge for a value axis.

Parameters:
index - int The axis index.
Returns:
RectangleEdge The edge.

getValueAxisCount

public int getValueAxisCount()
Returns the number of value axes.

Returns:
int The axis count.

clearValueAxes

public void clearValueAxes()
Clears the value axes from the plot and sends a PlotChangeEvent to all registered listeners.


isDomainGridlineVisible

public boolean isDomainGridlineVisible()
Returns the flag that controls whether the grid-lines for the domain axis are visible.

Returns:
boolean The true or false.

setDomainGridlineVisible

public void setDomainGridlineVisible(boolean visible)
Sets the flag that controls whether or not grid-lines are drawn against the domain axis.

If the flag value changes, a PlotChangeEvent is sent to all registered listeners.

Parameters:
visible - boolean The new value of the flag.

getDomainGridlineStroke

public java.awt.Stroke getDomainGridlineStroke()
Returns the stroke used to draw the domain grid-lines.

Returns:
Stroke The stroke (never null).

setDomainGridlineStroke

public void setDomainGridlineStroke(java.awt.Stroke stroke)
Sets the stroke used to draw grid-lines against the domain axis and sends a PlotChangeEvent to all registered listeners.

Parameters:
stroke - Stroke The stroke (null not permitted).

getDomainGridlinePaint

public java.awt.Paint getDomainGridlinePaint()
Returns the paint used to draw grid-lines against the domain axis.

Returns:
Paint The paint (never null).

setDomainGridlinePaint

public void setDomainGridlinePaint(java.awt.Paint paint)
Sets the paint used to draw the grid-lines (if any) against the domain axis and sends a PlotChangeEvent to all registered listeners.

Parameters:
paint - Paint The paint (null not permitted).

isValueGridlineVisible

public boolean isValueGridlineVisible()
Returns the flag that controls whether the grid-lines for the value axis are visible.

Returns:
boolean The flag.

setValueGridlineVisible

public void setValueGridlineVisible(boolean visible)
Sets the flag that controls whether or not grid-lines are drawn against the value axis. If the flag changes value, a PlotChangeEvent is sent to all registered listeners.

Parameters:
visible - boolean The new value of the flag.

getValueGridlineStroke

public java.awt.Stroke getValueGridlineStroke()
Returns the stroke used to draw the value axis grid-lines.

Returns:
Stroke The stroke (never null).

setValueGridlineStroke

public void setValueGridlineStroke(java.awt.Stroke stroke)
Sets the stroke used to draw the grid-lines against the value axis and sends a PlotChangeEvent to all registered listeners.

Parameters:
stroke - Stroke The stroke (null not permitted).

getValueGridlinePaint

public java.awt.Paint getValueGridlinePaint()
Returns the paint used to draw the value axis grid-lines.

Returns:
Paint The paint (never null).

setValueGridlinePaint

public void setValueGridlinePaint(java.awt.Paint paint)
Sets the paint used to draw the grid lines against the value axis and sends a PlotChangeEvent to all registered listeners.

Parameters:
paint - Paint The paint (null not permitted).

isDomainCrosshairVisible

public boolean isDomainCrosshairVisible()
Returns a flag indicating whether or not the domain crosshair is visible.

Returns:
boolean The flag.

setDomainCrosshairVisible

public void setDomainCrosshairVisible(boolean flag)
Sets the flag indicating whether or not the domain crosshair is visible and, if the flag changes, sends a PlotChangeEvent to all registered listeners.

Parameters:
flag - boolean The new value of the flag.

isDomainCrosshairLockedOnData

public boolean isDomainCrosshairLockedOnData()
Returns a flag indicating whether or not the crosshair should "lock-on" to actual data values.

Returns:
boolean The flag.

setDomainCrosshairLockedOnData

public void setDomainCrosshairLockedOnData(boolean flag)
Sets the flag indicating whether or not the domain crosshair should "lock-on" to actual data values. If the flag value changes, this method sends a PlotChangeEvent to all registered listeners.

Parameters:
flag - boolean The flag.

getDomainCrosshairStroke

public java.awt.Stroke getDomainCrosshairStroke()
Returns the Stroke used to draw the crosshair (if visible).

Returns:
Stroke The crosshair stroke (never null).

setDomainCrosshairStroke

public void setDomainCrosshairStroke(java.awt.Stroke stroke)
Sets the Stroke used to draw the crosshairs (if visible) and notifies registered listeners that the axis has been modified.

Parameters:
stroke - Stroke The new crosshair stroke (null not permitted).

getDomainCrosshairPaint

public java.awt.Paint getDomainCrosshairPaint()
Returns the Paint used to draw the crosshair.

Returns:
The crosshair paint (never null).

setDomainCrosshairPaint

public void setDomainCrosshairPaint(java.awt.Paint paint)
Sets the paint used to draw the crosshairs (if visible) and sends a PlotChangeEvent to all registered listeners.

Parameters:
paint - Paint The new crosshair paint (null not permitted).

isValueCrosshairVisible

public boolean isValueCrosshairVisible()
Returns a flag indicating whether or not the value crosshair is visible.

Returns:
boolean The flag.

setValueCrosshairVisible

public void setValueCrosshairVisible(boolean flag)
Sets the flag indicating whether or not the value crosshair is visible and, if the flag changes, sends a PlotChangeEvent to all registered listeners.

Parameters:
flag - boolean The new value of the flag.

isValueCrosshairLockedOnData

public boolean isValueCrosshairLockedOnData()
Returns a flag indicating whether or not the crosshair should "lock-on" to actual data values.

Returns:
boolean The flag.

setValueCrosshairLockedOnData

public void setValueCrosshairLockedOnData(boolean flag)
Sets the flag indicating whether or not the value crosshair should "lock-on" to actual data values. If the flag value changes, this method sends a PlotChangeEvent to all registered listeners.

Parameters:
flag - boolean The flag.

getValueCrosshairStroke

public java.awt.Stroke getValueCrosshairStroke()
Returns the Stroke used to draw the crosshair (if visible).

Returns:
Stroke The crosshair stroke (never null).

setValueCrosshairStroke

public void setValueCrosshairStroke(java.awt.Stroke stroke)
Sets the Stroke used to draw the crosshairs (if visible) and notifies registered listeners that the axis has been modified.

Parameters:
stroke - Stroke The new crosshair stroke (null not permitted).

getValueCrosshairPaint

public java.awt.Paint getValueCrosshairPaint()
Returns the Paint used to draw the crosshair.

Returns:
The crosshair paint (never null).

setValueCrosshairPaint

public void setValueCrosshairPaint(java.awt.Paint paint)
Sets the paint used to draw the crosshairs (if visible) and sends a PlotChangeEvent to all registered listeners.

Parameters:
paint - Paint The new crosshair paint (null not permitted).

mapValueAxisToRender

public void mapValueAxisToRender(int valueAxisIndex,
                                 int renderIndex)
Maps a value axis to a render.

Parameters:
valueAxisIndex - int The value axis index.
renderIndex - int The render index.

getRenderIndexForValueAxis

public int getRenderIndexForValueAxis(int valueAxisIndex)
Returns the render index for a value axis index.

Parameters:
valueAxisIndex - int The value axis index.
Returns:
int The render index.

drawCrosshair

public boolean drawCrosshair(java.awt.geom.Point2D mouseClickPoint)
Draws the crosshair.

Specified by:
drawCrosshair in class AbstractPlot
Parameters:
mouseClickPoint - Point2D The mouse click point (null permitted).
Returns:
boolean Returns whether or not crosshair is changed.

getCrosshairPoint

public java.awt.geom.Point2D getCrosshairPoint(java.awt.geom.Point2D mouseClickPoint)
Returns the crosshair point.

Overrides:
getCrosshairPoint in class AbstractPlot
Parameters:
mouseClickPoint - Point2D The mouse click point (null permitted).
Returns:
Point2D The point (maybe null).

zoomValueAxes

public void zoomValueAxes(java.awt.geom.Rectangle2D selectArea,
                          java.awt.geom.Rectangle2D dataArea,
                          java.awt.geom.Point2D source)
Zoom value axes.

Specified by:
zoomValueAxes in interface IZoomable
Overrides:
zoomValueAxes in class AbstractPlot
Parameters:
selectArea - Rectangle2D The selected area,null to restore chart.
dataArea - Rectangle2D The data area,null to restore chart.
source - Point2D The source mouse point (null not permitted).

getRenderShapeCollection

protected RenderShapeCollection getRenderShapeCollection(int valueAxisIndex)
Returns the RenderShapeCollection for a value axis index.

Parameters:
valueAxisIndex - int The value axis index.
Returns:
RenderShapeCollection The render shape collection (maybe null).

allocateRenderShapesList

protected void allocateRenderShapesList(int renderSize)
Allocate render shapes.

Parameters:
renderSize - int The size of renders.

drawValueGridlines

protected void drawValueGridlines(java.awt.Graphics2D g2,
                                  java.awt.geom.Rectangle2D dataArea,
                                  RenderShapeCollection renderShapes,
                                  int valueAxesSize)
Draws the first value axis gridlines for the plot.

Parameters:
g2 - Graphics2D The graphics device (null not permitted).
dataArea - Rectangle2D The area within which the data should be drawn (null not permitted).
renderShapes - RenderShapeCollection Collects information about the render (null not permitted).
valueAxesSize - int The count of value axes.

translateMarkerShapes

protected void translateMarkerShapes()
Translate marker shape for 3D chart.


clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Returns a clone of the plot.

Overrides:
clone in class AbstractPlot
Returns:
A clone.
Throws:
java.lang.CloneNotSupportedException - if the cloning is not supported.

equals

public boolean equals(java.lang.Object obj)
Tests the plot for equality with an arbitrary object.

Overrides:
equals in class AbstractPlot
Parameters:
obj - The object to test against (null permitted).
Returns:
A boolean.

hashCode

public int hashCode()
Returns a hash code for this object.

Overrides:
hashCode in class AbstractPlot
Returns:
A hash code.

toString

public java.lang.String toString()
Override toString method.

Overrides:
toString in class java.lang.Object
Returns:
String