8 #include <system/string.h>
9 #include <system/date_time.h>
12 #include "aspose.tasks.cpp/Visualization/View/DateTimeConverter.h"
13 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
19 namespace Visualization
21 class ApsTimescaleTierBuilder;
22 class ApsTimescaleTiersCommonSettings;
25 enum class HorizontalStringAlignment;
26 enum class TimescaleUnit;
35 namespace Visualization {
40 class ASPOSE_TASKS_SHARED_CLASS
TimescaleTier final :
public System::Object
43 typedef System::Object BaseType;
45 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
46 ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
48 friend class Aspose::Tasks::Visualization::ApsUsagePage;
49 friend class Aspose::Tasks::Visualization::ApsTimescaleTierBuilder;
50 friend class Aspose::Tasks::Visualization::ApsTimescaleTiersCommonSettings;
71 ASPOSE_TASKS_SHARED_API
void set_Count(int32_t value);
75 ASPOSE_TASKS_SHARED_API DateLabel
get_Label()
const;
79 ASPOSE_TASKS_SHARED_API
void set_Label(DateLabel value);
83 ASPOSE_TASKS_SHARED_API HorizontalStringAlignment
get_Alignment()
const;
87 ASPOSE_TASKS_SHARED_API
void set_Alignment(HorizontalStringAlignment value);
108 ASPOSE_TASKS_SHARED_API TimescaleUnit
get_Unit()
const;
113 ASPOSE_TASKS_SHARED_API
void set_Unit(TimescaleUnit value);
135 ASPOSE_TASKS_SHARED_API
float get_TotalDaysInTick();
139 ASPOSE_TASKS_SHARED_API
float get_DaysInUnit();
141 #ifdef ASPOSE_GET_SHARED_MEMBERS
142 ASPOSE_TASKS_SHARED_API
void GetSharedMembers(System::Object::shared_members_type& result)
const override;
149 Aspose::Tasks::Visualization::DateTimeConverter pr_DateTimeConverter;
151 HorizontalStringAlignment pr_Alignment;
152 bool pr_UsesFiscalYear;
154 TimescaleUnit pr_Unit;
164 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(
TimescaleTier, CODEPORTING_ARGS(TimescaleUnit unit));
Represents a single tier of the timescale on a Gantt Chart.
Definition: TimescaleTier.h:41
int32_t get_Count() const
Gets the time unit interval in which to show labels for the tier. The default value is 1.
bool get_ShowTicks() const
Gets a value indicating whether whether to show tick marks that separate time periods in the tier.
void set_Alignment(HorizontalStringAlignment value)
Sets how to align labels within each time period of the tier (HorizontalStringAlignment).
DateLabel get_Label() const
Gets date label DateLabel for the timescale tier.
HorizontalStringAlignment get_Alignment() const
Gets how to align labels within each time period of the tier (HorizontalStringAlignment).
Aspose::Tasks::Visualization::DateTimeConverter get_DateTimeConverter() const
Gets a callback function for handling rendering date tick in this tier.
void set_UsesFiscalYear(bool value)
Sets a value indicating whether to base the tier labels on the fiscal year.
bool get_UsesFiscalYear() const
Gets a value indicating whether to base the tier labels on the fiscal year.
void set_Label(DateLabel value)
Sets date label DateLabel for the timescale tier.
void set_ShowTicks(bool value)
Sets a value indicating whether whether to show tick marks that separate time periods in the tier.
TimescaleUnit get_Unit() const
Gets timescale unit TimescaleUnit for the timescale tier. The default value is Days.
void set_DateTimeConverter(Aspose::Tasks::Visualization::DateTimeConverter value)
Sets a callback function for handling rendering date tick in this tier.
TimescaleTier()
Initializes a new instance of the TimescaleTier class.
void set_Unit(TimescaleUnit value)
Sets timescale unit TimescaleUnit for the timescale tier. The default value is Days.
void set_Count(int32_t value)
Sets the time unit interval in which to show labels for the tier. The default value is 1.
TimescaleTier(TimescaleUnit unit, int32_t count)
Initializes a new instance of the TimescaleTier class.