com.ijchart.xychart.plot
Class NoAxisPlot

java.lang.Object
  extended by com.ijchart.xychart.plot.AbstractPlot
      extended by com.ijchart.xychart.plot.NoAxisPlot
All Implemented Interfaces:
IAxisChangeListener, IDatasetChangeListener, IRenderChangeListener, IZoomable, java.io.Serializable, java.lang.Cloneable, java.util.EventListener

public class NoAxisPlot
extends AbstractPlot
implements java.lang.Cloneable, java.io.Serializable

Title: IJChart

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

The plot with no axis.

Copyright: Copyright (c) 2013

Company:

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

Field Summary
 
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
NoAxisPlot()
           Default constructor.
NoAxisPlot(AbstractNoAxisRender render)
           Creates a new plot.
 
Method Summary
protected  void allocateRenderShapesList(int renderSize)
           Allocate render shapes.
 java.lang.Object clone()
           Returns a clone of the plot.
 void draw(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D plotArea, ChartShapeCollection chartShapes)
           Draws the plot within the specified area.Subclasses need to provide an implementation of this method, obviously.
 boolean drawCrosshair(java.awt.geom.Point2D mouseClickPoint)
           Draws the crosshair,this method is not implemented.
protected  XYNumberValueAxis drawPolarAxis(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D dataArea, PolarRender render, RenderShapeCollection renderShapes)
           The the polar axis.
 boolean equals(java.lang.Object obj)
           Tests the plot for equality with an arbitrary object.
 ChartOrientation getOrientation()
           Returns the orientation of the plot.
 PlotType getPlotType()
           Returns a short string describing the plot type.
 AbstractNoAxisRender getRender()
           Returns a reference to the render for the plot.
 AbstractNoAxisRender getRender(int index)
           Returns the render at the given index.
 int getRenderIndex(AbstractNoAxisRender render)
           Returns the index of the specified render, or -1 if the render is not assigned to this plot.
 java.util.Collection getRenders()
           Returns the collection of renders,and this collection is unmodifiable.
 int hashCode()
           Returns a hash code for this object.
 boolean isDomainZoomable()
           Returns true if the plot's domain axis is zoomable, and false otherwise.
 boolean isValueZoomable()
           Returns true if the plot's value is zoomable, and false otherwise.
 void setRender(AbstractNoAxisRender render)
           Sets the render at index 0 (sometimes referred to as the "primary" render) and sends a PlotChangeEvent to all registered listeners.
 void setRender(AbstractNoAxisRender render, boolean notify)
           Sets the render at index 0 (sometimes referred to as the "primary" render) and, if requested, sends a PlotChangeEvent to all registered listeners.
 void setRender(int index, AbstractNoAxisRender render)
           Sets the render at the specified index and sends a PlotChangeEvent to all registered listeners.
 void setRender(int index, AbstractNoAxisRender render, boolean notify)
           Sets a render.
 void setRenders(AbstractNoAxisRender[] renders, int startIndex)
           Sets the renders for this plot and sends a PlotChangeEvent to all registered listeners.
 java.lang.String toString()
           Override toString method.
 
Methods inherited from class com.ijchart.xychart.plot.AbstractPlot
addChangeListener, axisChanged, datasetChanged, drawBackground, drawBackgroundImage, drawBorder, drawNoDataMessage, firePlotChanged, getBackgroundAlpha, getBackgroundImage, getBackgroundImageAlignment, getBackgroundImageAlpha, getBackgroundPaint, getBorderPaint, getBorderStroke, getCrosshairPoint, getDataArea, getDrawingSupplier, getForegroundAlpha, getInsets, getNoDataMessage, getNoDataMessageFont, getNoDataMessagePaint, getRenderDrawOrder, getRenderShapesList, getSubPlots, handleClick, isBorderVisible, isDrawNoDataMessage, notifyListeners, removeChangeListener, renderChanged, resolveDomainAxisLocation, resolveValueAxisLocation, setBackgroundAlpha, setBackgroundImage, setBackgroundImageAlignment, setBackgroundImageAlpha, setBackgroundPaint, setBorderPaint, setBorderStroke, setBorderVisible, setDrawingSupplier, setDrawNoDataMessage, setForegroundAlpha, setInsets, setListObject, setNoDataMessage, setNoDataMessageFont, setNoDataMessagePaint, setRenderDrawOrder, zoomDomainAxes, zoomValueAxes
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NoAxisPlot

public NoAxisPlot()
Default constructor.


NoAxisPlot

public NoAxisPlot(AbstractNoAxisRender render)
Creates a new plot.

