public class IlvSingleBarRenderer extends IlvSingleChartRenderer implements IlvVariableWidthRenderer
IlvBarChartRenderer
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
SHAPE_EXACT
In this mode, every bar has an exact projected rectangle shape.
|
static int |
SHAPE_POLYGON
In this mode, every bar has a polygonal shape that approximates the exact
projected shape.
|
static int |
SHAPE_QUADRILATERAL
In this mode, every bar has a quadrilateral (4-gon) shape.
|
AREA, BAR, BUBBLE, CANDLE, CENTERED_LABEL_LAYOUT, COMBO, DATA_LABEL, DEFAULT_LABEL_LAYOUT, DEFAULT_LABELING, HILO, HILO_ARROW, HILO_STICK, HLOC, OUTSIDE_LABEL_LAYOUT, PERCENT_LABEL, PIE, POLYLINE, SCATTER, STACKED_AREA, STACKED_BAR, STACKED_DIVERGING_BAR, STACKED_POLYLINE, STACKED_STAIR, STACKED100_AREA, STACKED100_BAR, STACKED100_POLYLINE, STACKED100_STAIR, STAIR, SUMMED_STAIR, SUPERIMPOSED_BAR, TREEMAP, X_VALUE_LABEL, XY_VALUES_LABEL, Y_VALUE_LABEL
DEFAULT_WIDTH
Constructor and Description |
---|
IlvSingleBarRenderer()
Creates a new
IlvSingleBarRenderer with a default bar width
and style. |
IlvSingleBarRenderer(IlvStyle style)
Creates a new
IlvSingleBarRenderer with the specified style. |
IlvSingleBarRenderer(IlvStyle style,
double barPercent)
Creates a new
IlvSingleBarRenderer with the specified style
and bar size. |
Modifier and Type | Method and Description |
---|---|
Point |
computeDataLabelLocation(IlvDisplayPoint dp,
Dimension size)
Computes the location of the data label associated with the specified
point.
|
int |
getBarShape()
Returns the shape of the bars.
|
double[] |
getDepths()
Returns the front and back depths of the renderer.
|
double |
getSpecWidthPercent()
Returns the specified bar width.
|
static int |
getStrokeThreshold()
Returns the minimum width of a bar, under which the stroke of a rendering
style is not used.
|
double |
getWidth()
Returns the bar width in the data space.
|
double |
getWidthPercent()
Returns the bar width.
|
String |
getZAnnotationText()
Returns the text displayed along the depth axis.
|
boolean |
has3DSupport()
Indicates whether this renderer supports three-dimensional drawing.
|
boolean |
isUseCategorySpacingAtBorders()
Returns
true if the category spacing is used also at the left
and right borders. |
void |
setBarShape(int barShape)
Sets the shape of the bars.
|
void |
setParent(IlvChartRenderer parent)
Connects this renderer to the specified parent.
|
static void |
setStrokeThreshold(int threshold)
Specifies the minimum width of a bar, under which the stroke of a rendering
style is not used.
|
void |
setUseCategorySpacingAtBorders(boolean useCategorySpacingAtBorders)
Determines whether the category spacing is used also at the left and right
borders.
|
void |
setWidthPercent(double percent)
Sets the bar width.
|
addImageMapAreas, applyDataSetStyle, applyStyles, chartConnected, createLegendItems, dataSetContentsChanged, dataSetPropertyChanged, dataSetsAdded, dataSetsRemoved, draw, draw, drawAnnotations, drawIntoHitmap, drawLegendSymbol, drawSelectionHandles, drawSelectionHandles, getAnnotation, getBounds, getBounds, getDefaultLegendText, getDisplayItem, getDisplayPoint, getDisplayStyle, getLegendText, getNearestItem, getNearestPoint, getPreferredMargins, getRenderingHint, getRenderingHint, getStyle, getStyle, getStyles, getXRange, getYRange, getYRange, holdsAnnotations, isFilled, makeDefaultStyle, set3D, setAnnotation, setAnnotation, setDataPoint, setDisplayPoint, setRenderingHint, setRenderingHint, setStyle, setStyles, toDisplay, toDisplay
applyStyles, applyStyles, collectDisplayItems, computeDataLabel, create, createRenderer, dataSetsChangesBatchEnding, dataSetsChangesBatchStarting, dispose, drawSelectionHandles, drawSelectionHandles, endRendererChanges, findAppropriateColor, fireTreemapFocusEvent, getAnnotation, getBounds, getChart, getChild, getChildCount, getChildIterator, getChildren, getClipRect, getCoordinateSystem, getDataLabeling, getDataLabelLayout, getDataLabelling, getDataSetIndex, getDataSetMainIndex, getDataSetMainRenderer, getDataSource, getDefaultColors, getDefaultLegendTitle, getDisplayItem, getDisplayItems, getLegendStyle, getMinDataSetCount, getName, getNearestItem, getNearestPoint, getParent, getPlotRect, getRenderingHint, getStyle, getVirtualDataSet, getXShift, getYAxisIdx, isDisplayingDataSet, isViewable, isVisible, isVisibleInLegend, reDraw, register, setAnnotation, setDataLabeling, setDataLabelLayout, setDataLabelling, setDataSource, setName, setRenderingHint, setRenderingHintWithNoDraw, setStyle, setVisible, setVisibleInLegend, setXShift, setYAxisIdx, startRendererChanges, toData, triggerChange
public static final int SHAPE_QUADRILATERAL
public static final int SHAPE_POLYGON
public static final int SHAPE_EXACT
public IlvSingleBarRenderer()
IlvSingleBarRenderer
with a default bar width
and style.public IlvSingleBarRenderer(IlvStyle style)
IlvSingleBarRenderer
with the specified style.public IlvSingleBarRenderer(IlvStyle style, double barPercent)
IlvSingleBarRenderer
with the specified style
and bar size.setWidthPercent(double)
public static int getStrokeThreshold()
setStrokeThreshold(int)
public static void setStrokeThreshold(int threshold)
The default value is 6
.
threshold
- The new threshold in pixel. Bars with a width smaller than this
threshold will not be rendered with a stroke, unless they are not
filled.getStrokeThreshold()
public double getSpecWidthPercent()
setWidthPercent(double)
public void setWidthPercent(double percent)
setWidthPercent
in interface IlvVariableWidthRenderer
percent
- A value from 0
to 100
that specifies the
amount of the available space covered by the bar.getWidthPercent()
,
getSpecWidthPercent()
public double getWidthPercent()
getWidthPercent
in interface IlvVariableWidthRenderer
setWidthPercent(double)
public double getWidth()
getWidth
in interface IlvVariableWidthRenderer
public boolean isUseCategorySpacingAtBorders()
true
if the category spacing is used also at the left
and right borders.isUseCategorySpacingAtBorders
in interface IlvVariableWidthRenderer
public void setUseCategorySpacingAtBorders(boolean useCategorySpacingAtBorders)
true
, category spacing is not only used
between bars, but also beyond the leftmost and rightmost bars. If set to
false
(the default), this spacing is omitted. This setting
matters only if getWidthPercent
is less than 100.setUseCategorySpacingAtBorders
in interface IlvVariableWidthRenderer
public int getBarShape()
setBarShape(int)
public void setBarShape(int barShape)
barShape
- One of SHAPE_QUADRILATERAL
, SHAPE_POLYGON
,
SHAPE_EXACT
.getBarShape()
public void setParent(IlvChartRenderer parent)
setParent
in class IlvChartRenderer
public boolean has3DSupport()
has3DSupport
in interface IlvChart3DSupport
has3DSupport
in class IlvChartRenderer
true
.public double[] getDepths()
getDepths
in class IlvChartRenderer
null
if
has3DSupport()
returns false
, or if the
renderer is not added to a chart.IlvChart3DView.getFrontDepth()
,
IlvChart3DView.getBackDepth()
,
IlvChart3DView.setDepthGap(int)
public String getZAnnotationText()
getZAnnotationText
in class IlvSingleChartRenderer
null
if the bar is a child of a stacked
IlvBarChartRenderer
. Otherwise, returns the string
computed by the IlvSingleChartRenderer.getDefaultLegendText()
method.IlvChart3DView.setZAnnotationVisible(boolean)
public Point computeDataLabelLocation(IlvDisplayPoint dp, Dimension size)
IlvDataLabelAnnotation
class.computeDataLabelLocation
in class IlvChartRenderer
dp
- The considered display point.size
- The size of the label.IlvChartRenderer.setDataLabeling(int)
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.