Aspose.Tasks for C++
BarStyle.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="BarStyle.cs" company="Aspose Pty Ltd">
4 // Copyright (c) 2002-2024 Aspose Pty Ltd. All Rights Reserved.
5 // </copyright>
6 //-----------------------------------------------------------------------
7 
8 #include <system/string.h>
9 #include <drawing/color.h>
10 
11 #include "aspose.tasks.cpp/Visualization/View/Styles/TaskBarTextConverter.h"
12 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
13 
14 namespace Aspose
15 {
16 namespace Foundation
17 {
18 namespace Drawing
19 {
20 class DrColor;
21 } // namespace Drawing
22 } // namespace Foundation
23 namespace Tasks
24 {
25 enum class Field;
26 class Task;
27 namespace Visualization
28 {
29 class ApsLink;
30 class ApsTask;
31 enum class BarItemType;
32 enum class BarShape;
33 namespace Charting
34 {
35 class BarSeries;
36 class ColumnSeries;
37 } // namespace Charting
38 class GanttChartBarStylesManager;
39 enum class Shape;
40 class TextStyle;
41 } // namespace Visualization
42 } // namespace Tasks
43 } // namespace Aspose
44 namespace System
45 {
46 namespace Collections
47 {
48 namespace Generic
49 {
50 template <typename> class List;
51 } // namespace Generic
52 } // namespace Collections
53 } // namespace System
54 
55 namespace Aspose {
56 
57 namespace Tasks {
58 
59 namespace Visualization {
60 
61 /// <summary>
62 /// Change the visual style of the bar for the item in the project view.
63 /// </summary>
64 class ASPOSE_TASKS_SHARED_CLASS BarStyle : public System::Object
65 {
66  typedef BarStyle ThisType;
67  typedef System::Object BaseType;
68 
69  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
70  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
71 
72  friend class Aspose::Tasks::Visualization::Charting::BarSeries;
73  friend class Aspose::Tasks::Visualization::Charting::ColumnSeries;
74  friend class Aspose::Tasks::Visualization::GanttChartBarStylesManager;
75  friend class Aspose::Tasks::Visualization::ApsLink;
76  friend class Aspose::Tasks::Visualization::ApsTask;
77 
78 public:
79 
80  /// <summary>
81  /// Gets <see cref="Color"></see> of the bar style.
82  /// </summary>
83  ASPOSE_TASKS_SHARED_API System::Drawing::Color get_BarColor() const;
84  /// <summary>
85  /// Sets <see cref="Color"></see> of the bar style.
86  /// </summary>
87  ASPOSE_TASKS_SHARED_API void set_BarColor(System::Drawing::Color value);
88  /// <summary>
89  /// Gets <see cref="Color"></see> of the shape at the beginning of the bar.
90  /// </summary>
91  ASPOSE_TASKS_SHARED_API System::Drawing::Color get_StartShapeColor() const;
92  /// <summary>
93  /// Sets <see cref="Color"></see> of the shape at the beginning of the bar.
94  /// </summary>
95  ASPOSE_TASKS_SHARED_API void set_StartShapeColor(System::Drawing::Color value);
96  /// <summary>
97  /// Gets <see cref="Color"></see> of the shape at the end of the bar.
98  /// </summary>
99  ASPOSE_TASKS_SHARED_API System::Drawing::Color get_EndShapeColor() const;
100  /// <summary>
101  /// Sets <see cref="Color"></see> of the shape at the end of the bar.
102  /// </summary>
103  ASPOSE_TASKS_SHARED_API void set_EndShapeColor(System::Drawing::Color value);
104  /// <summary>
105  /// Gets <see cref="BarItemType"></see> of the bar style.
106  /// </summary>
107  ASPOSE_TASKS_SHARED_API BarItemType get_ItemType() const;
108  /// <summary>
109  /// Sets <see cref="BarItemType"></see> of the bar style.
110  /// </summary>
111  ASPOSE_TASKS_SHARED_API void set_ItemType(BarItemType value);
112  /// <summary>
113  /// Gets <see cref="BarShape"></see> of the bar style.
114  /// </summary>
115  ASPOSE_TASKS_SHARED_API Aspose::Tasks::Visualization::BarShape get_BarShape() const;
116  /// <summary>
117  /// Sets <see cref="BarShape"></see> of the bar style.
118  /// </summary>
119  ASPOSE_TASKS_SHARED_API void set_BarShape(Aspose::Tasks::Visualization::BarShape value);
120  /// <summary>
121  /// Gets <see cref="Shape"></see> at the beginning of the bar.
122  /// </summary>
123  ASPOSE_TASKS_SHARED_API Shape get_StartShape() const;
124  /// <summary>
125  /// Sets <see cref="Shape"></see> at the beginning of the bar.
126  /// </summary>
127  ASPOSE_TASKS_SHARED_API void set_StartShape(Shape value);
128  /// <summary>
129  /// Gets <see cref="Shape"></see> at the end of the bar.
130  /// </summary>
131  ASPOSE_TASKS_SHARED_API Shape get_EndShape() const;
132  /// <summary>
133  /// Sets <see cref="Shape"></see> at the end of the bar.
134  /// </summary>
135  ASPOSE_TASKS_SHARED_API void set_EndShape(Shape value);
136  /// <summary>
137  /// Gets style of the bar's text.
138  /// </summary>
139  ASPOSE_TASKS_SHARED_API const System::SharedPtr<Aspose::Tasks::Visualization::TextStyle>& get_TextStyle() const;
140  /// <summary>
141  /// Sets style of the bar's text.
142  /// </summary>
143  ASPOSE_TASKS_SHARED_API void set_TextStyle(const System::SharedPtr<Aspose::Tasks::Visualization::TextStyle>& value);
144  /// <summary>
145  /// Gets user-defined converter to get text to render on the left of the task's bar. Overrides the value of <see cref="LeftField"></see> property.
146  /// </summary>
147  ASPOSE_TASKS_SHARED_API TaskBarTextConverter get_LeftBarTextConverter() const;
148  /// <summary>
149  /// Sets user-defined converter to get text to render on the left of the task's bar. Overrides the value of <see cref="LeftField"></see> property.
150  /// </summary>
151  ASPOSE_TASKS_SHARED_API void set_LeftBarTextConverter(TaskBarTextConverter value);
152  /// <summary>
153  /// Gets user-defined converter to get text to render on the top of the task's bar. Overrides the value of <see cref="TopField"></see> property.
154  /// </summary>
155  ASPOSE_TASKS_SHARED_API TaskBarTextConverter get_TopBarTextConverter() const;
156  /// <summary>
157  /// Sets user-defined converter to get text to render on the top of the task's bar. Overrides the value of <see cref="TopField"></see> property.
158  /// </summary>
159  ASPOSE_TASKS_SHARED_API void set_TopBarTextConverter(TaskBarTextConverter value);
160  /// <summary>
161  /// Gets user-defined converter to get text to render on the right of the task's bar. Overrides the value of <see cref="RightField"></see> property.
162  /// </summary>
163  ASPOSE_TASKS_SHARED_API TaskBarTextConverter get_RightBarTextConverter() const;
164  /// <summary>
165  /// Sets user-defined converter to get text to render on the right of the task's bar. Overrides the value of <see cref="RightField"></see> property.
166  /// </summary>
167  ASPOSE_TASKS_SHARED_API void set_RightBarTextConverter(TaskBarTextConverter value);
168  /// <summary>
169  /// Gets user-defined converter to get text to render on the bottom of the task's bar. Overrides the value of <see cref="BottomField"></see> property.
170  /// </summary>
171  ASPOSE_TASKS_SHARED_API TaskBarTextConverter get_BottomBarTextConverter() const;
172  /// <summary>
173  /// Sets user-defined converter to get text to render on the bottom of the task's bar. Overrides the value of <see cref="BottomField"></see> property.
174  /// </summary>
175  ASPOSE_TASKS_SHARED_API void set_BottomBarTextConverter(TaskBarTextConverter value);
176  /// <summary>
177  /// Gets user-defined converter to get text to render inside of the task's bar. Overrides the value of <see cref="InsideField"></see> property.
178  /// </summary>
179  ASPOSE_TASKS_SHARED_API TaskBarTextConverter get_InsideBarTextConverter() const;
180  /// <summary>
181  /// Sets user-defined converter to get text to render inside of the task's bar. Overrides the value of <see cref="InsideField"></see> property.
182  /// </summary>
183  ASPOSE_TASKS_SHARED_API void set_InsideBarTextConverter(TaskBarTextConverter value);
184  /// <summary>
185  /// Gets a field to be displayed on the left of the bar.
186  /// </summary>
187  ASPOSE_TASKS_SHARED_API Field get_LeftField() const;
188  /// <summary>
189  /// Sets a field to be displayed on the left of the bar.
190  /// </summary>
191  ASPOSE_TASKS_SHARED_API void set_LeftField(Field value);
192  /// <summary>
193  /// Gets a field to be displayed on the top of the bar.
194  /// </summary>
195  ASPOSE_TASKS_SHARED_API Field get_TopField() const;
196  /// <summary>
197  /// Sets a field to be displayed on the top of the bar.
198  /// </summary>
199  ASPOSE_TASKS_SHARED_API void set_TopField(Field value);
200  /// <summary>
201  /// Gets a field to be displayed on the right of the bar.
202  /// </summary>
203  ASPOSE_TASKS_SHARED_API Field get_RightField() const;
204  /// <summary>
205  /// Sets a field to be displayed on the right of the bar.
206  /// </summary>
207  ASPOSE_TASKS_SHARED_API void set_RightField(Field value);
208  /// <summary>
209  /// Gets a field to be displayed on the bottom of the bar.
210  /// </summary>
211  ASPOSE_TASKS_SHARED_API Field get_BottomField() const;
212  /// <summary>
213  /// Sets a field to be displayed on the bottom of the bar.
214  /// </summary>
215  ASPOSE_TASKS_SHARED_API void set_BottomField(Field value);
216  /// <summary>
217  /// Gets a field to be displayed inside of the bar.
218  /// </summary>
219  ASPOSE_TASKS_SHARED_API Field get_InsideField() const;
220  /// <summary>
221  /// Sets a field to be displayed inside of the bar.
222  /// </summary>
223  ASPOSE_TASKS_SHARED_API void set_InsideField(Field value);
224 
225  /// <summary>
226  /// Initializes a new instance of the <see cref="BarStyle"></see> class.
227  /// </summary>
228  ASPOSE_TASKS_SHARED_API BarStyle();
229 
230 protected:
231 
232  ASPOSE_TASKS_SHARED_API System::SharedPtr<Aspose::Foundation::Drawing::DrColor> get_DrColor();
233 
234  static ASPOSE_TASKS_SHARED_API System::SharedPtr<BarStyle> GetBarStyle(const System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<BarStyle>>>& barStyles, BarItemType item);
235  #ifdef ASPOSE_GET_SHARED_MEMBERS
236  ASPOSE_TASKS_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
237  #endif
238 
239 
240 private:
241 
242  System::Drawing::Color pr_BarColor;
243  System::Drawing::Color pr_StartShapeColor;
244  System::Drawing::Color pr_EndShapeColor;
245  BarItemType pr_ItemType;
246  Aspose::Tasks::Visualization::BarShape pr_BarShape;
247  Shape pr_StartShape;
248  Shape pr_EndShape;
249  System::SharedPtr<Aspose::Tasks::Visualization::TextStyle> pr_TextStyle;
250  TaskBarTextConverter pr_LeftBarTextConverter;
251  TaskBarTextConverter pr_TopBarTextConverter;
252  TaskBarTextConverter pr_RightBarTextConverter;
253  TaskBarTextConverter pr_BottomBarTextConverter;
254  TaskBarTextConverter pr_InsideBarTextConverter;
255  Field pr_LeftField;
256  Field pr_TopField;
257  Field pr_RightField;
258  Field pr_BottomField;
259  Field pr_InsideField;
260 
261 };
262 
263 } // namespace Visualization
264 } // namespace Tasks
265 } // namespace Aspose
266 
267 
Change the visual style of the bar for the item in the project view.
Definition: BarStyle.h:65
TaskBarTextConverter get_RightBarTextConverter() const
Gets user-defined converter to get text to render on the right of the task's bar. Overrides the value...
const System::SharedPtr< Aspose::Tasks::Visualization::TextStyle > & get_TextStyle() const
Gets style of the bar's text.
void set_InsideField(Field value)
Sets a field to be displayed inside of the bar.
Field get_InsideField() const
Gets a field to be displayed inside of the bar.
void set_StartShapeColor(System::Drawing::Color value)
Sets Color of the shape at the beginning of the bar.
System::Drawing::Color get_BarColor() const
Gets Color of the bar style.
void set_BottomBarTextConverter(TaskBarTextConverter value)
Sets user-defined converter to get text to render on the bottom of the task's bar....
Shape get_StartShape() const
Gets Shape at the beginning of the bar.
void set_BarColor(System::Drawing::Color value)
Sets Color of the bar style.
void set_EndShapeColor(System::Drawing::Color value)
Sets Color of the shape at the end of the bar.
TaskBarTextConverter get_TopBarTextConverter() const
Gets user-defined converter to get text to render on the top of the task's bar. Overrides the value o...
BarItemType get_ItemType() const
Gets BarItemType of the bar style.
void set_ItemType(BarItemType value)
Sets BarItemType of the bar style.
void set_BarShape(Aspose::Tasks::Visualization::BarShape value)
Sets BarShape of the bar style.
BarStyle()
Initializes a new instance of the BarStyle class.
Field get_LeftField() const
Gets a field to be displayed on the left of the bar.
void set_LeftField(Field value)
Sets a field to be displayed on the left of the bar.
void set_EndShape(Shape value)
Sets Shape at the end of the bar.
Aspose::Tasks::Visualization::BarShape get_BarShape() const
Gets BarShape of the bar style.
void set_TextStyle(const System::SharedPtr< Aspose::Tasks::Visualization::TextStyle > &value)
Sets style of the bar's text.
Field get_RightField() const
Gets a field to be displayed on the right of the bar.
void set_RightField(Field value)
Sets a field to be displayed on the right of the bar.
void set_InsideBarTextConverter(TaskBarTextConverter value)
Sets user-defined converter to get text to render inside of the task's bar. Overrides the value of In...
TaskBarTextConverter get_LeftBarTextConverter() const
Gets user-defined converter to get text to render on the left of the task's bar. Overrides the value ...
void set_StartShape(Shape value)
Sets Shape at the beginning of the bar.
Field get_TopField() const
Gets a field to be displayed on the top of the bar.
void set_LeftBarTextConverter(TaskBarTextConverter value)
Sets user-defined converter to get text to render on the left of the task's bar. Overrides the value ...
void set_TopField(Field value)
Sets a field to be displayed on the top of the bar.
TaskBarTextConverter get_InsideBarTextConverter() const
Gets user-defined converter to get text to render inside of the task's bar. Overrides the value of In...
void set_TopBarTextConverter(TaskBarTextConverter value)
Sets user-defined converter to get text to render on the top of the task's bar. Overrides the value o...
Field get_BottomField() const
Gets a field to be displayed on the bottom of the bar.
TaskBarTextConverter get_BottomBarTextConverter() const
Gets user-defined converter to get text to render on the bottom of the task's bar....
System::Drawing::Color get_EndShapeColor() const
Gets Color of the shape at the end of the bar.
System::Drawing::Color get_StartShapeColor() const
Gets Color of the shape at the beginning of the bar.
void set_RightBarTextConverter(TaskBarTextConverter value)
Sets user-defined converter to get text to render on the right of the task's bar. Overrides the value...
void set_BottomField(Field value)
Sets a field to be displayed on the bottom of the bar.
Shape get_EndShape() const
Gets Shape at the end of the bar.
Definition: Asn.h:13