1 /* 2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef CHART_AXIS_H 6 #define CHART_AXIS_H 7 8 #include <Rect.h> 9 10 #include "chart/ChartDefs.h" 11 12 13 class BView; 14 class ChartDataRange; 15 16 17 class ChartAxis { 18 public: 19 virtual ~ChartAxis(); 20 21 virtual void SetLocation(ChartAxisLocation location) = 0; 22 virtual void SetRange(const ChartDataRange& range) = 0; 23 virtual void SetFrame(BRect frame) = 0; 24 virtual BSize PreferredSize(BView* view, BSize maxSize) = 0; 25 virtual void Render(BView* view, BRect updateRect) = 0; 26 }; 27 28 29 #endif // CHART_AXIS_H 30