| org.jfree.chart.renderer.xy.AbstractXYItemRenderer org.jfree.chart.renderer.xy.XYBlockRenderer
Constructor Summary | |
public | XYBlockRenderer() Creates a new XYBlockRenderer instance with default
attributes. |
Method Summary | |
public Object | clone() Returns a clone of this renderer. | public void | drawItem(Graphics2D g2, XYItemRendererState state, Rectangle2D dataArea, PlotRenderingInfo info, XYPlot plot, ValueAxis domainAxis, ValueAxis rangeAxis, XYDataset dataset, int series, int item, CrosshairState crosshairState, int pass) Draws the block representing the specified item. | public boolean | equals(Object obj) Tests this XYBlockRenderer for equality with an arbitrary
object. | public Range | findDomainBounds(XYDataset dataset) Returns the lower and upper bounds (range) of the x-values in the
specified dataset.
Parameters: dataset - the dataset (null permitted). | public Range | findRangeBounds(XYDataset dataset) Returns the range of values the renderer requires to display all the
items from the specified dataset.
Parameters: dataset - the dataset (null permitted). | public RectangleAnchor | getBlockAnchor() Returns the anchor point used to align a block at its (x, y) location. | public double | getBlockHeight() Returns the block height, in data/axis units. | public double | getBlockWidth() Returns the block width, in data/axis units. | public PaintScale | getPaintScale() Returns the paint scale used by the renderer. | public void | setBlockAnchor(RectangleAnchor anchor) Sets the anchor point used to align a block at its (x, y) location and
sends a
RendererChangeEvent to all registered listeners. | public void | setBlockHeight(double height) Sets the height of the blocks used to represent each data item. | public void | setBlockWidth(double width) Sets the width of the blocks used to represent each data item. | public void | setPaintScale(PaintScale scale) Sets the paint scale used by the renderer. |
XYBlockRenderer | public XYBlockRenderer()(Code) | | Creates a new XYBlockRenderer instance with default
attributes.
|
drawItem | public void drawItem(Graphics2D g2, XYItemRendererState state, Rectangle2D dataArea, PlotRenderingInfo info, XYPlot plot, ValueAxis domainAxis, ValueAxis rangeAxis, XYDataset dataset, int series, int item, CrosshairState crosshairState, int pass)(Code) | | Draws the block representing the specified item.
Parameters: g2 - the graphics device. Parameters: state - the state. Parameters: dataArea - the data area. Parameters: info - the plot rendering info. Parameters: plot - the plot. Parameters: domainAxis - the x-axis. Parameters: rangeAxis - the y-axis. Parameters: dataset - the dataset. Parameters: series - the series index. Parameters: item - the item index. Parameters: crosshairState - the crosshair state. Parameters: pass - the pass index. |
equals | public boolean equals(Object obj)(Code) | | Tests this XYBlockRenderer for equality with an arbitrary
object. This method returns true if and only if:
obj is an instance of XYBlockRenderer (not
null );
obj has the same field values as this
XYBlockRenderer ;
Parameters: obj - the object (null permitted). A boolean. |
findDomainBounds | public Range findDomainBounds(XYDataset dataset)(Code) | | Returns the lower and upper bounds (range) of the x-values in the
specified dataset.
Parameters: dataset - the dataset (null permitted). The range (null if the dataset is null or empty). |
findRangeBounds | public Range findRangeBounds(XYDataset dataset)(Code) | | Returns the range of values the renderer requires to display all the
items from the specified dataset.
Parameters: dataset - the dataset (null permitted). The range (null if the dataset is null or empty). |
getBlockAnchor | public RectangleAnchor getBlockAnchor()(Code) | | Returns the anchor point used to align a block at its (x, y) location.
The default values is
RectangleAnchor.CENTER .
The anchor point (never null ). See Also: XYBlockRenderer.setBlockAnchor(RectangleAnchor) |
setBlockHeight | public void setBlockHeight(double height)(Code) | | Sets the height of the blocks used to represent each data item.
Parameters: height - the new height, in data/axis units (must be > 0.0). See Also: XYBlockRenderer.getBlockHeight() |
setBlockWidth | public void setBlockWidth(double width)(Code) | | Sets the width of the blocks used to represent each data item.
Parameters: width - the new width, in data/axis units (must be > 0.0). See Also: XYBlockRenderer.getBlockWidth() |
Methods inherited from org.jfree.chart.renderer.xy.AbstractXYItemRenderer | public void addAnnotation(XYAnnotation annotation)(Code)(Java Doc) public void addAnnotation(XYAnnotation annotation, Layer layer)(Code)(Java Doc) protected void addEntity(EntityCollection entities, Shape area, XYDataset dataset, int series, int item, double entityX, double entityY)(Code)(Java Doc) protected Point2D calculateDomainMarkerTextAnchorPoint(Graphics2D g2, PlotOrientation orientation, Rectangle2D dataArea, Rectangle2D markerArea, RectangleInsets markerOffset, LengthAdjustmentType labelOffsetType, RectangleAnchor anchor)(Code)(Java Doc) protected Object clone() throws CloneNotSupportedException(Code)(Java Doc) public void drawAnnotations(Graphics2D g2, Rectangle2D dataArea, ValueAxis domainAxis, ValueAxis rangeAxis, Layer layer, PlotRenderingInfo info)(Code)(Java Doc) public void drawDomainGridLine(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double value)(Code)(Java Doc) public void drawDomainLine(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double value, Paint paint, Stroke stroke)(Code)(Java Doc) public void drawDomainMarker(Graphics2D g2, XYPlot plot, ValueAxis domainAxis, Marker marker, Rectangle2D dataArea)(Code)(Java Doc) protected void drawItemLabel(Graphics2D g2, PlotOrientation orientation, XYDataset dataset, int series, int item, double x, double y, boolean negative)(Code)(Java Doc) public void drawRangeLine(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double value, Paint paint, Stroke stroke)(Code)(Java Doc) public void drawRangeMarker(Graphics2D g2, XYPlot plot, ValueAxis rangeAxis, Marker marker, Rectangle2D dataArea)(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public void fillDomainGridBand(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double start, double end)(Code)(Java Doc) public void fillRangeGridBand(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double start, double end)(Code)(Java Doc) public Range findDomainBounds(XYDataset dataset)(Code)(Java Doc) public Range findRangeBounds(XYDataset dataset)(Code)(Java Doc) public XYItemLabelGenerator getBaseItemLabelGenerator()(Code)(Java Doc) public XYToolTipGenerator getBaseToolTipGenerator()(Code)(Java Doc) public int getDefaultEntityRadius()(Code)(Java Doc) public DrawingSupplier getDrawingSupplier()(Code)(Java Doc) public XYItemLabelGenerator getItemLabelGenerator(int series, int item)(Code)(Java Doc) public XYItemLabelGenerator getItemLabelGenerator()(Code)(Java Doc) public LegendItem getLegendItem(int datasetIndex, int series)(Code)(Java Doc) public XYSeriesLabelGenerator getLegendItemLabelGenerator()(Code)(Java Doc) public XYSeriesLabelGenerator getLegendItemToolTipGenerator()(Code)(Java Doc) public XYSeriesLabelGenerator getLegendItemURLGenerator()(Code)(Java Doc) public LegendItemCollection getLegendItems()(Code)(Java Doc) public int getPassCount()(Code)(Java Doc) public XYPlot getPlot()(Code)(Java Doc) public XYItemLabelGenerator getSeriesItemLabelGenerator(int series)(Code)(Java Doc) public XYToolTipGenerator getSeriesToolTipGenerator(int series)(Code)(Java Doc) public XYToolTipGenerator getToolTipGenerator(int series, int item)(Code)(Java Doc) public XYToolTipGenerator getToolTipGenerator()(Code)(Java Doc) public XYURLGenerator getURLGenerator()(Code)(Java Doc) public XYItemRendererState initialise(Graphics2D g2, Rectangle2D dataArea, XYPlot plot, XYDataset data, PlotRenderingInfo info)(Code)(Java Doc) public boolean removeAnnotation(XYAnnotation annotation)(Code)(Java Doc) public void removeAnnotations()(Code)(Java Doc) public void setBaseItemLabelGenerator(XYItemLabelGenerator generator)(Code)(Java Doc) public void setBaseToolTipGenerator(XYToolTipGenerator generator)(Code)(Java Doc) public void setDefaultEntityRadius(int radius)(Code)(Java Doc) public void setItemLabelGenerator(XYItemLabelGenerator generator)(Code)(Java Doc) public void setLegendItemLabelGenerator(XYSeriesLabelGenerator generator)(Code)(Java Doc) public void setLegendItemToolTipGenerator(XYSeriesLabelGenerator generator)(Code)(Java Doc) public void setLegendItemURLGenerator(XYSeriesLabelGenerator generator)(Code)(Java Doc) public void setPlot(XYPlot plot)(Code)(Java Doc) public void setSeriesItemLabelGenerator(int series, XYItemLabelGenerator generator)(Code)(Java Doc) public void setSeriesToolTipGenerator(int series, XYToolTipGenerator generator)(Code)(Java Doc) public void setToolTipGenerator(XYToolTipGenerator generator)(Code)(Java Doc) public void setURLGenerator(XYURLGenerator urlGenerator)(Code)(Java Doc) protected void updateCrosshairValues(CrosshairState crosshairState, double x, double y, double transX, double transY, PlotOrientation orientation)(Code)(Java Doc) protected void updateCrosshairValues(CrosshairState crosshairState, double x, double y, int domainAxisIndex, int rangeAxisIndex, double transX, double transY, PlotOrientation orientation)(Code)(Java Doc)
|
|
|