|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ijchart.xychart.render.AbstractRender
com.ijchart.xychart.render.AbstractWithAxisRender
com.ijchart.xychart.render.category.AbstractCategoryRender
com.ijchart.xychart.render.category.WaterfallBarRender
public class WaterfallBarRender
Title: IJChart
Description: a chart library for the Java(tm) platform.
Draw waterfall bar shapes.Copyright: Copyright (c) 2013
Company:
Field Summary | |
---|---|
static java.awt.Paint |
DEFAULT_FIRST_BAR_PAINT
The default paint used to draw the first bar. |
static java.awt.Paint |
DEFAULT_LAST_BAR_PAINT
The default paint used to draw the last bar. |
static java.awt.Paint |
DEFAULT_NEGATIVE_BAR_PAINT
The default paint used to draw bars having negative values. |
static java.awt.Paint |
DEFAULT_POSITIVE_BAR_PAINT
The default paint used to draw bars having positive values. |
Fields inherited from class com.ijchart.xychart.render.category.AbstractCategoryRender |
---|
DEFAULT_BASE_VALUE, DEFAULT_ITEM_MARGIN, DEFAULT_MAXIMUM_BAR_WIDTH, DEFAULT_MINIMUM_BAR_WIDTH |
Constructor Summary | |
---|---|
WaterfallBarRender(IMatrixDataset dataset)
constructor. |
|
WaterfallBarRender(IMatrixDataset dataset,
java.awt.Paint firstBarPaint,
java.awt.Paint positiveBarPaint,
java.awt.Paint negativeBarPaint,
java.awt.Paint lastBarPaint)
constructor. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Creates and returns a copy of this object. |
void |
drawAllItems(CategoryAxis categoryAxis,
AbstractValueAxis valueAxis,
RectangleEdge valueAxisEdge,
java.awt.geom.Rectangle2D dataArea,
ChartOrientation orientation,
RenderShapeCollection renderShapes,
float alpha)
Draws all data items. |
boolean |
equals(java.lang.Object obj)
Tests this instance for equality with an arbitrary object. |
java.awt.Paint |
getFirstBarPaint()
Returns the paint used to draw the first bar. |
protected java.awt.Paint |
getItemFillPaintHelper(java.awt.Paint autoFillPaint,
int row,
int column)
Helper method for returns the fill paint. |
java.awt.Paint |
getLastBarPaint()
Returns the paint used to draw the last bar. |
LegendType |
getLegendType()
Return the legend type. |
java.awt.Paint |
getNegativeBarPaint()
Returns the paint used to draw bars with negative values. |
java.awt.Paint |
getPositiveBarPaint()
Returns the paint used to draw bars with positive values. |
int |
hashCode()
Returns a hash code value for the object. |
void |
setFirstBarPaint(java.awt.Paint paint)
Sets the paint that will be used to draw the first bar and sends a RenderChangeEvent to all registered listeners. |
void |
setLastBarPaint(java.awt.Paint paint)
Sets the paint that will be used to draw the last bar and sends a RenderChangeEvent to all registered listeners. |
void |
setNegativeBarPaint(java.awt.Paint paint)
Sets the paint that will be used to draw bars with positive values and sends a RenderChangeEvent to all registered listeners. |
void |
setPositiveBarPaint(java.awt.Paint paint)
Sets the paint that will be used to draw bars with positive values and sends a RenderChangeEvent to all registered listeners. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class com.ijchart.xychart.render.category.AbstractCategoryRender |
---|
addAnnotation, createCategoryMarkerShape, drawAllAnnotation, drawCategoryMarker, getAllAnnotations, getBaseValue, getItemMargin, getMaximumBarWidth, getMinimumBarWidth, removeAllAnnotation, setBaseValue, setItemMargin, setMaximumBarWidth, setMinimumBarWidth |
Methods inherited from class com.ijchart.xychart.render.AbstractWithAxisRender |
---|
createItemShape, createValueMarkerShape, drawIntervalValueMarker, drawValueMarker, getValueAxisOffsetType |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.awt.Paint DEFAULT_FIRST_BAR_PAINT
public static final java.awt.Paint DEFAULT_LAST_BAR_PAINT
public static final java.awt.Paint DEFAULT_POSITIVE_BAR_PAINT
public static final java.awt.Paint DEFAULT_NEGATIVE_BAR_PAINT
Constructor Detail |
---|
public WaterfallBarRender(IMatrixDataset dataset)
dataset
- IMatrixDataset
The dataset (null not permitted).public WaterfallBarRender(IMatrixDataset dataset, java.awt.Paint firstBarPaint, java.awt.Paint positiveBarPaint, java.awt.Paint negativeBarPaint, java.awt.Paint lastBarPaint)
dataset
- IMatrixDataset
The dataset (null not permitted).firstBarPaint
- Paint
The paint used to draw the first bar. positiveBarPaint
- Paint
The paint used to draw the last bar.negativeBarPaint
- Paint
The paint used to draw bars having positive values.lastBarPaint
- Paint
The paint used to draw bars having negative values.Method Detail |
---|
public java.awt.Paint getFirstBarPaint()
public void setFirstBarPaint(java.awt.Paint paint)
RenderChangeEvent
to all registered listeners.
paint
- Paint
The paint (null not permitted).public java.awt.Paint getLastBarPaint()
public void setLastBarPaint(java.awt.Paint paint)
RenderChangeEvent
to all registered listeners.
paint
- Paint
The paint (null not permitted).public java.awt.Paint getPositiveBarPaint()
public void setPositiveBarPaint(java.awt.Paint paint)
RenderChangeEvent
to all registered listeners.
paint
- Paint
The paint (null not permitted).public java.awt.Paint getNegativeBarPaint()
public void setNegativeBarPaint(java.awt.Paint paint)
RenderChangeEvent
to all registered listeners.
paint
- Paint
The paint (null not permitted).public void drawAllItems(CategoryAxis categoryAxis, AbstractValueAxis valueAxis, RectangleEdge valueAxisEdge, java.awt.geom.Rectangle2D dataArea, ChartOrientation orientation, RenderShapeCollection renderShapes, float alpha)
drawAllItems
in class AbstractCategoryRender
categoryAxis
- CategoryAxis
The category axis (null not permitted).valueAxis
- AbstractValueAxis
The value axis (null not permitted).valueAxisEdge
- RectangleEdge
The value axis edge (null not permitted).dataArea
- Rectangle2D
The chart data area (null not permitted).orientation
- ChartOrientation
The chart orientation (null not permitted).renderShapes
- RenderShapeCollection
Collects information about the render (null not permitted).alpha
- float
The alpha transparency (in the range 0.0f to 1.0f, where 0.0f is fully transparent,
and 1.0f is fully opaque).protected java.awt.Paint getItemFillPaintHelper(java.awt.Paint autoFillPaint, int row, int column)
getItemFillPaintHelper
in class AbstractRender
autoFillPaint
- Paint
The auto selected fill paint.row
- int
The dataset row number.column
- int
The dataset column number.
public LegendType getLegendType()
getLegendType
in interface IRender
getLegendType
in class AbstractRender
public boolean equals(java.lang.Object obj)
equals
in class AbstractCategoryRender
obj
- the object (null permitted).
public int hashCode()
hashCode
in class AbstractCategoryRender
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class AbstractCategoryRender
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.public java.lang.String toString()
toString
in class AbstractCategoryRender
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |