com.ijchart.xychart.plot
Class Category3DPlot
java.lang.Object
com.ijchart.xychart.plot.AbstractPlot
com.ijchart.xychart.plot.AbstractAxisPlot
com.ijchart.xychart.plot.CategoryPlot
com.ijchart.xychart.plot.Category3DPlot
- All Implemented Interfaces:
- IAxisChangeListener, IDatasetChangeListener, IRenderChangeListener, IZoomable, IEffect3D, java.io.Serializable, java.lang.Cloneable, java.util.EventListener
public class Category3DPlot
- extends CategoryPlot
- implements java.lang.Cloneable, java.io.Serializable, IEffect3D
Title: IJChart
Description: a chart library for the Java(tm) platform.
Used to display the two coordinate axis are
(@link com.ijchart.xychart.axis.category.CategoryAxis3D),
(@Link com.ijchart.xychart.axis.value.AbstractValueAxis) of the plot.
Copyright: Copyright (c) 2013
Company:
- Version:
- 1.0
- Author:
- zhang feng min,shanghai china.
Contract me by email.
- See Also:
- Serialized Form
Fields inherited from class com.ijchart.xychart.plot.AbstractAxisPlot |
DEFAULT_CHART_ORIENTATION, DEFAULT_CROSSHAIR_PAINT, DEFAULT_CROSSHAIR_STROKE, DEFAULT_DOMAIN_CROSSHAIR_LOCKED_ON_DATA, DEFAULT_DOMAIN_CROSSHAIR_VISIBLE, DEFAULT_DOMAIN_GRIDLINE_VISIBLE, DEFAULT_DOMAIN_ZERO_BASELINE_VISIBLE, DEFAULT_GRIDLINE_PAINT, DEFAULT_GRIDLINE_STROKE, DEFAULT_VALUE_CROSSHAIR_LOCKED_ON_DATA, DEFAULT_VALUE_CROSSHAIR_VISIBLE, DEFAULT_VALUE_GRIDLINE_VISIBLE, domainAxes, renderToDomainAxis, renderToValueAxis, valueAxes |
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 |
Method Summary |
java.lang.Object |
clone()
Creates and returns a copy of this object. |
protected java.awt.geom.Rectangle2D |
drawAxes(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D plotArea,
PlotShapeCollection plotShapes)
A utility method for drawing the plot's axes. |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
PlotType |
getPlotType()
Returns a short string describing the plot type. |
double |
getXOffset()
Returns the x-offset (in Java2D units) for the 3D effect. |
double |
getYOffset()
Returns the y-offset (in Java2D units) for the 3D effect. |
int |
hashCode()
Returns a hash code value for the object. |
void |
setXOffset(double offset)
Sets the x-offset for the 3D effect,and sends
a ChartShapeChangeEvent to all registered listeners. |
void |
setYOffset(double offset)
Sets the y-offset for the 3D effect,and sends
a ChartShapeChangeEvent to all registered listeners. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class com.ijchart.xychart.plot.CategoryPlot |
draw, getCategoryAxis, getCategoryAxis, getCategoryAxisByRenderIndex, getCategoryAxisCount, getCategoryAxisEdge, getCategoryAxisEdge, getCategoryAxisIndex, getCategoryAxisLocation, getCategoryAxisLocation, getNotNullCategoryAxis, getNotNullValueAxis, getNotNullValueAxisEdge, getRender, getRender, getRenderIndex, getRenders, isDomainZoomable, setCategoryAxes, setCategoryAxes, setCategoryAxis, setCategoryAxis, setCategoryAxis, setCategoryAxisLocation, setCategoryAxisLocation, setRender, setRender, setRender, setRender, setRenders |
Methods inherited from class com.ijchart.xychart.plot.AbstractAxisPlot |
allocateRenderShapesList, clearDomainAxes, clearValueAxes, drawCrosshair, drawValueGridlines, getAxisOffset, getCrosshairPoint, getDomainCrosshairPaint, getDomainCrosshairStroke, getDomainGridlinePaint, getDomainGridlineStroke, getOrientation, getRenderIndexForValueAxis, getRenderShapeCollection, getValueAxis, getValueAxis, getValueAxisByRenderIndex, getValueAxisCount, getValueAxisEdge, getValueAxisEdge, getValueAxisIndex, getValueAxisLocation, getValueAxisLocation, getValueCrosshairPaint, getValueCrosshairStroke, getValueGridlinePaint, getValueGridlineStroke, isDomainCrosshairLockedOnData, isDomainCrosshairVisible, isDomainGridlineVisible, isValueCrosshairLockedOnData, isValueCrosshairVisible, isValueGridlineVisible, mapRenderToDomainAxis, mapRenderToValueAxis, mapValueAxisToRender, setAxisOffset, setDomainCrosshairLockedOnData, setDomainCrosshairPaint, setDomainCrosshairStroke, setDomainCrosshairVisible, setDomainGridlinePaint, setDomainGridlineStroke, setDomainGridlineVisible, setOrientation, setValueAxes, setValueAxes, setValueAxis, setValueAxis, setValueAxis, setValueAxisLocation, setValueAxisLocation, setValueAxisLocation, setValueAxisLocation, setValueCrosshairLockedOnData, setValueCrosshairPaint, setValueCrosshairStroke, setValueCrosshairVisible, setValueGridlinePaint, setValueGridlineStroke, setValueGridlineVisible, translateMarkerShapes, zoomValueAxes |
Methods inherited from class com.ijchart.xychart.plot.AbstractPlot |
addChangeListener, axisChanged, datasetChanged, drawBackground, drawBackgroundImage, drawBorder, drawNoDataMessage, firePlotChanged, getBackgroundAlpha, getBackgroundImage, getBackgroundImageAlignment, getBackgroundImageAlpha, getBackgroundPaint, getBorderPaint, getBorderStroke, getDataArea, getDrawingSupplier, getForegroundAlpha, getInsets, getNoDataMessage, getNoDataMessageFont, getNoDataMessagePaint, getRenderDrawOrder, getRenderShapesList, getSubPlots, handleClick, isBorderVisible, 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 |
DEFAULT_X_OFFSET
public static final double DEFAULT_X_OFFSET
-
The default x-offset for the 3D effect.
- See Also:
- Constant Field Values
DEFAULT_Y_OFFSET
public static final double DEFAULT_Y_OFFSET
-
The default y-offset for the 3D effect.
- See Also:
- Constant Field Values
Category3DPlot
public Category3DPlot()
-
Default constructor.
Category3DPlot
public Category3DPlot(CategoryAxis3D categoryAxis,
AbstractValueAxis valueAxis,
AbstractCategoryRender render)
-
Creates a new plot.
- Parameters:
categoryAxis
- CategoryAxis3D
The category axis (null permitted).valueAxis
- AbstractValueAxis
The value axis (null permitted).render
- AbstractCategoryRender
The item render (null permitted).
getXOffset
public double getXOffset()
-
Returns the x-offset (in Java2D units) for the 3D effect.
- Specified by:
getXOffset
in interface IEffect3D
- Returns:
- double
The offset.
setXOffset
public void setXOffset(double offset)
-
Sets the x-offset for the 3D effect,and sends
a
ChartShapeChangeEvent
to all registered listeners.
- Parameters:
offset
- double
The x-offset,must greater than 0.
getYOffset
public double getYOffset()
-
Returns the y-offset (in Java2D units) for the 3D effect.
- Specified by:
getYOffset
in interface IEffect3D
- Returns:
- double
The offset.
setYOffset
public void setYOffset(double offset)
-
Sets the y-offset for the 3D effect,and sends
a
ChartShapeChangeEvent
to all registered listeners.
- Parameters:
offset
- double
The y-offset,must greater than 0.
getPlotType
public PlotType getPlotType()
-
Returns a short string describing the plot type.
- Overrides:
getPlotType
in class CategoryPlot
- Returns:
-
The plot type.
drawAxes
protected java.awt.geom.Rectangle2D drawAxes(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D plotArea,
PlotShapeCollection plotShapes)
-
A utility method for drawing the plot's axes.
- Overrides:
drawAxes
in class CategoryPlot
- Parameters:
g2
- Graphics2D
The graphics device (null not permitted).plotArea
- Rectangle2D
The plot draw area (null not permitted).plotShapes
- PlotShapeCollection
Collects information about the plot (null not permitted).
- Returns:
- Rectangle2D
The data area.
equals
public boolean equals(java.lang.Object obj)
-
Indicates whether some other object is "equal to" this one.
- Overrides:
equals
in class CategoryPlot
- Parameters:
obj
-
the reference object with which to compare.
- Returns:
-
true if this object is the same as the obj argument;
false otherwise.
hashCode
public int hashCode()
-
Returns a hash code value for the object.
- Overrides:
hashCode
in class CategoryPlot
- Returns:
- int
A hash code value for this object.
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
-
Creates and returns a copy of this object.
- Overrides:
clone
in class CategoryPlot
- Returns:
- object a clone of this instance.
- Throws:
java.lang.CloneNotSupportedException
- if the object's class does not
support the Cloneable interface. Subclasses
that override the clone method can also
throw this exception to indicate that an instance cannot
be cloned.
toString
public java.lang.String toString()
-
Returns a string representation of the object.
- Overrides:
toString
in class CategoryPlot
- Returns:
- a string representation of the object.