Constructor Summary |
---|
TimeLineHelper(shape)
TimeLineHelper. |
Property Getters/Setters Summary | ||
---|---|---|
void | setArrowHead(value) | |
ArrowHead of timeline shape
|
||
void | setBeginWeek(value) | |
Begin week of timeline shape
|
||
void | setDateFormatForBE(value) | |
DateFormat for start and finish of timeline shape
|
||
void | setDateFormatForIntm(value) | |
DateFormat for Intm of timeline shape
|
||
void | setDateFormatStringForBE(value) | |
DateFormat String for start and finish of timeline shape
|
||
void | setDateFormatStringForIntm(value) | |
DateFormat String for Intm of timeline shape
|
||
void | setFiscalStart(value) | |
First day of fiscal year
|
||
void | setAutoUpdate(value) | |
whether to update data for markers (milestones, intervals) as they are moved on timeline
|
||
void | setDisplayBE(value) | |
whether to display Begin and End dates on timeline
|
||
void | setDisplayIntm(value) | |
whether to display interim date/time ticks on timeline
|
||
void | setDisplayIntmDates(value) | |
whether to display interim dates on interim ticks
|
||
void | setTimeLineType(value) | |
Begin week of timeline shape
|
||
method | getTimePeriodFinish() | |
method | setTimePeriodFinish(value) | |
Time Period for finish of timeline shape | ||
method | getTimePeriodStart() | |
method | setTimePeriodStart(value) | |
Time Period for start of timeline shape | ||
method | getTimeScale() | |
method | setTimeScale(value) | |
scale of timeline shape |
Method Summary | ||
---|---|---|
static method | getDoubleStringFromDateTime(dateTime) | |
Convert the date time to double value.
|
||
static method | getWeekEnd(startDate, weekStart) | |
getweekstart
|
||
method | refreshTimeLine() | |
Refresh time of timeline shapes
|
setFiscalStart(value)
DateTime getTimePeriodStart() / setTimePeriodStart(value)
DateTime getTimePeriodFinish() / setTimePeriodFinish(value)
int getTimeScale() / setTimeScale(value)
setArrowHead(value)
setBeginWeek(value)
setTimeLineType(value)
setDisplayBE(value)
setDisplayIntm(value)
setDisplayIntmDates(value)
setAutoUpdate(value)
setDateFormatForIntm(value)
Value | Format String |
0 | dddd, yyyy-M-d |
1 | yyyy-MM-dd |
2 | yy-MMM-d |
3 | yyyy/M/d |
4 | yy-MMM.-d |
5 | d MMMM yyyy |
6 | yy-M |
7 | MMM-yy |
8 | MMMM d, yyyy |
9 | MMM d, yyyy |
10 | M-d-yy |
11 | M-d |
12 | d MMMM, yyyy |
13 | d MMM, yyyy |
14 | d-M-yy |
15 | d-M |
16 | yy-M-d |
17 | yyyy-M-d |
18 | M-yy |
19 | M-yyyy |
20 | MMMM yyyy |
21 | MMMM yy |
22 | MMM yyyy |
23 | MMM yy |
24 | yy |
25 | yyyy |
26 | d |
27 | MMMM |
28 | MMM |
29 | M |
30 | MM/dd/yyyy |
setDateFormatStringForIntm(value)
setDateFormatForBE(value)
Value | Format String |
0 | dddd, yyyy-M-d |
1 | yyyy-MM-dd |
2 | yy-MMM-d |
3 | yyyy/M/d |
4 | yy-MMM.-d |
5 | d MMMM yyyy |
6 | yy-M |
7 | MMM-yy |
8 | MMMM d, yyyy |
9 | MMM d, yyyy |
10 | M-d-yy |
11 | M-d |
12 | d MMMM, yyyy |
13 | d MMM, yyyy |
14 | d-M-yy |
15 | d-M |
16 | yy-M-d |
17 | yyyy-M-d |
18 | M-yy |
19 | M-yyyy |
20 | MMMM yyyy |
21 | MMMM yy |
22 | MMM yyyy |
23 | MMM yy |
24 | yy |
25 | yyyy |
26 | d |
27 | MMMM |
28 | MMM |
29 | M |
30 | MM/dd/yyyy |
setDateFormatStringForBE(value)
refreshTimeLine()
Example:
var aspose = aspose || {}; aspose.diagram = require("aspose.diagram"); diagram = new aspose.diagram.Diagram("DrawingTimeLine.vsdx"); shapeid = 1; // Get timeline shape timeline = diagram.getPages().getPage("Page-1").getShapes().getShape(shapeid); // Initialize TimeLineHlper object timelineHelper = new aspose.diagram.TimeLineHelper(timeline); // Set start time timelineHelper.setTimePeriodStart(new aspose.diagram.DateTime(2014, 12, 21)); // Set end time timelineHelper.setTimePeriodFinish(new aspose.diagram.DateTime(2015, 2, 19)); // Set date format timelineHelper.setDateFormatForBE(21); // revive milestones on the timeline timelineHelper.refreshTimeLine(); diagram.save("out-RefreshTimeLine.vsdx", aspose.diagram.SaveFileFormat.VSDX);
static DateTime getWeekEnd(startDate, weekStart)
startDate: DateTime
- weekStart: int
- (0sunday 1monday 2 3 4 5 6)static String getDoubleStringFromDateTime(dateTime)
dateTime: DateTime
- The date time.