public class SimpleGranularityTimelineControlPanel extends AbstractTimelineControlPanel<SimpleGranularity>
SimpleGranularityDatelineModel
.JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
SimpleGranularityTimelineControlPanel(Timeline timeline)
Constructs a new timeline control panel.
|
SimpleGranularityTimelineControlPanel(Timeline timeline,
boolean showGranularity)
Constructs a new timeline control panel.
|
Modifier and Type | Method and Description |
---|---|
void |
applySettings()
Applies the settings made in the control panel to the timeline.
|
protected SpinnerModel |
createEndTimeModel()
Creates the model for the end time spinner.
|
protected ComboBoxModel |
createGranularityModel()
Creates the model for the granularity combo box.
|
protected SpinnerModel |
createStartTimeModel()
Creates the model for the start time spinner.
|
ITimeSpan |
getTimeSpan()
Returns the time span shown by the panel (not the timeline)
|
boolean |
isValidSettings()
Checks whether the current settings are valid (end time is larger or
equal to start time).
|
static void |
openDialog(Component comp,
Timeline timeline)
A utility method to quickly bring up a dialog that contains the control
panel.
|
protected void |
setTimeSpan(ITimeSpan span)
Sets the time span shown by the panel (not on the timeline, updates the
start and end spinner).
|
void |
updateControlPanel()
Updates the control panel to reflect the current settings of the
timeline.
|
actionPerformed, createTitledBorder, datelineModelChanged, datelineModelWillChange, getApplyButton, getEndTimeModel, getEndTimeSpinner, getFromLabel, getGranularity, getGranularityBox, getGranularityLabel, getGranularityModel, getStartTimeModel, getStartTimeSpinner, getTimeline, getToLabel, setGranularity, stateChanged
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public SimpleGranularityTimelineControlPanel(Timeline timeline, boolean showGranularity)
timeline
- the timeline that will be controlled by the panelshowGranularity
- if TRUE the granularity controls will be shownpublic SimpleGranularityTimelineControlPanel(Timeline timeline)
timeline
- the timeline that will be controlled by the panelpublic void updateControlPanel()
AbstractTimelineControlPanel
updateControlPanel
in class AbstractTimelineControlPanel<SimpleGranularity>
protected void setTimeSpan(ITimeSpan span)
AbstractTimelineControlPanel
setTimeSpan
in class AbstractTimelineControlPanel<SimpleGranularity>
span
- the timeline's time spanpublic ITimeSpan getTimeSpan()
AbstractTimelineControlPanel
getTimeSpan
in class AbstractTimelineControlPanel<SimpleGranularity>
public boolean isValidSettings()
AbstractTimelineControlPanel
isValidSettings
in class AbstractTimelineControlPanel<SimpleGranularity>
protected SpinnerModel createStartTimeModel()
AbstractTimelineControlPanel
createStartTimeModel
in class AbstractTimelineControlPanel<SimpleGranularity>
protected SpinnerModel createEndTimeModel()
AbstractTimelineControlPanel
createEndTimeModel
in class AbstractTimelineControlPanel<SimpleGranularity>
protected ComboBoxModel createGranularityModel()
AbstractTimelineControlPanel
createGranularityModel
in class AbstractTimelineControlPanel<SimpleGranularity>
public void applySettings()
AbstractTimelineControlPanel
applySettings
in class AbstractTimelineControlPanel<SimpleGranularity>
public static void openDialog(Component comp, Timeline timeline)
comp
- a component that will be used to lookup a parent frame for the
dialogtimeline
- the timeline that will be modified by the controlCopyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.