public class IlvDefaultChartAreaAccessibleHierarchy extends IlvChartAreaAccessibleHierarchy implements Serializable
The accessible elements are managed in a tree of rows:
IlvTreemapChartRenderer
, the rows follow the
structure of the data model.Scales, renderers, and data sets can be marked unselectable. All are selectable by default.
Constructor and Description |
---|
IlvDefaultChartAreaAccessibleHierarchy(IlvChart chart)
Creates a selection manager attached to a given chart.
|
Modifier and Type | Method and Description |
---|---|
boolean |
areScalesSelectable()
Returns true if scales are selectable in general.
|
boolean |
areSingleRenderersSelectable()
Returns true if renderers with at most one data set are selectable in
general.
|
IlvChartAreaAccessible |
getChildRowFirstSelectable(IlvChartAreaAccessible elem)
Returns the first selectable element in the row attached under
elem . |
IlvChartAreaAccessible |
getFirstSelectable(IlvChartAreaAccessible inRow)
Returns the first selectable element of the row of
inRow ,
or of the topmost row if inRow is null . |
IlvChartAreaAccessible |
getLastSelectable(IlvChartAreaAccessible inRow)
Returns the last selectable element of the row of
inRow ,
or of the topmost row if inRow is null . |
IlvChartAreaAccessible |
getNextSelectable(IlvChartAreaAccessible elem)
Returns the next selectable element in the same row as
elem . |
IlvChartAreaAccessible |
getParentRowSelectable(IlvChartAreaAccessible elem)
Returns the selectable element in the row above
elem . |
IlvChartAreaAccessible |
getPreviousSelectable(IlvChartAreaAccessible elem)
Returns the previous selectable element in the same row as
elem . |
boolean |
isSelectable(IlvChartRenderer renderer)
Returns true if the given renderer is selectable.
|
boolean |
isSelectable(IlvDataSet dataSet)
Returns true if the given data set is selectable.
|
boolean |
isSelectable(IlvScale scale)
Returns true if the given scale is selectable.
|
void |
setScalesSelectable(boolean selectable)
Specifies whether scales are selectable in general.
|
void |
setSelectable(IlvChartRenderer renderer,
boolean selectable)
Specifies whether a given renderer shall be selectable or not.
|
void |
setSelectable(IlvDataSet dataSet,
boolean selectable)
Specifies whether a given data set shall be selectable or not.
|
void |
setSelectable(IlvScale scale,
boolean selectable)
Specifies whether a given scale shall be selectable or not.
|
void |
setSingleRenderersSelectable(boolean selectable)
Specifies whether renderers with at most one data set are selectable in
general.
|
public IlvDefaultChartAreaAccessibleHierarchy(IlvChart chart)
public boolean areScalesSelectable()
setScalesSelectable(boolean)
public void setScalesSelectable(boolean selectable)
true
.public boolean areSingleRenderersSelectable()
setSingleRenderersSelectable(boolean)
public void setSingleRenderersSelectable(boolean selectable)
false
.public boolean isSelectable(IlvScale scale)
setSelectable(IlvScale, boolean)
public void setSelectable(IlvScale scale, boolean selectable)
true
for every scale.public boolean isSelectable(IlvChartRenderer renderer)
setSelectable(IlvChartRenderer, boolean)
public void setSelectable(IlvChartRenderer renderer, boolean selectable)
true
for every renderer.public boolean isSelectable(IlvDataSet dataSet)
setSelectable(IlvDataSet, boolean)
public void setSelectable(IlvDataSet dataSet, boolean selectable)
true
for every data set.isSelectable(IlvDataSet)
public IlvChartAreaAccessible getFirstSelectable(IlvChartAreaAccessible inRow)
inRow
,
or of the topmost row if inRow
is null
.getFirstSelectable
in class IlvChartAreaAccessibleHierarchy
inRow
- An accessible element of the chart area, or null
.null
if there is none.public IlvChartAreaAccessible getLastSelectable(IlvChartAreaAccessible inRow)
inRow
,
or of the topmost row if inRow
is null
.getLastSelectable
in class IlvChartAreaAccessibleHierarchy
inRow
- An accessible element of the chart area, or null
.null
if there is none.public IlvChartAreaAccessible getNextSelectable(IlvChartAreaAccessible elem)
elem
.getNextSelectable
in class IlvChartAreaAccessibleHierarchy
elem
- An accessible element of the chart area.null
if there is none.public IlvChartAreaAccessible getPreviousSelectable(IlvChartAreaAccessible elem)
elem
.getPreviousSelectable
in class IlvChartAreaAccessibleHierarchy
elem
- An accessible element of the chart area.null
if there is none.public IlvChartAreaAccessible getParentRowSelectable(IlvChartAreaAccessible elem)
elem
.getParentRowSelectable
in class IlvChartAreaAccessibleHierarchy
elem
- An accessible element of the chart area.null
if there is no parent row.public IlvChartAreaAccessible getChildRowFirstSelectable(IlvChartAreaAccessible elem)
elem
.getChildRowFirstSelectable
in class IlvChartAreaAccessibleHierarchy
elem
- An accessible element of the chart area.elem
, or null
if there is no such row or
none of its elements is selectable.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.