public class IlvTreemapChartRenderer extends IlvSimpleChartRenderer
Modifier and Type | Field and Description |
---|---|
static IlvTreemapPacking |
ALTERNATING_PACKING
The default type of packing: The rectangles are arranged according
to the sort order given by the model, and in alternating directions
at the different levels.
|
static IlvTreemapPacking |
BAR_PACKING
Type of packing: The rectangles are arranged to have all the same width
but different heights.
|
static IlvSimpleValueColorScheme |
COLORSCHEME_AVERAGE_BLUE_YELLOW
Assigns colors according to the value of each object
at the designated color column, emphasizing average values.
|
static IlvSimpleValueColorScheme |
COLORSCHEME_AVERAGE_GREEN_RED
Assigns colors according to the value of each object
at the designated color column, emphasizing average values.
|
static IlvSimpleValueColorScheme |
COLORSCHEME_AVERAGE_RED_GREEN
Assigns colors according to the value of each object
at the designated color column, emphasizing average values.
|
static IlvSimpleValueColorScheme |
COLORSCHEME_AVERAGE_YELLOW_BLUE
Assigns colors according to the value of each object
at the designated color column, emphasizing average values.
|
static IlvColorScheme |
COLORSCHEME_CONSTANT
Uses the fill color set in the
IlvStyle . |
static IlvSimpleValueColorScheme |
COLORSCHEME_CYCLIC_SEQUENTIAL_HUE
Assigns colors according to the value of each object
at the designated color column, with varying hue but constant brightness,
in such a way that the colors for the minimum value and the maximum value
are the same.
|
static IlvColorScheme |
COLORSCHEME_DEPTH
Assigns colors according to the nesting depth of each
object, from dark to bright.
|
static IlvSimpleValueColorScheme |
COLORSCHEME_DIVERGING_BLUE_YELLOW
Assigns colors according to the value of each object
at the designated color column, emphasizing extreme values.
|
static IlvSimpleValueColorScheme |
COLORSCHEME_DIVERGING_GREEN_RED
Assigns colors according to the value of each object
at the designated color column, emphasizing extreme values.
|
static IlvSimpleValueColorScheme |
COLORSCHEME_DIVERGING_RED_GREEN
Assigns colors according to the value of each object
at the designated color column, emphasizing extreme values.
|
static IlvSimpleValueColorScheme |
COLORSCHEME_DIVERGING_YELLOW_BLUE
Assigns colors according to the value of each object
at the designated color column, emphasizing extreme values.
|
static IlvSimpleValueColorScheme |
COLORSCHEME_QUALITATIVE
Assigns colors according to the value of each object
at the designated color column, with good contrast.
|
static IlvSimpleValueColorScheme |
COLORSCHEME_SEQUENTIAL
Assigns colors according to the value of each object
at the designated color column, from dark to bright.
|
static IlvSimpleValueColorScheme |
COLORSCHEME_SEQUENTIAL_HUE
Assigns colors according to the value of each object
at the designated color column, with varying hue but constant brightness.
|
static boolean |
DEFAULT_ANNOTATION_CLIPPING
The default annotation clipping mode.
|
static int |
DEFAULT_ANNOTATION_VISIBILITY
Denotes the default visibility mode for annotations.
|
static double |
DEFAULT_BOTTOM_MARGIN_PROPORTION
The default bottom margin proportion.
|
static boolean |
DEFAULT_CLIPPED_ANNOTATION_VISIBILITY
The default visibility of annotations that would need to be clipped.
|
static Color |
DEFAULT_COLOR_FOR_NAN
The default color for NaN ("not a number").
|
static IlvColorScheme |
DEFAULT_COLORSCHEME
The default color scheme.
|
static double |
DEFAULT_FOCUS_PARENT_MARGIN_PROPORTION
The default proportion for the margin that represents the parent of the
focused node.
|
static int |
DEFAULT_LABEL_ALIGNMENT_X
The default horizontal alignment for label annotations.
|
static int |
DEFAULT_LABEL_ALIGNMENT_Y
The default vertical alignment for label annotations.
|
static double |
DEFAULT_LEADING_MARGIN_PROPORTION
The default leading margin proportion.
|
static double |
DEFAULT_MARGIN_REDUCTION_FACTOR
The default margin reduction factor.
|
static double |
DEFAULT_MAXIMUM_BOTTOM_MARGIN
The default upper bound for the bottom margin.
|
static double |
DEFAULT_MAXIMUM_FOCUS_PARENT_MARGIN
The default upper bound for the margin that represents the parent of the
focused node.
|
static double |
DEFAULT_MAXIMUM_LEADING_MARGIN
The default upper bound for the leading margin.
|
static double |
DEFAULT_MAXIMUM_TOP_MARGIN
The default upper bound for the top margin.
|
static double |
DEFAULT_MAXIMUM_TRAILING_MARGIN
The default upper bound for the trailing margin.
|
static IlvTreemapPacking |
DEFAULT_PACKING
The default packing.
|
static int |
DEFAULT_PRIMARY_DIRECTION
The default primary direction.
|
static int |
DEFAULT_SECONDARY_DIRECTION
The default secondary direction.
|
static int |
DEFAULT_STROKE_THRESHOLD
The default stroke threshold.
|
static double |
DEFAULT_TOP_MARGIN_PROPORTION
The default top margin proportion.
|
static double |
DEFAULT_TRAILING_MARGIN_PROPORTION
The default trailing margin proportion.
|
static boolean |
DEFAULT_USE_MARGINS_ON_ROOT
The default for
isUseMarginsOnRoot() . |
static IlvTreemapPacking |
SQUARIFIED_CORNER_PACKING
Type of packing: The rectangles are arranged to be near-squares.
|
static int |
VISIBILITY_ALL
Denotes the visibility mode where all annotations are visible.
|
static int |
VISIBILITY_NONE
Denotes the visibility mode where no annotations are visible.
|
static int |
VISIBILITY_SMART
Denotes the visibility mode where annotations of inner rectangles are
made invisible, according to the following rules:
If a rectangle annotation overlaps its parent
rectangle annotation, it is hidden.
|
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
Constructor and Description |
---|
IlvTreemapChartRenderer()
Creates a new treemap chart renderer.
|
Modifier and Type | Method and Description |
---|---|
void |
addImageMapAreas(IlvIMapDefinition mapDef,
List<? super IlvIMapArea> areaList)
Generates image map areas.
|
void |
applyStyles(boolean newStyles)
Applies styling to the renderer.
|
ilog.views.chart.styling.IlvDataModelStyle |
applyStyles(ilog.views.chart.styling.IlvStylingSupport support)
Applies styles on the specified data model.
|
protected void |
chartConnected(IlvChart oldChart,
IlvChart newChart)
Called when the renderer is added to or removed from a chart.
|
String |
computeDataLabel(IlvDataSetPoint dp)
Computes the data label associated with the specified object.
|
Point |
computeDataLabelLocation(IlvDisplayPoint dp,
Dimension size)
Computes the location of the data label associated with the specified
object.
|
String |
computeInfoTextDescriptionPart(IlvDisplayObjectArea da)
Computes the part of the tooltip that describes an object.
|
String |
computeInfoTextValuePart(IlvDisplayObjectArea da)
Computes the part of the tooltip that describes the value for an object.
|
IlvLegendItem[] |
createLegendItems()
Creates the legend item instances associated with this renderer.
|
void |
draw(Graphics g)
Draws the treemap's contents.
|
void |
drawAnnotations(Graphics g)
Draws the annotations of the renderer using the specified
Graphics . |
void |
drawIntoHitmap(IlvChartHitmapDefinition definition,
IlvChartHitmapAccumulator accumulator)
Draws the rendering into a hitmap.
|
void |
drawLegendSymbol(IlvLegendItem item,
Graphics g,
int x,
int y,
int w,
int h)
This method is overridden to handle instances of
IlvTreemapRendererLegendItem . |
void |
drawSelectionHandles(Graphics g,
IlvHandlesSelectionStyle style,
IlvObjectModelWithColumns model,
Object object)
Draws a data object with selection handles.
|
IlvDataAnnotation |
getAnnotation(IlvDataSet dataSet,
int idx)
This method always returns
null , because this renderer is associated
with the entire data source, not with a single data set. |
IlvDataAnnotation |
getAnnotation(Object node)
Returns the annotation operational for a given tree node.
|
int |
getAnnotationVisibility()
Returns the visibility mode for annotations.
|
IlvDataColumnInfo |
getAreaColumn()
Returns the column chosen to determine the area of every object.
|
String |
getAreaColumnName()
Returns the name of the column chosen to determine the area of every object.
|
double |
getBottomMarginProportion()
Returns the bottom margin proportion.
|
Rectangle2D |
getBounds(Rectangle2D bounds,
boolean includeAnnotations)
Returns the bounds of the graphical representation for the
visible data.
|
boolean |
getClippedAnnotationVisibility()
Returns
true if annotations that don't fit in their corresponding
rectangle can be visible. |
IlvDataColumnInfo |
getColorColumn()
Returns the column chosen to determine the color of every rectangle.
|
String |
getColorColumnName()
Returns the name of the column chosen to determine the color of every rectangle.
|
Color |
getColorForNaN()
Returns the color used when a value in the color column is
NaN.
|
IlvColorScheme |
getColorScheme()
Returns the currently assigned color scheme.
|
IlvDataColumnInfo |
getCSSClassesColumn()
Returns the column chosen to determine the CSS classes of every object.
|
String |
getCSSClassesColumnName()
Returns the name of the column chosen to determine the CSS classes of every
object.
|
String |
getDefaultLegendTitle()
Returns the default legend title.
|
IlvDisplayObjectArea |
getDisplayArea(Object object)
Returns the displayed data object containing the specified data object.
|
IlvDisplayPoint |
getDisplayItem(IlvChartDataPicker picker)
Returns the data object containing the specified picking point.
|
IlvDisplayObjectArea |
getDisplayItem(IlvChartDataPicker picker,
IlvUnaryPredicate filter)
Returns the display item containing the specified picking point.
|
IlvDisplayPoint |
getDisplayPoint(IlvDataSet dataSet,
int dataIdx)
This method is not supported by this renderer, because it does not
have the notion of a coordinate system.
|
TreePath |
getFocus()
Returns the currently focused node.
|
int |
getFocusLevel()
Returns the level of the currently focused node.
|
double |
getFocusParentMarginProportion()
Returns the proportion for the margin that represents the parent of the
focused node.
|
int |
getLabelAlignmentX()
Returns the horizontal alignment of each label within the rectangle
to which it belongs.
|
int |
getLabelAlignmentY()
Returns the vertical alignment of each label within the rectangle
to which it belongs.
|
IlvDataColumnInfo |
getLabelColumn()
Returns the column chosen to determine the label of every object, when
an
IlvDataLabelAnnotation is in use. |
String |
getLabelColumnName()
Returns the name of the column chosen to determine the label of every object,
when an
IlvDataLabelAnnotation is in use. |
Format |
getLabelFormat()
Returns the format for labels associated with rectangles.
|
double |
getLeadingMarginProportion()
Returns the leading margin proportion.
|
double |
getLeftMarginProportion()
Returns the left margin proportion.
|
Format |
getLegendLabelFormat()
Returns the format of labels associated with colors, in the legend.
|
String |
getLegendText(IlvLegendItem item)
Returns the label of the specified legend item.
|
double |
getMarginReductionFactor()
Returns the margin reduction factor.
|
double |
getMaximumBottomMargin()
Returns the maximum bottom margin, in pixels.
|
double |
getMaximumFocusParentMargin()
Returns the maximum width of the margin that represents the parent of the
focused node, in pixels.
|
double |
getMaximumLeadingMargin()
Returns the maximum leading margin, in pixels.
|
double |
getMaximumLeftMargin()
Returns the maximum left margin, in pixels.
|
double |
getMaximumRightMargin()
Returns the maximum right margin, in pixels.
|
double |
getMaximumTopMargin()
Returns the maximum top margin, in pixels.
|
double |
getMaximumTrailingMargin()
Returns the maximum trailing margin, in pixels.
|
IlvDisplayPoint |
getNearestItem(IlvChartDataPicker picker,
double[] distanceResult)
Returns the data object closest to the picking point defined
by the specified data picker.
|
IlvDisplayObjectArea |
getNearestItem(IlvChartDataPicker picker,
IlvUnaryPredicate filter)
Returns the data object closest to the specified projected coordinates.
|
IlvDisplayPoint |
getNearestPoint(IlvChartDataPicker picker)
Returns the data object closest to the specified projected coordinates.
|
IlvTreemapPacking |
getPacking()
Returns the rectangle packing.
|
int |
getPrimaryDirection()
Returns the primary direction of arrangement of the rectangles.
|
IlvDataRenderingHint |
getRenderingHint(IlvDataSet dataSet)
This method always returns
null , because this renderer is associated
with the entire data source, not with a single data set. |
IlvDataRenderingHint |
getRenderingHint(IlvDataSet dataSet,
int idx)
This method always returns
null , because this renderer is associated
with the entire data source, not with a single data set. |
IlvDataRenderingHint |
getRenderingHint(Object node)
Returns the rendering hint operational for a given tree node, if
different from the default rendering hint specified through the
"objects" rule in CSS.
|
int |
getResolvedPrimaryDirection()
Returns the primary direction of arrangement of the rectangles,
resolving locale dependent directions.
|
int |
getResolvedSecondaryDirection()
Returns the secondary direction of arrangement of the rectangles,
resolving locale dependent directions.
|
double |
getRightMarginProportion()
Returns the right margin proportion.
|
int |
getSecondaryDirection()
Returns the secondary direction of arrangement of the rectangles.
|
int |
getStrokeThreshold()
Returns the minimum size of a rectangle, under which the stroke of a
rendering style is not used.
|
double |
getTopMarginProportion()
Returns the top margin proportion.
|
double |
getTrailingMarginProportion()
Returns the trailing margin proportion.
|
IlvTreeListModel |
getTreeModel()
Returns the tree model being displayed by this renderer.
|
IlvDataInterval |
getXRange(IlvDataInterval retRange)
Returns the range of x-values (before application of the projector)
that this renderer uses.
|
IlvDataInterval |
getYRange(IlvDataInterval retRange)
Returns the range of y-values (before application of the projector)
that this renderer uses.
|
IlvDataInterval |
getYRange(IlvDataInterval xRange,
IlvDataInterval retRange)
Returns the range of y-values (before application of the projector)
that this renderer uses over a given x-values range.
|
boolean |
holdsAnnotations()
Returns true if some annotations are defined for some data sets,
data points, or data objects, in this renderer.
|
boolean |
isAnnotationClipping()
Returns
true if annotations are clipped to fit in their corresponding
rectangle. |
boolean |
isUseMarginsOnRoot()
Returns
true or false , depending whether the margins also apply to the
outermost rectangle, that is, the root of the displayed tree of rectangles. |
void |
setAnnotation(IlvDataAnnotation annotation)
Specifies an annotation for all the tree nodes displayed by this
renderer.
|
void |
setAnnotation(IlvDataSet dataSet,
IlvDataAnnotation annotation)
This method is not supported by this renderer, because it is associated
with the entire data source, not with a single data set.
|
void |
setAnnotation(IlvDataSet dataSet,
int idx,
IlvDataAnnotation annotation)
This method is not supported by this renderer, because it is associated
with the entire data source, not with a single data set.
|
void |
setAnnotation(int index,
IlvDataAnnotation annotation)
Specifies an annotation for a given list element or table row.
|
void |
setAnnotation(Object node,
IlvDataAnnotation annotation)
Specifies an annotation for a given tree node.
|
void |
setAnnotationClipping(boolean clipping)
Determines whether annotations are clipped to fit in their corresponding
rectangle.
|
void |
setAnnotationVisibility(int visibility)
Sets the visibility mode for annotations.
|
void |
setAreaColumn(IlvDataColumnInfo areaColumn)
Sets the column chosen to determine the area of every object.
|
void |
setAreaColumnName(String name)
Determines the column chosen to determine the area of every object,
through its name.
|
void |
setBottomMarginProportion(double proportion)
Sets the bottom margin proportion.
|
void |
setClippedAnnotationVisibility(boolean visible)
Determines whether annotations that do not fit in their corresponding
rectangle can be visible.
|
void |
setColorColumn(IlvDataColumnInfo areaColumn)
Sets the column chosen to determine the color of every rectangle.
|
void |
setColorColumnName(String name)
Determines the column chosen to determine the color of every rectangle,
through its name.
|
void |
setColorForNaN(Color color)
Assigns the color used when a value in the color column is
NaN.
|
void |
setColorScheme(IlvColorScheme scheme)
Assigns the color scheme.
|
void |
setCSSClassesColumn(IlvDataColumnInfo CSSClassesColumn)
Sets the column chosen to determine the CSS classes of every object.
|
void |
setCSSClassesColumnName(String name)
Determines the column chosen to determine the CSS classes of every object,
through its name.
|
void |
setDataSource(IlvDataSource dataSource)
Connects the specified data source to this renderer.
|
void |
setDisplayPoint(IlvDataSet dataSet,
int dataIndex,
double xCoord,
double yCoord)
This method is not supported by this renderer, because it does not
have the notion of a coordinate system.
|
void |
setFocus(TreePath focus)
Designates the focused node.
|
void |
setFocusParentMarginProportion(double proportion)
Sets the proportion for the margin that represents the parent of the
focused node.
|
void |
setLabelAlignmentX(int alignment)
Sets the horizontal alignment of each label within the rectangle
to which it belongs.
|
void |
setLabelAlignmentY(int alignment)
Sets the vertical alignment of each label within the rectangle
to which it belongs.
|
void |
setLabelColumn(IlvDataColumnInfo labelColumn)
Sets the column chosen to determine the label of every object, as shown
by
IlvDataLabelAnnotation . |
void |
setLabelColumnName(String name)
Determines the column chosen to determine the label of every object, as shown
by
IlvDataLabelAnnotation , through its name. |
void |
setLabelFormat(Format format)
Sets the format for labels associated with rectangles.
|
void |
setLeadingMarginProportion(double proportion)
Sets the leading margin proportion.
|
void |
setLegendLabelFormat(Format format)
Sets the format of labels associated with colors, in the legend.
|
void |
setMarginReductionFactor(double factor)
Sets the margin reduction factor.
|
void |
setMaximumBottomMargin(double max)
Sets the maximum bottom margin, in pixels.
|
void |
setMaximumFocusParentMargin(double max)
Sets the maximum width of the margin that represents the parent of the
focused node, in pixels.
|
void |
setMaximumLeadingMargin(double max)
Sets the maximum leading margin, in pixels.
|
void |
setMaximumTopMargin(double max)
Sets the maximum top margin, in pixels.
|
void |
setMaximumTrailingMargin(double max)
Sets the maximum trailing margin, in pixels.
|
void |
setPacking(IlvTreemapPacking packing)
Sets the rectangle packing.
|
void |
setPrimaryDirection(int direction)
Sets the primary direction of arrangement of the rectangles.
|
void |
setRenderingHint(IlvDataRenderingHint hint)
Specifies a global rendering hint for all the tree nodes displayed
by this renderer.
|
void |
setRenderingHint(IlvDataSet dataSet,
IlvDataRenderingHint hint)
This method is not supported by this renderer, because it is associated
with the entire data source, not with a single data set.
|
void |
setRenderingHint(IlvDataSet dataSet,
int idx,
IlvDataRenderingHint hint)
This method is not supported by this renderer, because it is associated
with the entire data source, not with a single data set.
|
void |
setRenderingHint(int index,
IlvDataRenderingHint hint)
Specifies a rendering hint for a given list element or table row.
|
void |
setRenderingHint(Object node,
IlvDataRenderingHint hint)
Specifies a rendering hint for a given tree node.
|
void |
setSecondaryDirection(int direction)
Sets the secondary direction of arrangement of the rectangles.
|
void |
setStrokeThreshold(int threshold)
Specifies the minimum size of a rectangle, under which the stroke of a
rendering style is not used.
|
void |
setTopMarginProportion(double proportion)
Sets the top margin proportion.
|
void |
setTrailingMarginProportion(double proportion)
Sets the trailing margin proportion.
|
void |
setUseMarginsOnRoot(boolean marginsOnRoot)
Specifies whether the margins also apply to the outermost rectangle,
that is, the root of the displayed tree of rectangles.
|
void |
toData(IlvDoublePoints pts)
This method is not supported by this renderer, because it does not
have the notion of a coordinate system.
|
void |
toDisplay(IlvDoublePoints pts)
This method is not supported by this renderer, because it does not
have the notion of a coordinate system.
|
void |
toDisplay(IlvDoublePoints pts,
IlvChartProjector proj,
Rectangle plotRect,
IlvCoordinateSystem coordSys)
Projects points using this renderer coordinate system
and projector area.
|
draw, drawSelectionHandles, getBounds, getStyle, getStyle, getStyles, makeDefaultStyle, setStyle, setStyles
applyStyles, applyStyles, collectDisplayItems, create, createRenderer, dataSetsAdded, dataSetsChangesBatchEnding, dataSetsChangesBatchStarting, dataSetsRemoved, dispose, drawSelectionHandles, drawSelectionHandles, endRendererChanges, findAppropriateColor, fireTreemapFocusEvent, getAnnotation, getBounds, getChart, getChild, getChildCount, getChildIterator, getChildren, getClipRect, getCoordinateSystem, getDataLabeling, getDataLabelLayout, getDataLabelling, getDataSetIndex, getDataSetMainIndex, getDataSetMainRenderer, getDataSource, getDefaultColors, getDepths, getDisplayItem, getDisplayItems, getLegendStyle, getMinDataSetCount, getName, getNearestItem, getNearestPoint, getParent, getPlotRect, getPreferredMargins, getRenderingHint, getStyle, getVirtualDataSet, getXShift, getYAxisIdx, has3DSupport, isDisplayingDataSet, isViewable, isVisible, isVisibleInLegend, reDraw, register, set3D, setDataLabeling, setDataLabelLayout, setDataLabelling, setDataPoint, setName, setParent, setRenderingHintWithNoDraw, setStyle, setVisible, setVisibleInLegend, setXShift, setYAxisIdx, startRendererChanges, triggerChange
public static final IlvTreemapPacking ALTERNATING_PACKING
public static final IlvTreemapPacking SQUARIFIED_CORNER_PACKING
public static final IlvTreemapPacking BAR_PACKING
setPrimaryDirection(int)
public static final IlvTreemapPacking DEFAULT_PACKING
public static final int DEFAULT_PRIMARY_DIRECTION
public static final int DEFAULT_SECONDARY_DIRECTION
public static final double DEFAULT_LEADING_MARGIN_PROPORTION
public static final double DEFAULT_TRAILING_MARGIN_PROPORTION
public static final double DEFAULT_BOTTOM_MARGIN_PROPORTION
public static final double DEFAULT_TOP_MARGIN_PROPORTION
public static final double DEFAULT_MARGIN_REDUCTION_FACTOR
public static final double DEFAULT_MAXIMUM_LEADING_MARGIN
public static final double DEFAULT_MAXIMUM_TRAILING_MARGIN
public static final double DEFAULT_MAXIMUM_BOTTOM_MARGIN
public static final double DEFAULT_MAXIMUM_TOP_MARGIN
public static final boolean DEFAULT_USE_MARGINS_ON_ROOT
isUseMarginsOnRoot()
.public static final double DEFAULT_FOCUS_PARENT_MARGIN_PROPORTION
public static final double DEFAULT_MAXIMUM_FOCUS_PARENT_MARGIN
public static final IlvColorScheme COLORSCHEME_CONSTANT
IlvStyle
.public static final IlvColorScheme COLORSCHEME_DEPTH
IlvStyle
.public static final IlvSimpleValueColorScheme COLORSCHEME_SEQUENTIAL
public static final IlvSimpleValueColorScheme COLORSCHEME_SEQUENTIAL_HUE
public static final IlvSimpleValueColorScheme COLORSCHEME_CYCLIC_SEQUENTIAL_HUE
public static final IlvSimpleValueColorScheme COLORSCHEME_QUALITATIVE
public static final IlvSimpleValueColorScheme COLORSCHEME_DIVERGING_RED_GREEN
public static final IlvSimpleValueColorScheme COLORSCHEME_DIVERGING_GREEN_RED
COLORSCHEME_DIVERGING_RED_GREEN
.public static final IlvSimpleValueColorScheme COLORSCHEME_DIVERGING_BLUE_YELLOW
public static final IlvSimpleValueColorScheme COLORSCHEME_DIVERGING_YELLOW_BLUE
COLORSCHEME_DIVERGING_BLUE_YELLOW
.public static final IlvSimpleValueColorScheme COLORSCHEME_AVERAGE_RED_GREEN
public static final IlvSimpleValueColorScheme COLORSCHEME_AVERAGE_GREEN_RED
COLORSCHEME_AVERAGE_RED_GREEN
.public static final IlvSimpleValueColorScheme COLORSCHEME_AVERAGE_BLUE_YELLOW
public static final IlvSimpleValueColorScheme COLORSCHEME_AVERAGE_YELLOW_BLUE
COLORSCHEME_AVERAGE_BLUE_YELLOW
.public static final IlvColorScheme DEFAULT_COLORSCHEME
public static final Color DEFAULT_COLOR_FOR_NAN
public static final int DEFAULT_STROKE_THRESHOLD
public static final int DEFAULT_LABEL_ALIGNMENT_X
public static final int DEFAULT_LABEL_ALIGNMENT_Y
public static final boolean DEFAULT_ANNOTATION_CLIPPING
public static final boolean DEFAULT_CLIPPED_ANNOTATION_VISIBILITY
public static final int VISIBILITY_ALL
public static final int VISIBILITY_SMART
getClippedAnnotationVisibility()
is
false
and a rectangle annotation extends beyond its
rectangle, it is hidden.
public static final int VISIBILITY_NONE
public static final int DEFAULT_ANNOTATION_VISIBILITY
public IlvTreemapChartRenderer()
public IlvTreeListModel getTreeModel()
public final IlvDataColumnInfo getAreaColumn()
null
.public final String getAreaColumnName()
public void setAreaColumn(IlvDataColumnInfo areaColumn)
public void setAreaColumnName(String name)
public final IlvDataColumnInfo getColorColumn()
null
.getColorColumnName()
,
setColorColumn(ilog.views.chart.datax.IlvDataColumnInfo)
,
setColorColumnName(java.lang.String)
public final String getColorColumnName()
public void setColorColumn(IlvDataColumnInfo areaColumn)
public void setColorColumnName(String name)
public final IlvDataColumnInfo getLabelColumn()
IlvDataLabelAnnotation
is in use.null
.getLabelColumnName()
,
setLabelColumn(ilog.views.chart.datax.IlvDataColumnInfo)
,
setLabelColumnName(java.lang.String)
public final String getLabelColumnName()
IlvDataLabelAnnotation
is in use.public void setLabelColumn(IlvDataColumnInfo labelColumn)
IlvDataLabelAnnotation
.public void setLabelColumnName(String name)
IlvDataLabelAnnotation
, through its name.public final IlvDataColumnInfo getCSSClassesColumn()
null
.public final String getCSSClassesColumnName()
public void setCSSClassesColumn(IlvDataColumnInfo CSSClassesColumn)
CSSClassesColumn
- A model column. Each value in this column must be
either an array, or (preferably) a string
containing the CSS classes, separated by ' ',
or null
.public void setCSSClassesColumnName(String name)
name
- The name of a model column. Each value in this column must be
either an array, or (preferably) a string containing the CSS
classes, separated by ' ', or null
.public final TreePath getFocus()
null
stands for unlimited display of the entire model.TreePath
from the model root to a node in the model, or
null
.setFocus(javax.swing.tree.TreePath)
public final int getFocusLevel()
public void setFocus(TreePath focus)
null
stands for the entire model.focus
- A TreePath
from the model root to a node in the model, or
null
.getFocus()
,
IlvChart.addTreemapFocusListener(ilog.views.chart.event.TreemapFocusListener)
,
IlvTreemapChartFocusInteractor
public final IlvTreemapPacking getPacking()
public void setPacking(IlvTreemapPacking packing)
packing
- One of ALTERNATING_PACKING
,
SQUARIFIED_CORNER_PACKING
,
BAR_PACKING
public final int getPrimaryDirection()
public int getResolvedPrimaryDirection()
This method uses the result of getPrimaryDirection()
.
public void setPrimaryDirection(int direction)
SwingConstants.RIGHT
, means left-to-right
arrangement,SwingConstants.LEFT
, means right-to-left
arrangement,SwingConstants.TRAILING
, means left-to-right
or right-to-left arrangement, according to the locale,SwingConstants.TOP
, means bottom-to-top
arrangement,SwingConstants.BOTTOM
, means top-to-bottom
arrangement.public final int getSecondaryDirection()
public int getResolvedSecondaryDirection()
This method uses the result of getSecondaryDirection()
.
public void setSecondaryDirection(int direction)
SwingConstants.RIGHT
, means left-to-right
arrangement,SwingConstants.LEFT
, means right-to-left
arrangement,SwingConstants.TRAILING
, means left-to-right
or right-to-left arrangement, according to the locale,SwingConstants.TOP
, means bottom-to-top
arrangement,SwingConstants.BOTTOM
, means top-to-bottom
arrangement.public final double getLeadingMarginProportion()
The leading margin is either the left margin or the right margin: it is the right
margin if the chart orientation is right-to-left and the primary
direction is TRAILING
; otherwise it is the left margin.
public void setLeadingMarginProportion(double proportion)
The leading margin is either the left margin or the right margin: it is the right
margin if the chart orientation is right-to-left and the primary
direction is TRAILING
; otherwise it is the left margin.
The value is the proportion relative to a rectangle width. It must be between 0 and 1. Typical values are between 0.01 (1 percent) and 0.05 (5 percent).
public final double getTrailingMarginProportion()
The trailing margin is either the right margin or the left margin: it
is the left margin if the chart orientation is right-to-left and the primary
direction is TRAILING
; otherwise it is the right margin.
public void setTrailingMarginProportion(double proportion)
The trailing margin is either the right margin or the left margin: it's
the left margin if the chart orientation is right-to-left and the primary
direction is TRAILING
; otherwise it is the right margin.
The value is the proportion relative to a rectangle width. It must be between 0 and 1. Typical values are between 0.01 (1 percent) and 0.05 (5 percent).
public final double getLeftMarginProportion()
public final double getRightMarginProportion()
public final double getBottomMarginProportion()
setBottomMarginProportion(double)
public void setBottomMarginProportion(double proportion)
The value is the proportion relative to a rectangle height. It must be between 0 and 1. Typical values are between 0.01 (1 percent) and 0.05 (5 percent).
public final double getTopMarginProportion()
setTopMarginProportion(double)
public void setTopMarginProportion(double proportion)
The value is the proportion relative to a rectangle height. It must be between 0 and 1. Typical values are between 0.01 (1 percent) and 0.05 (5 percent).
public final double getMarginReductionFactor()
It describes the margin proportions of a nested rectangle, compared to the margin proportions of the rectangle that contains it.
public void setMarginReductionFactor(double factor)
It describes the margin proportions of a nested rectangle, compared to the margin proportions of the rectangle that contains it.
The value must be >=0. The value 1 (the default) specifies that the margin proportions are independent of the nesting depth. A value between 0 and 1 will make the margins of inner, nested rectangles thinner.
public final double getMaximumLeadingMargin()
The leading margin is either the left margin or the right margin: it is the right
margin if the chart's orientation is right-to-left and the primary
direction is TRAILING
; otherwise it is the left margin.
public void setMaximumLeadingMargin(double max)
The leading margin is either the left margin or the right margin: it is the right
margin if the chart's orientation is right-to-left and the primary
direction is TRAILING
; otherwise it is the left margin.
public final double getMaximumTrailingMargin()
The trailing margin is either the right margin or the left margin: it's
the left margin if the chart's orientation is right-to-left and the primary
direction is TRAILING
; otherwise it is the right margin.
public void setMaximumTrailingMargin(double max)
The trailing margin is either the right margin or the left margin: it's
the left margin if the chart's orientation is right-to-left and the primary
direction is TRAILING
; otherwise it is the right margin.
public final double getMaximumLeftMargin()
public final double getMaximumRightMargin()
public final double getMaximumBottomMargin()
setMaximumBottomMargin(double)
public void setMaximumBottomMargin(double max)
public final double getMaximumTopMargin()
setMaximumTopMargin(double)
public void setMaximumTopMargin(double max)
public final boolean isUseMarginsOnRoot()
true
or false
, depending whether the margins also apply to the
outermost rectangle, that is, the root of the displayed tree of rectangles.public void setUseMarginsOnRoot(boolean marginsOnRoot)
true
.public final double getFocusParentMarginProportion()
setFocusParentMarginProportion(double)
public void setFocusParentMarginProportion(double proportion)
The "focus parent margin" is a border that is drawn when the view displays a portion of the entire model: The parent of the focused object, in the tree model, is drawn around the rectangle that represents the focused object and its subtree.
The value is the proportion relative to a rectangle height. It must be between 0 and 1. Typical values are between 0.01 (1 percent) and 0.05 (5 percent).
public final double getMaximumFocusParentMargin()
setMaximumFocusParentMargin(double)
public void setMaximumFocusParentMargin(double max)
public final IlvColorScheme getColorScheme()
public void setColorScheme(IlvColorScheme scheme)
scheme
- one of COLORSCHEME_CONSTANT
,
COLORSCHEME_DEPTH
,
COLORSCHEME_SEQUENTIAL
,
COLORSCHEME_SEQUENTIAL_HUE
,
COLORSCHEME_CYCLIC_SEQUENTIAL_HUE
,
COLORSCHEME_QUALITATIVE
,
COLORSCHEME_DIVERGING_RED_GREEN
,
COLORSCHEME_DIVERGING_GREEN_RED
,
COLORSCHEME_DIVERGING_BLUE_YELLOW
,
COLORSCHEME_DIVERGING_YELLOW_BLUE
,
COLORSCHEME_AVERAGE_RED_GREEN
,
COLORSCHEME_AVERAGE_GREEN_RED
,
COLORSCHEME_AVERAGE_BLUE_YELLOW
,
COLORSCHEME_AVERAGE_YELLOW_BLUE
.getColorScheme()
,
COLORSCHEME_CONSTANT
,
COLORSCHEME_DEPTH
,
COLORSCHEME_SEQUENTIAL
,
COLORSCHEME_SEQUENTIAL_HUE
,
COLORSCHEME_CYCLIC_SEQUENTIAL_HUE
,
COLORSCHEME_QUALITATIVE
,
COLORSCHEME_DIVERGING_RED_GREEN
,
COLORSCHEME_DIVERGING_GREEN_RED
,
COLORSCHEME_DIVERGING_BLUE_YELLOW
,
COLORSCHEME_DIVERGING_YELLOW_BLUE
,
COLORSCHEME_AVERAGE_RED_GREEN
,
COLORSCHEME_AVERAGE_GREEN_RED
,
COLORSCHEME_AVERAGE_BLUE_YELLOW
,
COLORSCHEME_AVERAGE_YELLOW_BLUE
public final Color getColorForNaN()
setColorForNaN(java.awt.Color)
public void setColorForNaN(Color color)
public final int getStrokeThreshold()
setStrokeThreshold(int)
public void setStrokeThreshold(int threshold)
The default value is 0
.
threshold
- The new threshold in pixel. Rectangle with a width or
height smaller than this threshold will not be rendered with a stroke,
unless they are not filled.getStrokeThreshold()
public void setRenderingHint(IlvDataRenderingHint hint)
setRenderingHint
in class IlvChartRenderer
hint
- The new rendering hint. If this parameter is
null
, all the global hints previously
defined are removed.setRenderingHint(int, IlvDataRenderingHint)
,
setRenderingHint(Object, IlvDataRenderingHint)
public final IlvDataRenderingHint getRenderingHint(Object node)
This is either the one specified through
setRenderingHint(Object, IlvDataRenderingHint)
or the global one
specified through setRenderingHint(IlvDataRenderingHint)
, or one
specified through CSS.
node
- A node in the tree model.IlvDataRenderingHint
or null
public void setRenderingHint(Object node, IlvDataRenderingHint hint)
Note: When a non-null
hint is given, it overrides the
global hints given through setRenderingHint(IlvDataRenderingHint)
.
When a null
hint is given, it removes
existing hints for this tree node, so that the global hints become
effective.
node
- A node in the tree model.hint
- The new rendering hint, or null
to erase
previously set hints.public void setRenderingHint(int index, IlvDataRenderingHint hint)
The rendering hint is associated with the object that currently is at the given index. If elements of the model are inserted or removed, the rendering hint will stay associated with this object, regardless whether its index changes.
index
- An index into the model.hint
- The new rendering hint, or null
to erase
previously set hints.public void setAnnotation(IlvDataAnnotation annotation)
setAnnotation
in class IlvChartRenderer
annotation
- The new annotation. If this parameter is
null
, the previously defined global annotation is removed.setAnnotation(int, IlvDataAnnotation)
,
setAnnotation(Object, IlvDataAnnotation)
public final IlvDataAnnotation getAnnotation(Object node)
This is either the one specified through
setAnnotation(Object, IlvDataAnnotation)
or the global one
specified through setAnnotation(IlvDataAnnotation)
, or one
specified through CSS.
node
- A node in the tree model.IlvDataAnnotation
or null
.public void setAnnotation(Object node, IlvDataAnnotation annotation)
Note: When a non-null
annotation is given, it overrides
the global annotation given through
setAnnotation(IlvDataAnnotation)
.
When a null
annotation is given, it removes
the existing annotation for this tree node, so that the global
annotation become effective.
node
- A node in the tree model.annotation
- The new annotation, or null
to erase the
previously set annotation.public void setAnnotation(int index, IlvDataAnnotation annotation)
The annotation is associated with the object that currently is at the given index. If elements of the model are inserted or removed, the annotation will stay associated with this object, regardless whether its index changes.
index
- An index into the model.annotation
- The new annotation, or null
to erase the
previously set annotation.public boolean holdsAnnotations()
holdsAnnotations
in class IlvChartRenderer
public final int getLabelAlignmentX()
This setting has an effect only when data annotations of type
IlvDataLabelAnnotation
are used.
SwingConstants.LEFT
,
SwingConstants.CENTER
,
SwingConstants.RIGHT
,
SwingConstants.LEADING
,
SwingConstants.TRAILING
public void setLabelAlignmentX(int alignment)
SwingConstants.LEFT
, means left-adjusted within the
rectangle,SwingConstants.CENTER
, means centered horizontally
within the rectangle,SwingConstants.RIGHT
, means right-adjusted within the
rectangle,SwingConstants.LEADING
, means left-adjusted or
right-adjusted, according to the locale,SwingConstants.TRAILING
, means right-adjusted or
left-adjusted, according to the locale.This setting has an effect only when data annotations of type
IlvDataLabelAnnotation
are used.
public final int getLabelAlignmentY()
This setting has an effect only when data annotations of type
IlvDataLabelAnnotation
are used.
SwingConstants.BOTTOM
,
SwingConstants.CENTER
,
SwingConstants.TOP
.public void setLabelAlignmentY(int alignment)
SwingConstants.BOTTOM
, means bottom-adjusted within the
rectangle,SwingConstants.CENTER
, means centered vertically
within the rectangle,SwingConstants.TOP
, means top-adjusted within the
rectangle.This setting has an effect only when data annotations of type
IlvDataLabelAnnotation
are used.
public final Format getLabelFormat()
Format
, or null
.setLabelFormat(java.text.Format)
public void setLabelFormat(Format format)
It specifies how objects or numbers, that are retrieved as values from the label column, are converted to strings.
This setting has an effect only when data annotations of type
IlvDataLabelAnnotation
are used.
format
- An instance of Format
, or null
,
designating the conversion via toString()
.getLabelFormat()
,
setLabelColumn(ilog.views.chart.datax.IlvDataColumnInfo)
,
setLabelColumnName(java.lang.String)
public final boolean isAnnotationClipping()
true
if annotations are clipped to fit in their corresponding
rectangle.public void setAnnotationClipping(boolean clipping)
public final boolean getClippedAnnotationVisibility()
true
if annotations that don't fit in their corresponding
rectangle can be visible. Returns false
if they are hidden.public void setClippedAnnotationVisibility(boolean visible)
public final int getAnnotationVisibility()
VISIBILITY_ALL
,
VISIBILITY_SMART
, VISIBILITY_NONE
.setAnnotationVisibility(int)
public void setAnnotationVisibility(int visibility)
visibility
- A non-negative integer, or one of
VISIBILITY_ALL
,
VISIBILITY_SMART
,
VISIBILITY_NONE
.getAnnotationVisibility()
,
setClippedAnnotationVisibility(boolean)
public final Format getLegendLabelFormat()
Format
, or null
.setLegendLabelFormat(java.text.Format)
public void setLegendLabelFormat(Format format)
It specifies how objects or numbers, that correspond to values of the color column, are converted to strings.
format
- An instance of Format
, or null
,
designating the conversion via toString()
.getLegendLabelFormat()
,
setColorColumn(ilog.views.chart.datax.IlvDataColumnInfo)
,
setColorColumnName(java.lang.String)
public IlvDisplayObjectArea getDisplayItem(IlvChartDataPicker picker, IlvUnaryPredicate filter)
picker
- The object holding the picking information.filter
- A filter that, when called with an
IlvDisplayObjectArea
as argument, returns
true
if the display item is acceptable.
Or null
, denoting a filter that considers
all objects as acceptable.null
if none was found.getNearestItem(IlvChartDataPicker, IlvUnaryPredicate)
public IlvDisplayObjectArea getNearestItem(IlvChartDataPicker picker, IlvUnaryPredicate filter)
Note: This method assumes that the picker computeDistance
method is a function of Math.abs(x2-x1)
and
Math.abs(y2-y1)
, of the form
f(Math.abs(x2-x1), Math.abs(y2-y1))
, such that f is
monotonically increasing in both arguments. This property guarantees that
the minimal distance between all points of a rectangle and a point outside
the rectangle is achieved at the rectangle border.
picker
- The object holding the picking information.filter
- A filter that, when called with an
IlvDisplayObjectArea
as argument, returns
true
if the display item is acceptable.
Or null
, denoting a filter that considers
all objects as acceptable.null
if none was found.getDisplayItem(IlvChartDataPicker, IlvUnaryPredicate)
protected void chartConnected(IlvChart oldChart, IlvChart newChart)
chartConnected
in class IlvSimpleChartRenderer
oldChart
- The chart with which this renderer was associated, or
null
if this renderer is added to a new chart.newChart
- The chart to which this renderer is added, or
null
if this renderer is removed from its current chart.public void toData(IlvDoublePoints pts)
toData
in class IlvChartRenderer
UnsupportedOperationException
IlvChart.toData(IlvDoublePoints, int)
public void toDisplay(IlvDoublePoints pts)
toDisplay
in class IlvChartRenderer
UnsupportedOperationException
IlvChart.toDisplay(IlvDoublePoints, int)
public void toDisplay(IlvDoublePoints pts, IlvChartProjector proj, Rectangle plotRect, IlvCoordinateSystem coordSys)
toDisplay(IlvDoublePoints)
.toDisplay
in class IlvChartRenderer
pts
- A sequence of points.proj
- A precomputed and cached value of a projector.plotRect
- The precomputed and cached value of
getPlotRect()
.coordSys
- The precomputed and cached value of
getCoordinateSystem()
.public IlvDataInterval getXRange(IlvDataInterval retRange)
getXRange
in class IlvChartRenderer
retRange
- An interval used to store the result. If this parameter
is null
, a new IlvDataInterval
is allocated.public IlvDataInterval getYRange(IlvDataInterval retRange)
getYRange
in class IlvChartRenderer
retRange
- An interval used to store the result. If this parameter
is null
, a new IlvDataInterval
is allocated.public IlvDataInterval getYRange(IlvDataInterval xRange, IlvDataInterval retRange)
getYRange
in class IlvChartRenderer
xRange
- The x-interval used to select the points.retRange
- An interval used to store the result. If this parameter
is null
, a new IlvDataInterval
is allocated.public void setDataSource(IlvDataSource dataSource)
setDataSource
in class IlvChartRenderer
IlvChartRenderer.getDataSource()
public void setDisplayPoint(IlvDataSet dataSet, int dataIndex, double xCoord, double yCoord)
setDisplayPoint
in class IlvChartRenderer
dataSet
- The considered data set.dataIndex
- The index of the considered data point within the data set.xCoord
- The new x-coordinate of the projected point, as displayed
by this renderer.yCoord
- The new y-coordinate of the projected point, as displayed
by this renderer.UnsupportedOperationException
IlvDisplayPoint.setCoords(int, int)
public void addImageMapAreas(IlvIMapDefinition mapDef, List<? super IlvIMapArea> areaList)
addImageMapAreas
in class IlvChartRenderer
mapDef
- The map definition.areaList
- The list of map areas. The method adds instances
of IlvIMapArea
to this list.public void drawIntoHitmap(IlvChartHitmapDefinition definition, IlvChartHitmapAccumulator accumulator)
drawIntoHitmap
in class IlvChartRenderer
definition
- The specification how to construct the hitmap.accumulator
- The object that accumulates objects in the hitmap.IlvChartHitmapDefinition.drawIntoHitmap(IlvChart, IlvChartRenderer, IlvChartHitmapAccumulator)
public void draw(Graphics g)
draw
in class IlvChartRenderer
g
- The destination Graphics
.public void drawAnnotations(Graphics g)
Graphics
.drawAnnotations
in class IlvChartRenderer
public Rectangle2D getBounds(Rectangle2D bounds, boolean includeAnnotations)
null
, a new
Rectangle2D
is allocated.
Note that the bounds may be larger than necessary. There is no guarantee that the bounds returned are tight.
Note about multi-threading: This method must not take the Swing
tree lock, and must not access IlvChart
API that is
not multithread-safe.
getBounds
in class IlvChartRenderer
bounds
- An optional rectangle used to store the result.includeAnnotations
- Indicates whether annotation bounds should be included.public IlvDisplayPoint getNearestPoint(IlvChartDataPicker picker)
Note: This method assumes that the picker computeDistance
method is a function of Math.abs(x2-x1)
and
Math.abs(y2-y1)
, of the form
f(Math.abs(x2-x1), Math.abs(y2-y1))
, such that f is
monotonically increasing in both arguments. This property guarantees that
the minimal distance between all points of a rectangle and a point outside
the rectangle is achieved at the rectangle border.
getNearestPoint
in class IlvChartRenderer
picker
- The object holding the picking information.null
if none was found.IlvChartRenderer.getNearestItem(IlvChartDataPicker, double[])
public IlvDisplayPoint getNearestItem(IlvChartDataPicker picker, double[] distanceResult)
getNearestItem
in class IlvChartRenderer
picker
- The object holding the picking information.distanceResult
- If not null
, this will be used to
return the distance to the rendering of the item.
You can pass null
if you don't need
this information.null
if none was found.IlvChartRenderer.getNearestPoint(IlvChartDataPicker)
,
IlvChartRenderer.getDisplayItem(IlvChartDataPicker)
public IlvDisplayPoint getDisplayItem(IlvChartDataPicker picker)
getNearestItem(ilog.views.chart.IlvChartDataPicker, ilog.views.util.collections.IlvUnaryPredicate)
method, this method does not consider
the picker's pick distance.getDisplayItem
in class IlvChartRenderer
picker
- The object holding the picking information.null
if none was found.IlvChartRenderer.getNearestItem(IlvChartDataPicker, double[])
public IlvDisplayPoint getDisplayPoint(IlvDataSet dataSet, int dataIdx)
getDisplayPoint
in class IlvChartRenderer
UnsupportedOperationException
public IlvDisplayObjectArea getDisplayArea(Object object)
object
- An object contained in the tree model.null
.public void drawSelectionHandles(Graphics g, IlvHandlesSelectionStyle style, IlvObjectModelWithColumns model, Object object)
drawSelectionHandles
in class IlvChartRenderer
g
- A graphics context.style
- The graphic style parameters.model
- A flat or tree-like object model.object
- An object in the model.public void drawLegendSymbol(IlvLegendItem item, Graphics g, int x, int y, int w, int h)
IlvTreemapRendererLegendItem
.drawLegendSymbol
in class IlvChartRenderer
item
- The legend item to draw.g
- The graphics context.x
- The symbol x-coordinate.y
- The symbol y-coordinate.w
- The symbol width.h
- The symbol height.IlvRendererLegendItem
public IlvLegendItem[] createLegendItems()
IlvTreemapRendererLegendItem
for several colors.createLegendItems
in class IlvChartRenderer
null
.IlvLegend
,
IlvLegendItem
,
IlvTreemapRendererLegendItem
public String getLegendText(IlvLegendItem item)
createLegendItems()
.getLegendText
in class IlvChartRenderer
public String getDefaultLegendTitle()
getDefaultLegendTitle
in class IlvChartRenderer
public void setAnnotation(IlvDataSet dataSet, int idx, IlvDataAnnotation annotation)
setAnnotation
in class IlvChartRenderer
dataSet
- The considered data set.idx
- The index of the considered point in the data set.annotation
- The new annotation, or null
if the
annotation associated with the specified point must be removed.
If an annotation has already been specified globally with the
IlvChartRenderer.setAnnotation(IlvDataSet, IlvDataAnnotation)
method,
it is overridden by this new annotation.
In that case, a null
value has no effect.UnsupportedOperationException
public void setAnnotation(IlvDataSet dataSet, IlvDataAnnotation annotation)
setAnnotation
in class IlvChartRenderer
dataSet
- The considered data set.annotation
- The new annotation, or null
if the
global annotation must be removed.UnsupportedOperationException
IlvChartRenderer.setAnnotation(IlvDataAnnotation)
public IlvDataAnnotation getAnnotation(IlvDataSet dataSet, int idx)
null
, because this renderer is associated
with the entire data source, not with a single data set.getAnnotation
in class IlvChartRenderer
dataSet
- The considered data set.idx
- The index of the point within the data set.public void setRenderingHint(IlvDataSet dataSet, int idx, IlvDataRenderingHint hint)
setRenderingHint
in class IlvChartRenderer
dataSet
- The considered data set.idx
- The index of the considered point in the data set.hint
- The new rendering hint, or null
if the
hint associated with the specified point must be removed.
If an hint has already been specified globally with the
IlvChartRenderer.setRenderingHint(IlvDataSet, IlvDataRenderingHint)
} method,
it is overridden by this new hint.
In that case, a null
value has no effect.UnsupportedOperationException
public void setRenderingHint(IlvDataSet dataSet, IlvDataRenderingHint hint)
setRenderingHint
in class IlvChartRenderer
dataSet
- The considered data set.hint
- The new rendering hint, or null
if the
global hint must be removed.UnsupportedOperationException
public IlvDataRenderingHint getRenderingHint(IlvDataSet dataSet, int idx)
null
, because this renderer is associated
with the entire data source, not with a single data set.getRenderingHint
in class IlvChartRenderer
dataSet
- The considered data set.idx
- The index of the point within the data set.null
for none.public IlvDataRenderingHint getRenderingHint(IlvDataSet dataSet)
null
, because this renderer is associated
with the entire data source, not with a single data set.getRenderingHint
in class IlvChartRenderer
dataSet
- The considered data set.null
for none.public String computeDataLabel(IlvDataSetPoint dp)
This method is used for data labeling. The returned string depends on
the column specified through the setLabelColumnName(java.lang.String)
method.
computeDataLabel
in class IlvChartRenderer
dp
- An instance of IlvDisplayObjectArea
.null
if no label is available.public Point computeDataLabelLocation(IlvDisplayPoint dp, Dimension size)
computeDataLabelLocation
in class IlvChartRenderer
dp
- An instance of IlvDisplayObjectArea
.size
- The size of the label.IlvChartRenderer.setDataLabeling(int)
public String computeInfoTextDescriptionPart(IlvDisplayObjectArea da)
This method is used by the default implementation of
getInfoTextDescriptionPart
in
IlvChartInfoViewInteractor
.
public String computeInfoTextValuePart(IlvDisplayObjectArea da)
This method is used by the default implementation of
getInfoTextValuePart
in
IlvChartInfoViewInteractor
.
This method uses the value from the color column (see setColorColumn(ilog.views.chart.datax.IlvDataColumnInfo)
)
and formats it to a string (see setLegendLabelFormat(java.text.Format)
).
public void applyStyles(boolean newStyles) throws Exception
applyStyles
in class IlvChartRenderer
Exception
public ilog.views.chart.styling.IlvDataModelStyle applyStyles(ilog.views.chart.styling.IlvStylingSupport support)
support
- CSS manager.IlvDataModelStyle
that holds the styling
information on the data model.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.