public static class Timeline.Options
extends AbstractDrawOptions
Modifier and Type | Class and Description |
---|---|
static class |
Timeline.Options.SCALE |
static class |
Timeline.Options.STYLE |
Modifier | Constructor and Description |
---|---|
protected |
Timeline.Options()
Constructor
|
Modifier and Type | Method and Description |
---|---|
static Timeline.Options |
create()
Create a Javascript object instance of Options()
|
void |
setAnimate(boolean animate)
Set animate to true (default) or false.
|
void |
setAnimateZoom(boolean animateZoom)
Set animating when zooming to true (default) or false.
|
void |
setAxisOnTop(boolean axisOnTop)
If set to true, the axis is shown on top.
|
void |
setBoxAlign(java.lang.String alignment)
Set alignment for items with style "box".
|
void |
setCustomStackOrder(JavaScriptObject customStackOrder)
Set the stack order for the timeline.
|
void |
setDragAreaWidth(int dragAreaWidth)
Set the width of the drag areas in pixels.
|
void |
setEditable(boolean editable)
If true (default), the events can be edited, created, deleted.
|
void |
setEnd(java.util.Date end)
Set the end date for the timeline
|
void |
setEventMargin(int margin)
Set the event margin for the events.
|
void |
setEventMarginAxis(int margin)
Set the minimal distance between the events and the axis.
|
void |
setGroupMinHeight(int groupMinHeight)
Set the minimum group height for the timeline in pixels.
|
void |
setGroupsChangeable(boolean groupsChangeable)
If true (default), items can be moved from one group to another.
|
void |
setGroupsOnRight(boolean groupsOnRight)
If set to true, the groups legend is shown at the right.
|
void |
setGroupsWidth(int width)
Set the width for the groups legend in pixels.
|
void |
setGroupsWidth(java.lang.String width)
Set the width for the groups legend in pixels or percentages.
|
void |
setHeight(int height)
Set the height for the timeline in pixels.
|
void |
setHeight(java.lang.String height)
Set the height for the Timeline in pixels or percentages.
|
void |
setIntervalMax(long intervalMax)
Deprecated.
|
void |
setIntervalMin(long intervalMin)
Deprecated.
|
void |
setLocale(java.lang.String locale)
Set the locale for the timeline.
|
void |
setMax(java.util.Date max)
Set a maximum Date for the visible range.
|
void |
setMin(java.util.Date min)
Set a minimum Date for the visible range.
|
void |
setMinHeight(int minHeight)
Set the minimum height for the timeline in pixels.
|
void |
setMoveable(boolean moveable)
If true (default), the timeline can be moved.
|
void |
setScale(Timeline.Options.SCALE scale,
double step)
Set a custom scale.
|
void |
setSelectable(boolean selectable)
If true (default), the events on the timeline can be selected.
|
void |
setShowButtonAdd(boolean show)
If set to true (default), and the timeline is editable, an add button
is shown in the navigation menu
|
void |
setShowCurrentTime(boolean show)
If set to true (default), a vertical line is shown at the current
time
|
void |
setShowCustomTime(boolean show)
If set to true, the custom time bar is shown.
|
void |
setShowMajorLabels(boolean showMajorLabels)
By default, the timeline shows both minor and major date labels on
the horizontal axis.
|
void |
setShowMinorLabels(boolean showMinorLabels)
By default, the timeline shows both minor and major date labels on
the horizontal axis.
|
void |
setShowNavigation(boolean show)
If set to true, a navigation menu is shown, containing buttons to
move and zoom the timeline.
|
void |
setSnapEvents(boolean snapEvents)
If true (default), the start and end of an event will be snapped nice
integer values when moving or resizing the event.
|
void |
setStackEvents(boolean stackEvents)
If set to true, the events are stacked above each other to prevent
overlapping events.
|
void |
setStart(java.util.Date start)
Set the start date for the timeline
|
void |
setStyle(Timeline.Options.STYLE style)
Set the style for the timeline.
|
void |
setWidth(int width)
Set the width for the timeline in pixels.
|
void |
setWidth(java.lang.String width)
Set the width for the timeline in pixels or percentages.
|
void |
setZoomable(boolean zoomable)
If true (default), the timeline can be zoomed.
|
void |
setZoomMax(long zoomMax)
Set a maximum zoom interval for the visible range in milliseconds.
|
void |
setZoomMin(long zoomMin)
Set a minimum zoom interval for the visible range in milliseconds.
|
public static Timeline.Options create()
public final void setWidth(int width)
width
- Width in pixelspublic final void setWidth(java.lang.String width)
width
- Width as a string, for example "100%" or "500px"public final void setHeight(int height)
height
- Height in pixelspublic final void setMinHeight(int minHeight)
minHeight
- Minimum height in pixelspublic final void setGroupMinHeight(int groupMinHeight)
groupMinHeight
- Minimum group height in pixelspublic final void setCustomStackOrder(JavaScriptObject customStackOrder)
customStackOrder
- Java script function of the form function (a, b)public final void setHeight(java.lang.String height)
height
- Height as a string, for example "100%" or "500px", or
"auto"public final void setGroupsWidth(int width)
width
- Width in pixelspublic final void setGroupsWidth(java.lang.String width)
width
- Width as a string, for example "100%" or "500px"public final void setGroupsChangeable(boolean groupsChangeable)
groupsChangeable
- public final void setLocale(java.lang.String locale)
locale
- Available locales: "en", "ca", "de", "da", "ru", "es"public final void setStart(java.util.Date start)
start
- A startdatepublic final void setEnd(java.util.Date end)
end
- An end datepublic final void setMin(java.util.Date min)
min
- Minimum datepublic final void setMax(java.util.Date max)
max
- Maximum date@Deprecated public final void setIntervalMin(long intervalMin)
intervalMin
- Minimum interval in milliseconds (default is 10)public final void setZoomMin(long zoomMin)
zoomMin
- Minimum interval in milliseconds (default is 10)@Deprecated public final void setIntervalMax(long intervalMax)
intervalMax
- Maximum interval in millisecondspublic final void setZoomMax(long zoomMax)
zoomMax
- Maximum zoom interval in millisecondspublic final void setScale(Timeline.Options.SCALE scale, double step)
scale
- step
- public final void setStyle(Timeline.Options.STYLE style)
style
- Choose from BOX (default), or DOTpublic final void setAnimate(boolean animate)
animate
- public final void setBoxAlign(java.lang.String alignment)
alignment
- public final void setAnimateZoom(boolean animateZoom)
animateZoom
- public final void setSnapEvents(boolean snapEvents)
snapEvents
- public final void setEventMargin(int margin)
margin
- The minimum margin between events, in pixels. Default is
10 pixels.public final void setEventMarginAxis(int margin)
margin
- The minimum margin between events, in pixels. Default is
10 pixels.public final void setDragAreaWidth(int dragAreaWidth)
dragAreaWidth
- width of the drag areas pixels.public final void setStackEvents(boolean stackEvents)
stackEvents
- public final void setShowMajorLabels(boolean showMajorLabels)
showMajorLabels
- public final void setShowMinorLabels(boolean showMinorLabels)
showMinorLabels
- public final void setShowCurrentTime(boolean show)
show
- public final void setShowNavigation(boolean show)
show
- public final void setShowButtonAdd(boolean show)
show
- public final void setShowCustomTime(boolean show)
show
- public final void setAxisOnTop(boolean axisOnTop)
axisOnTop
- public final void setGroupsOnRight(boolean groupsOnRight)
groupsOnRight
- public final void setMoveable(boolean moveable)
moveable
- public final void setZoomable(boolean zoomable)
zoomable
- public final void setSelectable(boolean selectable)
selectable
- public final void setEditable(boolean editable)
editable
-