Skip to content

Commit 02559c3

Browse files
Merge pull request #109 from aspose-tasks/tasks-java-api-25.5
25.5 changes
2 parents f816b93 + 6f864f2 commit 02559c3

File tree

7 files changed

+165
-227
lines changed

7 files changed

+165
-227
lines changed

english/java/com.aspose.tasks/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ url: /java/com.aspose.tasks/
128128
| [GroupCriterion](../com.aspose.tasks/groupcriterion) | Represents a criterion in a group definition. |
129129
| [GroupCriterionCollection](../com.aspose.tasks/groupcriterioncollection) | Contains a collection of [GroupCriterion](../com.aspose.tasks/groupcriterion) objects. |
130130
| [GroupOn](../com.aspose.tasks/groupon) | Specifies the type of grouping. |
131-
| [HeaderFooterInfo](../com.aspose.tasks/headerfooterinfo) | Represents header or footer data which is present in views and used for printing. |
131+
| [HeaderFooterInfo](../com.aspose.tasks/headerfooterinfo) | Represents visual content of the header, footer or legend which is used for printing \\ rendering of views. |
132132
| [HorizontalAlignment](../com.aspose.tasks/horizontalalignment) | Specifies how an object or text is horizontally aligned relative to another object. |
133133
| [HorizontalStringAlignment](../com.aspose.tasks/horizontalstringalignment) | Specifies the alignment of a text string relative to its layout rectangle. |
134134
| [HourLabelDisplay](../com.aspose.tasks/hourlabeldisplay) | Specifies how the hour label displays. |

