public class Eventline extends JPanel implements IEventlineModelListener, IEventlineSelectionListener, MouseListener, MouseMotionListener, PropertyChangeListener, IGridComponent, IDragLayerListener, ILassoLayerListener, KeyEventDispatcher
Dateline
is the other)
and responsible for rendering events and activities that are common to all
hierarchy nodes (for example company holidays, national holidays, etc...).
The eventline uses an IEventlineModel
as its data source. The objects
returned by the model are rendered by IEventlineObjectRenderer
instances. The eventline is also capable of showing the current system time
(time now).Modifier and Type | Class and Description |
---|---|
static class |
Eventline.EventlineEditMode
An enumeration of possible editing states that the eventline can be in.
|
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_CREATE_EVENTLNE_OBJECTS_ENABLED
Constant used for property change events that get fired if the eventline
object creation mode changes.
|
static String |
PROPERTY_EVENTLINE_MODEL
Constant used for property change events that get fired if the eventline
model changes.
|
static String |
PROPERTY_EVENTLINE_SELECTION_MODEL
Constant used for property change events that get fired if the eventline
selection model changes.
|
static String |
PROPERTY_POLICY_PROVIDER
Constant used for property change events that get fired if the policy
provider changes.
|
static String |
PROPERTY_TIME_NOW
Constant used for property change events that get fired if the time now
variable changes.
|
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 |
---|
Eventline(Timeline timeline,
Dateline dateline)
Constructs a new eventline.
|
Modifier and Type | Method and Description |
---|---|
void |
addGridComponentListener(IGridComponentListener l)
Adds a listener to the grid component.
|
protected Cursor |
createEditModeCursor(Eventline.EventlineEditMode mode)
Creates a cursor for the given edit mode.
|
void |
deleteSelectedEventlineObjects()
Deletes all currently selected eventline objects.
|
boolean |
dispatchKeyEvent(KeyEvent e) |
void |
dragging(DragLayerEvent evt)
Listener callback method that will be invoked when the user starts,
executes or finishes drag and drop operations in the drag layer.
|
void |
eventlineChanged(EventlineModelEvent evt)
The listener's callback method, which gets called when eventline objects
are added, removed or altered.
|
protected void |
fireGridChanged()
Informs all grid component listeners that the grid used by the eventline
has changed.
|
Dateline |
getDateline()
Returns the
Dateline sibling component. |
Eventline.EventlineEditMode |
getEditMode()
Returns the currently active edit mode.
|
protected Eventline.EventlineEditMode |
getEditMode(Object eventlineObject,
MouseEvent evt)
Returns an eventline edit mode for the given eventline object and mouse
event.
|
IEventlineObjectRenderer |
getEventlineObjectRenderer(Class cl)
Returns an eventline object renderer for an object.
|
Object[] |
getEventlineObjectsAt(int x,
int y)
Returns the eventline objects displayed at the given location.
|
Color |
getGridColor()
Returns the color used by the dateline to draw its grid lines.
|
String |
getGridComponentName()
Returns the name of the grid component.
|
IGranularity |
getGridGranularity()
Returns the granularity used for a virtual grid that gets used during
drag & drop operations to make eventline objects snap to specific time
points rather than just the current drop location.
|
IGridPolicy |
getGridPolicy()
Returns the grid policy used by the grid component.
|
int |
getLookAheadSize()
Returns the number of pixels to add to the current clipping bounds when
querying the dateline model for the grid lines.
|
Color |
getMarkerFillColor1()
Returns the first fill color used for creating the gradient background of
the time markers.
|
Color |
getMarkerFillColor2()
Returns the second fill color used for creating the gradient background
of the time markers.
|
IEventlineMenuProvider |
getMenuProvider()
Returns a menu manager that can be used by the eventline to lookup a
popup menu for a specific context where the context is defined by the
mouse location, the eventline objects, and the time at the location.
|
IEventlineModel |
getModel()
Returns the model used by the eventline.
|
IPolicyProvider |
getPolicyProvider()
Returns the policy provider of the eventline.
|
Dimension |
getPreferredSize()
Returns the preferred size of the eventline.
|
Map<Class,IEventlineObjectRenderer> |
getRendererMap()
Returns the map used to store the mappings between eventline object
classes and eventline object renderers.
|
int |
getResizeHandleSize()
Returns the size of the resize handle located on the left and right edge
of the eventline objects.
|
Object[] |
getSelection()
Returns the currently selected eventline objects.
|
Color |
getSelectionColor()
Returns the color used for selecting a time span in the eventline.
|
IEventlineSelectionModel |
getSelectionModel()
Returns the selection model used by the eventline.
|
Timeline |
getTimeline()
Returns the parent timeline container.
|
long |
getTimeNow()
Returns the time point that is considered to be time now.
|
Object |
getTopMostEventlineObjectAt(int x,
int y)
Returns the eventline object that is on top of all other eventline
objects at the given location.
|
boolean |
isCreateEventlineObjectsEnabled()
Determines whether the eventline generally allows the user to create new
eventline objects.
|
boolean |
isGridAdjustedMouseCursorTime()
Determines whether the time cursor will use the grid settings of the grid
component from which the last mouse event originated (default is FALSE).
|
boolean |
isGridAutomatic()
Determines whether the component is using an automatic grid.
|
boolean |
isGridControlVisible()
Determines whether the UI component used to control the grid is currently
visible or not.
|
boolean |
isShowingDSTMarkers()
Determines whether the eventline displays special markers, which indicate
the begining or end of the daylight savings time (DST).
|
boolean |
isTimeNowOnTop()
Determines whether the time now marker will be drawn on top of the
eventline objects or below.
|
boolean |
isTimeNowVisible()
Determines whether the time now will be shown with a special marker or
not.
|
void |
lassoChanged(LassoLayerEvent evt)
Listener callback method that will be invoked when the user performs
lasso operations in the lasso layer.
|
void |
mouseClicked(MouseEvent e) |
void |
mouseDragged(MouseEvent e) |
void |
mouseEntered(MouseEvent e) |
void |
mouseExited(MouseEvent e) |
void |
mouseMoved(MouseEvent e) |
void |
mousePressed(MouseEvent e) |
void |
mouseReleased(MouseEvent e) |
protected void |
paintComponent(Graphics g) |
protected void |
paintDSTMarker(Graphics g,
GridLine gl)
Paints the DST information provided by the grid line.
|
protected void |
paintEventlineObject(Graphics g,
Object obj,
ITimeSpan objSpan)
Draws an eventline object with the given time span.
|
protected void |
paintEventlineObjects(Graphics g)
Paints the eventline objects in the eventline.
|
protected void |
paintMarker(Graphics g,
int x,
String label,
boolean leftAligned)
Paints a marker at the given x-coordinate.
|
void |
propertyChange(PropertyChangeEvent evt) |
void |
removeGridComponentListener(IGridComponentListener l)
Removes a listener from the grid component.
|
void |
selectAllEventlineObjects()
Selects all objects in the eventline.
|
void |
selectionChanged(EventlineSelectionModelEvent evt)
Listener callback method that gets invoked whenever eventline objects get
added to or removed from the eventline selection model.
|
void |
setCreateEventlineObjectsEnabled(boolean enabled)
Specifies whether eventline objects can be created interactively by the
user.
|
void |
setEventlineObjectRenderer(Class objectType,
IEventlineObjectRenderer renderer)
Maps the implementation of an eventline object renderer to a class
definition.
|
void |
setGridAdjustedMouseCursorTime(boolean adjusted)
Specifies whether the time cursor will use the grid settings of the grid
component from which the last mouse event originated (default is FALSE).
|
void |
setGridAutomatic(boolean auto)
Specifies whether the component is using an automatic grid.
|
void |
setGridColor(Color color)
Sets the color used by the dateline to draw its grid lines.
|
void |
setGridControlVisible(boolean b)
Specifies whether the grid control will be visible in the Gantt chart.
|
void |
setGridGranularity(IGranularity granularity)
Sets the granularity used for a virtual grid that gets used during drag &
drop operations to make eventline objects snap to specific time points
rather than just the current drop location.
|
void |
setLookAheadSize(int lookAheadSize)
Specifies the number of pixels to add to the current clipping bounds when
querying the dateline model for the grid lines.
|
void |
setMarkerFillColor1(Color color)
Sets the first fill color used for creating the gradient background of
the time markers.
|
void |
setMarkerFillColor2(Color color)
Sets the second fill color used for creating the gradient background of
the time markers.
|
void |
setMenuProvider(IEventlineMenuProvider provider)
Specifies a menu manager that can be used by the eventline to lookup a
popup menu for a specific context where the context is defined by the
mouse location, the eventline objects, and the time at the location.
|
void |
setModel(IEventlineModel model)
Sets a new eventline model on the eventline.
|
void |
setPolicyProvider(IPolicyProvider provider)
Sets the eventline policy provider.
|
void |
setRendererMap(Map<Class,IEventlineObjectRenderer> map)
Sets the map used to store the mappings between eventline object classes
and eventline object renderers.
|
void |
setResizeHandleSize(int size)
Sets the size of the resize handle located on the left and right edge of
the eventline objects.
|
void |
setSelectionColor(Color color)
Sets the color used for selecting a time span in the eventline.
|
void |
setSelectionModel(IEventlineSelectionModel model)
Sets a new selection model to be used by the eventline.
|
void |
setShowingDSTMarkers(boolean show)
Specifies whether the eventline displays special markers, which indicate
the begining or end of the daylight savings time (DST).
|
void |
setTimeNow(long time)
Sets a new time point to be used as time now.
|
void |
setTimeNowOnTop(boolean onTop)
Specifies whether the time now marker will be drawn on top of the
eventline objects or below.
|
void |
setTimeNowVisible(boolean visible)
Determines whether or not a special marker will be drawn inside the time
line to highlight time now.
|
void |
tearDown()
Removes the eventline from the keyboard focus manager.
|
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, 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, 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 static final String PROPERTY_TIME_NOW
setTimeNow(long)
,
Constant Field Valuespublic static final String PROPERTY_EVENTLINE_MODEL
setModel(IEventlineModel)
,
Constant Field Valuespublic static final String PROPERTY_EVENTLINE_SELECTION_MODEL
setSelectionModel(IEventlineSelectionModel)
,
Constant Field Valuespublic static final String PROPERTY_POLICY_PROVIDER
setPolicyProvider(IPolicyProvider)
,
Constant Field Valuespublic static final String PROPERTY_CREATE_EVENTLNE_OBJECTS_ENABLED
setCreateEventlineObjectsEnabled(boolean)
,
Constant Field Valuespublic Eventline(Timeline timeline, Dateline dateline)
DefaultCreateEventlineObjectCommand
class.
The interceptor brings up a simple dialog that allows the user to specify
very basic settings.timeline
- the parent timeline containerdateline
- the sibling dateline component that lives in the same timeline
parent containerAbstractGanttChart.setCommandInterceptor(Class, ICommandInterceptor)
public IGranularity getGridGranularity()
getGridGranularity
in interface IGridComponent
public String getGridComponentName()
IGridComponent
getGridComponentName
in interface IGridComponent
public void setGridGranularity(IGranularity granularity)
setGridGranularity
in interface IGridComponent
granularity
- the grid granularityIGridComponent.setGridAutomatic(boolean)
public void setGridAutomatic(boolean auto)
IGridComponent
setGridAutomatic
in interface IGridComponent
auto
- if TRUE the grid gets calculated automatically and not based
on the given grid granularitypublic boolean isGridAutomatic()
IGridComponent
isGridAutomatic
in interface IGridComponent
public void setGridControlVisible(boolean b)
b
- if TRUE the control will be shownIGridComponentListener.gridComponentChanged()
public boolean isGridControlVisible()
IGridComponent
isGridControlVisible
in interface IGridComponent
public IGridPolicy getGridPolicy()
IGridComponent
getGridPolicy
in interface IGridComponent
public IPolicyProvider getPolicyProvider()
public void setPolicyProvider(IPolicyProvider provider)
provider
- the eventline policy providerpublic Object[] getEventlineObjectsAt(int x, int y)
x
- the x-coordinate to check for eventline objectsy
- the y-coordinate to check for eventline objectspublic Object getTopMostEventlineObjectAt(int x, int y)
x
- the x-coordinate to check for the top-most eventline objecty
- the y-coordinate to check for the top-most eventline objectpublic Dimension getPreferredSize()
Dateline
. The height gets
set to be equivalent to the height of the font used by the eventline plus
some extra pixels to create a gap.getPreferredSize
in class JComponent
JComponent.getPreferredSize()
public IEventlineModel getModel()
setModel(IEventlineModel)
public void setModel(IEventlineModel model)
IEventlineModelListener
to the new model. Calling
this method will cause a property change event to be fired. The name of
the event will be equal to PROPERTY_EVENTLINE_MODEL
.model
- the new eventline modelgetModel()
public IEventlineSelectionModel getSelectionModel()
setSelectionModel(IEventlineSelectionModel)
public void setSelectionModel(IEventlineSelectionModel model)
IEventlineSelectionListener
to the
model. Calling this method will cause a property change event to be fired
(event name equals PROPERTY_EVENTLINE_SELECTION_MODEL
).model
- the new selection modelpublic Timeline getTimeline()
public Dateline getDateline()
Dateline
sibling component.public void setTimeNowVisible(boolean visible)
visible
- if TRUE the time now will be shown with a special markerisTimeNowVisible()
public boolean isTimeNowVisible()
setTimeNowVisible(boolean)
public void setTimeNow(long time)
time
- the new time point that will be used as time nowgetTimeNow()
public long getTimeNow()
setTimeNow(long)
public Color getGridColor()
public void setGridColor(Color color)
color
- the grid line colorprotected void paintComponent(Graphics g)
paintComponent
in class JComponent
protected void paintMarker(Graphics g, int x, String label, boolean leftAligned)
g
- the graphics context in which to draw the markerx
- the x-coordinate of the markerlabel
- the label shown to the right of the markerleftAligned
- if TRUE the marker will start at the given x coordinate,
otherwise it will end thereprotected void paintDSTMarker(Graphics g, GridLine gl)
g
- the graphics context into which to drawgl
- the grid line at which the DST changesGridLine.getDstChangeType()
protected void paintEventlineObjects(Graphics g)
g
- the graphics context in which to drawprotected void paintEventlineObject(Graphics g, Object obj, ITimeSpan objSpan)
IEventlineObjectRenderer
implementation, retrieve a
renderer component from it and set the component's bounds based on the
given time span.g
- the graphics context into which to drawobj
- the eventline object that gets drawnobjSpan
- the time span used by the eventline objectsetEventlineObjectRenderer(Class, IEventlineObjectRenderer)
public IEventlineMenuProvider getMenuProvider()
public void setMenuProvider(IEventlineMenuProvider provider)
provider
- the provider that will be used by the layer container to find
a suitable popup menu for a specific contextpublic void eventlineChanged(EventlineModelEvent evt)
IEventlineModelListener
eventlineChanged
in interface IEventlineModelListener
evt
- the event sent by the eventline model.public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
protected Eventline.EventlineEditMode getEditMode(Object eventlineObject, MouseEvent evt)
eventlineObject
- the object for which to return an edit modeevt
- the mouse eventpublic Object[] getSelection()
IEventlineSelectionModel.getSelection()
public void selectionChanged(EventlineSelectionModelEvent evt)
IEventlineSelectionListener
selectionChanged
in interface IEventlineSelectionListener
evt
- the selection model event with detailed information about the
kind of change that happened inside the selection modelpublic void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
public void setEventlineObjectRenderer(Class objectType, IEventlineObjectRenderer renderer)
objectType
- the type of those eventline objects that will be rendered with
the given rendererrenderer
- an implementation that will be used to renderer instances of
the given object typeDefaultEventlineObjectRenderer
,
getEventlineObjectRenderer(Class)
public IEventlineObjectRenderer getEventlineObjectRenderer(Class cl)
cl
- the object type in need of renderingsetEventlineObjectRenderer(Class, IEventlineObjectRenderer)
,
DefaultEventlineObjectRenderer
public Map<Class,IEventlineObjectRenderer> getRendererMap()
public void setRendererMap(Map<Class,IEventlineObjectRenderer> map)
map
- the renderer mappublic boolean isCreateEventlineObjectsEnabled()
IEditEventlineObjectPolicy
.public void setCreateEventlineObjectsEnabled(boolean enabled)
IEditEventlineObjectPolicy
can be
used.enabled
- if TRUE the user is generally allowed to create new eventline
objectspublic void addGridComponentListener(IGridComponentListener l)
IGridComponent
addGridComponentListener
in interface IGridComponent
l
- the grid component listenerpublic void removeGridComponentListener(IGridComponentListener l)
IGridComponent
removeGridComponentListener
in interface IGridComponent
l
- the grid component listener that gets removedprotected void fireGridChanged()
public void dragging(DragLayerEvent evt)
IDragLayerListener
dragging
in interface IDragLayerListener
evt
- the event describing the drag operationpublic void lassoChanged(LassoLayerEvent evt)
ILassoLayerListener
lassoChanged
in interface ILassoLayerListener
evt
- the event describing the lasso operationpublic Color getSelectionColor()
public void setSelectionColor(Color color)
color
- the time span selection colorpublic void selectAllEventlineObjects()
IEventlineSelectionModel.addSelection(Object)
public void deleteSelectedEventlineObjects()
public boolean isGridAdjustedMouseCursorTime()
public void setGridAdjustedMouseCursorTime(boolean adjusted)
adjusted
- if TRUE the mouse cursor time will use the grid component's
grid settingsprotected Cursor createEditModeCursor(Eventline.EventlineEditMode mode)
IconRegistry
to lookup the cursor images. The following IDs are
being used:
mode
- the eventline edit modepublic int getResizeHandleSize()
public void setResizeHandleSize(int size)
size
- the size of the resize handle used for editing the eventline
objectpublic Color getMarkerFillColor1()
public void setMarkerFillColor1(Color color)
color
- the first background colorpublic Color getMarkerFillColor2()
public void setMarkerFillColor2(Color color)
color
- the second background colorpublic Eventline.EventlineEditMode getEditMode()
public boolean dispatchKeyEvent(KeyEvent e)
dispatchKeyEvent
in interface KeyEventDispatcher
public boolean isTimeNowOnTop()
public void setTimeNowOnTop(boolean onTop)
onTop
- TRUE if the time now marker gets drawn on top of the eventline
objectspublic boolean isShowingDSTMarkers()
public void setShowingDSTMarkers(boolean show)
show
- TRUE if the eventline displays DST markerspublic int getLookAheadSize()
public void setLookAheadSize(int lookAheadSize)
lookAheadSize
- the number of pixels to look ahead when scrolling and querying
for the grid linespublic void tearDown()
Copyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.