com.ijchart.xychart.plot.combine
Class CombineValueAxisCategoryPlot
java.lang.Object
com.ijchart.xychart.plot.AbstractPlot
com.ijchart.xychart.plot.AbstractAxisPlot
com.ijchart.xychart.plot.CategoryPlot
com.ijchart.xychart.plot.combine.AbstractCombineCategoryPlot
com.ijchart.xychart.plot.combine.CombineValueAxisCategoryPlot
- All Implemented Interfaces:
- IAxisChangeListener, IDatasetChangeListener, IRenderChangeListener, IZoomable, java.io.Serializable, java.lang.Cloneable, java.util.EventListener
public class CombineValueAxisCategoryPlot
- extends AbstractCombineCategoryPlot
- implements java.lang.Cloneable, java.io.Serializable
Title: IJChart
Description: a chart library for the Java(tm) platform.
A combined category plot where the value axis is shared.
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 |
Method Summary |
protected double |
calculateMaxCategoryAxisSpace(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D plotArea)
Calculate the max width or height for all category axes. |
protected NumberRange |
calculateMaxValueAxisRange()
Calculate the max NumberRange for all value axes. |
protected void |
changetPlotInsets(double maxSpace)
Changed the plot insets. |
java.lang.Object |
clone()
Returns a clone of the plot. |
void |
draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D plotArea,
ChartShapeCollection chartShapes)
Draws the plot within the specified area.Subclasses need to provide an
implementation of this method, obviously. |
boolean |
equals(java.lang.Object obj)
Tests the plot for equality with an arbitrary object. |
PlotType |
getPlotType()
Returns a short string describing the plot type. |
int |
hashCode()
Returns a hash code for this object. |
void |
renderChanged(RenderChangeEvent event)
Receives notification of a render change event. |
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, 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 |
CombineValueAxisCategoryPlot
public CombineValueAxisCategoryPlot()
draw
public void draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D plotArea,
ChartShapeCollection chartShapes)
-
Draws the plot within the specified area.Subclasses need to provide an
implementation of this method, obviously.
- Overrides:
draw
in class CategoryPlot
- Parameters:
g2
- Graphics2D
The graphics device (null not permitted).plotArea
- Rectangle2D
The plot draw area (null not permitted).chartShapes
- ChartShapeCollection
Collects information about the chart (null not permitted).
renderChanged
public void renderChanged(RenderChangeEvent event)
-
Receives notification of a render change event.
- Specified by:
renderChanged
in interface IRenderChangeListener
- Overrides:
renderChanged
in class AbstractPlot
- Parameters:
event
- RenderChangeEvent
The render change event.
changetPlotInsets
protected void changetPlotInsets(double maxSpace)
-
Changed the plot insets.
- Parameters:
maxSpace
- double
The max width or height for all axes.
calculateMaxCategoryAxisSpace
protected double calculateMaxCategoryAxisSpace(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D plotArea)
-
Calculate the max width or height for all category axes.
- Parameters:
g2
- Graphics2D
The graphics device (null not permitted).plotArea
- Rectangle2D
The chart draw orientation.
- Returns:
- double
The max width or height.
calculateMaxValueAxisRange
protected NumberRange calculateMaxValueAxisRange()
-
Calculate the max NumberRange for all value axes.
- Returns:
- NumberRange
The NumberRange object (never null).
getPlotType
public PlotType getPlotType()
-
Returns a short string describing the plot type.
- Overrides:
getPlotType
in class CategoryPlot
- Returns:
-
The plot type.
equals
public boolean equals(java.lang.Object obj)
-
Tests the plot for equality with an arbitrary object.
- Overrides:
equals
in class AbstractCombineCategoryPlot
- Parameters:
obj
-
The object to test against (null permitted).
- Returns:
- A boolean.
hashCode
public int hashCode()
-
Returns a hash code for this object.
- Overrides:
hashCode
in class AbstractCombineCategoryPlot
- Returns:
-
A hash code.
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
-
Returns a clone of the plot.
- Overrides:
clone
in class AbstractCombineCategoryPlot
- Returns:
- A clone.
- Throws:
java.lang.CloneNotSupportedException
- if the cloning is not supported.