com.ijchart.xychart.plot.combine
Class CombineCategoryAxisCategoryPlot

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.combine.AbstractCombineCategoryPlot
                  extended by com.ijchart.xychart.plot.combine.CombineCategoryAxisCategoryPlot
All Implemented Interfaces:
IAxisChangeListener, IDatasetChangeListener, IRenderChangeListener, IZoomable, java.io.Serializable, java.lang.Cloneable, java.util.EventListener

public class CombineCategoryAxisCategoryPlot
extends AbstractCombineCategoryPlot
implements java.lang.Cloneable, java.io.Serializable

Title: IJChart

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

多个CategoryPlot之间共享Category坐标轴.

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.combine.AbstractCombineCategoryPlot
DEFAULT_PLOT_GAP, plotGap, subPlots, subPlotWight
 
Fields inherited from class com.ijchart.xychart.plot.CategoryPlot
DEFAULT_CATEGORY_CROSSHAIR_LOCKED_ON_DATA, DEFAULT_CATEGORY_CROSSHAIR_VISIBLE
 
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
 
Constructor Summary
CombineCategoryAxisCategoryPlot()
           
 
Method Summary
protected  double calculateMaxValueAxisSpace(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D plotArea)
          计算最大的value坐标轴空间,即宽度或高度.
protected  void changetPlotInsets(double maxSpace)
          改变plot的inset的大小,使得在plot有多个坐标轴的时候也能对齐.
 java.lang.Object clone()
          克隆本对象.
 void draw(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D plotArea, ChartShapeCollection chartShapes)
          绘制图表的plot区域,子类需要实现此方法.
 boolean equals(java.lang.Object obj)
          测试两个对象是否相等.
 PlotType getPlotType()
          返回描述此plot的字符串.
 int hashCode()
          计算hashcode.
 
Methods inherited from class com.ijchart.xychart.plot.combine.AbstractCombineCategoryPlot
addSubPlot, addSubPlot, clearSubPlots, drawCrosshair, getAxisCountByPosition, getPlotGap, getPlotWight, getRenders, getSubPlots, removeSubPlot, setDomainCrosshairLockedOnData, setDomainCrosshairPaint, setDomainCrosshairStroke, setDomainCrosshairVisible, setPlotGap, setPlotWight, setValueCrosshairLockedOnData, setValueCrosshairPaint, setValueCrosshairStroke, setValueCrosshairVisible, zoomValueAxes
 
Methods inherited from class com.ijchart.xychart.plot.CategoryPlot
drawAxes, getCategoryAxis, getCategoryAxis, getCategoryAxisByRenderIndex, getCategoryAxisCount, getCategoryAxisEdge, getCategoryAxisEdge, getCategoryAxisIndex, getCategoryAxisLocation, getCategoryAxisLocation, getNotNullCategoryAxis, getNotNullValueAxis, getNotNullValueAxisEdge, getRender, getRender, getRenderIndex, isDomainZoomable, setCategoryAxes, setCategoryAxes, setCategoryAxis, setCategoryAxis, setCategoryAxis, setCategoryAxisLocation, setCategoryAxisLocation, setRender, setRender, setRender, setRender, setRenders, toString
 
Methods inherited from class com.ijchart.xychart.plot.AbstractAxisPlot
allocateRenderShapesList, clearDomainAxes, clearValueAxes, 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, setDomainGridlinePaint, setDomainGridlineStroke, setDomainGridlineVisible, setOrientation, setValueAxes, setValueAxes, setValueAxis, setValueAxis, setValueAxis, setValueAxisLocation, setValueAxisLocation, setValueAxisLocation, setValueAxisLocation, setValueGridlinePaint, setValueGridlineStroke, setValueGridlineVisible, translateMarkerShapes
 
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, 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
 
Methods inherited from interface com.ijchart.xychart.listener.IRenderChangeListener
renderChanged
 

Constructor Detail

CombineCategoryAxisCategoryPlot

public CombineCategoryAxisCategoryPlot()
Method Detail

draw

public void draw(java.awt.Graphics2D g2,
                 java.awt.geom.Rectangle2D plotArea,
                 ChartShapeCollection chartShapes)
绘制图表的plot区域,子类需要实现此方法.

Overrides:
draw in class CategoryPlot
Parameters:
g2 - Graphics2D 图形设备(打印机或屏幕) (不可为null).
plotArea - Rectangle2D plot绘制区域 (不可为null).
chartShapes - ChartShapeCollection chart区域图形集合 (不可为null).

changetPlotInsets

protected void changetPlotInsets(double maxSpace)
改变plot的inset的大小,使得在plot有多个坐标轴的时候也能对齐.

Parameters:
maxSpace - double 最大的坐标轴空间,即宽度或高度.

calculateMaxValueAxisSpace

protected double calculateMaxValueAxisSpace(java.awt.Graphics2D g2,
                                            java.awt.geom.Rectangle2D plotArea)
计算最大的value坐标轴空间,即宽度或高度.

Parameters:
g2 - Graphics2D 图形设备(打印机或屏幕) (不可为null).
plotArea - Rectangle2D plot绘制区域 (不可为null).
Returns:
double 最大的宽度或高度.

getPlotType

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

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

equals

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

Overrides:
equals in class AbstractCombineCategoryPlot
Parameters:
obj - 要比较的对象 (可为null).
Returns:
A boolean.

hashCode

public int hashCode()
计算hashcode.

Overrides:
hashCode in class AbstractCombineCategoryPlot
Returns:
hashcode.

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
克隆本对象.

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