Constructor Summary |
---|
TimeLineHelper(shape)
TimeLineHelper. |
Property Getters/Setters Summary | ||
---|---|---|
function | setArrowHead(value) | |
ArrowHead of timeline shape | ||
function | setBeginWeek(value) | |
Begin week of timeline shape | ||
function | setDateFormatForBE(value) | |
DateFormat for start and finish of timeline shape | ||
function | setDateFormatForIntm(value) | |
DateFormat for Intm of timeline shape | ||
function | setDateFormatStringForBE(value) | |
DateFormat String for start and finish of timeline shape | ||
function | setDateFormatStringForIntm(value) | |
DateFormat String for Intm of timeline shape | ||
function | setAutoUpdate(value) | |
whether to update data for markers (milestones, intervals) as they are moved on timeline | ||
function | setDisplayBE(value) | |
whether to display Begin and End dates on timeline | ||
function | setDisplayIntm(value) | |
whether to display interim date/time ticks on timeline | ||
function | setDisplayIntmDates(value) | |
whether to display interim dates on interim ticks | ||
function | setTimeLineType(value) | |
Begin week of timeline shape | ||
function | getTimePeriodFinish() | |
Time Period for finish of timeline shape | ||
function | getTimePeriodStart() | |
Time Period for start of timeline shape | ||
function | getTimeScale() | |
function | setTimeScale(value) | |
scale of timeline shape |
Method Summary | ||
---|---|---|
function | refreshTimeLine() | |
Refresh time of timeline shapes |
Constructor Detail |
---|
function TimeLineHelper(shape)
Property Getters/Setters Detail |
---|
getTimePeriodStart : DateTime | |
function getTimePeriodStart() |
getTimePeriodFinish : DateTime | |
function getTimePeriodFinish() |
getTimeScale/setTimeScale : Number | |
function getTimeScale() / function setTimeScale(value) |
setArrowHead : Number | |
function setArrowHead(value) |
setBeginWeek : Number | |
function setBeginWeek(value) |
setTimeLineType : Number | |
function setTimeLineType(value) |
setDisplayBE : boolean | |
function setDisplayBE(value) |
setDisplayIntm : boolean | |
function setDisplayIntm(value) |
setDisplayIntmDates : boolean | |
function setDisplayIntmDates(value) |
setAutoUpdate : boolean | |
function setAutoUpdate(value) |
setDateFormatForIntm : Number | |
function 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 : String | |
function setDateFormatStringForIntm(value) |
setDateFormatForBE : Number | |
function 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 : String | |
function setDateFormatStringForBE(value) |
Method Detail |
---|
refreshTimeLine | |
function 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);