com.ijchart.xychart.plot.combine
Class CombineDomainAxisXYPlot

java.lang.Object
  extended by com.ijchart.xychart.plot.AbstractPlot
      extended by com.ijchart.xychart.plot.AbstractAxisPlot
          extended by com.ijchart.xychart.plot.XYPlot
              extended by com.ijchart.xychart.plot.combine.AbstractCombineXYPlot
                  extended by 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.

A combined xy plot where the domain 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

Field Summary
 
Fields inherited from class com.ijchart.xychart.plot.combine.AbstractCombineXYPlot
DEFAULT_PLOT_GAP, plotGap, subPlots, subPlotWight
 
Fields inherited from class com.ijchart.xychart.plot.XYPlot
DEFAULT_QUADRANT_ORIGIN, DEFAULT_QUADRANT_PAINT, DEFAULT_VALUE_ZERO_BASELINE_VISIBLE
 
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
 
Constructor Summary
CombineDomainAxisXYPlot()
           
 
Method Summary
protected  NumberRange calculateMaxDomainAxisRange()
           Calculate the max NumberRange for all domain axes.
protected  double calculateMaxValueAxisSpace(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D plotArea)
           Calculate the max width or height 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.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
 

Constructor Detail

CombineDomainAxisXYPlot

public CombineDomainAxisXYPlot()
Method Detail

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 XYPlot
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).

changetPlotInsets

protected void changetPlotInsets(double maxSpace)
Changed the plot insets.

Parameters:
maxSpace - double The max width or height for all axes.

calculateMaxValueAxisSpace

protected double calculateMaxValueAxisSpace(java.awt.Graphics2D g2,
                                            java.awt.geom.Rectangle2D plotArea)
Calculate the max width or height for all value axes.

Parameters:
g2 - Graphics2D The graphics device (null not permitted).
plotArea - The chart draw orientation.
Returns:
double The max width or height.

calculateMaxDomainAxisRange

protected NumberRange calculateMaxDomainAxisRange()
Calculate the max NumberRange for all domain axes.

Returns:
NumberRange The NumberRange object (never null).

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.

getPlotType

public PlotType getPlotType()
Returns a short string describing the plot type.

Overrides:
getPlotType in class XYPlot
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 AbstractCombineXYPlot
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 AbstractCombineXYPlot
Returns:
A hash code.

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Returns a clone of the plot.

Overrides:
clone in class AbstractCombineXYPlot
Returns:
A clone.
Throws:
java.lang.CloneNotSupportedException - if the cloning is not supported.