|
|||||||||
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.AbstractAxisPlot
com.ijchart.xychart.plot.XYPlot
com.ijchart.xychart.plot.combine.AbstractCombineXYPlot
public abstract class AbstractCombineXYPlot
Title: IJChart
Description: a chart library for the Java(tm) platform.
多个XYPlot之间共享坐标轴,此类为抽象类.Copyright: Copyright (c) 2013
Company:
Field Summary | |
---|---|
static double |
DEFAULT_PLOT_GAP
缺省的plot之间的间隔. |
protected double |
plotGap
plot之间的间隔. |
protected java.util.List |
subPlots
子plot集合. |
protected java.util.List |
subPlotWight
子plot的权重. |
Fields inherited from class com.ijchart.xychart.plot.XYPlot |
---|
DEFAULT_QUADRANT_ORIGIN, DEFAULT_QUADRANT_PAINT, DEFAULT_VALUE_ZERO_BASELINE_VISIBLE |
Constructor Summary | |
---|---|
AbstractCombineXYPlot()
无参数构造器. |
Method Summary | |
---|---|
void |
addSubPlot(XYPlot plot)
增加一个子plot,并向所有监听器发送 PlotChangeEvent 事件.
|
void |
addSubPlot(XYPlot plot,
double wight)
增加一个子plot,并向所有监听器发送 PlotChangeEvent 事件.
|
void |
clearSubPlots()
删除所有的子plot对象. |
java.lang.Object |
clone()
克隆本对象. |
boolean |
equals(java.lang.Object obj)
测试两个对象是否相等. |
protected int |
getAxisCountByPosition(XYPlot plot,
ChartOrientation orientation,
RectangleEdge edge)
计算指定位置的坐标轴的个数. |
double |
getPlotGap()
返回plot之间的间隔. |
double |
getPlotWight(XYPlot plot)
返回指定plot对象的权重(wight). |
java.util.Collection |
getRenders()
返回render集合,此集合不可修改. |
java.util.Collection |
getSubPlots()
返回所有的子plot对象. |
int |
hashCode()
计算hashcode. |
void |
removeSubPlot(XYPlot plot)
删除一个子plot对象,并向所有监听器发送 PlotChangeEvent 事件.
|
void |
setPlotGap(double gap)
设置plot之间的间隔,并向所有监听器发送 PlotChangeEvent 事件.
|
void |
setPlotWight(XYPlot plot,
double wight)
设置指定plot对象的权重(wight),并向所有监听器发送 PlotChangeEvent 事件.
|
void |
zoomDomainAxes(java.awt.geom.Rectangle2D selectArea,
java.awt.geom.Rectangle2D dataArea,
java.awt.geom.Point2D source)
缩放domain坐标轴. |
void |
zoomValueAxes(java.awt.geom.Rectangle2D selectArea,
java.awt.geom.Rectangle2D dataArea,
java.awt.geom.Point2D source)
缩放value坐标轴. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.ijchart.xychart.listener.IRenderChangeListener |
---|
renderChanged |
Field Detail |
---|
public static final double DEFAULT_PLOT_GAP
protected java.util.List subPlots
protected java.util.List subPlotWight
protected double plotGap
Constructor Detail |
---|
public AbstractCombineXYPlot()
Method Detail |
---|
public void addSubPlot(XYPlot plot)
PlotChangeEvent
事件.
plot
- XYPlot XYPlot对象 (不可为null).
public void addSubPlot(XYPlot plot, double wight)
PlotChangeEvent
事件.
plot
- XYPlot XYPlot对象 (不可为null).
wight
- double 权重,必须大于0.
public void removeSubPlot(XYPlot plot)
PlotChangeEvent
事件.
plot
- XYPlot XYPlot对象 (不可为null).
public java.util.Collection getSubPlots()
getSubPlots
in class AbstractPlot
public void clearSubPlots()
public double getPlotWight(XYPlot plot)
plot
- XYPlot XYPlot对象 (不可为null).
public void setPlotWight(XYPlot plot, double wight)
PlotChangeEvent
事件.
plot
- XYPlot XYPlot对象 (不可为null).
wight
- double 权重,必须大于0.
public double getPlotGap()
public void setPlotGap(double gap)
PlotChangeEvent
事件.
gap
- doublepublic java.util.Collection getRenders()
getRenders
in class XYPlot
public void zoomDomainAxes(java.awt.geom.Rectangle2D selectArea, java.awt.geom.Rectangle2D dataArea, java.awt.geom.Point2D source)
zoomDomainAxes
in interface IZoomable
zoomDomainAxes
in class XYPlot
selectArea
- Rectangle2D 鼠标选中区域,为null表示恢复到缩放前状态.
dataArea
- Rectangle2D 数据区域,为null表示恢复到缩放前状态.
source
- Point2D 源坐标点 (不可为null).
public void zoomValueAxes(java.awt.geom.Rectangle2D selectArea, java.awt.geom.Rectangle2D dataArea, java.awt.geom.Point2D source)
zoomValueAxes
in interface IZoomable
zoomValueAxes
in class AbstractAxisPlot
selectArea
- Rectangle2D 鼠标选中区域,为null表示恢复到缩放前状态.
dataArea
- Rectangle2D 数据区域,为null表示恢复到缩放前状态.
source
- Point2D 源坐标点 (不可为null).
protected int getAxisCountByPosition(XYPlot plot, ChartOrientation orientation, RectangleEdge edge)
plot
- XYPlot XYPlot对象.
orientation
- ChartOrientation chart的方向.
edge
- RectangleEdge 坐标轴的位置.
public boolean equals(java.lang.Object obj)
equals
in class XYPlot
obj
- 要比较的对象 (可为null).
public int hashCode()
hashCode
in class XYPlot
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class XYPlot
java.lang.CloneNotSupportedException
- if the cloning is not supported.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |