com.ijchart.xychart.render
Class AbstractRender

java.lang.Object
  extended by com.ijchart.xychart.render.AbstractRender
All Implemented Interfaces:
IDatasetChangeListener, IRender, java.io.Serializable, java.lang.Cloneable, java.util.EventListener
Direct Known Subclasses:
AbstractNoAxisRender, AbstractWithAxisRender

public abstract class AbstractRender
extends java.lang.Object
implements IDatasetChangeListener, IRender, java.lang.Cloneable, java.io.Serializable

Title: IJChart

Description: a chart library for the Java(tm) platform.

Base class providing common services for renders.

Copyright: Copyright (c) 2013

Company:

Version:
1.0
Author:
zhang feng min,shanghai china. Contract me by email.
See Also:
Serialized Form

Field Summary
protected  java.awt.Paint[] borderPaints
           The paint array used to outline shape.
protected  java.awt.Stroke[] borderStrokes
           The Stroke array used to outline shape.
static boolean DEFAULT_AUTO_SELECT_BORDER_PAINT
           A default flag that controls whether or not the border paint is auto selected
static boolean DEFAULT_AUTO_SELECT_BORDER_STROKE
           A default flag that controls whether or not the border stroke is auto selected
static boolean DEFAULT_AUTO_SELECT_FILL_PAINT
           A default flag that controls whether or not the fill paint is auto selected.
static Align DEFAULT_BACKGROUND_IMAGE_ALIGNMENT
           The default background image alignment.
static java.awt.Paint DEFAULT_BACKGROUND_PAINT
           The default background color.
static java.awt.Paint DEFAULT_BASE_BORDER_PAINT
           The default border paint.
static java.awt.Stroke DEFAULT_BASE_BORDER_STROKE
           The default border stroke.
static boolean DEFAULT_BASE_ITEM_FILL
           A default flag that controls whether or not fill all data items shape of a dataset.
static java.awt.Paint DEFAULT_BASE_ITEM_FILL_PAINT
           The default fill paint.
static GradientPaintTransformType DEFAULT_BASE_ITEM_FILL_PAINT_TRANSFORMER
           The default type of gradient paint transform.
static java.awt.Font DEFAULT_BASE_ITEM_LABEL_FONT
           The default font of base item labels.
static HorizontalAlignment DEFAULT_BASE_ITEM_LABEL_HORIZONTAL_ALIGNMENT
           The default item label horizontal alignment.
static java.awt.Paint DEFAULT_BASE_ITEM_LABEL_PAINT
           The default item label paint.
static VerticalAlignment DEFAULT_BASE_ITEM_LABEL_VERTICAL_ALIGNMENT
           The default item label vertical alignment.
static boolean DEFAULT_BASE_ITEM_LABEL_VISIBLE
           The default value of base item labels visible.
static java.awt.Paint DEFAULT_BORDER_PAINT
           The default border color.
static java.awt.Stroke DEFAULT_BORDER_STROKE
           The default border stroke.
static boolean DEFAULT_DRAW_BORDER
           The default value of base item border visible.
static IDrawingSupplier DEFAULT_DRAWINT_SUPPLIER
           The drawing supplier for this render.
static boolean DEFAULT_GENERATOR_TOOLTIP
           A default flag that controls whether or not generator tooltip of shape.
static boolean DEFAULT_GENERATOR_URL
           A default flag that controls whether or not generator url of shape.
static ILabelGenerator DEFAULT_LABEL_GENERATOR
           The default label generator.
static boolean DEFAULT_RENDER_AREA_BORDER_VISIBLE
           A default flag that controls whether or not the render border is drawn.
static IToolTipGenerator DEFAULT_TOOLTIP_GENERATOR
           The default tooltip generator.
protected  java.awt.Paint[] fillPaints
           The paint array used to fill shape.
 
Constructor Summary
protected AbstractRender(IMatrixDataset dataset)
           constructor.
 
Method Summary
protected  void add3DShapes(RenderShapeCollection renderShapes, ChartOrientation orientation, Shape3DSortUtil sortUtil)
           Add 3d shapes.
 void addChangeListener(IRenderChangeListener listener)
           Registers an object for notification of changes to the render object.
 java.util.List calculateLegendItemShapes()
           Calculate the legend item shapes.
 java.lang.Object clone()
           Creates and returns a copy of this object.
protected  IChartShape createItemShapeOnly(java.awt.geom.Rectangle2D rect, java.lang.String label, java.lang.Object appendParam)
           Create a shape with no attribute specified.
 void datasetChanged(DatasetChangeEvent event)
           Receives notification of an dataset change event.
 void drawBackground(java.awt.geom.Rectangle2D dataArea, ChartOrientation orientation, RenderShapeCollection renderShapes)
           Draws a background for the data area.
 void drawBackgroundImage(java.awt.geom.Rectangle2D dataArea, RenderShapeCollection renderShapes)
           Draws a background image for the data area.
 void drawDrawAreaBorder(java.awt.geom.Rectangle2D dataArea, RenderShapeCollection renderShapes)
           Draws a border for the data area.
 boolean equals(java.lang.Object obj)
           Indicates if some other object is "equal to" this one.
protected  void fireRenderChanged()
           Notifies all registered listeners that the dataset has changed.
 java.awt.Image getBackgroundImage()
           Returns the background image that is used to fill the render's background area.
 Align getBackgroundImageAlignment()
           Returns the background image alignment.
 float getBackgroundImageAlpha()
           Returns the alpha transparency used to draw the background image.
 java.awt.Paint getBackgroundPaint()
           Returns the background color of the render area.
 java.awt.Paint getBaseItemBorderPaint()
           Returns the base paint to outline all items of a dataset.
 java.awt.Stroke getBaseItemBorderStroke()
           Returns the base stroke to outline all items of a dataset.
 java.awt.Paint getBaseItemFillPaint()
           Returns the base fill paint.
 GradientPaintTransformType getBaseItemFillPaintTransformer()
           Returns an optional class used to transform gradient paint object to fit all items of a dataset.
 TextDirection getBaseItemLabelDirection()
           Returns the label direction for all items of a dataset.
 java.awt.Font getBaseItemLabelFont()
           Returns the label font for all items of a dataset.
 HorizontalAlignment getBaseItemLabelHorizontalAlignment()
           Returns the label horizontal alignment for all items of a dataset.
 java.awt.Paint getBaseItemLabelPaint()
           Returns the label paint for all items of a dataset.
 TextPosition getBaseItemLabelPosition()
           Returns the label position for all items of a dataset.
 VerticalAlignment getBaseItemLabelVerticalAlignment()
           Returns the label vertical alignment for all items of a dataset.
 boolean getBaseItemLabelVisible()
           Returns the base setting for item label visibility.
protected  java.awt.Paint[] getBorderPaints(int count)
           Returns the border paint array.
protected  java.awt.Stroke[] getBorderStrokes(int count)
           Returns the border Stroke array.
 java.awt.geom.Rectangle2D getChartArea()
           Returns the chart area.
 java.awt.Paint getColumnItemBorderPaint(int column)
           Returns the paint used to outline all items of a dataset column drawn by the render.
 java.awt.Stroke getColumnItemBorderStroke(int column)
           Returns the stroke used to outline all items of a dataset column drawn by the render.
 java.awt.Paint getColumnItemFillPaint(int column)
           Returns the paint used to fill all items of a dataset column drawn by the render.
 GradientPaintTransformType getColumnItemFillPaintTransformer(int column)
           Returns an optional class used to transform gradient paint object to fit all items of a dataset column.
 TextDirection getColumnItemLabelDirection(int column)
           Returns the label direction for all items of a dataset column.
 java.awt.Font getColumnItemLabelFont(int column)
           Returns the font for all items label of a dataset column.
 HorizontalAlignment getColumnItemLabelHorizontalAlignment(int column)
           Returns the label horizontal alignment for all items of a dataset column.
 java.awt.Paint getColumnItemLabelPaint(int column)
           Returns the label paint for all items of a dataset column.
 TextPosition getColumnItemLabelPosition(int column)
           Returns the label position for all items of a dataset column.
 VerticalAlignment getColumnItemLabelVerticalAlignment(int column)
           Returns the label vertical alignment for all items of a dataset column.
 IMatrixDataset getDataset()
           Returns the dataset of this render.
 IDrawingSupplier getDrawingSupplier()
           Returns the drawing supplier for this render.
protected  java.awt.Paint[] getFillPaints(int count)
           Returns the fill paint array.
 java.awt.Paint getItemBorderPaint(int row, int column)
           Returns the paint used to outline data items as they are drawn.
 java.awt.Stroke getItemBorderStroke(int row, int column)
           Returns the stroke used to outline data items as they are drawn.
 java.awt.Paint getItemFillPaint(int row, int column)
           Returns the paint used to fill data items as they are drawn.
protected  java.awt.Paint getItemFillPaintHelper(java.awt.Paint autoFillPaint, int row, int column)
           Helper method for returns the fill paint.
 GradientPaintTransformType getItemFillPaintTransformer(int row, int column)
           Returns an optional class used to transform gradient paint object to fit an item.
 TextDirection getItemLabelDirection(int row, int column)
           Returns the label direction.
 java.awt.Font getItemLabelFont(int row, int column)
           Returns the font for an item label.
 HorizontalAlignment getItemLabelHorizontalAlignment(int row, int column)
           Returns the horizontal alignment for an item label.
 java.awt.Paint getItemLabelPaint(int row, int column)
           Returns the paint for an item label.
 TextPosition getItemLabelPosition(int row, int column)
           Returns the label position.
 VerticalAlignment getItemLabelVerticalAlignment(int row, int column)
           Returns the vertical alignment for an item label.
 ILabelGenerator getLabelGenerator()
           Returns the item label generator for all items of a dataset.
protected  int getLegendItemCount()
           Returns the count of legends.
protected  java.lang.String[] getLegendItemLabels()
           Returns the label array for legend item shapes.
protected  java.lang.String[] getLegendItemLabelsByColumn()
           Returns the label array for legend item shapes,the label comes from ColKeys.
protected  java.lang.String[] getLegendItemLabelsByRow()
           Returns the label array for legend item shapes,the label comes from ColKeys.
protected  IChartShape[] getLegendItemShapes(int legendCount)
           Returns the shape array of legend items.
 RectangleEdge getLegendPositon()
           Returns the legend position.
 LegendType getLegendType()
           Return the legend type.
 HorizontalAlignment getNegativeItemLabelHorizontalAlignment()
           Returns the horizontal alignment for all negative value items label of a dataset.
 VerticalAlignment getNegativeItemLabelVerticalAlignment()
           Returns the vertical alignment for all negative value items label of a dataset.
 HorizontalAlignment getPositiveItemLabelHorizontalAlignment()
           Returns the horizontal alignment for all positive value items label of a dataset.
 VerticalAlignment getPositiveItemLabelVerticalAlignment()
           Returns the vertical alignment for all positive value items label of a dataset.
 java.awt.Paint getRenderAreaBorderPaint()
           Returns the color used to draw the border of the render area.
 java.awt.Stroke getRenderAreaBorderStroke()
           Returns the stroke used to outline the render area.
 java.awt.Paint getRowItemBorderPaint(int row)
           Returns the paint used to outline all items of a dataset row drawn by the render.
 java.awt.Stroke getRowItemBorderStroke(int row)
           Returns the stroke used to outline all items of a dataset row drawn by the render.
 java.awt.Paint getRowItemFillPaint(int row)
           Returns the paint used to fill all items of a dataset row drawn by the render.
 GradientPaintTransformType getRowItemFillPaintTransformer(int row)
           Returns an optional class used to transform gradient paint object to fit all items of a dataset row.
 TextDirection getRowItemLabelDirection(int row)
           Returns the label direction for all items of a dataset row.
 java.awt.Font getRowItemLabelFont(int row)
           Returns the font for all items label of a dataset row.
 HorizontalAlignment getRowItemLabelHorizontalAlignment(int row)
           Returns the label horizontal alignment for all items of a dataset row.
 java.awt.Paint getRowItemLabelPaint(int row)
           Returns the label paint for all items of a dataset row.
 TextPosition getRowItemLabelPosition(int row)
           Returns the label position for all items of a dataset row.
 VerticalAlignment getRowItemLabelVerticalAlignment(int row)
           Returns the label vertical alignment for all items of a dataset row.
 IToolTipGenerator getToolTipGenerator()
           Returns the tool tip generator that should be used for all items of a dataset.
 int hashCode()
           Returns a hash code value for the object.
 boolean hasListener(IRenderChangeListener listener)
           Returns true if the specified object is registered with the IChartShape as a listener.
 boolean isAutoSelectBorderPaint()
           Returns whether or not the border paint is auto selected
 boolean isAutoSelectBorderStroke()
           Returns whether or not the border stroke is auto selected
 boolean isAutoSelectFillPaint()
           Returns whether or not the fill paint is auto selected.
 boolean isBaseItemDrawBorder()
           Returns whether or not outline all items of a dataset.
 boolean isBaseItemFill()
           Returns whether or not fill all items of a dataset.
 java.lang.Boolean isColumnItemDrawBorder(int column)
           Returns whether or not outline all items of a dataset column .
 java.lang.Boolean isColumnItemFill(int column)
           Returns whether or not to fill all items of a dataset column drawn by the render.
 java.lang.Boolean isColumnItemLabelVisible(int column)
           Returns true if the item labels for a column are visible, and false otherwise.
 java.lang.Boolean isColumnItemVisible(int column)
           Returns a boolean that indicates whether or not the specified column should be drawn.
 boolean isGeneratorTooltip()
           Returns whether or not generator tooltip of shape.
 boolean isGeneratorUrl()
           Returns whether or not generator url of shape.
 boolean isItemDrawBorder(int row, int column)
           Returns true if an item border is visible,and false otherwise.
 boolean isItemFill(int row, int column)
           Returns whether or not fill shape.
 boolean isItemLabelVisible(int row, int column)
           Returns true if an item label is visible,and false otherwise.
 boolean isItemVisible(int row, int column)
           Returns a boolean that indicates whether or not the specified item should be drawn.
 boolean isRenderAreaBorderVisible()
           Returns the flag that controls whether or not the render area border is drawn.
 java.lang.Boolean isRowItemDrawBorder(int row)
           Returns whether or not outline all items of a dataset row .
 java.lang.Boolean isRowItemFill(int row)
           Returns whether or not to fill all items of a dataset row drawn by the render.
 java.lang.Boolean isRowItemLabelVisible(int row)
           Returns true if the item labels for a row are visible, and false otherwise.
 java.lang.Boolean isRowItemVisible(int row)
           Returns a boolean that indicates whether or not the specified row should be drawn.
protected  void notifyListeners(RenderChangeEvent event)
           Notifies all registered listeners that the dataset has changed.
 void removeAllChangeListener()
           Deregisters all object for notification of changes to the render.
 void removeChangeListener(IRenderChangeListener listener)
           Removes a change listener.
 void setAutoSelectBorderPaint(boolean flag)
           Returns whether or not the border paint is auto selected,and sends a RenderChangeEvent to all registered listeners
 void setAutoSelectBorderStroke(boolean flag)
           Returns whether or not the border stroke is auto selected,and sends a RenderChangeEvent to all registered listeners
 void setAutoSelectFillPaint(boolean flag)
           A flag that controls whether or not the fill paint is auto selected,and sends a RenderChangeEvent to all registered listeners.
 void setBackgroundImage(java.awt.Image image)
           Sets the background image for the render and sends a RenderChangeEvent to all registered listeners.
 void setBackgroundImageAlignment(Align alignment)
           Sets the alignment for the background image and sends a RenderChangeEvent to all registered listeners.
 void setBackgroundImageAlpha(float alpha)
           Sets the alpha transparency used when drawing the background image.
 void setBackgroundPaint(java.awt.Paint paint)
           Sets the background color of the render area and sends a RenderChangeEvent to all registered listeners.
 void setBaseItemBorderPaint(java.awt.Paint paint)
           Sets the base border paint and sends a RenderChangeEvent to all registered listeners.
 void setBaseItemBorderStroke(java.awt.Stroke stroke)
           Sets the base border stroke and sends a RenderChangeEvent to all registered listeners.
 void setBaseItemDrawBorder(boolean visible)
           Sets whether or not to outline all items of a dataset drawn by the render and sends a RenderChangeEvent to all registered listeners.
 void setBaseItemFill(boolean flag)
           Sets whether or not fill all items of a dataset and sends a RenderChangeEvent to all registered listeners.
 void setBaseItemFillPaint(java.awt.Paint paint)
           Sets the base paint to fill all items of a dataset and sends a RenderChangeEvent to all registered listeners.
 void setBaseItemFillPaintTransformer(GradientPaintTransformType transformer)
           Sets the label direction for all items of a dataset and sends a RenderChangeEvent to all registered listeners.
 void setBaseItemLabelFont(java.awt.Font font)
           Sets the label font for all items of a dataset and sends a RenderChangeEvent to all registered listeners.
 void setBaseItemLabelHorizontalAlignment(HorizontalAlignment align)
           Sets the label horizontal alignment for all items of a dataset and sends a RenderChangeEvent to all registered listeners.
 void setBaseItemLabelPaint(java.awt.Paint paint)
           Sets the label paint for all items of a dataset and sends a RenderChangeEvent to all registered listeners.
 void setBaseItemLabelPosition(TextPosition position)
           Sets the label position for all items of a dataset and sends a RenderChangeEvent to all registered listeners.
 void setBaseItemLabelVerticalAlignment(VerticalAlignment align)
           Sets the label vertical alignment for all items of a dataset and sends a RenderChangeEvent to all registered listeners.
 void setBaseItemLabelVisible(boolean visible)
           Sets the base flag that controls whether or not item labels are visible and sends a RenderChangeEvent to all registered listeners.
 void setChartArea(java.awt.geom.Rectangle2D area)
           Sets the chart area and sends a RenderChangeEvent to all registered listeners.
 void setColumnItemBorderPaint(int column, java.awt.Paint paint)
           Sets the paint used to outline all items of a dataset column drawn by the render and sends a RenderChangeEvent to all registered listeners.
 void setColumnItemBorderStroke(int column, java.awt.Stroke stroke)
           Sets the stroke used to outline all items of a dataset column drawn by the render and sends a RenderChangeEvent to all registered listeners.
 void setColumnItemDrawBorder(int column, boolean visible)
           Sets whether or not to outline all items of a dataset column drawn by the render and sends a RenderChangeEvent to all registered listeners.
 void setColumnItemFill(int column, boolean flag)
           Sets whether or not to fill all items of a dataset column and sends a RenderChangeEvent to all registered listeners.
 void setColumnItemFillPaint(int column, java.awt.Paint paint)
           Sets the paint used to fill all items of a dataset column and sends a RenderChangeEvent to all registered listeners.
 void setColumnItemFillPaintTransformer(int column, GradientPaintTransformType transformer)
           Sets the label direction for all items of a dataset and sends a RenderChangeEvent to all registered listeners.
 void setColumnItemLabelFont(int column, java.awt.Font font)
           Sets the label font for all items of a dataset and sends a RenderChangeEvent to all registered listeners.
 void setColumnItemLabelHorizontalAlignment(int column, HorizontalAlignment align)
           Sets the horizontal alignment for all values items label and sends a RenderChangeEvent to all registered listeners.
 void setColumnItemLabelPaint(int column, java.awt.Paint paint)
           Sets the label paint for all items and sends a RenderChangeEvent to all registered listeners.
 void setColumnItemLabelPosition(int column, TextPosition position)
           Sets the label position for all items of a dataset and sends a RenderChangeEvent to all registered listeners.
 void setColumnItemLabelVerticalAlignment(int column, VerticalAlignment align)
           Sets the vertical alignment for all values items label and sends a RenderChangeEvent to all registered listeners.
 void setColumnItemLabelVisible(int column, boolean visible)
           Sets a flag that controls the visibility of the item labels for a column and sends a RenderChangeEvent to all registered listeners.
 void setColumnItemVisible(int column, boolean visible)
           Sets the flag that controls whether a column is visible and sends a RenderChangeEvent to all registered listeners.This is typically used to hide an entire column data.
 void setCustomLegendType(LegendType legendType)
           Sets the legend type.
 void setDataset(IMatrixDataset dataset)
           Sets the dataset of this render,and sends a RenderChangeEvent to all registered listeners.
 void setDrawingSupplier(IDrawingSupplier supplier)
           Sets the drawing supplier for this render,and sends a RenderChangeEvent to all registered listeners.
 void setDrawingSupplier(IDrawingSupplier supplier, boolean notify)
           Sets the drawing supplier for this render and sends a RenderChangeEvent to all registered listeners.
 void setGeneratorTooltip(boolean flag)
           Whether or not generator tooltip of shape and sends a RenderChangeEvent to all registered listeners.
 void setGeneratorUrl(boolean flag)
           Whether or not generator url of shape and sends a RenderChangeEvent to all registered listeners.
 void setItemBorderPaint(int row, int column, java.awt.Paint paint)
           Sets the paint used to outline data items as they are drawn and sends a RenderChangeEvent to all registered listeners.
 void setItemBorderStroke(int row, int column, java.awt.Stroke stroke)
           Sets the stroke used to outline data items as they are drawn and sends a RenderChangeEvent to all registered listeners.
 void setItemDrawBorder(int row, int column, boolean visible)
           Sets the visibility of an item border and sends a RenderChangeEvent to all registered listeners.
 void setItemFill(int row, int column, boolean flag)
           Sets whether or not fill shape and sends a RenderChangeEvent to all registered listeners.
 void setItemFillPaint(int row, int column, java.awt.Paint paint)
           Sets the paint used to fill data items as they are drawn and sends a RenderChangeEvent to all registered listeners.
 void setItemFillPaintTransformer(int row, int column, GradientPaintTransformType transformer)
           Sets the label direction and sends a RenderChangeEvent to all registered listeners.
 void setItemLabelFont(int row, int column, java.awt.Font font)
           Sets the font for an item label and sends a RenderChangeEvent to all registered listeners.
 void setItemLabelHorizontalAlignment(int row, int column, HorizontalAlignment align)
           Sets the horizontal alignment for an item label and sends a RenderChangeEvent to all registered listeners.
 void setItemLabelPaint(int row, int column, java.awt.Paint paint)
           Sets the paint for an item label and sends a RenderChangeEvent to all registered listeners.
 void setItemLabelPosition(int row, int column, TextPosition position)
           Sets the label position and sends a RenderChangeEvent to all registered listeners.
 void setItemLabelVerticalAlignment(int row, int column, VerticalAlignment align)
           Sets the vertical alignment for an item label and sends a RenderChangeEvent to all registered listeners.
 void setItemLabelVisible(int row, int column, boolean visible)
           Sets the visibility of an item label and sends a RenderChangeEvent to all registered listeners.
 void setItemVisible(int row, int column, boolean visible)
           Sets the item label generator for all items of a dataset and sends a RenderChangeEvent to all registered listeners.
 void setLegendPositon(RectangleEdge positon)
           Sets the legend position and sends a RenderChangeEvent to all registered listeners.
 void setNegativeItemLabelHorizontalAlignment(HorizontalAlignment align)
           Sets the horizontal alignment for all negative value items label and sends a RenderChangeEvent to all registered listeners.
 void setNegativeItemLabelVerticalAlignment(VerticalAlignment align)
           Sets the vertical alignment for all negative value items label and sends a RenderChangeEvent to all registered listeners.
 void setPositiveItemLabelHorizontalAlignment(HorizontalAlignment align)
           Sets the horizontal alignment for all positive value items label and sends a RenderChangeEvent to all registered listeners.
 void setPositiveItemLabelVerticalAlignment(VerticalAlignment align)
           Sets the vertical alignment for all positive value items label and sends a RenderChangeEvent to all registered listeners.
 void setRenderAreaBorderPaint(java.awt.Paint paint)
           Sets the paint used to draw the border of the render area and sends a PlotChangeEvent to all registered listeners.
 void setRenderAreaBorderStroke(java.awt.Stroke stroke)
           Sets the stroke used to outline the render area and sends a PlotChangeEvent to all registered listeners.
 void setRenderAreaBorderVisible(boolean visible)
           Sets the flag that controls whether or not the render's area border is drawn, and sends a PlotChangeEvent to all registered listeners.
 void setRowItemBorderPaint(int row, java.awt.Paint paint)
           Sets the paint used to outline all items of a dataset row drawn by the render and sends a RenderChangeEvent to all registered listeners.
 void setRowItemBorderStroke(int row, java.awt.Stroke stroke)
           Sets the stroke used to outline all items of a dataset row drawn by the render and sends a RenderChangeEvent to all registered listeners.
 void setRowItemDrawBorder(int row, boolean visible)
           Sets whether or not to outline all items of a dataset row drawn by the render and sends a RenderChangeEvent to all registered listeners.
 void setRowItemFill(int row, boolean flag)
           Sets whether or not to fill all items of a dataset row and sends a RenderChangeEvent to all registered listeners.
 void setRowItemFillPaint(int row, java.awt.Paint paint)
           Sets the paint used to fill all items of a dataset row and sends a RenderChangeEvent to all registered listeners.
 void setRowItemFillPaintTransformer(int row, GradientPaintTransformType transformer)
           Sets the label direction for all items of a dataset row and sends a RenderChangeEvent to all registered listeners.
 void setRowItemLabelFont(int row, java.awt.Font font)
           Sets the label font for all items of a dataset row and sends a RenderChangeEvent to all registered listeners.
 void setRowItemLabelHorizontalAlignment(int row, HorizontalAlignment align)
           Sets the horizontal alignment for all value items label of a dataset row and sends a RenderChangeEvent to all registered listeners.
 void setRowItemLabelPaint(int row, java.awt.Paint paint)
           Sets the label paint for all items of a dataset row and sends a RenderChangeEvent to all registered listeners.
 void setRowItemLabelPosition(int row, TextPosition position)
           Sets the label position for all items of a dataset row and sends a RenderChangeEvent to all registered listeners.
 void setRowItemLabelVerticalAlignment(int row, VerticalAlignment align)
           Sets the vertical alignment for all value items label of a dataset row and sends a RenderChangeEvent to all registered listeners.
 void setRowItemLabelVisible(int row, boolean visible)
           Sets a flag that controls the visibility of the item labels for a row and sends a RenderChangeEvent to all registered listeners.
 void setRowItemVisible(int row, boolean visible)
           Sets the flag that controls whether a row is visible and sends a RenderChangeEvent to all registered listeners.This is typically used to hide an entire row data.
 void setToolTipGenerator(IToolTipGenerator generator)
           Sets the tool tip generator that should be used for all items of a dataset and sends a RenderChangeEvent to all registered listeners.
 java.lang.String toString()
           Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_BASE_BORDER_PAINT

public static final java.awt.Paint DEFAULT_BASE_BORDER_PAINT
The default border paint.


DEFAULT_BASE_BORDER_STROKE

public static final java.awt.Stroke DEFAULT_BASE_BORDER_STROKE
The default border stroke.


DEFAULT_BASE_ITEM_LABEL_VISIBLE

public static final boolean DEFAULT_BASE_ITEM_LABEL_VISIBLE
The default value of base item labels visible.

See Also:
Constant Field Values

DEFAULT_BASE_ITEM_LABEL_FONT

public static final java.awt.Font DEFAULT_BASE_ITEM_LABEL_FONT
The default font of base item labels.


DEFAULT_BASE_ITEM_LABEL_PAINT

public static final java.awt.Paint DEFAULT_BASE_ITEM_LABEL_PAINT
The default item label paint.


DEFAULT_BASE_ITEM_LABEL_HORIZONTAL_ALIGNMENT

public static final HorizontalAlignment DEFAULT_BASE_ITEM_LABEL_HORIZONTAL_ALIGNMENT
The default item label horizontal alignment.


DEFAULT_BASE_ITEM_LABEL_VERTICAL_ALIGNMENT

public static final VerticalAlignment DEFAULT_BASE_ITEM_LABEL_VERTICAL_ALIGNMENT
The default item label vertical alignment.


DEFAULT_BACKGROUND_PAINT

public static final java.awt.Paint DEFAULT_BACKGROUND_PAINT
The default background color.


DEFAULT_BACKGROUND_IMAGE_ALIGNMENT

public static final Align DEFAULT_BACKGROUND_IMAGE_ALIGNMENT
The default background image alignment.


DEFAULT_RENDER_AREA_BORDER_VISIBLE

public static final boolean DEFAULT_RENDER_AREA_BORDER_VISIBLE
A default flag that controls whether or not the render border is drawn.

See Also:
Constant Field Values

DEFAULT_BORDER_STROKE

public static final java.awt.Stroke DEFAULT_BORDER_STROKE
The default border stroke.


DEFAULT_BORDER_PAINT

public static final java.awt.Paint DEFAULT_BORDER_PAINT
The default border color.


DEFAULT_BASE_ITEM_FILL_PAINT

public static final java.awt.Paint DEFAULT_BASE_ITEM_FILL_PAINT
The default fill paint.


DEFAULT_DRAW_BORDER

public static final boolean DEFAULT_DRAW_BORDER
The default value of base item border visible.

See Also:
Constant Field Values

DEFAULT_AUTO_SELECT_FILL_PAINT

public static final boolean DEFAULT_AUTO_SELECT_FILL_PAINT
A default flag that controls whether or not the fill paint is auto selected.

See Also:
Constant Field Values

DEFAULT_AUTO_SELECT_BORDER_PAINT

public static final boolean DEFAULT_AUTO_SELECT_BORDER_PAINT
A default flag that controls whether or not the border paint is auto selected

See Also:
Constant Field Values

DEFAULT_AUTO_SELECT_BORDER_STROKE

public static final boolean DEFAULT_AUTO_SELECT_BORDER_STROKE
A default flag that controls whether or not the border stroke is auto selected

See Also:
Constant Field Values

DEFAULT_BASE_ITEM_FILL

public static final boolean DEFAULT_BASE_ITEM_FILL
A default flag that controls whether or not fill all data items shape of a dataset.

See Also:
Constant Field Values

DEFAULT_DRAWINT_SUPPLIER

public static final IDrawingSupplier DEFAULT_DRAWINT_SUPPLIER
The drawing supplier for this render.


DEFAULT_LABEL_GENERATOR

public static final ILabelGenerator DEFAULT_LABEL_GENERATOR
The default label generator.


DEFAULT_TOOLTIP_GENERATOR

public static final IToolTipGenerator DEFAULT_TOOLTIP_GENERATOR
The default tooltip generator.


DEFAULT_GENERATOR_URL

public static final boolean DEFAULT_GENERATOR_URL
A default flag that controls whether or not generator url of shape.

See Also:
Constant Field Values

DEFAULT_GENERATOR_TOOLTIP

public static final boolean DEFAULT_GENERATOR_TOOLTIP
A default flag that controls whether or not generator tooltip of shape.

See Also:
Constant Field Values

DEFAULT_BASE_ITEM_FILL_PAINT_TRANSFORMER

public static final GradientPaintTransformType DEFAULT_BASE_ITEM_FILL_PAINT_TRANSFORMER
The default type of gradient paint transform.


fillPaints

protected transient java.awt.Paint[] fillPaints
The paint array used to fill shape.


borderPaints

protected transient java.awt.Paint[] borderPaints
The paint array used to outline shape.


borderStrokes

protected transient java.awt.Stroke[] borderStrokes
The Stroke array used to outline shape.

Constructor Detail

AbstractRender

protected AbstractRender(IMatrixDataset dataset)
constructor.

Parameters:
dataset - IMatrixDataset The dataset (null not permitted).
Method Detail

getDataset

public IMatrixDataset getDataset()
Returns the dataset of this render.

Returns:
IMatrixDataset The dataset (never null).

setDataset

public void setDataset(IMatrixDataset dataset)
Sets the dataset of this render,and sends a RenderChangeEvent to all registered listeners.

Parameters:
dataset - IMatrixDataset The dataset (null not permitted).

isItemVisible

public boolean isItemVisible(int row,
                             int column)
Returns a boolean that indicates whether or not the specified item should be drawn.

Specified by:
isItemVisible in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
column - int The dataset column num,must be greater than or equal to 0.
Returns:
boolean A boolean.

setItemVisible

public void setItemVisible(int row,
                           int column,
                           boolean visible)
Sets a boolean that indicates whether or not the specified item should be drawn.

Specified by:
setItemVisible in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
column - int The dataset column num,must be greater than or equal to 0.
visible - boolean The visible flag.

isColumnItemVisible

public java.lang.Boolean isColumnItemVisible(int column)
Returns a boolean that indicates whether or not the specified column should be drawn.

Specified by:
isColumnItemVisible in interface IRender
Parameters:
column - int The dataset column num,must be greater than or equal to 0.
Returns:
boolean A boolean (maybe null).

setColumnItemVisible

public void setColumnItemVisible(int column,
                                 boolean visible)
Sets the flag that controls whether a column is visible and sends a RenderChangeEvent to all registered listeners.This is typically used to hide an entire column data.

Specified by:
setColumnItemVisible in interface IRender
Parameters:
column - int The dataset column num,must be greater than or equal to 0.
visible - boolean The boolean flag.

isRowItemVisible

public java.lang.Boolean isRowItemVisible(int row)
Returns a boolean that indicates whether or not the specified row should be drawn.

Specified by:
isRowItemVisible in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
Returns:
boolean A boolean (maybe null).

setRowItemVisible

public void setRowItemVisible(int row,
                              boolean visible)
Sets the flag that controls whether a row is visible and sends a RenderChangeEvent to all registered listeners.This is typically used to hide an entire row data.

Specified by:
setRowItemVisible in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
visible - boolean The boolean flag.

isItemFill

public boolean isItemFill(int row,
                          int column)
Returns whether or not fill shape.

Specified by:
isItemFill in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
column - int The dataset column num,must be greater than or equal to 0.
Returns:
boolean The boolean.

setItemFill

public void setItemFill(int row,
                        int column,
                        boolean flag)
Sets whether or not fill shape and sends a RenderChangeEvent to all registered listeners.

Specified by:
setItemFill in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
column - int The dataset column num,must be greater than or equal to 0.
flag - boolean The boolean.

isColumnItemFill

public java.lang.Boolean isColumnItemFill(int column)
Returns whether or not to fill all items of a dataset column drawn by the render.

Specified by:
isColumnItemFill in interface IRender
Parameters:
column - int The dataset column num,must be greater than or equal to 0.
Returns:
Boolean The Boolean object.

setColumnItemFill

public void setColumnItemFill(int column,
                              boolean flag)
Sets whether or not to fill all items of a dataset column and sends a RenderChangeEvent to all registered listeners.

Specified by:
setColumnItemFill in interface IRender
Parameters:
column - int The dataset column num,must be greater than or equal to 0.
flag - boolean The boolean.

isRowItemFill

public java.lang.Boolean isRowItemFill(int row)
Returns whether or not to fill all items of a dataset row drawn by the render.

Specified by:
isRowItemFill in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
Returns:
Boolean The Boolean object.

setRowItemFill

public void setRowItemFill(int row,
                           boolean flag)
Sets whether or not to fill all items of a dataset row and sends a RenderChangeEvent to all registered listeners.

Specified by:
setRowItemFill in interface IRender
Parameters:
row - int The dataset row number,must be greater than or equal to 0.
flag - boolean The boolean.

isBaseItemFill

public boolean isBaseItemFill()
Returns whether or not fill all items of a dataset.

Specified by:
isBaseItemFill in interface IRender
Returns:
boolean The boolean.

setBaseItemFill

public void setBaseItemFill(boolean flag)
Sets whether or not fill all items of a dataset and sends a RenderChangeEvent to all registered listeners.

Specified by:
setBaseItemFill in interface IRender
Parameters:
flag - boolean The boolean.

getItemFillPaint

public java.awt.Paint getItemFillPaint(int row,
                                       int column)
Returns the paint used to fill data items as they are drawn.

Specified by:
getItemFillPaint in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
column - int The dataset column num,must be greater than or equal to 0.
Returns:
Paint The paint (maybe null).

setItemFillPaint

public void setItemFillPaint(int row,
                             int column,
                             java.awt.Paint paint)
Sets the paint used to fill data items as they are drawn and sends a RenderChangeEvent to all registered listeners.

Specified by:
setItemFillPaint in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
column - int The dataset column num,must be greater than or equal to 0.
paint - Paint The fill paint (null permitted).

getColumnItemFillPaint

public java.awt.Paint getColumnItemFillPaint(int column)
Returns the paint used to fill all items of a dataset column drawn by the render.

Specified by:
getColumnItemFillPaint in interface IRender
Parameters:
column - int The dataset column num,must be greater than or equal to 0.
Returns:
Paint The paint (possibly null).

setColumnItemFillPaint

public void setColumnItemFillPaint(int column,
                                   java.awt.Paint paint)
Sets the paint used to fill all items of a dataset column and sends a RenderChangeEvent to all registered listeners.

Specified by:
setColumnItemFillPaint in interface IRender
Parameters:
column - int The dataset column num,must be greater than or equal to 0.
paint - Paint The fill paint (null permitted).

getRowItemFillPaint

public java.awt.Paint getRowItemFillPaint(int row)
Returns the paint used to fill all items of a dataset row drawn by the render.

Specified by:
getRowItemFillPaint in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
Returns:
Paint The paint (possibly null).

setRowItemFillPaint

public void setRowItemFillPaint(int row,
                                java.awt.Paint paint)
Sets the paint used to fill all items of a dataset row and sends a RenderChangeEvent to all registered listeners.

Specified by:
setRowItemFillPaint in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
paint - Paint The fill paint (null permitted).

getBaseItemFillPaint

public java.awt.Paint getBaseItemFillPaint()
Returns the base fill paint.

Specified by:
getBaseItemFillPaint in interface IRender
Returns:
Paint The base fill paint (null permitted).

setBaseItemFillPaint

public void setBaseItemFillPaint(java.awt.Paint paint)
Sets the base paint to fill all items of a dataset and sends a RenderChangeEvent to all registered listeners.

Specified by:
setBaseItemFillPaint in interface IRender
Parameters:
paint - Paint The base fill paint (null permitted).

isAutoSelectFillPaint

public boolean isAutoSelectFillPaint()
Returns whether or not the fill paint is auto selected.

Returns:
boolean The boolean.

setAutoSelectFillPaint

public void setAutoSelectFillPaint(boolean flag)
A flag that controls whether or not the fill paint is auto selected,and sends a RenderChangeEvent to all registered listeners.

Parameters:
flag - boolean The boolean.

getItemFillPaintTransformer

public GradientPaintTransformType getItemFillPaintTransformer(int row,
                                                              int column)
Returns an optional class used to transform gradient paint object to fit an item.

Specified by:
getItemFillPaintTransformer in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
column - int The dataset column num,must be greater than or equal to 0.
Returns:
GradientPaintTransformType The GradientPaintTransformType object (maybe null).

setItemFillPaintTransformer

public void setItemFillPaintTransformer(int row,
                                        int column,
                                        GradientPaintTransformType transformer)
Sets an optional class used to transform gradient paint object to fit an item,and sends a RenderChangeEvent to all registered listeners.

Specified by:
setItemFillPaintTransformer in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
column - int The dataset column num,must be greater than or equal to 0.
transformer - GradientPaintTransformType The GradientPaintTransformType object (null permitted).

getColumnItemFillPaintTransformer

public GradientPaintTransformType getColumnItemFillPaintTransformer(int column)
Returns an optional class used to transform gradient paint object to fit all items of a dataset column.

Specified by:
getColumnItemFillPaintTransformer in interface IRender
Parameters:
column - int The dataset column num,must be greater than or equal to 0.
Returns:
GradientPaintTransformType The GradientPaintTransformType object (possibly null).

setColumnItemFillPaintTransformer

public void setColumnItemFillPaintTransformer(int column,
                                              GradientPaintTransformType transformer)
Sets an optional class used to transform gradient paint object to fit all items of a dataset column,and sends a RenderChangeEvent to all registered listeners.

Specified by:
setColumnItemFillPaintTransformer in interface IRender
Parameters:
column - int The dataset column num,must be greater than or equal to 0.
transformer - GradientPaintTransformType The GradientPaintTransformType (null permitted).

getRowItemFillPaintTransformer

public GradientPaintTransformType getRowItemFillPaintTransformer(int row)
Returns an optional class used to transform gradient paint object to fit all items of a dataset row.

Specified by:
getRowItemFillPaintTransformer in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
Returns:
GradientPaintTransformType The GradientPaintTransformType object (possibly null).

setRowItemFillPaintTransformer

public void setRowItemFillPaintTransformer(int row,
                                           GradientPaintTransformType transformer)
Sets an optional class used to transform gradient paint object to fit all items of a dataset row,and sends a RenderChangeEvent to all registered listeners.

Specified by:
setRowItemFillPaintTransformer in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
transformer - GradientPaintTransformType The GradientPaintTransformType (null permitted).

getBaseItemFillPaintTransformer

