|
|||||||||
| 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.
A abstract class for combined category plot where the axis is shared.Copyright: Copyright (c) 2013
Company:
| Field Summary | |
|---|---|
static double |
DEFAULT_PLOT_GAP
The default gap between plots. |
protected double |
plotGap
The gap between plots. |
protected java.util.List |
subPlots
Storage for the subplot. |
protected java.util.List |
subPlotWight
The wight of sub plots. |
| Fields inherited from class com.ijchart.xychart.plot.XYPlot |
|---|
DEFAULT_QUADRANT_ORIGIN, DEFAULT_QUADRANT_PAINT, DEFAULT_VALUE_ZERO_BASELINE_VISIBLE |
| Constructor Summary | |
|---|---|
AbstractCombineXYPlot()
A constructor. |
|
| Method Summary | |
|---|---|
void |
addSubPlot(XYPlot plot)
Add a sub plot and sends a PlotChangeEvent to all registered listeners. |
void |
addSubPlot(XYPlot plot,
double wight)
Add a sub plot and sends a PlotChangeEvent to all registered listeners. |
void |
clearSubPlots()
Removes all sub plots. |
java.lang.Object |
clone()
Returns a clone of the plot. |
boolean |
equals(java.lang.Object obj)
Tests the plot for equality with an arbitrary object. |
protected int |
getAxisCountByPosition(XYPlot plot,
ChartOrientation orientation,
RectangleEdge edge)
Calculate the axis count for the specified position. |
double |
getPlotGap()
Returns the gap between plots. |
double |
getPlotWight(XYPlot plot)
Returns the wight for the specified plot. |
java.util.Collection |
getRenders()
Returns the collection of renders,and this collection is unmodifiable. |
java.util.Collection |
getSubPlots()
Returns all sub plots. |
int |
hashCode()
Returns a hash code for this object. |
void |
removeSubPlot(XYPlot plot)
Remove a sub plot and sends a PlotChangeEvent to all registered listeners. |
void |
setPlotGap(double gap)
Sets the gap between plots and sends a PlotChangeEvent to all registered listeners. |
void |
setPlotWight(XYPlot plot,
double wight)
Sets the wight for the specified plot and sends a PlotChangeEvent to all registered listeners. |
void |
zoomDomainAxes(java.awt.geom.Rectangle2D selectArea,
java.awt.geom.Rectangle2D dataArea,
java.awt.geom.Point2D source)
Zoom domain axes. |
void |
zoomValueAxes(java.awt.geom.Rectangle2D selectArea,
java.awt.geom.Rectangle2D dataArea,
java.awt.geom.Point2D source)
Zoom value axes. |
| 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 to all registered listeners.
plot - XYPlot
The XYPlot object (null not permitted).
public void addSubPlot(XYPlot plot,
double wight)
PlotChangeEvent to all registered listeners.
plot - XYPlot
The XYPlot object (null not permitted).wight - double
The widght,must be >0.public void removeSubPlot(XYPlot plot)
PlotChangeEvent to all registered listeners.
plot - XYPlot
The XYPlot object (null not permitted).public java.util.Collection getSubPlots()
getSubPlots in class AbstractPlotpublic void clearSubPlots()
public double getPlotWight(XYPlot plot)
plot - XYPlot
The XYPlot object (null not permitted).
public void setPlotWight(XYPlot plot,
double wight)
PlotChangeEvent to all registered listeners.
plot - XYPlot
The XYPlot object (null not permitted).wight - double
The widght,must be >0.public double getPlotGap()
public void setPlotGap(double gap)
PlotChangeEvent to all registered listeners.
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 IZoomablezoomDomainAxes in class XYPlotselectArea - Rectangle2D
The selected area,null to restore chart.dataArea - Rectangle2D
The data area,null to restore chart.source - Point2D
The source mouse point (null not permitted).
public void zoomValueAxes(java.awt.geom.Rectangle2D selectArea,
java.awt.geom.Rectangle2D dataArea,
java.awt.geom.Point2D source)
zoomValueAxes in interface IZoomablezoomValueAxes in class AbstractAxisPlotselectArea - Rectangle2D
The selected area,null to restore chart.dataArea - Rectangle2D
The data area,null to restore chart.source - Point2D
The source mouse point (null not permitted).
protected int getAxisCountByPosition(XYPlot plot,
ChartOrientation orientation,
RectangleEdge edge)
plot - XYPlot
The XYPlot object.orientation - ChartOrientation
The direction of chart.edge - RectangleEdge
The position.
public boolean equals(java.lang.Object obj)
equals in class XYPlotobj -
The object to test against (null permitted).
public int hashCode()
hashCode in class XYPlot
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class XYPlotjava.lang.CloneNotSupportedException - if the cloning is not supported.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||