Search
Calendar.setViewport Method
See Also
 






Sets the displayed time interval to the specified range, optionally changing the view resolution. If the interval is outside of the view range, the view range is expanded to include the interval.

Namespace: com.mindfusion.scheduling
Package: com.mindfusion.scheduling

 Syntax

Java  Copy Code

public void setViewport (
    DateTime start,
    DateTime end,
    boolean adjustResolution
)

 Parameters

start

The start of the interval to display.

end

The end of the interval to display.

adjustResolution

true to change the view resolution if necessary; false to keep the current resolution and adjust only the scale.

 Remarks

This method operates only in Resource view. In addition, the resource view must not have hidden days or hours.

 See Also