public GradientPaintTransformType getBaseItemFillPaintTransformer()
Returns an optional class used to transform gradient paint object to fit all items of a dataset.

Specified by:
getBaseItemFillPaintTransformer in interface IRender
Returns:
GradientPaintTransformType The base GradientPaintTransformType object (possibly null).

setBaseItemFillPaintTransformer

public void setBaseItemFillPaintTransformer(GradientPaintTransformType transformer)
Sets an optional class used to transform gradient paint object to fit all items of a dataset,and sends a RenderChangeEvent to all registered listeners.

Specified by:
setBaseItemFillPaintTransformer in interface IRender
Parameters:
transformer - GradientPaintTransformType The base GradientPaintTransformType object (null permitted).

isItemDrawBorder

public boolean isItemDrawBorder(int row,
                                int column)
Returns true if an item border is visible,and false otherwise.

Specified by:
isItemDrawBorder in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
column - int The dataset column num,must be greater than or equal to 0.
Returns:
boolean A boolean.

setItemDrawBorder

public void setItemDrawBorder(int row,
                              int column,
                              boolean visible)
Sets the visibility of an item border and sends a RenderChangeEvent to all registered listeners.

Specified by:
setItemDrawBorder in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
column - int The dataset column num,must be greater than or equal to 0.
visible - boolean The visible flag.

isColumnItemDrawBorder

public java.lang.Boolean isColumnItemDrawBorder(int column)
Returns whether or not outline all items of a dataset column .

Specified by:
isColumnItemDrawBorder in interface IRender
Parameters:
column - int The dataset column num,must be greater than or equal to 0.
Returns:
Boolean A boolean (maybe null).

setColumnItemDrawBorder

public void setColumnItemDrawBorder(int column,
                                    boolean visible)
Sets whether or not to outline all items of a dataset column drawn by the render and sends a RenderChangeEvent to all registered listeners.

Specified by:
setColumnItemDrawBorder in interface IRender
Parameters:
column - int The dataset column num,must be greater than or equal to 0.
visible - boolean The visible flag.

isRowItemDrawBorder

public java.lang.Boolean isRowItemDrawBorder(int row)
Returns whether or not outline all items of a dataset row .

Specified by:
isRowItemDrawBorder in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
Returns:
Boolean A boolean (maybe null).

setRowItemDrawBorder

public void setRowItemDrawBorder(int row,
                                 boolean visible)
Sets whether or not to outline all items of a dataset row drawn by the render and sends a RenderChangeEvent to all registered listeners.

Specified by:
setRowItemDrawBorder in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
visible - boolean The visible flag.

isBaseItemDrawBorder

public boolean isBaseItemDrawBorder()
Returns whether or not outline all items of a dataset.

Specified by:
isBaseItemDrawBorder in interface IRender
Returns:
boolean A boolean.

setBaseItemDrawBorder

public void setBaseItemDrawBorder(boolean visible)
Sets whether or not to outline all items of a dataset drawn by the render and sends a RenderChangeEvent to all registered listeners.

Specified by:
setBaseItemDrawBorder in interface IRender
Parameters:
visible - boolean The visible flag.

getItemBorderPaint

public java.awt.Paint getItemBorderPaint(int row,
                                         int column)
Returns the paint used to outline data items as they are drawn.

Specified by:
getItemBorderPaint in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
column - int The dataset column num,must be greater than or equal to 0.
Returns:
Paint The paint (never null).

setItemBorderPaint

public void setItemBorderPaint(int row,
                               int column,
                               java.awt.Paint paint)
Sets the paint used to outline data items as they are drawn and sends a RenderChangeEvent to all registered listeners.

Specified by:
setItemBorderPaint in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
column - int The dataset column num,must be greater than or equal to 0.
paint - Paint The paint (null permitted).

getColumnItemBorderPaint

public java.awt.Paint getColumnItemBorderPaint(int column)
Returns the paint used to outline all items of a dataset column drawn by the render.

Specified by:
getColumnItemBorderPaint in interface IRender
Parameters:
column - int The dataset column num,must be greater than or equal to 0.
Returns:
Paint The paint (possibly null).

setColumnItemBorderPaint

public void setColumnItemBorderPaint(int column,
                                     java.awt.Paint paint)
Sets the paint used to outline all items of a dataset column drawn by the render and sends a RenderChangeEvent to all registered listeners.

Specified by:
setColumnItemBorderPaint in interface IRender
Parameters:
column - int The dataset column num,must be greater than or equal to 0.
paint - Paint The paint (possibly null).

getRowItemBorderPaint

public java.awt.Paint getRowItemBorderPaint(int row)
Returns the paint used to outline all items of a dataset row drawn by the render.

Specified by:
getRowItemBorderPaint in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
Returns:
Paint The paint (possibly null).

setRowItemBorderPaint

public void setRowItemBorderPaint(int row,
                                  java.awt.Paint paint)
Sets the paint used to outline all items of a dataset row drawn by the render and sends a RenderChangeEvent to all registered listeners.

Specified by:
setRowItemBorderPaint in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
paint - Paint The paint (possibly null).

getBaseItemBorderPaint

public java.awt.Paint getBaseItemBorderPaint()
Returns the base paint to outline all items of a dataset.

Specified by:
getBaseItemBorderPaint in interface IRender
Returns:
Paint The paint (never null).

setBaseItemBorderPaint

public void setBaseItemBorderPaint(java.awt.Paint paint)
Sets the base border paint and sends a RenderChangeEvent to all registered listeners.

Specified by:
setBaseItemBorderPaint in interface IRender
Parameters:
paint - Paint The paint (never null).

isAutoSelectBorderPaint

public boolean isAutoSelectBorderPaint()
Returns whether or not the border paint is auto selected

Returns:
boolean The boolean.

setAutoSelectBorderPaint

public void setAutoSelectBorderPaint(boolean flag)
Returns whether or not the border paint is auto selected,and sends a RenderChangeEvent to all registered listeners

Parameters:
flag - boolean The boolean.

getItemBorderStroke

public java.awt.Stroke getItemBorderStroke(int row,
                                           int column)
Returns the stroke used to outline data items as they are drawn.

Specified by:
getItemBorderStroke in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
column - int The dataset column num,must be greater than or equal to 0.
Returns:
Stroke The stroke (never null).

setItemBorderStroke

public void setItemBorderStroke(int row,
                                int column,
                                java.awt.Stroke stroke)
Sets the stroke used to outline data items as they are drawn and sends a RenderChangeEvent to all registered listeners.

Specified by:
setItemBorderStroke in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
column - int The dataset column num,must be greater than or equal to 0.
stroke - Stroke The stroke (null permitted).

getColumnItemBorderStroke

public java.awt.Stroke getColumnItemBorderStroke(int column)
Returns the stroke used to outline all items of a dataset column drawn by the render.

Specified by:
getColumnItemBorderStroke in interface IRender
Parameters:
column - int The dataset column num,must be greater than or equal to 0.
Returns:
Stroke The stroke (possibly null).

setColumnItemBorderStroke

public void setColumnItemBorderStroke(int column,
                                      java.awt.Stroke stroke)
Sets the stroke used to outline all items of a dataset column drawn by the render and sends a RenderChangeEvent to all registered listeners.

Specified by:
setColumnItemBorderStroke in interface IRender
Parameters:
column - int The dataset column num,must be greater than or equal to 0.
stroke - Stroke The stroke (possibly null).

getRowItemBorderStroke

public java.awt.Stroke getRowItemBorderStroke(int row)
Returns the stroke used to outline all items of a dataset row drawn by the render.

Specified by:
getRowItemBorderStroke in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
Returns:
Stroke The stroke (possibly null).

setRowItemBorderStroke

public void setRowItemBorderStroke(int row,
                                   java.awt.Stroke stroke)
Sets the stroke used to outline all items of a dataset row drawn by the render and sends a RenderChangeEvent to all registered listeners.

Specified by:
setRowItemBorderStroke in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
stroke - Stroke The stroke (possibly null).

getBaseItemBorderStroke

public java.awt.Stroke getBaseItemBorderStroke()
Returns the base stroke to outline all items of a dataset.

Specified by:
getBaseItemBorderStroke in interface IRender
Returns:
Stroke The stroke (never null).

setBaseItemBorderStroke

public void setBaseItemBorderStroke(java.awt.Stroke stroke)
Sets the base border stroke and sends a RenderChangeEvent to all registered listeners.

Specified by:
setBaseItemBorderStroke in interface IRender
Parameters:
stroke - Stroke The stroke (never null).

isAutoSelectBorderStroke

public boolean isAutoSelectBorderStroke()
Returns whether or not the border stroke is auto selected

Returns:
boolean The boolean.

setAutoSelectBorderStroke

public void setAutoSelectBorderStroke(boolean flag)
Returns whether or not the border stroke is auto selected,and sends a RenderChangeEvent to all registered listeners

Parameters:
flag - boolean The boolean.

isItemLabelVisible

public boolean isItemLabelVisible(int row,
                                  int column)
Returns true if an item label is visible,and false otherwise.

Specified by:
isItemLabelVisible in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
column - int The dataset column num,must be greater than or equal to 0.
Returns:
A boolean.

setItemLabelVisible

public void setItemLabelVisible(int row,
                                int column,
                                boolean visible)
Sets the visibility of an item label and sends a RenderChangeEvent to all registered listeners.

Specified by:
setItemLabelVisible in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
column - int The dataset column num,must be greater than or equal to 0.
visible - boolean The visible flag.

isColumnItemLabelVisible

public java.lang.Boolean isColumnItemLabelVisible(int column)
Returns true if the item labels for a column are visible, and false otherwise.

Specified by:
isColumnItemLabelVisible in interface IRender
Parameters:
column - int The dataset column num,must be greater than or equal to 0.
Returns:
Boolean A boolean (maybe null).

setColumnItemLabelVisible

public void setColumnItemLabelVisible(int column,
                                      boolean visible)
Sets a flag that controls the visibility of the item labels for a column and sends a RenderChangeEvent to all registered listeners.

Specified by:
setColumnItemLabelVisible in interface IRender
Parameters:
column - int The dataset column num,must be greater than or equal to 0.
visible - boolean The visible flag.

isRowItemLabelVisible

public java.lang.Boolean isRowItemLabelVisible(int row)
Returns true if the item labels for a row are visible, and false otherwise.

Specified by:
isRowItemLabelVisible in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
Returns:
Boolean A boolean (maybe null).

setRowItemLabelVisible

