com.dlsc.flexgantt.model.bookmarks
Class Bookmark
java.lang.Object
com.dlsc.flexgantt.util.NamedObject
com.dlsc.flexgantt.model.paging.Page
com.dlsc.flexgantt.model.bookmarks.Bookmark
- All Implemented Interfaces:
- INamedObject, java.lang.Comparable<INamedObject>
public class Bookmark
- extends Page
A bookmark is basically a stored time point, time span and granularity that
can be used to recreate a specific view in the Gantt chart. It also carries a
name for displaying the bookmarks to the user. Bokmarks are added to bookmark
models.
- Since:
- 1.0
- Author:
- Dirk Lemmermann
- See Also:
DefaultBookmarkModel.addBookmark(Bookmark)
Method Summary |
IGranularity |
getGranularity()
Returns the time granularity that was shown in the dateline when the
bookmark was created. |
long |
getTimePoint()
Returns the time point where the bookmark is located. |
Methods inherited from class com.dlsc.flexgantt.model.paging.Page |
getTimeSpan |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Bookmark
public Bookmark(long timePoint,
ITimeSpan span,
IGranularity granularity,
java.lang.String name)
- Constructs a new page.
- Parameters:
span
- the time span of the dateline that was used when the bookmark
was createdtimePoint
- the time point where the bookmark is locatedgranularity
- the granularity shown in the timeline when the bookmark was
createdname
- the name used in the user interface when displaying the page- Since:
- 1.0
getGranularity
public IGranularity getGranularity()
- Returns the time granularity that was shown in the dateline when the
bookmark was created.
- Returns:
- the granularity of the dateline when the bookmark was created
- Since:
- 1.0
getTimePoint
public long getTimePoint()
- Returns the time point where the bookmark is located.
- Returns:
- the time point of the bookmark
- Since:
- 1.0