english/java/com.aspose.tasks/calendar/_index.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,17 @@ Calendars are used to define standard working and non-working times. Projects mu
7373
| [getTaskFinishDateFromDuration(Task task, double duration)](#getTaskFinishDateFromDuration-com.aspose.tasks.Task-double-) | Calculates the task finish date and time from its start date, split parts and the work duration. |
7474
| [getUid()](#getUid--) | Gets the unique identifier of the calendar. |
7575
| [getWeekDays()](#getWeekDays--) | Gets WeekDaysCollection for this calendar. |
76+
| [getWorkStart(Date date)](#getWorkStart-java.util.Date-) | Calculates next working time start beginning from the specified date and time. |
7677
| [getWorkWeeks()](#getWorkWeeks--) | Gets WorkWeekCollections object. |
7778
| [getWorkingHours(Date dt)](#getWorkingHours-java.util.Date-) | Returns the amount of working hours at the specified date. |
7879
| [getWorkingHours(Date start, Date finish)](#getWorkingHours-java.util.Date-java.util.Date-) | Return WorkUnit - Start, Finish and Duration of working hours for the specified date time interval. |
80+
| [getWorkingHoursTimeSpan(Date start, Date finish)](#getWorkingHoursTimeSpan-java.util.Date-java.util.Date-) | Returns amount of working hours between the specified dates. |
7981
| [getWorkingTimes(Date dt)](#getWorkingTimes-java.util.Date-) | Returns [WorkingTimeCollection](../../com.aspose.tasks/workingtimecollection) of working times for the specified date. |
8082
| [hashCode()](#hashCode--) | Returns a hash code for the instance of the class. |
8183
| [isBaseCalendar()](#isBaseCalendar--) | Gets a value indicating whether the calendar is a base calendar. |
8284
| [isBaselineCalendar()](#isBaselineCalendar--) | Gets a value indicating whether the calendar is a baseline calendar. |
8385
| [isDayWorking(Date dt)](#isDayWorking-java.util.Date-) | Determines whether the specified day is a working day according to the calendar. |
86+
| [isEmpty()](#isEmpty--) | Returns whether the calendar doesn't have working hours defined. |
8487
| [make24HourCalendar(Calendar calendar)](#make24HourCalendar-com.aspose.tasks.Calendar-) | Makes a given Calendar to be a 24Hour Calendar. 24Hours Calendar is a Calendar in which every day of week is working with Round-the-clock working hours. |
8588
| [makeNightShiftCalendar(Calendar calendar)](#makeNightShiftCalendar-com.aspose.tasks.Calendar-) | Makes a given Calendar as Night Shift Calendar. |
8689
| [makeStandardCalendar(Calendar calendar)](#makeStandardCalendar-com.aspose.tasks.Calendar-) | Creates default standard calendar. |
@@ -299,6 +302,21 @@ Gets WeekDaysCollection for this calendar. The collection of weekdays that defin
299302
300303
**Returns:**
301304
[WeekDayCollection](../../com.aspose.tasks/weekdaycollection) - WeekDaysCollection for this calendar.
305+
### getWorkStart(Date date) {#getWorkStart-java.util.Date-}
306+
```
307+
public final Date getWorkStart(Date date)
308+
```
309+
310+
311+
Calculates next working time start beginning from the specified date and time.
312+
313+
**Parameters:**
314+
| Parameter | Type | Description |
315+
| --- | --- | --- |
316+
| date | java.util.Date | The date and time. |
317+
318+
**Returns:**
319+
java.util.Date - The nearest working time start.
302320
### getWorkWeeks() {#getWorkWeeks--}
303321
```
304322
public final WorkWeekCollection getWorkWeeks()
@@ -340,6 +358,22 @@ Return WorkUnit - Start, Finish and Duration of working hours for the specified
340358
341359
**Returns:**
342360
[WorkUnit](../../com.aspose.tasks/workunit) - Instance of [WorkUnit](../../com.aspose.tasks/workunit) class containing Start, Finish and Duration of working hours.
361+
### getWorkingHoursTimeSpan(Date start, Date finish) {#getWorkingHoursTimeSpan-java.util.Date-java.util.Date-}
362+
```
363+
public final double getWorkingHoursTimeSpan(Date start, Date finish)
364+
```
365+
366+
367+
Returns amount of working hours between the specified dates.
368+
369+
**Parameters:**
370+
| Parameter | Type | Description |
371+
| --- | --- | --- |
372+
| start | java.util.Date | Start date of the interval. |
373+
| finish | java.util.Date | Finish date of the interval. |
374+
375+
**Returns:**
376+
double - Amount of working hours according to the calendar instance.
343377
### getWorkingTimes(Date dt) {#getWorkingTimes-java.util.Date-}
344378
```
345379
public final WorkingTimeCollection getWorkingTimes(Date dt)
@@ -400,6 +434,16 @@ Determines whether the specified day is a working day according to the calendar.
400434
401435
**Returns:**
402436
boolean - True if the day is a working day.
437+
### isEmpty() {#isEmpty--}
438+
```
439+
public boolean isEmpty()
440+
```
441+
442+
443+
Returns whether the calendar doesn't have working hours defined.
444+
445+
**Returns:**
446+
boolean - True if the calendar doesn't have working hours defined.
403447
### make24HourCalendar(Calendar calendar) {#make24HourCalendar-com.aspose.tasks.Calendar-}
404448
```
405449
public static Calendar make24HourCalendar(Calendar calendar)

english/java/com.aspose.tasks/headerfooterinfo/_index.md

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: HeaderFooterInfo
33
second_title: Aspose.Tasks for Java API Reference
4-
description: Represents header or footer data which is present in views and used for printing.
4+
description: Represents visual content of the header footer or legend which is used for printing rendering of views.
55
type: docs
66
weight: 126
77
url: /java/com.aspose.tasks/headerfooterinfo/
@@ -13,7 +13,7 @@ java.lang.Object
1313
public class HeaderFooterInfo
1414
```
1515

16-
Represents header or footer data which is present in views and used for printing.
16+
Represents visual content of the header, footer or legend which is used for printing \\ rendering of views.
1717
## Constructors
1818

1919
| Constructor | Description |
@@ -23,24 +23,24 @@ Represents header or footer data which is present in views and used for printing
2323

2424
| Method | Description |
2525
| --- | --- |
26-
| [getCenteredImage()](#getCenteredImage--) | Gets the centered image to be displayed in the header or footer. |
26+
| [getCenteredImage()](#getCenteredImage--) | Gets the centered image to be displayed in the parent element. |
2727
| [getCenteredImageSize()](#getCenteredImageSize--) | Gets the displayed size of the center image. |
28-
| [getCenteredText()](#getCenteredText--) | Gets the centered text to display in the header or footer . |
29-
| [getLeftImage()](#getLeftImage--) | Gets the left aligned image to be displayed in the header or footer. |
28+
| [getCenteredText()](#getCenteredText--) | Gets the centered text to display in the parent element. |
29+
| [getLeftImage()](#getLeftImage--) | Gets the left aligned image to be displayed in the parent element. |
3030
| [getLeftImageSize()](#getLeftImageSize--) | Gets the displayed size of the left image. |
31-
| [getLeftText()](#getLeftText--) | Gets the left aligned text to display in the header or footer. |
32-
| [getRightImage()](#getRightImage--) | Gets the right aligned image to be displayed in the header or footer. |
31+
| [getLeftText()](#getLeftText--) | Gets the left aligned text to display in the parent element. |
32+
| [getRightImage()](#getRightImage--) | Gets the right aligned image to be displayed in the parent element. |
3333
| [getRightImageSize()](#getRightImageSize--) | Gets the displayed size of the right image. |
34-
| [getRightText()](#getRightText--) | Gets the right aligned text to display in the header or footer. |
35-
| [setCenteredImage(Image value)](#setCenteredImage-java.awt.Image-) | Sets the centered image to be displayed in the header or footer. |
34+
| [getRightText()](#getRightText--) | Gets the right aligned text to display in the parent element. |
35+
| [setCenteredImage(Image value)](#setCenteredImage-java.awt.Image-) | Sets the centered image to be displayed in the parent element. |
3636
| [setCenteredImageSize(Dimension value)](#setCenteredImageSize-java.awt.Dimension-) | Sets the displayed size of the center image. |
37-
| [setCenteredText(String value)](#setCenteredText-java.lang.String-) | Sets the centered text to display in the header or footer . |
38-
| [setLeftImage(Image value)](#setLeftImage-java.awt.Image-) | Sets the left aligned image to be displayed in the header or footer. |
37+
| [setCenteredText(String value)](#setCenteredText-java.lang.String-) | Sets the centered text to display in the parent element. |
38+
| [setLeftImage(Image value)](#setLeftImage-java.awt.Image-) | Sets the left aligned image to be displayed in the parent element. |
3939
| [setLeftImageSize(Dimension value)](#setLeftImageSize-java.awt.Dimension-) | Sets the displayed size of the left image. |
40-
| [setLeftText(String value)](#setLeftText-java.lang.String-) | Sets the left aligned text to display in the header or footer. |
41-
| [setRightImage(Image value)](#setRightImage-java.awt.Image-) | Sets the right aligned image to be displayed in the header or footer. |
40+
| [setLeftText(String value)](#setLeftText-java.lang.String-) | Sets the left aligned text to display in the parent element. |
41+
| [setRightImage(Image value)](#setRightImage-java.awt.Image-) | Sets the right aligned image to be displayed in the parent element. |
4242
| [setRightImageSize(Dimension value)](#setRightImageSize-java.awt.Dimension-) | Sets the displayed size of the right image. |
43-
| [setRightText(String value)](#setRightText-java.lang.String-) | Sets the right aligned text to display in the header or footer. |
43+
| [setRightText(String value)](#setRightText-java.lang.String-) | Sets the right aligned text to display in the parent element. |
4444
### HeaderFooterInfo() {#HeaderFooterInfo--}
4545
```
4646
public HeaderFooterInfo()
@@ -55,10 +55,10 @@ public final Image getCenteredImage()
5555
```
5656

5757

58-
Gets the centered image to be displayed in the header or footer.
58+
Gets the centered image to be displayed in the parent element.
5959

6060
**Returns:**
61-
java.awt.Image - the centered image to be displayed in the header or footer.
61+
java.awt.Image - the centered image to be displayed in the parent element.
6262
### getCenteredImageSize() {#getCenteredImageSize--}
6363
```
6464
public final Dimension getCenteredImageSize()
@@ -75,20 +75,20 @@ public final String getCenteredText()
7575
```
7676

7777

78-
Gets the centered text to display in the header or footer .
78+
Gets the centered text to display in the parent element.
7979

8080
**Returns:**
81-
java.lang.String - the centered text to display in the header or footer .
81+
java.lang.String - the centered text to display in the parent element.
8282
### getLeftImage() {#getLeftImage--}
8383
```
8484
public final Image getLeftImage()
8585
```
8686

8787

88-
Gets the left aligned image to be displayed in the header or footer.
88+
Gets the left aligned image to be displayed in the parent element.
8989

9090
**Returns:**
91-
java.awt.Image - the left aligned image to be displayed in the header or footer.
91+
java.awt.Image - the left aligned image to be displayed in the parent element.
9292
### getLeftImageSize() {#getLeftImageSize--}
9393
```
9494
public final Dimension getLeftImageSize()
@@ -105,20 +105,20 @@ public final String getLeftText()
105105
```
106106

107107

108-
Gets the left aligned text to display in the header or footer.
108+
Gets the left aligned text to display in the parent element.
109109

110110
**Returns:**
111-
java.lang.String - the left aligned text to display in the header or footer.
111+
java.lang.String - the left aligned text to display in the parent element.
112112
### getRightImage() {#getRightImage--}
113113
```
114114
public final Image getRightImage()
115115
```
116116

117117

118-
Gets the right aligned image to be displayed in the header or footer.
118+
Gets the right aligned image to be displayed in the parent element.
119119

120120
**Returns:**
121-
java.awt.Image - the right aligned image to be displayed in the header or footer.
121+
java.awt.Image - the right aligned image to be displayed in the parent element.
122122
### getRightImageSize() {#getRightImageSize--}
123123
```
124124
public final Dimension getRightImageSize()
@@ -135,22 +135,22 @@ public final String getRightText()
135135
```
136136

137137

138-
Gets the right aligned text to display in the header or footer.
138+
Gets the right aligned text to display in the parent element.
139139

140140
**Returns:**
141-
java.lang.String - the right aligned text to display in the header or footer.
141+
java.lang.String - the right aligned text to display in the parent element.
142142
### setCenteredImage(Image value) {#setCenteredImage-java.awt.Image-}
143143
```
144144
public final void setCenteredImage(Image value)
145145
```
146146

147147

148-
Sets the centered image to be displayed in the header or footer.
148+
Sets the centered image to be displayed in the parent element.
149149

150150
**Parameters:**
151151
| Parameter | Type | Description |
152152
| --- | --- | --- |
153-
| value | java.awt.Image | the centered image to be displayed in the header or footer. |
153+
| value | java.awt.Image | the centered image to be displayed in the parent element. |
154154

155155
### setCenteredImageSize(Dimension value) {#setCenteredImageSize-java.awt.Dimension-}
156156
```
@@ -171,25 +171,25 @@ public final void setCenteredText(String value)
171171
```
172172

173173

174-
Sets the centered text to display in the header or footer .
174+
Sets the centered text to display in the parent element.
175175

176176
**Parameters:**
177177
| Parameter | Type | Description |
178178
| --- | --- | --- |
179-
| value | java.lang.String | the centered text to display in the header or footer . |
179+
| value | java.lang.String | the centered text to display in the parent element. |
180180

181181
### setLeftImage(Image value) {#setLeftImage-java.awt.Image-}
182182
```
183183
public final void setLeftImage(Image value)
184184
```
185185

186186

187-
Sets the left aligned image to be displayed in the header or footer.
187+
Sets the left aligned image to be displayed in the parent element.
188188

189189
**Parameters:**
190190
| Parameter | Type | Description |
191191
| --- | --- | --- |
192-
| value | java.awt.Image | the left aligned image to be displayed in the header or footer. |
192+
| value | java.awt.Image | the left aligned image to be displayed in the parent element. |
193193

194194
### setLeftImageSize(Dimension value) {#setLeftImageSize-java.awt.Dimension-}
195195
```
@@ -210,25 +210,25 @@ public final void setLeftText(String value)
210210
```
211211

212212

213-
Sets the left aligned text to display in the header or footer.
213+
Sets the left aligned text to display in the parent element.
214214

215215
**Parameters:**
216216
| Parameter | Type | Description |
217217
| --- | --- | --- |
218-
| value | java.lang.String | the left aligned text to display in the header or footer. |
218+
| value | java.lang.String | the left aligned text to display in the parent element. |
219219

220220
### setRightImage(Image value) {#setRightImage-java.awt.Image-}
221221
```
222222
public final void setRightImage(Image value)
223223
```
224224

225225

226-
Sets the right aligned image to be displayed in the header or footer.
226+
Sets the right aligned image to be displayed in the parent element.
227227

228228
**Parameters:**
229229
| Parameter | Type | Description |
230230
| --- | --- | --- |
231-
| value | java.awt.Image | the right aligned image to be displayed in the header or footer. |
231+
| value | java.awt.Image | the right aligned image to be displayed in the parent element. |
232232

233233
### setRightImageSize(Dimension value) {#setRightImageSize-java.awt.Dimension-}
234234
```
@@ -249,10 +249,10 @@ public final void setRightText(String value)
249249
```
250250

251251

252-
Sets the right aligned text to display in the header or footer.
252+
Sets the right aligned text to display in the parent element.
253253

254254
**Parameters:**
255255
| Parameter | Type | Description |
256256
| --- | --- | --- |
257-
| value | java.lang.String | the right aligned text to display in the header or footer. |
257+
| value | java.lang.String | the right aligned text to display in the parent element. |
258258

english/java/com.aspose.tasks/icalendar/_index.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,13 @@ Represents a calendar abstraction which can be used for various calculations of
2222
| [getStartDateFromFinishAndDuration(Date finish, Duration duration)](#getStartDateFromFinishAndDuration-java.util.Date-com.aspose.tasks.Duration-) | Returns start date based on the specified finish date and duration. |
2323
| [getStartDateFromFinishAndDuration(Date finish, double duration)](#getStartDateFromFinishAndDuration-java.util.Date-double-) | Returns start date based on specified finish date and duration. |
2424
| [getTaskFinishDateFromDuration(Task task, double duration)](#getTaskFinishDateFromDuration-com.aspose.tasks.Task-double-) | Calculates the task finish date and time from its start date, split parts and the work duration. |
25+
| [getWorkStart(Date date)](#getWorkStart-java.util.Date-) | Calculates next working time start beginning from the specified date and time. |
2526
| [getWorkingHours(Date dt)](#getWorkingHours-java.util.Date-) | Returns the amount of working hours at the specified date. |
2627
| [getWorkingHours(Date start, Date finish)](#getWorkingHours-java.util.Date-java.util.Date-) | Return WorkUnit - Start, Finish and Duration of working hours for the specified date time interval. |
28+
| [getWorkingHoursTimeSpan(Date start, Date finish)](#getWorkingHoursTimeSpan-java.util.Date-java.util.Date-) | Returns amount of working hours between the specified dates. |
2729
| [getWorkingTimes(Date dt)](#getWorkingTimes-java.util.Date-) | Returns [WorkingTimeCollection](../../com.aspose.tasks/workingtimecollection) of working times for the specified date. |
2830
| [isDayWorking(Date dt)](#isDayWorking-java.util.Date-) | Determines whether the specified day is a working day according to the calendar. |
31+
| [isEmpty()](#isEmpty--) | Returns whether the calendar doesn't have working hours defined. |
2932
### getFinishDateByStartAndWork(Date start, Duration work) {#getFinishDateByStartAndWork-java.util.Date-com.aspose.tasks.Duration-}
3033
```
3134
public abstract Date getFinishDateByStartAndWork(Date start, Duration work)
@@ -138,6 +141,21 @@ Returns DateTime.MinValue if task is summary, null or its start date is not set.
138141

139142
**Returns:**
140143
java.util.Date - Task's finish date for the given start date and duration.
144+
### getWorkStart(Date date) {#getWorkStart-java.util.Date-}
145+
```
146+
public abstract Date getWorkStart(Date date)
147+
```
148+
149+
150+
Calculates next working time start beginning from the specified date and time.
151+
152+
**Parameters:**
153+
| Parameter | Type | Description |
154+
| --- | --- | --- |
155+
| date | java.util.Date | The date and time. |
156+
157+
**Returns:**
158+
java.util.Date - The nearest working time start.
141159
### getWorkingHours(Date dt) {#getWorkingHours-java.util.Date-}
142160
```
143161
public abstract double getWorkingHours(Date dt)
@@ -169,6 +187,22 @@ Return WorkUnit - Start, Finish and Duration of working hours for the specified
169187

170188
**Returns:**
171189
[WorkUnit](../../com.aspose.tasks/workunit) - Instance of [WorkUnit](../../com.aspose.tasks/workunit) class containing Start, Finish and Duration of working hours.
190+
### getWorkingHoursTimeSpan(Date start, Date finish) {#getWorkingHoursTimeSpan-java.util.Date-java.util.Date-}
191+
```
192+
public abstract double getWorkingHoursTimeSpan(Date start, Date finish)
193+
```
194+
195+
196+
Returns amount of working hours between the specified dates.
197+
198+
**Parameters:**
199+
| Parameter | Type | Description |
200+
| --- | --- | --- |
201+
| start | java.util.Date | Start date of the interval. |
202+
| finish | java.util.Date | Finish date of the interval. |
203+
204+
**Returns:**
205+
double - Amount of working hours according to the calendar instance.
172206
### getWorkingTimes(Date dt) {#getWorkingTimes-java.util.Date-}
173207
```
174208
public abstract WorkingTimeCollection getWorkingTimes(Date dt)
@@ -199,3 +233,13 @@ Determines whether the specified day is a working day according to the calendar.
199233

200234
**Returns:**
201235
boolean - True if the day is a working day.
236+
### isEmpty() {#isEmpty--}
237+
```
238+
public abstract boolean isEmpty()
239+
```
240+
241+
242+
Returns whether the calendar doesn't have working hours defined.
243+
244+
**Returns:**
245+
boolean - True if the calendar doesn't have working hours defined.

0 commit comments

Comments
 (0)