public void setRowItemLabelVisible(int row,
                                   boolean visible)
Sets a flag that controls the visibility of the item labels for a row and sends a RenderChangeEvent to all registered listeners.

Specified by:
setRowItemLabelVisible in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
visible - boolean The visible flag.

getBaseItemLabelVisible

public boolean getBaseItemLabelVisible()
Returns the base setting for item label visibility.

Specified by:
getBaseItemLabelVisible in interface IRender
Returns:
boolean A flag (possibly null).

setBaseItemLabelVisible

public void setBaseItemLabelVisible(boolean visible)
Sets the base flag that controls whether or not item labels are visible and sends a RenderChangeEvent to all registered listeners.

Specified by:
setBaseItemLabelVisible in interface IRender
Parameters:
visible - The flag.

getItemLabelFont

public java.awt.Font getItemLabelFont(int row,
                                      int column)
Returns the font for an item label.

Specified by:
getItemLabelFont in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
column - int The dataset column num,must be greater than or equal to 0.
Returns:
Font The font (never null).

setItemLabelFont

public void setItemLabelFont(int row,
                             int column,
                             java.awt.Font font)
Sets the font for an item label and sends a RenderChangeEvent to all registered listeners.

Specified by:
setItemLabelFont in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
column - int The dataset column num,must be greater than or equal to 0.
font - Font The font (null permitted).

getColumnItemLabelFont

public java.awt.Font getColumnItemLabelFont(int column)
Returns the font for all items label of a dataset column.

Specified by:
getColumnItemLabelFont in interface IRender
Parameters:
column - int The dataset column num,must be greater than or equal to 0.
Returns:
Font The font (maybe null).

setColumnItemLabelFont

public void setColumnItemLabelFont(int column,
                                   java.awt.Font font)
Sets the label font for all items of a dataset and sends a RenderChangeEvent to all registered listeners.

Specified by:
setColumnItemLabelFont in interface IRender
Parameters:
column - int The dataset column num,must be greater than or equal to 0.
font - Font The font (null permitted).

getRowItemLabelFont

public java.awt.Font getRowItemLabelFont(int row)
Returns the font for all items label of a dataset row.

Specified by:
getRowItemLabelFont in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
Returns:
Font The font (maybe null).

setRowItemLabelFont

public void setRowItemLabelFont(int row,
                                java.awt.Font font)
Sets the label font for all items of a dataset row and sends a RenderChangeEvent to all registered listeners.

Specified by:
setRowItemLabelFont in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
font - Font The font (null permitted).

getBaseItemLabelFont

public java.awt.Font getBaseItemLabelFont()
Returns the label font for all items of a dataset.

Specified by:
getBaseItemLabelFont in interface IRender
Returns:
Font The font (never null).

setBaseItemLabelFont

public void setBaseItemLabelFont(java.awt.Font font)
Sets the label font for all items of a dataset and sends a RenderChangeEvent to all registered listeners.

Specified by:
setBaseItemLabelFont in interface IRender
Parameters:
font - Font The font (null not permitted).

getItemLabelPaint

public java.awt.Paint getItemLabelPaint(int row,
                                        int column)
Returns the paint for an item label.

Specified by:
getItemLabelPaint in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
column - int The dataset column num,must be greater than or equal to 0.
Returns:
Paint The paint (never null).

setItemLabelPaint

public void setItemLabelPaint(int row,
                              int column,
                              java.awt.Paint paint)
Sets the paint for an item label and sends a RenderChangeEvent to all registered listeners.

Specified by:
setItemLabelPaint in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
column - int The dataset column num,must be greater than or equal to 0.
paint - Paint The paint (null permitted).

getColumnItemLabelPaint

public java.awt.Paint getColumnItemLabelPaint(int column)
Returns the label paint for all items of a dataset column.

Specified by:
getColumnItemLabelPaint in interface IRender
Parameters:
column - int The dataset column num,must be greater than or equal to 0.
Returns:
Paint The paint (maybe null).

setColumnItemLabelPaint

public void setColumnItemLabelPaint(int column,
                                    java.awt.Paint paint)
Sets the label paint for all items and sends a RenderChangeEvent to all registered listeners.

Specified by:
setColumnItemLabelPaint in interface IRender
Parameters:
column - int The dataset column num,must be greater than or equal to 0.
paint - Paint The paint (null permitted).

getRowItemLabelPaint

public java.awt.Paint getRowItemLabelPaint(int row)
Returns the label paint for all items of a dataset row.

Specified by:
getRowItemLabelPaint in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
Returns:
Paint The paint (maybe null).

setRowItemLabelPaint

public void setRowItemLabelPaint(int row,
                                 java.awt.Paint paint)
Sets the label paint for all items of a dataset row and sends a RenderChangeEvent to all registered listeners.

Specified by:
setRowItemLabelPaint in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
paint - Paint The paint (null permitted).

getBaseItemLabelPaint

public java.awt.Paint getBaseItemLabelPaint()
Returns the label paint for all items of a dataset.

Specified by:
getBaseItemLabelPaint in interface IRender
Returns:
Paint The paint (never null).

setBaseItemLabelPaint

public void setBaseItemLabelPaint(java.awt.Paint paint)
Sets the label paint for all items of a dataset and sends a RenderChangeEvent to all registered listeners.

Specified by:
setBaseItemLabelPaint in interface IRender
Parameters:
paint - Paint The paint (null not permitted).

getItemLabelPosition

public TextPosition getItemLabelPosition(int row,
                                         int column)
Returns the label position.

Specified by:
getItemLabelPosition in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
column - int The dataset column num,must be greater than or equal to 0.
Returns:
LabelPosition The label position (never null).

setItemLabelPosition

public void setItemLabelPosition(int row,
                                 int column,
                                 TextPosition position)
Sets the label position and sends a RenderChangeEvent to all registered listeners.

Specified by:
setItemLabelPosition in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
column - int The dataset column num,must be greater than or equal to 0.
position - LabelPosition The label position (null permitted).

getColumnItemLabelPosition

public TextPosition getColumnItemLabelPosition(int column)
Returns the label position for all items of a dataset column.

Specified by:
getColumnItemLabelPosition in interface IRender
Parameters:
column - int The dataset column num,must be greater than or equal to 0.
Returns:
LabelPosition The label position (never null).

setColumnItemLabelPosition

public void setColumnItemLabelPosition(int column,
                                       TextPosition position)
Sets the label position for all items of a dataset and sends a RenderChangeEvent to all registered listeners.

Specified by:
setColumnItemLabelPosition in interface IRender
Parameters:
column - int The dataset column num,must be greater than or equal to 0.
position - LabelPosition The label position (null permitted).

getRowItemLabelPosition

public TextPosition getRowItemLabelPosition(int row)
Returns the label position for all items of a dataset row.

Specified by:
getRowItemLabelPosition in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
Returns:
LabelPosition The label position (never null).

setRowItemLabelPosition

public void setRowItemLabelPosition(int row,
                                    TextPosition position)
Sets the label position for all items of a dataset row and sends a RenderChangeEvent to all registered listeners.

Specified by:
setRowItemLabelPosition in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
position - LabelPosition The label position (null permitted).

getBaseItemLabelPosition

public TextPosition getBaseItemLabelPosition()
Returns the label position for all items of a dataset.

Specified by:
getBaseItemLabelPosition in interface IRender
Returns:
LabelPosition The label position (never null).

setBaseItemLabelPosition

public void setBaseItemLabelPosition(TextPosition position)
Sets the label position for all items of a dataset and sends a RenderChangeEvent to all registered listeners.

Specified by:
setBaseItemLabelPosition in interface IRender
Parameters:
position - LabelPosition The label position (null not permitted).

getItemLabelDirection

public TextDirection getItemLabelDirection(int row,
                                           int column)
Returns the label direction.

Parameters:
row - int The dataset row num,must be greater than or equal to 0.
column - int The dataset column num,must be greater than or equal to 0.
Returns:
TextDirection The label direction (never null).

setItemLabelDirection

public void setItemLabelDirection(int row,
                                  int column,
                                  TextDirection direction)
Sets the label direction and sends a RenderChangeEvent to all registered listeners.

Parameters:
row - int The dataset row num,must be greater than or equal to 0.
column - int The dataset column num,must be greater than or equal to 0.
direction - TextDirection The label direction (null permitted).

getColumnItemLabelDirection

public TextDirection getColumnItemLabelDirection(int column)
Returns the label direction for all items of a dataset column.

Parameters:
column - int The dataset column num,must be greater than or equal to 0.
Returns:
TextDirection The label direction (never null).

setColumnItemLabelDirection

public void setColumnItemLabelDirection(int column,
                                        TextDirection direction)
Sets the label direction for all items of a dataset and sends a RenderChangeEvent to all registered listeners.

Parameters:
column - int The dataset column num,must be greater than or equal to 0.
direction - TextDirection The label direction (null permitted).

getRowItemLabelDirection

public TextDirection getRowItemLabelDirection(int row)
Returns the label direction for all items of a dataset row.

Parameters:
row - int The dataset row num,must be greater than or equal to 0.
Returns:
TextDirection The label direction (never null).

setRowItemLabelDirection

public void setRowItemLabelDirection(int row,
                                     TextDirection direction)
Sets the label direction for all items of a dataset row and sends a RenderChangeEvent to all registered listeners.

Parameters:
row - int The dataset row num,must be greater than or equal to 0.
direction - TextDirection The label direction (null permitted).

getBaseItemLabelDirection

public TextDirection getBaseItemLabelDirection()
Returns the label direction for all items of a dataset.

Returns:
TextDirection The label direction (never null).

setBaseItemLabelDirection

public void setBaseItemLabelDirection(TextDirection direction)
Sets the label direction for all items of a dataset and sends a RenderChangeEvent to all registered listeners.

Parameters:
direction - TextDirection The label direction (null not permitted).

getItemLabelHorizontalAlignment

public HorizontalAlignment getItemLabelHorizontalAlignment(int row,
                                                           int column)
Returns the horizontal alignment for an item label.

Specified by:
getItemLabelHorizontalAlignment in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
column - int The dataset column num,must be greater than or equal to 0.
Returns:
HorizontalAlignment The horizontal alignment (never null).

setItemLabelHorizontalAlignment

public void setItemLabelHorizontalAlignment(int row,
                                            int column,
                                            HorizontalAlignment align)
Sets the horizontal alignment for an item label and sends a RenderChangeEvent to all registered listeners.

