Mobile API Reference  MicroStrategy 2019
RangeLegend.h
Go to the documentation of this file.
1 /*
2  * RangeLegend.h
3  * IPhoneChart
4  *
5  * Created by dong shi on 12/11/10.
6  * Copyright 2010 __MyCompanyName__. All rights reserved.
7  *
8  */
9 
10 
11 #ifndef MSICHART_RANGELEGEND_H
12 #define MSICHART_RANGELEGEND_H
13 
14 #include "Legend.h"
15 #include "ValueAxis.h"
16 #include "RectangleObject.h"
17 namespace MsiChart
18 {
19 
21  {
22  double mMaxAxisVal;
23  double mMinAxisVal;
25  bool mIsAxisOnStrongSide; //Strong means : left(when legend is vertical) or top(when legend is horizontal).
27 
29  {
30  mMaxAxisVal = 50000.0;
31  mMinAxisVal = 0.0;
32  mIsHorizontal = true;
33  mIsAxisOnStrongSide = true;
34  }
35  };
36 
37 
38  class RangeLegend: public Legend
39  {
40 
41  public:
43 
44  RangeLegend(const TripleId& irTripleId, GraphObjectManager* ipManager, Dataset::Ptr iDatasetPtr, Rect2D iArea);
45  ~RangeLegend();
46 
47  virtual void Draw();
48  virtual void GenerateView();
49  virtual void GenerateMapAndList();
50  virtual void GetOptions(Int32 iPropertyId, CComVariant* opValue) const;
51  virtual void GetOptions(Int32 iSeriesId, Int32 iPropertyId, CComVariant* opValue) const;
52 
53 
54 
55 
56 
57  private:
61  void hLoadProperties();
62 
63  private:
64  RangeLengdOptions mOptions;
65  ValueAxis::Ptr mAxisPtr;
66 
67  bool hIsValid();
68  bool hIsVertical();
69  Rect2D hLayout(Rect2D& iorRect);
70  ValueAxis::Ptr hGetAxis(Rect2D& iorRect, Rect2D& iorRectForColorPanel);
71  RectangleObject::Ptr hGetColorPanel(const Rect2D& irRect);
72  };
73 
74 }
75 
76 #endif
77 
Definition: RangeLegend.h:38
GraphFillGradient mFillOptions
Definition: RangeLegend.h:26
virtual void Draw()
RangeLengdOptions()
Definition: RangeLegend.h:28
double mMaxAxisVal
Definition: RangeLegend.h:22
Definition: Dataset.h:198
bool mIsAxisOnStrongSide
Definition: RangeLegend.h:25
Definition: Legend.h:64
#define Int32
Definition: BasicTypes.h:20
MSynch::SmartPtr< RangeLegend > Ptr
Definition: RangeLegend.h:42
virtual void GenerateMapAndList()
Definition: SmartPtr.h:38
virtual void GenerateView()
Definition: ABLPlot.h:21
Definition: RangeLegend.h:20
keep gradient options.
Definition: FormatFill.h:79
Definition: Msi_ccomvariant.h:24
bool mIsHorizontal
Definition: RangeLegend.h:24
double mMinAxisVal
Definition: RangeLegend.h:23
virtual void GetOptions(Int32 iPropertyId, CComVariant *opValue) const
Definition: GraphObjectManager.h:37
Use four Int32 values to represent a 2D rectangle.
Definition: Rect2D.h:25
RangeLegend(const TripleId &irTripleId, GraphObjectManager *ipManager, Dataset::Ptr iDatasetPtr, Rect2D iArea)
Definition: Common.h:397