Class WStandardChartProxyModel
- java.lang.Object
-
- eu.webtoolkit.jwt.WObject
-
- eu.webtoolkit.jwt.chart.WAbstractChartModel
-
- eu.webtoolkit.jwt.chart.WStandardChartProxyModel
-
public class WStandardChartProxyModel extends WAbstractChartModel
AWAbstractChartModelimplementation that wraps aWAbstractItemModel.This model delegates all functions to an underlying
WAbstractItemModel, using the appropriate roles.This model also triggers the
WAbstractChartModel.changed()signal whenever the underlyingWAbstractItemModelis changed.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class eu.webtoolkit.jwt.WObject
WObject.FormData
-
-
Constructor Summary
Constructors Constructor Description WStandardChartProxyModel(WAbstractItemModel sourceModel)Creates a newWStandardChartProxyModelthat wraps the given source model.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.EnumSet<ItemFlag>flags(int row, int column)Returns the item flags for the given row and column.WColorgetBarBrushColor(int row, int column)Returns the bar brush color to use for a given row and column.WColorgetBarPenColor(int row, int column)Returns the bar pen color to use for a given row and column.intgetColumnCount()Returns the number of columns.doublegetData(int row, int column)Returns data at a given row and column.WStringgetDisplayData(int row, int column)Returns display data at a given row and column.WStringgetHeaderData(int column)Returns the given column's header data.WColorgetMarkerBrushColor(int row, int column)Returns the marker brush color to use for a given row and column.WColorgetMarkerPenColor(int row, int column)Returns the marker pen color to use for a given row and column.java.lang.DoublegetMarkerScaleFactor(int row, int column)Returns the marker scale factor to use for a given row and column.intgetRowCount()Returns the number of rows.WAbstractItemModelgetSourceModel()Returns the wrapped source model.WStringgetToolTip(int row, int column)Returns the tooltip text to use on a given row and column.WLinklink(int row, int column)Returns the link to use on a given row and column.MarkerTypemarkerType(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 Detail
-
WStandardChartProxyModel
public WStandardChartProxyModel(WAbstractItemModel sourceModel)
Creates a newWStandardChartProxyModelthat wraps the given source model.
-
-
Method Detail
-
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:
WAbstractItemModel.getData(WModelIndex index, ItemDataRole role)
-
getDisplayData
public WString getDisplayData(int row, int column)
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:
WAbstractItemModel.getData(WModelIndex index, ItemDataRole role)
-
getHeaderData
public WString getHeaderData(int column)
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:
WAbstractItemModel.getHeaderData(int section, Orientation orientation, ItemDataRole role)
-
getToolTip
public WString getToolTip(int row, int column)
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:
WAbstractItemModel.getData(WModelIndex index, ItemDataRole role)
-
flags
public java.util.EnumSet<ItemFlag> flags(int row, int column)
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:
WModelIndex.getFlags()
-
link
public WLink link(int row, int column)
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:
WAbstractItemModel.getData(WModelIndex index, ItemDataRole role)
-
getMarkerPenColor
public WColor getMarkerPenColor(int row, int column)
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:
WAbstractItemModel.getData(WModelIndex index, ItemDataRole role)
-
getMarkerBrushColor
public WColor getMarkerBrushColor(int row, int column)
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:
WAbstractItemModel.getData(WModelIndex index, ItemDataRole role)
-
markerType
public MarkerType markerType(int row, int column)
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:
WAbstractItemModel.getData(WModelIndex index, ItemDataRole role)
-
getBarPenColor
public WColor getBarPenColor(int row, int column)
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:
WAbstractItemModel.getData(WModelIndex index, ItemDataRole role)
-
getBarBrushColor
public WColor getBarBrushColor(int row, int column)
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:
WAbstractItemModel.getData(WModelIndex index, ItemDataRole role)
-
getMarkerScaleFactor
public java.lang.Double getMarkerScaleFactor(int row, int column)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:
WAbstractItemModel.getData(WModelIndex index, ItemDataRole role)
-
getColumnCount
public int getColumnCount()
Returns the number of columns.- Specified by:
getColumnCountin classWAbstractChartModel- See Also:
WAbstractItemModel.getColumnCount(WModelIndex parent)
-
getRowCount
public int getRowCount()
Returns the number of rows.- Specified by:
getRowCountin classWAbstractChartModel- See Also:
WAbstractItemModel.getRowCount(WModelIndex parent)
-
getSourceModel
public WAbstractItemModel getSourceModel()
Returns the wrapped source model.
-
-