Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion english/java/com.aspose.tasks/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ url: /java/com.aspose.tasks/
| [GroupCriterion](../com.aspose.tasks/groupcriterion) | Represents a criterion in a group definition. |
| [GroupCriterionCollection](../com.aspose.tasks/groupcriterioncollection) | Contains a collection of [GroupCriterion](../com.aspose.tasks/groupcriterion) objects. |
| [GroupOn](../com.aspose.tasks/groupon) | Specifies the type of grouping. |
| [HeaderFooterInfo](../com.aspose.tasks/headerfooterinfo) | Represents header or footer data which is present in views and used for printing. |
| [HeaderFooterInfo](../com.aspose.tasks/headerfooterinfo) | Represents visual content of the header, footer or legend which is used for printing \\ rendering of views. |
| [HorizontalAlignment](../com.aspose.tasks/horizontalalignment) | Specifies how an object or text is horizontally aligned relative to another object. |
| [HorizontalStringAlignment](../com.aspose.tasks/horizontalstringalignment) | Specifies the alignment of a text string relative to its layout rectangle. |
| [HourLabelDisplay](../com.aspose.tasks/hourlabeldisplay) | Specifies how the hour label displays. |
Expand Down
44 changes: 44 additions & 0 deletions english/java/com.aspose.tasks/calendar/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,17 @@ Calendars are used to define standard working and non-working times. Projects mu
| [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. |
| [getUid()](#getUid--) | Gets the unique identifier of the calendar. |
| [getWeekDays()](#getWeekDays--) | Gets WeekDaysCollection for this calendar. |
| [getWorkStart(Date date)](#getWorkStart-java.util.Date-) | Calculates next working time start beginning from the specified date and time. |
| [getWorkWeeks()](#getWorkWeeks--) | Gets WorkWeekCollections object. |
| [getWorkingHours(Date dt)](#getWorkingHours-java.util.Date-) | Returns the amount of working hours at the specified date. |
| [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. |
| [getWorkingHoursTimeSpan(Date start, Date finish)](#getWorkingHoursTimeSpan-java.util.Date-java.util.Date-) | Returns amount of working hours between the specified dates. |
| [getWorkingTimes(Date dt)](#getWorkingTimes-java.util.Date-) | Returns [WorkingTimeCollection](../../com.aspose.tasks/workingtimecollection) of working times for the specified date. |
| [hashCode()](#hashCode--) | Returns a hash code for the instance of the class. |
| [isBaseCalendar()](#isBaseCalendar--) | Gets a value indicating whether the calendar is a base calendar. |
| [isBaselineCalendar()](#isBaselineCalendar--) | Gets a value indicating whether the calendar is a baseline calendar. |
| [isDayWorking(Date dt)](#isDayWorking-java.util.Date-) | Determines whether the specified day is a working day according to the calendar. |
| [isEmpty()](#isEmpty--) | Returns whether the calendar doesn't have working hours defined. |
| [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. |
| [makeNightShiftCalendar(Calendar calendar)](#makeNightShiftCalendar-com.aspose.tasks.Calendar-) | Makes a given Calendar as Night Shift Calendar. |
| [makeStandardCalendar(Calendar calendar)](#makeStandardCalendar-com.aspose.tasks.Calendar-) | Creates default standard calendar. |
Expand Down Expand Up @@ -299,6 +302,21 @@ Gets WeekDaysCollection for this calendar. The collection of weekdays that defin

**Returns:**
[WeekDayCollection](../../com.aspose.tasks/weekdaycollection) - WeekDaysCollection for this calendar.
### getWorkStart(Date date) {#getWorkStart-java.util.Date-}
```
public final Date getWorkStart(Date date)
```


Calculates next working time start beginning from the specified date and time.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| date | java.util.Date | The date and time. |

**Returns:**
java.util.Date - The nearest working time start.
### getWorkWeeks() {#getWorkWeeks--}
```
public final WorkWeekCollection getWorkWeeks()
Expand Down Expand Up @@ -340,6 +358,22 @@ Return WorkUnit - Start, Finish and Duration of working hours for the specified

**Returns:**
[WorkUnit](../../com.aspose.tasks/workunit) - Instance of [WorkUnit](../../com.aspose.tasks/workunit) class containing Start, Finish and Duration of working hours.
### getWorkingHoursTimeSpan(Date start, Date finish) {#getWorkingHoursTimeSpan-java.util.Date-java.util.Date-}
```
public final double getWorkingHoursTimeSpan(Date start, Date finish)
```


Returns amount of working hours between the specified dates.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| start | java.util.Date | Start date of the interval. |
| finish | java.util.Date | Finish date of the interval. |

**Returns:**
double - Amount of working hours according to the calendar instance.
### getWorkingTimes(Date dt) {#getWorkingTimes-java.util.Date-}
```
public final WorkingTimeCollection getWorkingTimes(Date dt)
Expand Down Expand Up @@ -400,6 +434,16 @@ Determines whether the specified day is a working day according to the calendar.

**Returns:**
boolean - True if the day is a working day.
### isEmpty() {#isEmpty--}
```
public boolean isEmpty()
```


Returns whether the calendar doesn't have working hours defined.

**Returns:**
boolean - True if the calendar doesn't have working hours defined.
### make24HourCalendar(Calendar calendar) {#make24HourCalendar-com.aspose.tasks.Calendar-}
```
public static Calendar make24HourCalendar(Calendar calendar)
Expand Down
76 changes: 38 additions & 38 deletions english/java/com.aspose.tasks/headerfooterinfo/_index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: HeaderFooterInfo
second_title: Aspose.Tasks for Java API Reference
description: Represents header or footer data which is present in views and used for printing.
description: Represents visual content of the header footer or legend which is used for printing rendering of views.
type: docs
weight: 126
url: /java/com.aspose.tasks/headerfooterinfo/
Expand All @@ -13,7 +13,7 @@ java.lang.Object
public class HeaderFooterInfo
```

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

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

| Method | Description |
| --- | --- |
| [getCenteredImage()](#getCenteredImage--) | Gets the centered image to be displayed in the header or footer. |
| [getCenteredImage()](#getCenteredImage--) | Gets the centered image to be displayed in the parent element. |
| [getCenteredImageSize()](#getCenteredImageSize--) | Gets the displayed size of the center image. |
| [getCenteredText()](#getCenteredText--) | Gets the centered text to display in the header or footer . |
| [getLeftImage()](#getLeftImage--) | Gets the left aligned image to be displayed in the header or footer. |
| [getCenteredText()](#getCenteredText--) | Gets the centered text to display in the parent element. |
| [getLeftImage()](#getLeftImage--) | Gets the left aligned image to be displayed in the parent element. |
| [getLeftImageSize()](#getLeftImageSize--) | Gets the displayed size of the left image. |
| [getLeftText()](#getLeftText--) | Gets the left aligned text to display in the header or footer. |
| [getRightImage()](#getRightImage--) | Gets the right aligned image to be displayed in the header or footer. |
| [getLeftText()](#getLeftText--) | Gets the left aligned text to display in the parent element. |
| [getRightImage()](#getRightImage--) | Gets the right aligned image to be displayed in the parent element. |
| [getRightImageSize()](#getRightImageSize--) | Gets the displayed size of the right image. |
| [getRightText()](#getRightText--) | Gets the right aligned text to display in the header or footer. |
| [setCenteredImage(Image value)](#setCenteredImage-java.awt.Image-) | Sets the centered image to be displayed in the header or footer. |
| [getRightText()](#getRightText--) | Gets the right aligned text to display in the parent element. |
| [setCenteredImage(Image value)](#setCenteredImage-java.awt.Image-) | Sets the centered image to be displayed in the parent element. |
| [setCenteredImageSize(Dimension value)](#setCenteredImageSize-java.awt.Dimension-) | Sets the displayed size of the center image. |
| [setCenteredText(String value)](#setCenteredText-java.lang.String-) | Sets the centered text to display in the header or footer . |
| [setLeftImage(Image value)](#setLeftImage-java.awt.Image-) | Sets the left aligned image to be displayed in the header or footer. |
| [setCenteredText(String value)](#setCenteredText-java.lang.String-) | Sets the centered text to display in the parent element. |
| [setLeftImage(Image value)](#setLeftImage-java.awt.Image-) | Sets the left aligned image to be displayed in the parent element. |
| [setLeftImageSize(Dimension value)](#setLeftImageSize-java.awt.Dimension-) | Sets the displayed size of the left image. |
| [setLeftText(String value)](#setLeftText-java.lang.String-) | Sets the left aligned text to display in the header or footer. |
| [setRightImage(Image value)](#setRightImage-java.awt.Image-) | Sets the right aligned image to be displayed in the header or footer. |
| [setLeftText(String value)](#setLeftText-java.lang.String-) | Sets the left aligned text to display in the parent element. |
| [setRightImage(Image value)](#setRightImage-java.awt.Image-) | Sets the right aligned image to be displayed in the parent element. |
| [setRightImageSize(Dimension value)](#setRightImageSize-java.awt.Dimension-) | Sets the displayed size of the right image. |
| [setRightText(String value)](#setRightText-java.lang.String-) | Sets the right aligned text to display in the header or footer. |
| [setRightText(String value)](#setRightText-java.lang.String-) | Sets the right aligned text to display in the parent element. |
### HeaderFooterInfo() {#HeaderFooterInfo--}
```
public HeaderFooterInfo()
Expand All @@ -55,10 +55,10 @@ public final Image getCenteredImage()
```


Gets the centered image to be displayed in the header or footer.
Gets the centered image to be displayed in the parent element.

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


Gets the centered text to display in the header or footer .
Gets the centered text to display in the parent element.

**Returns:**
java.lang.String - the centered text to display in the header or footer .
java.lang.String - the centered text to display in the parent element.
### getLeftImage() {#getLeftImage--}
```
public final Image getLeftImage()
```


Gets the left aligned image to be displayed in the header or footer.
Gets the left aligned image to be displayed in the parent element.

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


Gets the left aligned text to display in the header or footer.
Gets the left aligned text to display in the parent element.

**Returns:**
java.lang.String - the left aligned text to display in the header or footer.
java.lang.String - the left aligned text to display in the parent element.
### getRightImage() {#getRightImage--}
```
public final Image getRightImage()
```


Gets the right aligned image to be displayed in the header or footer.
Gets the right aligned image to be displayed in the parent element.

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


Gets the right aligned text to display in the header or footer.
Gets the right aligned text to display in the parent element.

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


Sets the centered image to be displayed in the header or footer.
Sets the centered image to be displayed in the parent element.

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

### setCenteredImageSize(Dimension value) {#setCenteredImageSize-java.awt.Dimension-}
```
Expand All @@ -171,25 +171,25 @@ public final void setCenteredText(String value)
```


Sets the centered text to display in the header or footer .
Sets the centered text to display in the parent element.

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

### setLeftImage(Image value) {#setLeftImage-java.awt.Image-}
```
public final void setLeftImage(Image value)
```


Sets the left aligned image to be displayed in the header or footer.
Sets the left aligned image to be displayed in the parent element.

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

### setLeftImageSize(Dimension value) {#setLeftImageSize-java.awt.Dimension-}
```
Expand All @@ -210,25 +210,25 @@ public final void setLeftText(String value)
```


Sets the left aligned text to display in the header or footer.
Sets the left aligned text to display in the parent element.

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

### setRightImage(Image value) {#setRightImage-java.awt.Image-}
```
public final void setRightImage(Image value)
```


Sets the right aligned image to be displayed in the header or footer.
Sets the right aligned image to be displayed in the parent element.

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

### setRightImageSize(Dimension value) {#setRightImageSize-java.awt.Dimension-}
```
Expand All @@ -249,10 +249,10 @@ public final void setRightText(String value)
```


Sets the right aligned text to display in the header or footer.
Sets the right aligned text to display in the parent element.

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

44 changes: 44 additions & 0 deletions english/java/com.aspose.tasks/icalendar/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ Represents a calendar abstraction which can be used for various calculations of
| [getStartDateFromFinishAndDuration(Date finish, Duration duration)](#getStartDateFromFinishAndDuration-java.util.Date-com.aspose.tasks.Duration-) | Returns start date based on the specified finish date and duration. |
| [getStartDateFromFinishAndDuration(Date finish, double duration)](#getStartDateFromFinishAndDuration-java.util.Date-double-) | Returns start date based on specified finish date and duration. |
| [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. |
| [getWorkStart(Date date)](#getWorkStart-java.util.Date-) | Calculates next working time start beginning from the specified date and time. |
| [getWorkingHours(Date dt)](#getWorkingHours-java.util.Date-) | Returns the amount of working hours at the specified date. |
| [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. |
| [getWorkingHoursTimeSpan(Date start, Date finish)](#getWorkingHoursTimeSpan-java.util.Date-java.util.Date-) | Returns amount of working hours between the specified dates. |
| [getWorkingTimes(Date dt)](#getWorkingTimes-java.util.Date-) | Returns [WorkingTimeCollection](../../com.aspose.tasks/workingtimecollection) of working times for the specified date. |
| [isDayWorking(Date dt)](#isDayWorking-java.util.Date-) | Determines whether the specified day is a working day according to the calendar. |
| [isEmpty()](#isEmpty--) | Returns whether the calendar doesn't have working hours defined. |
### getFinishDateByStartAndWork(Date start, Duration work) {#getFinishDateByStartAndWork-java.util.Date-com.aspose.tasks.Duration-}
```
public abstract Date getFinishDateByStartAndWork(Date start, Duration work)
Expand Down Expand Up @@ -138,6 +141,21 @@ Returns DateTime.MinValue if task is summary, null or its start date is not set.

**Returns:**
java.util.Date - Task's finish date for the given start date and duration.
### getWorkStart(Date date) {#getWorkStart-java.util.Date-}
```
public abstract Date getWorkStart(Date date)
```


Calculates next working time start beginning from the specified date and time.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| date | java.util.Date | The date and time. |

**Returns:**
java.util.Date - The nearest working time start.
### getWorkingHours(Date dt) {#getWorkingHours-java.util.Date-}
```
public abstract double getWorkingHours(Date dt)
Expand Down Expand Up @@ -169,6 +187,22 @@ Return WorkUnit - Start, Finish and Duration of working hours for the specified

**Returns:**
[WorkUnit](../../com.aspose.tasks/workunit) - Instance of [WorkUnit](../../com.aspose.tasks/workunit) class containing Start, Finish and Duration of working hours.
### getWorkingHoursTimeSpan(Date start, Date finish) {#getWorkingHoursTimeSpan-java.util.Date-java.util.Date-}
```
public abstract double getWorkingHoursTimeSpan(Date start, Date finish)
```


Returns amount of working hours between the specified dates.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| start | java.util.Date | Start date of the interval. |
| finish | java.util.Date | Finish date of the interval. |

**Returns:**
double - Amount of working hours according to the calendar instance.
### getWorkingTimes(Date dt) {#getWorkingTimes-java.util.Date-}
```
public abstract WorkingTimeCollection getWorkingTimes(Date dt)
Expand Down Expand Up @@ -199,3 +233,13 @@ Determines whether the specified day is a working day according to the calendar.

**Returns:**
boolean - True if the day is a working day.
### isEmpty() {#isEmpty--}
```
public abstract boolean isEmpty()
```


Returns whether the calendar doesn't have working hours defined.

**Returns:**
boolean - True if the calendar doesn't have working hours defined.
Loading