com.ijchart.xychart.plot
Class Category3DPlot

java.lang.Object
  extended by com.ijchart.xychart.plot.AbstractPlot
      extended by com.ijchart.xychart.plot.AbstractAxisPlot
          extended by com.ijchart.xychart.plot.CategoryPlot
              extended by 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.

用于显示两个坐标轴分别是CategoryAxis3D, AbstractValueAxis的plot.

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 double DEFAULT_X_OFFSET
          缺省的x方向偏移值.
Category3DPlot(CategoryAxis3D categoryAxis, AbstractValueAxis valueAxis, AbstractCategoryRender render)
          构造一个新的对象.
 
Method Summary
 java.lang.Object clone()
          返回克隆的对象.
protected  java.awt.geom.Rectangle2D drawAxes(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D plotArea, PlotShapeCollection plotShapes)
          绘制所有的坐标轴.
 boolean equals(java.lang.Object obj)
          测试两个对象是否相等.
 PlotType getPlotType()
          返回描述此plot的字符串.
 double getXOffset()
          返回绘制3D效果时X轴方向的偏移值.
 double getYOffset()
          返回绘制3D效果时Y轴方向的偏移值.
 int hashCode()
          计算对象的hashcode值.
 void setXOffset(double offset)
          设置x方向偏移值,并向所有监听器发送ChartShapeChangeEvent事件.

See Also:
Constant Field Values

DEFAULT_Y_OFFSET

public static final double DEFAULT_Y_OFFSET
缺省的y方向的偏移值.

See Also:
Constant Field Values
Constructor Detail

Category3DPlot

public Category3DPlot()
缺省的构造器.


Category3DPlot

public Category3DPlot(CategoryAxis3D categoryAxis,
                      AbstractValueAxis valueAxis,
                      AbstractCategoryRender render)
构造一个新的对象.

Parameters:
categoryAxis - CategoryAxis3D category坐标轴 (可为null).
valueAxis - AbstractValueAxis value坐标轴 (可为null).
render - AbstractCategoryRender 绘制数据区的类 (可为null).
Method Detail

getXOffset

public double getXOffset()
返回绘制3D效果时X轴方向的偏移值.

Specified by:
getXOffset in interface IEffect3D
Returns:
double X轴方向的偏移值.

setXOffset

public void setXOffset(double offset)
设置x方向偏移值,并向所有监听器发送ChartShapeChangeEvent事件.

Parameters:
offset - double 偏移值,须大于0.

getYOffset

public double getYOffset()
返回绘制3D效果时Y轴方向的偏移值.

Specified by:
getYOffset in interface IEffect3D
Returns:
double Y轴方向的偏移值.

setYOffset

public void setYOffset(double offset)
设置y方向偏移值,并向所有监听器发送ChartShapeChangeEvent事件.

Parameters:
offset - double 偏移值,须大于0.

getPlotType

public PlotType getPlotType()
返回描述此plot的字符串.

Overrides:
getPlotType in class CategoryPlot
Returns:
plot的类型.

drawAxes

protected java.awt.geom.Rectangle2D drawAxes(java.awt.Graphics2D g2,
                                             java.awt.geom.Rectangle2D plotArea,
                                             PlotShapeCollection plotShapes)
绘制所有的坐标轴.

Overrides:
drawAxes in class CategoryPlot
Parameters:
g2 - Graphics2D 图形设备(打印机或屏幕) (不可为null).
plotArea - Rectangle2D plot绘制区域 (不可为null).
plotShapes - PlotShapeCollection plot区域图形集合 (不可为null).
Returns:
Rectangle2D 数据区.

equals

public boolean equals(java.lang.Object obj)
测试两个对象是否相等.

Overrides:
equals in class CategoryPlot
Parameters:
obj - 要比较的对象
Returns:
相等返回true,否则返回false.

hashCode

public int hashCode()
计算对象的hashcode值.

Overrides:
hashCode in class CategoryPlot
Returns:
int 对象的hashcode值.

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
返回克隆的对象.

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()
覆盖toString方法.

Overrides:
toString in class CategoryPlot
Returns:
a string representation of the object.