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
ConstructorsConstructorDescriptionWStandardChartProxyModel(WAbstractItemModel sourceModel) Creates a newWStandardChartProxyModelthat 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.intReturns the number of columns.doublegetData(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.intReturns 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
changedMethods inherited from class eu.webtoolkit.jwt.WObject
getId, getObjectName, remove, resendFormData, setFormData, setObjectName, tr
-
Constructor Details
-
WStandardChartProxyModel
Creates a newWStandardChartProxyModelthat 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::Displayas a double.- Specified by:
getDatain 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::Displayas aWString.- Overrides:
getDisplayDatain classWAbstractChartModel- See Also:
-
getHeaderData
Returns the given column's header data.Returns the result of
WAbstractItemModel#getHeaderData()for the given column with theItemDataRole::Displayas aWString.- Overrides:
getHeaderDatain 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::ToolTipas aWString.- Overrides:
getToolTipin 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:
flagsin 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 theLinkRoleas aWLink.- Overrides:
linkin 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:
getMarkerPenColorin 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:
getMarkerBrushColorin 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:
markerTypein 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:
getBarPenColorin 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:
getBarBrushColorin 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:
getMarkerScaleFactorin classWAbstractChartModel- See Also:
-
getColumnCount
public int getColumnCount()Returns the number of columns.- Specified by:
getColumnCountin classWAbstractChartModel- See Also:
-
getRowCount
public int getRowCount()Returns the number of rows.- Specified by:
getRowCountin classWAbstractChartModel- See Also:
-
getSourceModel
Returns the wrapped source model.
-