Parameters:
render - AbstractNoAxisRender The item render (null permitted).
Method Detail

getRender

public AbstractNoAxisRender getRender()
Returns a reference to the render for the plot.

Returns:
AbstractNoAxisRender The render.

getRender

public AbstractNoAxisRender getRender(int index)
Returns the render at the given index.

Parameters:
index - The render index (zero-based).
Returns:
AbstractNoAxisRender The render (possibly null).

getRenders

public java.util.Collection getRenders()
Returns the collection of renders,and this collection is unmodifiable.

Specified by:
getRenders in class AbstractPlot
Returns:
Collection The collection of renders.

setRender

public void setRender(AbstractNoAxisRender render)
Sets the render at index 0 (sometimes referred to as the "primary" render) and sends a PlotChangeEvent to all registered listeners.

Parameters:
render - AbstractNoAxisRender The render (null not permitted.

setRender

public void setRender(AbstractNoAxisRender render,
                      boolean notify)
Sets the render at index 0 (sometimes referred to as the "primary" render) and, if requested, sends a PlotChangeEvent to all registered listeners.

Parameters:
render - AbstractNoAxisRender The render (null not permitted).
notify - boolean Whether or not notify listeners.

setRender

public void setRender(int index,
                      AbstractNoAxisRender render)
Sets the render at the specified index and sends a PlotChangeEvent to all registered listeners.

Parameters:
index - int The index (zero-based).
render - AbstractNoAxisRender The render (null not permitted).

setRender

public void setRender(int index,
                      AbstractNoAxisRender render,
                      boolean notify)
Sets a render. A PlotChangeEvent is sent to all registered listeners.

Parameters:
index - int The dataset index (zero-based).
render - AbstractNoAxisRender The render (null not permitted).
notify - boolean Whether or not notify listeners.

setRenders

public void setRenders(AbstractNoAxisRender[] renders,
                       int startIndex)
Sets the renders for this plot and sends a PlotChangeEvent to all registered listeners.

Parameters:
renders - AbstractNoAxisRender[] The renders (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.

getRenderIndex

public int getRenderIndex(AbstractNoAxisRender render)
Returns the index of the specified render, or -1 if the render is not assigned to this plot.

Parameters:
render - AbstractNoAxisRender The render (null permitted).
Returns:
int The render index.

getOrientation

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

Specified by:
getOrientation in interface IZoomable
Returns:
Returns null.

draw

public void draw(java.awt.Graphics2D g2,
                 java.awt.geom.Rectangle2D plotArea,
                 ChartShapeCollection chartShapes)
Draws the plot within the specified area.Subclasses need to provide an implementation of this method, obviously.

Specified by:
draw in class AbstractPlot
Parameters:
g2 - Graphics2D The graphics device (null not permitted).
plotArea - Rectangle2D The plot draw area (null not permitted).
chartShapes - ChartShapeCollection Collects information about the chart (null not permitted).

drawPolarAxis

protected XYNumberValueAxis drawPolarAxis(java.awt.Graphics2D g2,
                                          java.awt.geom.Rectangle2D dataArea,
                                          PolarRender render,
                                          RenderShapeCollection renderShapes)
The the polar axis.

Parameters:
g2 - Graphics2D The graphics device (null not permitted).
dataArea - Rectangle2D The chart data area (null not permitted).
render - PolarRender The PolarRender object (null not permitted).
renderShapes - RenderShapeCollection Collects information about the render (null not permitted).
Returns:
XYNumberValueAxis The axis.

drawCrosshair

public boolean drawCrosshair(java.awt.geom.Point2D mouseClickPoint)
Draws the crosshair,this method is not implemented.

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

isDomainZoomable

public boolean isDomainZoomable()
Returns true if the plot's domain axis is zoomable, and false otherwise.

Specified by:
isDomainZoomable in interface IZoomable
Overrides:
isDomainZoomable in class AbstractPlot
Returns:
boolean A boolean.

isValueZoomable

public boolean isValueZoomable()
Returns true if the plot's value is zoomable, and false otherwise.

Specified by:
isValueZoomable in interface IZoomable
Overrides:
isValueZoomable in class AbstractPlot
Returns:
boolean A boolean.

allocateRenderShapesList

protected void allocateRenderShapesList(int renderSize)
Allocate render shapes.

Parameters:
renderSize - int The size of renders.

getPlotType

public PlotType getPlotType()
Returns a short string describing the plot type.

Specified by:
getPlotType in class AbstractPlot
Returns:
The plot type.

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.

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.

toString

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

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