LibreOffice Module sc (master) 1
|
Render a provided sparkline into the input rectangle. More...
#include <SparklineRenderer.hxx>
Public Member Functions | |
SparklineRenderer (ScDocument &rDocument) | |
void | render (std::shared_ptr< sc::Sparkline > const &pSparkline, vcl::RenderContext &rRenderContext, tools::Rectangle const &rRectangle, tools::Long nOneX, tools::Long nOneY, double fScaleX, double fScaleY) |
Private Member Functions | |
void | createMarker (std::vector< SparklineMarker > &rMarkers, double x, double y, Color const &rColor) |
void | drawLine (vcl::RenderContext &rRenderContext, tools::Rectangle const &rRectangle, SparklineValues const &rSparklineValues, sc::SparklineAttributes const &rAttributes) |
void | drawColumn (vcl::RenderContext &rRenderContext, tools::Rectangle const &rRectangle, SparklineValues const &rSparklineValues, sc::SparklineAttributes const &rAttributes) |
bool | isCellHidden (ScAddress const &rAddress) |
Static Private Member Functions | |
static void | setFillAndLineColor (vcl::RenderContext &rRenderContext, sc::SparklineAttributes const &rAttributes, double nValue, size_t nValueIndex, SparklineValues const &rSparklineValues) |
Private Attributes | |
ScDocument & | mrDocument |
tools::Long | mnOneX |
tools::Long | mnOneY |
double | mfScaleX |
double | mfScaleY |
Render a provided sparkline into the input rectangle.
Definition at line 236 of file SparklineRenderer.hxx.
|
inline |
Definition at line 484 of file SparklineRenderer.hxx.
|
inlineprivate |
Definition at line 246 of file SparklineRenderer.hxx.
References basegfx::utils::createPolygonFromRect(), mfScaleX, mfScaleY, mnOneX, mnOneY, x, and y.
Referenced by drawLine().
|
inlineprivate |
Definition at line 404 of file SparklineRenderer.hxx.
References basegfx::B2DPolygon::append(), basegfx::utils::createPolygonFromRect(), sc::Custom, OutputDevice::DrawPolygon(), OutputDevice::DrawPolyLineDirect(), sc::SparklineAttributes::getColorAxis(), tools::Rectangle::GetHeight(), sc::SparklineAttributes::getManualMax(), sc::SparklineAttributes::getManualMin(), sc::SparklineAttributes::getMaxAxisType(), sc::SparklineAttributes::getMinAxisType(), sc::SparklineValues::getValuesList(), tools::Rectangle::GetWidth(), tools::Rectangle::Left(), sc::SparklineValues::mfMaximum, sc::SparklineValues::mfMinimum, mfScaleX, nValue, setFillAndLineColor(), OutputDevice::SetLineColor(), sc::SparklineAttributes::shouldDisplayXAxis(), tools::Rectangle::Top(), basegfx::B2DPolygon::transform(), basegfx::B2DHomMatrix::translate(), x, and y.
Referenced by render().
|
inlineprivate |
Definition at line 258 of file SparklineRenderer.hxx.
References basegfx::B2DPolygon::append(), createMarker(), sc::Custom, OutputDevice::DrawPolygon(), OutputDevice::DrawPolyLineDirect(), sc::SparklineAttributes::getColorAxis(), sc::SparklineAttributes::getColorFirst(), sc::SparklineAttributes::getColorHigh(), sc::SparklineAttributes::getColorLast(), sc::SparklineAttributes::getColorLow(), sc::SparklineAttributes::getColorMarkers(), sc::SparklineAttributes::getColorNegative(), sc::SparklineAttributes::getColorSeries(), tools::Rectangle::GetHeight(), sc::SparklineAttributes::getLineWeight(), sc::SparklineAttributes::getManualMax(), sc::SparklineAttributes::getManualMin(), sc::SparklineAttributes::getMaxAxisType(), sc::SparklineAttributes::getMinAxisType(), sc::SparklineValues::getValuesList(), tools::Rectangle::GetWidth(), sc::SparklineAttributes::isFirst(), sc::SparklineAttributes::isHigh(), sc::SparklineAttributes::isLast(), sc::SparklineAttributes::isLow(), sc::SparklineAttributes::isMarkers(), sc::SparklineAttributes::isNegative(), tools::Rectangle::Left(), sc::SparklineValues::mfMaximum, sc::SparklineValues::mfMinimum, mfScaleX, sc::SparklineValues::mnFirstIndex, sc::SparklineValues::mnLastIndex, nValue, basegfx::Round, OutputDevice::SetFillColor(), OutputDevice::SetLineColor(), sc::SparklineAttributes::shouldDisplayXAxis(), sc::SparklineValue::Skip, tools::Rectangle::Top(), basegfx::B2DHomMatrix::translate(), x, and y.
Referenced by render().
|
inlineprivate |
Definition at line 477 of file SparklineRenderer.hxx.
References ScAddress::Col(), ScDocument::ColHidden(), mrDocument, ScAddress::Row(), ScDocument::RowHidden(), and ScAddress::Tab().
Referenced by render().
|
inline |
Definition at line 493 of file SparklineRenderer.hxx.
References sc::SparklineValues::add(), CELLTYPE_NONE, sc::Column, sc::SparklineValues::convertToStacked(), drawColumn(), drawLine(), eType, sc::RangeTraverser::first(), sc::Gap, ScDocument::GetCellType(), ScDocument::GetValue(), sc::RangeTraverser::hasNext(), sc::SparklineValue::Interpolate, isCellHidden(), sc::Line, mfScaleX, mfScaleY, mnOneX, mnOneY, mrDocument, sc::RangeTraverser::next(), sc::SparklineValue::None, OutputDevice::Pop(), OutputDevice::Push(), sc::SparklineValues::reverse(), OutputDevice::SetAntialiasing(), OutputDevice::SetClipRegion(), tools::Rectangle::shrink(), sc::SparklineValue::Skip, sc::Span, and sc::Stacked.
Referenced by ScOutputData::DrawSparklines().
|
inlinestaticprivate |
Definition at line 368 of file SparklineRenderer.hxx.
References sc::SparklineAttributes::getColorFirst(), sc::SparklineAttributes::getColorHigh(), sc::SparklineAttributes::getColorLast(), sc::SparklineAttributes::getColorLow(), sc::SparklineAttributes::getColorNegative(), sc::SparklineAttributes::getColorSeries(), sc::SparklineAttributes::isFirst(), sc::SparklineAttributes::isHigh(), sc::SparklineAttributes::isLast(), sc::SparklineAttributes::isLow(), sc::SparklineAttributes::isNegative(), sc::SparklineValues::mfMaximum, sc::SparklineValues::mfMinimum, sc::SparklineValues::mnFirstIndex, sc::SparklineValues::mnLastIndex, nValue, OutputDevice::SetFillColor(), and OutputDevice::SetLineColor().
Referenced by drawColumn().
|
private |
Definition at line 243 of file SparklineRenderer.hxx.
Referenced by createMarker(), drawColumn(), drawLine(), and render().
|
private |
Definition at line 244 of file SparklineRenderer.hxx.
Referenced by createMarker(), and render().
|
private |
Definition at line 240 of file SparklineRenderer.hxx.
Referenced by createMarker(), and render().
|
private |
Definition at line 241 of file SparklineRenderer.hxx.
Referenced by createMarker(), and render().
|
private |
Definition at line 239 of file SparklineRenderer.hxx.
Referenced by isCellHidden(), and render().