------------------------------------------------------------------------------
| 66 | |
| 67 | //------------------------------------------------------------------------------ |
| 68 | bool vtkChartHistogram2D::UpdateLayout(vtkContext2D* painter) |
| 69 | { |
| 70 | this->vtkChartXY::UpdateLayout(painter); |
| 71 | vtkColorLegend* legend = vtkColorLegend::SafeDownCast(this->Legend); |
| 72 | if (legend) |
| 73 | { |
| 74 | legend->SetPosition(vtkRectf(this->Point2[0] + 5, this->Point1[1], |
| 75 | this->Legend->GetSymbolWidth(), this->Point2[1] - this->Point1[1])); |
| 76 | } |
| 77 | this->Legend->Update(); |
| 78 | return true; |
| 79 | } |
| 80 | |
| 81 | //------------------------------------------------------------------------------ |
| 82 | bool vtkChartHistogram2D::Hit(const vtkContextMouseEvent& mouse) |
nothing calls this directly
no test coverage detected