Specified by:
setItemLabelHorizontalAlignment in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
column - int The dataset column num,must be greater than or equal to 0.
align - HorizontalAlignment The horizontal alignment (null permitted).

getColumnItemLabelHorizontalAlignment

public HorizontalAlignment getColumnItemLabelHorizontalAlignment(int column)
Returns the label horizontal alignment for all items of a dataset column.

Specified by:
getColumnItemLabelHorizontalAlignment in interface IRender
Parameters:
column - int The dataset column num,must be greater than or equal to 0.
Returns:
HorizontalAlignment The horizontal alignment (maybe null).

setColumnItemLabelHorizontalAlignment

public void setColumnItemLabelHorizontalAlignment(int column,
                                                  HorizontalAlignment align)
Sets the horizontal alignment for all values items label and sends a RenderChangeEvent to all registered listeners.

Specified by:
setColumnItemLabelHorizontalAlignment in interface IRender
Parameters:
column - int The dataset column num,must be greater than or equal to 0.
align - HorizontalAlignment The horizontal alignment (null permitted).

getRowItemLabelHorizontalAlignment

public HorizontalAlignment getRowItemLabelHorizontalAlignment(int row)
Returns the label horizontal alignment for all items of a dataset row.

Specified by:
getRowItemLabelHorizontalAlignment in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
Returns:
HorizontalAlignment The horizontal alignment (maybe null).

setRowItemLabelHorizontalAlignment

public void setRowItemLabelHorizontalAlignment(int row,
                                               HorizontalAlignment align)
Sets the horizontal alignment for all value items label of a dataset row and sends a RenderChangeEvent to all registered listeners.

Specified by:
setRowItemLabelHorizontalAlignment in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
align - HorizontalAlignment The horizontal alignment (null permitted).

getNegativeItemLabelHorizontalAlignment

public HorizontalAlignment getNegativeItemLabelHorizontalAlignment()
Returns the horizontal alignment for all negative value items label of a dataset.

Specified by:
getNegativeItemLabelHorizontalAlignment in interface IRender
Returns:
HorizontalAlignment The horizontal alignment (maybe null).

setNegativeItemLabelHorizontalAlignment

public void setNegativeItemLabelHorizontalAlignment(HorizontalAlignment align)
Sets the horizontal alignment for all negative value items label and sends a RenderChangeEvent to all registered listeners.

Specified by:
setNegativeItemLabelHorizontalAlignment in interface IRender
Parameters:
align - HorizontalAlignment The horizontal alignment (null permitted).

getPositiveItemLabelHorizontalAlignment

public HorizontalAlignment getPositiveItemLabelHorizontalAlignment()
Returns the horizontal alignment for all positive value items label of a dataset.

Specified by:
getPositiveItemLabelHorizontalAlignment in interface IRender
Returns:
HorizontalAlignment The horizontal alignment (maybe null).

setPositiveItemLabelHorizontalAlignment

public void setPositiveItemLabelHorizontalAlignment(HorizontalAlignment align)
Sets the horizontal alignment for all positive value items label and sends a RenderChangeEvent to all registered listeners.

Specified by:
setPositiveItemLabelHorizontalAlignment in interface IRender
Parameters:
align - HorizontalAlignment The horizontal alignment (null permitted).

getBaseItemLabelHorizontalAlignment

public HorizontalAlignment getBaseItemLabelHorizontalAlignment()
Returns the label horizontal alignment for all items of a dataset.

Specified by:
getBaseItemLabelHorizontalAlignment in interface IRender
Returns:
HorizontalAlignment The horizontal alignment (never null).

setBaseItemLabelHorizontalAlignment

public void setBaseItemLabelHorizontalAlignment(HorizontalAlignment align)
Sets the label horizontal alignment for all items of a dataset and sends a RenderChangeEvent to all registered listeners.

Specified by:
setBaseItemLabelHorizontalAlignment in interface IRender
Parameters:
align - HorizontalAlignment The horizontal alignment (null not permitted).

getItemLabelVerticalAlignment

public VerticalAlignment getItemLabelVerticalAlignment(int row,
                                                       int column)
Returns the vertical alignment for an item label.

Specified by:
getItemLabelVerticalAlignment in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
column - int The dataset column num,must be greater than or equal to 0.
Returns:
VerticalAlignment The vertical alignment (never null).

setItemLabelVerticalAlignment

public void setItemLabelVerticalAlignment(int row,
                                          int column,
                                          VerticalAlignment align)
Sets the vertical alignment for an item label and sends a RenderChangeEvent to all registered listeners.

Specified by:
setItemLabelVerticalAlignment in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
column - int The dataset column num,must be greater than or equal to 0.
align - VerticalAlignment The vertical alignment (null permitted).

getColumnItemLabelVerticalAlignment

public VerticalAlignment getColumnItemLabelVerticalAlignment(int column)
Returns the label vertical alignment for all items of a dataset column.

Specified by:
getColumnItemLabelVerticalAlignment in interface IRender
Parameters:
column - int The dataset column num,must be greater than or equal to 0.
Returns:
VerticalAlignment The vertical alignment (maybe null).

setColumnItemLabelVerticalAlignment

public void setColumnItemLabelVerticalAlignment(int column,
                                                VerticalAlignment align)
Sets the vertical alignment for all values items label and sends a RenderChangeEvent to all registered listeners.

Specified by:
setColumnItemLabelVerticalAlignment in interface IRender
Parameters:
column - int The dataset column num,must be greater than or equal to 0.
align - VerticalAlignment The vertical alignment (null permitted).

getRowItemLabelVerticalAlignment

public VerticalAlignment getRowItemLabelVerticalAlignment(int row)
Returns the label vertical alignment for all items of a dataset row.

Specified by:
getRowItemLabelVerticalAlignment in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
Returns:
VerticalAlignment The vertical alignment (maybe null).

setRowItemLabelVerticalAlignment

public void setRowItemLabelVerticalAlignment(int row,
                                             VerticalAlignment align)
Sets the vertical alignment for all value items label of a dataset row and sends a RenderChangeEvent to all registered listeners.

Specified by:
setRowItemLabelVerticalAlignment in interface IRender
Parameters:
row - int The dataset row num,must be greater than or equal to 0.
align - VerticalAlignment The vertical alignment (null permitted).

getNegativeItemLabelVerticalAlignment

public VerticalAlignment getNegativeItemLabelVerticalAlignment()
Returns the vertical alignment for all negative value items label of a dataset.

Specified by:
getNegativeItemLabelVerticalAlignment in interface IRender
Returns:
VerticalAlignment The vertical alignment (maybe null).

setNegativeItemLabelVerticalAlignment

public void setNegativeItemLabelVerticalAlignment(VerticalAlignment align)
Sets the vertical alignment for all negative value items label and sends a RenderChangeEvent to all registered listeners.

Specified by:
setNegativeItemLabelVerticalAlignment in interface IRender
Parameters:
align - VerticalAlignment The vertical alignment (null permitted).

getPositiveItemLabelVerticalAlignment

public VerticalAlignment getPositiveItemLabelVerticalAlignment()
Returns the vertical alignment for all positive value items label of a dataset.

Specified by:
getPositiveItemLabelVerticalAlignment in interface IRender
Returns:
VerticalAlignment The vertical alignment (maybe null).

setPositiveItemLabelVerticalAlignment

public void setPositiveItemLabelVerticalAlignment(VerticalAlignment align)
Sets the vertical alignment for all positive value items label and sends a RenderChangeEvent to all registered listeners.

Specified by:
setPositiveItemLabelVerticalAlignment in interface IRender
Parameters:
align - VerticalAlignment The vertical alignment (null permitted).

getBaseItemLabelVerticalAlignment

public VerticalAlignment getBaseItemLabelVerticalAlignment()
Returns the label vertical alignment for all items of a dataset.

Specified by:
getBaseItemLabelVerticalAlignment in interface IRender
Returns:
VerticalAlignment The vertical alignment (never null).

setBaseItemLabelVerticalAlignment

public void setBaseItemLabelVerticalAlignment(VerticalAlignment align)
Sets the label vertical alignment for all items of a dataset and sends a RenderChangeEvent to all registered listeners.

Specified by:
setBaseItemLabelVerticalAlignment in interface IRender
Parameters:
align - VerticalAlignment The vertical alignment (null not permitted).

getBackgroundPaint

public java.awt.Paint getBackgroundPaint()
Returns the background color of the render area.

Returns:
The paint (possibly null).

setBackgroundPaint

public void setBackgroundPaint(java.awt.Paint paint)
Sets the background color of the render area and sends a RenderChangeEvent to all registered listeners.

Parameters:
paint - The paint (null permitted).

getBackgroundImage

public java.awt.Image getBackgroundImage()
Returns the background image that is used to fill the render's background area.

Returns:
The image (possibly null).

setBackgroundImage

public void setBackgroundImage(java.awt.Image image)
Sets the background image for the render and sends a RenderChangeEvent to all registered listeners.

Parameters:
image - The image (null permitted).

getBackgroundImageAlignment

public Align getBackgroundImageAlignment()
Returns the background image alignment. Alignment constants are defined in the Align class.

Returns:
The alignment (never null).

setBackgroundImageAlignment

public void setBackgroundImageAlignment(Align alignment)
Sets the alignment for the background image and sends a RenderChangeEvent to all registered listeners. Alignment options are defined by the Align class.

Parameters:
alignment - Align The alignment (null not permitted).

getBackgroundImageAlpha

public float getBackgroundImageAlpha()
Returns the alpha transparency used to draw the background image. This is a value in the range 0.0f to 1.0f, where 0.0f is fully transparent and 1.0f is fully opaque.

Returns:
The alpha transparency.

setBackgroundImageAlpha

public void setBackgroundImageAlpha(float alpha)
Sets the alpha transparency used when drawing the background image.

Parameters:
alpha - The alpha transparency (in the range 0.0f to 1.0f, where 0.0f is fully transparent, and 1.0f is fully opaque).

isRenderAreaBorderVisible

public boolean isRenderAreaBorderVisible()
Returns the flag that controls whether or not the render area border is drawn. The default value is true.

Returns:
The border visibility flag.

setRenderAreaBorderVisible

public void setRenderAreaBorderVisible(boolean visible)
Sets the flag that controls whether or not the render's area border is drawn, and sends a PlotChangeEvent to all registered listeners.

Parameters:
visible - The new flag value.

