Class WStandardChartProxyModel
WAbstractChartModel
implementation that wraps a WAbstractItemModel
.
This model delegates all functions to an underlying WAbstractItemModel
, using the
appropriate roles.
This model also triggers the WAbstractChartModel.changed()
signal whenever the
underlying WAbstractItemModel
is changed.
-
Nested Class Summary
Nested classes/interfaces inherited from class eu.webtoolkit.jwt.WObject
WObject.FormData
-
Constructor Summary
ConstructorDescriptionWStandardChartProxyModel
(WAbstractItemModel sourceModel) Creates a newWStandardChartProxyModel
that wraps the given source model. -
Method Summary
Modifier and TypeMethodDescriptionflags
(int row, int column) Returns the item flags for the given row and column.getBarBrushColor
(int row, int column) Returns the bar brush color to use for a given row and column.getBarPenColor
(int row, int column) Returns the bar pen color to use for a given row and column.int
Returns the number of columns.double
getData
(int row, int column) Returns data at a given row and column.getDisplayData
(int row, int column) Returns display data at a given row and column.getHeaderData
(int column) Returns the given column's header data.getMarkerBrushColor
(int row, int column) Returns the marker brush color to use for a given row and column.getMarkerPenColor
(int row, int column) Returns the marker pen color to use for a given row and column.getMarkerScaleFactor
(int row, int column) Returns the marker scale factor to use for a given row and column.int
Returns the number of rows.Returns the wrapped source model.getToolTip
(int row, int column) Returns the tooltip text to use on a given row and column.link
(int row, int column) Returns the link to use on a given row and column.markerType
(int row, int column) Returns the marker type to use for a given row and column.Methods inherited from class eu.webtoolkit.jwt.chart.WAbstractChartModel
changed
Methods inherited from class eu.webtoolkit.jwt.WObject
getId, getObjectName, remove, setFormData, setObjectName, tr
-
Constructor Details
-
WStandardChartProxyModel
Creates a newWStandardChartProxyModel
that wraps the given source model.
-
-
Method Details
-
getData
public double getData(int row, int column) Returns data at a given row and column.Returns the result of
WAbstractItemModel#getData()
for the given row and column with theItemDataRole::Display
as a double.- Specified by:
getData
in classWAbstractChartModel
- See Also:
-
getDisplayData
Returns display data at a given row and column.Returns the result of
WAbstractItemModel#getData()
for the given row and column with theItemDataRole::Display
as aWString
.- Overrides:
getDisplayData
in classWAbstractChartModel
- See Also:
-
getHeaderData
Returns the given column's header data.Returns the result of
WAbstractItemModel#getHeaderData()
for the given column with theItemDataRole::Display
as aWString
.- Overrides:
getHeaderData
in classWAbstractChartModel
- See Also:
-
getToolTip
Returns the tooltip text to use on a given row and column.Returns the result of
WAbstractItemModel#getData()
for the given row and column with theItemDataRole::ToolTip
as aWString
.- Overrides:
getToolTip
in classWAbstractChartModel
- See Also:
-
flags
Returns the item flags for the given row and column.Returns the result of WAbstractItemModel::index(row, column).
flags()
for the given row and column.- Overrides:
flags
in classWAbstractChartModel
- See Also:
-
link
Returns the link to use on a given row and column.Returns the result of
WAbstractItemModel#getData()
for the given row and column with theLinkRole
as aWLink
.- Overrides:
link
in classWAbstractChartModel
- See Also:
-
getMarkerPenColor
Returns the marker pen color to use for a given row and column.Returns the result of
WAbstractItemModel#getData()
for the given row and column with theItemDataRole::MarkerPenColor
, or null if no color is defined.- Overrides:
getMarkerPenColor
in classWAbstractChartModel
- See Also:
-
getMarkerBrushColor
Returns the marker brush color to use for a given row and column.Returns the result of
WAbstractItemModel#getData()
for the given row and column with theItemDataRole::MarkerBrushColor
, or null if no color is defined.- Overrides:
getMarkerBrushColor
in classWAbstractChartModel
- See Also:
-
markerType
Returns the marker type to use for a given row and column.Returns the result of
WAbstractItemModel#getData()
for the given row and column with theMarkerTypeRole
, or null if no marker type is defined.- Overrides:
markerType
in classWAbstractChartModel
- See Also:
-
getBarPenColor
Returns the bar pen color to use for a given row and column.Returns the result of
WAbstractItemModel#getData()
for the given row and column with theItemDataRole::BarPenColor
, or null if no color is defined.- Overrides:
getBarPenColor
in classWAbstractChartModel
- See Also:
-
getBarBrushColor
Returns the bar brush color to use for a given row and column.Returns the result of
WAbstractItemModel#getData()
for the given row and column with theItemDataRole::BarBrushColor
, or null if no color is defined.- Overrides:
getBarBrushColor
in classWAbstractChartModel
- See Also:
-
getMarkerScaleFactor
Returns the marker scale factor to use for a given row and column.Returns the result of
WAbstractItemModel#getData()
for the given row and column with theItemDataRole::MarkerScaleFactor
, or null if no color is defined.- Overrides:
getMarkerScaleFactor
in classWAbstractChartModel
- See Also:
-
getColumnCount
public int getColumnCount()Returns the number of columns.- Specified by:
getColumnCount
in classWAbstractChartModel
- See Also:
-
getRowCount
public int getRowCount()Returns the number of rows.- Specified by:
getRowCount
in classWAbstractChartModel
- See Also:
-
getSourceModel
Returns the wrapped source model.
-