24 #ifndef _vtkQtChartLegend_h
25 #define _vtkQtChartLegend_h
28 #include "vtkQtChartExport.h"
31 class vtkQtChartLegendInternal;
95 void setLocation(LegendLocation
location);
111 void setFlow(ItemFlow flow);
118 int getOffset()
const;
124 virtual QSize
sizeHint()
const {
return this->Bounds;}
129 void drawLegend(QPainter &painter);
133 void locationChanged();
146 void setOffset(
int offset);
152 void insertEntry(
int index);
157 void startEntryRemoval(
int index);
162 void finishEntryRemoval(
int index);
167 void updateEntryText(
int index);
172 void updateEntryVisible(
int index);
180 virtual bool event(QEvent *e);
185 virtual void paintEvent(QPaintEvent *e);
190 virtual void resizeEvent(QResizeEvent *e);
198 virtual void mousePressEvent(QMouseEvent *e);
206 virtual void mouseMoveEvent(QMouseEvent *e);
214 virtual void mouseReleaseEvent(QMouseEvent *e);
218 void calculateSize();
221 void updateMaximum();
224 vtkQtChartLegendInternal *Internal;
226 LegendLocation Location;
ItemFlow getFlow() const
Gets the legend item flow.
Place the legend on the right of the chart.
Place the legend on the top of the chart.
The vtkQtChartLegendModel class stores the data for a chart legend.
The vtkQtChartLegend class displays a chart legend.
LegendLocation getLocation() const
Gets the legend location.
virtual QSize sizeHint() const
Gets the preferred size of the chart legend.