T
- the type of the Gantt chartpublic class TimeNowAction<T extends AbstractGanttChart> extends AbstractGanttChartAction<T>
ganttChart
changeSupport, enabled
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
Constructor and Description |
---|
TimeNowAction(T gc)
Constructs a new action.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
boolean |
isCenterTimeNow()
Determines whether the time now will be shown centered on the screen or
flushed to the left edge of the visible area of the Gantt chart.
|
void |
setCenterTimeNow(boolean center)
Determines whether the time now will be shown centered on the screen or
flushed to the left edge of the visible area of the Gantt chart.
|
findFocusedTable, getGanttChart, setGanttChart
getToolTipText, setToolTipText
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public TimeNowAction(T gc)
gc
- the Gantt chart on which to invoke the actionpublic void actionPerformed(ActionEvent e)
public boolean isCenterTimeNow()
public void setCenterTimeNow(boolean center)
center
- if TRUE the time now line will be shown centeredCopyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.