|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ijchart.xychart.plot.AbstractPlot
com.ijchart.xychart.plot.NoAxisPlot
public class NoAxisPlot
Title: IJChart
Description: a chart library for the Java(tm) platform.
The plot with no axis.Copyright: Copyright (c) 2013
Company:
| Field Summary |
|---|
| 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 java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NoAxisPlot()
public NoAxisPlot(AbstractNoAxisRender render)
render - AbstractNoAxisRender
The item render (null permitted).| Method Detail |
|---|
public AbstractNoAxisRender getRender()
public AbstractNoAxisRender getRender(int index)
index -
The render index (zero-based).
public java.util.Collection getRenders()
getRenders in class AbstractPlotpublic void setRender(AbstractNoAxisRender render)
PlotChangeEvent to all registered listeners.
render - AbstractNoAxisRender
The render (null not permitted.
public void setRender(AbstractNoAxisRender render,
boolean notify)
PlotChangeEvent to all registered listeners.
render - AbstractNoAxisRender
The render (null not permitted).notify - boolean
Whether or not notify listeners.
public void setRender(int index,
AbstractNoAxisRender render)
PlotChangeEvent to all registered listeners.
index - int
The index (zero-based).render - AbstractNoAxisRender
The render (null not permitted).
public void setRender(int index,
AbstractNoAxisRender render,
boolean notify)
PlotChangeEvent is sent to all registered listeners.
index - int
The dataset index (zero-based).render - AbstractNoAxisRender
The render (null not permitted).notify - boolean
Whether or not notify listeners.
public void setRenders(AbstractNoAxisRender[] renders,
int startIndex)
PlotChangeEvent
to all registered listeners.
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.public int getRenderIndex(AbstractNoAxisRender render)
render - AbstractNoAxisRender
The render (null permitted).
public ChartOrientation getOrientation()
getOrientation in interface IZoomable
public void draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D plotArea,
ChartShapeCollection chartShapes)
draw in class AbstractPlotg2 - 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).
protected XYNumberValueAxis drawPolarAxis(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D dataArea,
PolarRender render,
RenderShapeCollection renderShapes)
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).
public boolean drawCrosshair(java.awt.geom.Point2D mouseClickPoint)
drawCrosshair in class AbstractPlotmouseClickPoint - Point2D
The mouse click point (null permitted).
public boolean isDomainZoomable()
isDomainZoomable in interface IZoomableisDomainZoomable in class AbstractPlotpublic boolean isValueZoomable()
isValueZoomable in interface IZoomableisValueZoomable in class AbstractPlotprotected void allocateRenderShapesList(int renderSize)
renderSize - int
The size of renders.public PlotType getPlotType()
getPlotType in class AbstractPlotpublic boolean equals(java.lang.Object obj)
equals in class AbstractPlotobj -
The object to test against (null permitted).
public int hashCode()
hashCode in class AbstractPlot
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class AbstractPlotjava.lang.CloneNotSupportedException - if the cloning is not supported.public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||