|
|||||||||
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.CategoryPlot
com.ijchart.xychart.plot.combine.AbstractCombineCategoryPlot
public abstract class AbstractCombineCategoryPlot
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.CategoryPlot |
---|
DEFAULT_CATEGORY_CROSSHAIR_LOCKED_ON_DATA, DEFAULT_CATEGORY_CROSSHAIR_VISIBLE |
Constructor Summary | |
---|---|
AbstractCombineCategoryPlot()
A constructor. |
Method Summary | |
---|---|
void |
addSubPlot(CategoryPlot plot)
Add a sub plot and sends a PlotChangeEvent to all registered listeners. |
void |
addSubPlot(CategoryPlot 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 |
drawCrosshair(java.awt.geom.Point2D mouseClickPoint)
Draws the crosshair. |
boolean |
equals(java.lang.Object obj)
Tests the plot for equality with an arbitrary object. |
protected int |
getAxisCountByPosition(CategoryPlot plot,
ChartOrientation orientation,
RectangleEdge edge)
Calculate the axis count for the specified position. |
double |
getPlotGap()
Returns the gap between plots. |
double |
getPlotWight(CategoryPlot 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(CategoryPlot plot)
Remove a sub plot and sends a PlotChangeEvent to all registered listeners. |
void |
setDomainCrosshairLockedOnData(boolean flag)
Sets the flag indicating whether or not the domain crosshair should "lock-on" to actual data values. |
void |
setDomainCrosshairPaint(java.awt.Paint paint)
Sets the paint used to draw the crosshairs (if visible) and sends a PlotChangeEvent to all registered listeners. |
void |
setDomainCrosshairStroke(java.awt.Stroke stroke)
Sets the Stroke used to draw the crosshairs (if visible) and notifies registered listeners that the axis has been modified. |
void |
setDomainCrosshairVisible(boolean flag)
Sets the flag indicating whether or not the domain crosshair is visible and, if the flag changes, 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(CategoryPlot plot,
double wight)
Sets the wight for the specified plot and sends a PlotChangeEvent to all registered listeners. |
void |
setValueCrosshairLockedOnData(boolean flag)
Sets the flag indicating whether or not the value crosshair should "lock-on" to actual data values. |
void |
setValueCrosshairPaint(java.awt.Paint paint)
Sets the paint used to draw the crosshairs (if visible) and sends a PlotChangeEvent to all registered listeners. |
void |
setValueCrosshairStroke(java.awt.Stroke stroke)
Sets the Stroke used to draw the crosshairs (if visible) and notifies registered listeners that the axis has been modified. |
void |
setValueCrosshairVisible(boolean flag)
Sets the flag indicating whether or not the value crosshair is visible and, if the flag changes, sends a PlotChangeEvent
to all registered listeners. |
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 AbstractCombineCategoryPlot()
Method Detail |
---|
public void addSubPlot(CategoryPlot plot)
PlotChangeEvent
to all registered listeners.
plot
- CategoryPlot
The CategoryPlot object (null not permitted).public void addSubPlot(CategoryPlot plot, double wight)
PlotChangeEvent
to all registered listeners.
plot
- CategoryPlot
The CategoryPlot object (null not permitted).wight
- double
The widght,must be >0.public void removeSubPlot(CategoryPlot plot)
PlotChangeEvent
to all registered listeners.
plot
- CategoryPlot
The CategoryPlot object (null not permitted).public java.util.Collection getSubPlots()
getSubPlots
in class AbstractPlot
public void clearSubPlots()
public double getPlotWight(CategoryPlot plot)
plot
- CategoryPlot
The CategoryPlot object (null not permitted).
public void setPlotWight(CategoryPlot plot, double wight)
PlotChangeEvent
to all registered listeners.
plot
- CategoryPlot
The CategoryPlot 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 CategoryPlot
public void setDomainCrosshairVisible(boolean flag)
PlotChangeEvent
to all registered listeners.
setDomainCrosshairVisible
in class AbstractAxisPlot
flag
- boolean
The new value of the flag.public void setDomainCrosshairLockedOnData(boolean flag)
PlotChangeEvent
to all registered listeners.
setDomainCrosshairLockedOnData
in class AbstractAxisPlot
flag
- boolean
The flag.public void setDomainCrosshairStroke(java.awt.Stroke stroke)
setDomainCrosshairStroke
in class AbstractAxisPlot
stroke
- Stroke
The new crosshair stroke (null not permitted).public void setDomainCrosshairPaint(java.awt.Paint paint)
PlotChangeEvent
to all registered listeners.
setDomainCrosshairPaint
in class AbstractAxisPlot
paint
- Paint
The new crosshair paint (null not permitted).public void setValueCrosshairVisible(boolean flag)
PlotChangeEvent
to all registered listeners.
setValueCrosshairVisible
in class AbstractAxisPlot
flag
- boolean
The new value of the flag.public void setValueCrosshairLockedOnData(boolean flag)
PlotChangeEvent
to all registered listeners.
setValueCrosshairLockedOnData
in class AbstractAxisPlot
flag
- boolean
The flag.public void setValueCrosshairStroke(java.awt.Stroke stroke)
setValueCrosshairStroke
in class AbstractAxisPlot
stroke
- Stroke
The new crosshair stroke (null not permitted).public void setValueCrosshairPaint(java.awt.Paint paint)
PlotChangeEvent
to all registered listeners.
setValueCrosshairPaint
in class AbstractAxisPlot
paint
- Paint
The new crosshair paint (null not permitted).public boolean drawCrosshair(java.awt.geom.Point2D mouseClickPoint)
drawCrosshair
in class AbstractAxisPlot
mouseClickPoint
- Point2D
The mouse click point (null permitted).
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
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(CategoryPlot plot, ChartOrientation orientation, RectangleEdge edge)
plot
- CategoryPlot
The CategoryPlot object.orientation
- ChartOrientation
The direction of chart.edge
- RectangleEdge
The position.
public boolean equals(java.lang.Object obj)
equals
in class CategoryPlot
obj
-
The object to test against (null permitted).
public int hashCode()
hashCode
in class CategoryPlot
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class CategoryPlot
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 |