com.ijchart.xychart.plot.combine
Class CombineDomainAxisXYPlot
java.lang.Object
com.ijchart.xychart.plot.AbstractPlot
com.ijchart.xychart.plot.AbstractAxisPlot
com.ijchart.xychart.plot.XYPlot
com.ijchart.xychart.plot.combine.AbstractCombineXYPlot
com.ijchart.xychart.plot.combine.CombineDomainAxisXYPlot
- All Implemented Interfaces:
- IAxisChangeListener, IDatasetChangeListener, IRenderChangeListener, IZoomable, java.io.Serializable, java.lang.Cloneable, java.util.EventListener
public class CombineDomainAxisXYPlot
- extends AbstractCombineXYPlot
- implements java.lang.Cloneable, java.io.Serializable
Title: IJChart
Description: a chart library for the Java(tm) platform.
多个XYPlot之间共享domain坐标轴.
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 |
Methods inherited from class com.ijchart.xychart.plot.combine.AbstractCombineXYPlot |
addSubPlot, addSubPlot, clearSubPlots, getAxisCountByPosition, getPlotGap, getPlotWight, getRenders, getSubPlots, removeSubPlot, setPlotGap, setPlotWight, zoomDomainAxes, zoomValueAxes |
Methods inherited from class com.ijchart.xychart.plot.XYPlot |
drawAxes, drawQuadrantBackground, drawZeroDomainBaseline, drawZeroValueBaseline, getDomainAxis, getDomainAxis, getDomainAxisByRenderIndex, getDomainAxisCount, getDomainAxisEdge, getDomainAxisEdge, getDomainAxisIndex, getDomainAxisLocation, getDomainAxisLocation, getDomainZeroBaselinePaint, getDomainZeroBaselineStroke, getQuadrantOrigin, getQuadrantPaint, getRender, getRender, getRenderIndex, getValueZeroBaselinePaint, getValueZeroBaselineStroke, isDomainZeroBaselineVisible, isValueZeroBaselineVisible, setDomainAxes, setDomainAxes, setDomainAxis, setDomainAxis, setDomainAxis, setDomainAxisLocation, setDomainAxisLocation, setDomainZeroBaselinePaint, setDomainZeroBaselineStroke, setDomainZeroBaselineVisible, setQuadrantOrigin, setQuadrantPaint, setRender, setRender, setRender, setRender, setRenders, setValueZeroBaselinePaint, setValueZeroBaselineStroke, setValueZeroBaselineVisible, toString |
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 |
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, isDomainZoomable, isDrawNoDataMessage, isValueZoomable, notifyListeners, removeChangeListener, resolveDomainAxisLocation, resolveValueAxisLocation, setBackgroundAlpha, setBackgroundImage, setBackgroundImageAlignment, setBackgroundImageAlpha, setBackgroundPaint, setBorderPaint, setBorderStroke, setBorderVisible, setDrawingSupplier, setDrawNoDataMessage, setForegroundAlpha, setInsets, setListObject, setNoDataMessage, setNoDataMessageFont, setNoDataMessagePaint, setRenderDrawOrder |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
CombineDomainAxisXYPlot
public CombineDomainAxisXYPlot()
draw
public void draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D plotArea,
ChartShapeCollection chartShapes)
- 绘制图表的plot区域,子类需要实现此方法.
- Overrides:
draw
in class XYPlot
- 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
- plot绘制区域 (不可为null).
- Returns:
- double 最大的宽度或高度.
calculateMaxDomainAxisRange
protected NumberRange calculateMaxDomainAxisRange()
- 计算包含所有domain坐标轴范围的数据范围.
- Returns:
- NumberRange NumberRange对象 (不为null).
renderChanged
public void renderChanged(RenderChangeEvent event)
- 收到render发生变化的事件.
- Specified by:
renderChanged
in interface IRenderChangeListener
- Overrides:
renderChanged
in class AbstractPlot
- Parameters:
event
- RenderChangeEvent render变化的事件.
getPlotType
public PlotType getPlotType()
- 返回描述此plot的字符串.
- Overrides:
getPlotType
in class XYPlot
- Returns:
- plot的类型.
equals
public boolean equals(java.lang.Object obj)
- 测试两个对象是否相等.
- Overrides:
equals
in class AbstractCombineXYPlot
- Parameters:
obj
- 要比较的对象 (可为null).
- Returns:
- A boolean.
hashCode
public int hashCode()
- 计算hashcode.
- Overrides:
hashCode
in class AbstractCombineXYPlot
- Returns:
- hashcode.
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- 克隆本对象.
- Overrides:
clone
in class AbstractCombineXYPlot
- Returns:
- A clone.
- Throws:
java.lang.CloneNotSupportedException
- if the cloning is not supported.