getRenderAreaBorderStroke

public java.awt.Stroke getRenderAreaBorderStroke()
Returns the stroke used to outline the render area.

Returns:
The stroke (never null).

setRenderAreaBorderStroke

public void setRenderAreaBorderStroke(java.awt.Stroke stroke)
Sets the stroke used to outline the render area and sends a PlotChangeEvent to all registered listeners.

Parameters:
stroke - The stroke (null not permitted).

getRenderAreaBorderPaint

public java.awt.Paint getRenderAreaBorderPaint()
Returns the color used to draw the border of the render area.

Returns:
The color (never null).

setRenderAreaBorderPaint

public void setRenderAreaBorderPaint(java.awt.Paint paint)
Sets the paint used to draw the border of the render area and sends a PlotChangeEvent to all registered listeners.

Parameters:
paint - The paint (null not permitted).

getLabelGenerator

public ILabelGenerator getLabelGenerator()
Returns the item label generator for all items of a dataset.

Specified by:
getLabelGenerator in interface IRender
Returns:
ILabelGenerator The generator (possibly null).

setLabelGenerator

public void setLabelGenerator(ILabelGenerator generator)
Sets the item label generator for all items of a dataset and sends a RenderChangeEvent to all registered listeners.

Specified by:
setLabelGenerator in interface IRender
Parameters:
generator - ILabelGenerator The generator (null permitted).

getToolTipGenerator

public IToolTipGenerator getToolTipGenerator()
Returns the tool tip generator that should be used for all items of a dataset.

Specified by:
getToolTipGenerator in interface IRender
Returns:
IToolTipGenerator The generator (possibly null).

setToolTipGenerator

public void setToolTipGenerator(IToolTipGenerator generator)
Sets the tool tip generator that should be used for all items of a dataset and sends a RenderChangeEvent to all registered listeners.

Specified by:
setToolTipGenerator in interface IRender
Parameters:
generator - IToolTipGenerator The generator (null permitted).

isGeneratorUrl

public boolean isGeneratorUrl()
Returns whether or not generator url of shape.

Returns:
boolean A boolean.

setGeneratorUrl

public void setGeneratorUrl(boolean flag)
Whether or not generator url of shape and sends a RenderChangeEvent to all registered listeners.

Parameters:
flag - boolean A boolean.

isGeneratorTooltip

public boolean isGeneratorTooltip()
Returns whether or not generator tooltip of shape.

Returns:
boolean A boolean.

setGeneratorTooltip

public void setGeneratorTooltip(boolean flag)
Whether or not generator tooltip of shape and sends a RenderChangeEvent to all registered listeners.

Parameters:
flag - boolean A boolean.

getDrawingSupplier

public IDrawingSupplier getDrawingSupplier()
Returns the drawing supplier for this render.

Returns:
IDrawingSupplier The drawing supplier for this render (never null).

setDrawingSupplier

public void setDrawingSupplier(IDrawingSupplier supplier)
Sets the drawing supplier for this render,and sends a RenderChangeEvent to all registered listeners.

Parameters:
supplier - IDrawingSupplier The drawing supplier for this render (null not permitted).

setDrawingSupplier

public void setDrawingSupplier(IDrawingSupplier supplier,
                               boolean notify)
Sets the drawing supplier for this render and sends a RenderChangeEvent to all registered listeners.

Parameters:
supplier - IDrawingSupplier The drawing supplier for this render (null not permitted).
notify - boolean Whether or not notify listeners.

getChartArea

public java.awt.geom.Rectangle2D getChartArea()
Returns the chart area.

Returns:
Rectangle2D The chart area.

setChartArea

public void setChartArea(java.awt.geom.Rectangle2D area)
Sets the chart area and sends a RenderChangeEvent to all registered listeners.

Parameters:
area - Rectangle2D The chart area (null permitted).

getLegendPositon

public RectangleEdge getLegendPositon()
Returns the legend position.

Returns:
RectangleEdge The legend position.

setLegendPositon

public void setLegendPositon(RectangleEdge positon)
Sets the legend position and sends a RenderChangeEvent to all registered listeners.

Parameters:
positon - RectangleEdge The legend position.

drawBackground

public void drawBackground(java.awt.geom.Rectangle2D dataArea,
                           ChartOrientation orientation,
                           RenderShapeCollection renderShapes)
Draws a background for the data area.

Specified by:
drawBackground in interface IRender
Parameters:
dataArea - Rectangle2D The chart data area (null not permitted).
orientation - ChartOrientation The chart draw orientation (null not permitted).
renderShapes - RenderShapeCollection Collects information about the render (null not permitted).

drawBackgroundImage

public void drawBackgroundImage(java.awt.geom.Rectangle2D dataArea,
                                RenderShapeCollection renderShapes)
Draws a background image for the data area.

Specified by:
drawBackgroundImage in interface IRender
Parameters:
dataArea - Rectangle2D The chart data area (null not permitted).
renderShapes - RenderShapeCollection Collects information about the render (null not permitted).

drawDrawAreaBorder

public void drawDrawAreaBorder(java.awt.geom.Rectangle2D dataArea,
                               RenderShapeCollection renderShapes)
Draws a border for the data area.

Specified by:
drawDrawAreaBorder in interface IRender
Parameters:
dataArea - Rectangle2D The chart data area (null not permitted).
renderShapes - RenderShapeCollection Collects information about the render (null not permitted).

datasetChanged

public void datasetChanged(DatasetChangeEvent event)
Receives notification of an dataset change event.

Specified by:
datasetChanged in interface IDatasetChangeListener
Parameters:
event - DatasetChangeEvent Information about the event.

getItemFillPaintHelper

protected java.awt.Paint getItemFillPaintHelper(java.awt.Paint autoFillPaint,
                                                int row,
                                                int column)
Helper method for returns the fill paint.

Parameters:
autoFillPaint - Paint The auto selected fill paint.
row - int The dataset row num.
column - int The dataset column num.
Returns:
Paint The paint (never null).

createItemShapeOnly

protected IChartShape createItemShapeOnly(java.awt.geom.Rectangle2D rect,
                                          java.lang.String label,
                                          java.lang.Object appendParam)
Create a shape with no attribute specified.

Parameters:
rect - Rectangle2D The bar rectangle (null not permitted).
label - String The text (null permitted).
appendParam - Object The append parameter,used for special propose (null permitted).
Returns:
IChartShape The shape.

calculateLegendItemShapes

public java.util.List calculateLegendItemShapes()
Calculate the legend item shapes.

Returns:
List The legend item shapes (elements in this list must be LegendItemChartShape) (never null).

getLegendItemLabels

protected java.lang.String[] getLegendItemLabels()
Returns the label array for legend item shapes.

Returns:
String[] The label array.

getLegendItemLabelsByColumn

protected java.lang.String[] getLegendItemLabelsByColumn()
Returns the label array for legend item shapes,the label comes from ColKeys.

Returns:
String[] The label array.

getLegendItemLabelsByRow

protected java.lang.String[] getLegendItemLabelsByRow()
Returns the label array for legend item shapes,the label comes from ColKeys.

Returns:
String[] The label array.

setCustomLegendType

public void setCustomLegendType(LegendType legendType)
Sets the legend type.

Specified by:
setCustomLegendType in interface IRender
Parameters:
legendType - LegendType The legend type.

getLegendType

public LegendType getLegendType()
Return the legend type.

Specified by:
getLegendType in interface IRender
Returns:
LegendType The legend type.

getLegendItemCount

protected int getLegendItemCount()
Returns the count of legends.

Returns:
int The count of legends.

getLegendItemShapes

protected IChartShape[] getLegendItemShapes(int legendCount)
Returns the shape array of legend items.

Parameters:
legendCount - int The legend items count.
Returns:
IChartShape[] The shapes array.

addChangeListener

public void addChangeListener(IRenderChangeListener listener)
Registers an object for notification of changes to the render object.

Specified by:
addChangeListener in interface IRender
Parameters:
listener - IRenderChangeListener The listener (null not permitted).

removeChangeListener

public void removeChangeListener(IRenderChangeListener listener)
Removes a change listener.

Specified by:
removeChangeListener in interface IRender
Parameters:
listener - IRenderChangeListener The listener (null not permitted).

removeAllChangeListener

public void removeAllChangeListener()
Deregisters all object for notification of changes to the render.

Specified by:
removeAllChangeListener in interface IRender

hasListener

public boolean hasListener(IRenderChangeListener listener)
Returns true if the specified object is registered with the IChartShape as a listener. Most applications won't need to call this method, it exists mainly for use by unit testing code.

Parameters:
listener - the listener.
Returns:
A boolean.

notifyListeners

protected void notifyListeners(RenderChangeEvent event)
Notifies all registered listeners that the dataset has changed.

Parameters:
event - contains information about the event that triggered the notification.

fireRenderChanged

protected void fireRenderChanged()
Notifies all registered listeners that the dataset has changed.


getFillPaints

protected java.awt.Paint[] getFillPaints(int count)
Returns the fill paint array.

Parameters:
count - int The count of paint.
Returns:
Paint[] The paint array (never null).

getBorderPaints

protected java.awt.Paint[] getBorderPaints(int count)
Returns the border paint array.

Parameters:
count - int The count of paint.
Returns:
Paint[] The paint array (never null).

getBorderStrokes

protected java.awt.Stroke[] getBorderStrokes(int count)
Returns the border Stroke array.

Parameters:
count - int The count of Stroke.
Returns:
Paint[] The Stroke array (never null).

add3DShapes

protected void add3DShapes(RenderShapeCollection renderShapes,
                           ChartOrientation orientation,
                           Shape3DSortUtil sortUtil)
Add 3d shapes.

Parameters:
renderShapes - RenderShapeCollection
orientation - ChartOrientation
sortUtil - Shape3DSortUtil

equals

public boolean equals(java.lang.Object obj)
Indicates if some other object is "equal to" this one.

Overrides:
equals in class java.lang.Object
Parameters:
obj - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.

hashCode

public int hashCode()
Returns a hash code value for the object.

Overrides:
hashCode in class java.lang.Object
Returns:
int A hash code value for this object.

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Creates and returns a copy of this object.

Overrides:
clone in class java.lang.Object
Returns:
object a clone of this instance.
Throws:
java.lang.CloneNotSupportedException - if the object's class does not support the Cloneable interface. Subclasses that override the clone method can also throw this exception to indicate that an instance cannot be cloned.

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of the object.