|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel com.dlsc.flexgantt.swing.timeline.Eventline
public class Eventline
The eventline is one part of the timeline (the 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).
Nested Class Summary | |
---|---|
static class |
Eventline.EventlineEditMode
An enumeration of possible editing states that the eventline can be in. |
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
javax.swing.JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
static java.lang.String |
PROPERTY_CREATE_EVENTLNE_OBJECTS_ENABLED
Constant used for property change events that get fired if the eventline object creation mode changes. |
static java.lang.String |
PROPERTY_EVENTLINE_MODEL
Constant used for property change events that get fired if the eventline model changes. |
static java.lang.String |
PROPERTY_EVENTLINE_SELECTION_MODEL
Constant used for property change events that get fired if the eventline selection model changes. |
static java.lang.String |
PROPERTY_POLICY_PROVIDER
Constant used for property change events that get fired if the policy provider changes. |
static java.lang.String |
PROPERTY_TIME_NOW
Constant used for property change events that get fired if the time now variable changes. |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
Eventline(Timeline timeline,
Dateline dateline)
Constructs a new eventline. |
Method Summary | |
---|---|
void |
addGridComponentListener(IGridComponentListener l)
Adds a listener to the grid component. |
protected java.awt.Cursor |
createEditModeCursor(Eventline.EventlineEditMode mode)
Creates a cursor for the given edit mode. |
void |
deleteSelectedEventlineObjects()
Deletes all currently selected eventline objects. |
boolean |
dispatchKeyEvent(java.awt.event.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(java.lang.Object eventlineObject,
java.awt.event.MouseEvent evt)
Returns an eventline edit mode for the given eventline object and mouse event. |
IEventlineObjectRenderer |
getEventlineObjectRenderer(java.lang.Class cl)
Returns an eventline object renderer for an object. |
java.lang.Object[] |
getEventlineObjectsAt(int x,
int y)
Returns the eventline objects displayed at the given location. |
java.awt.Color |
getGridColor()
Returns the color used by the dateline to draw its grid lines. |
java.lang.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. |
java.awt.Color |
getMarkerFillColor1()
Returns the first fill color used for creating the gradient background of the time markers. |
java.awt.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. |
java.awt.Dimension |
getPreferredSize()
Returns the preferred size of the eventline. |
java.util.Map<java.lang.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. |
java.lang.Object[] |
getSelection()
Returns the currently selected eventline objects. |
java.awt.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. |
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 |
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 |
keyPressed(java.awt.event.KeyEvent e)
|
void |
keyReleased(java.awt.event.KeyEvent e)
|
void |
keyTyped(java.awt.event.KeyEvent e)
|
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseDragged(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mouseMoved(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
protected void |
paintComponent(java.awt.Graphics g)
|
protected void |
paintEventlineObject(java.awt.Graphics g,
java.lang.Object obj,
ITimeSpan objSpan)
Draws an eventline object with the given time span. |
protected void |
paintEventlineObjects(java.awt.Graphics g)
Paints the eventline objects in the eventline. |
protected void |
paintMarker(java.awt.Graphics g,
int x,
java.lang.String label,
boolean leftAligned)
Paints a marker at the given x-coordinate. |
void |
propertyChange(java.beans.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(java.lang.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(java.awt.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 |
setMarkerFillColor1(java.awt.Color color)
Sets the first fill color used for creating the gradient background of the time markers. |
void |
setMarkerFillColor2(java.awt.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(java.util.Map<java.lang.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(java.awt.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 |
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. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, 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, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, 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 |
Methods inherited from class java.awt.Container |
---|
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, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
---|
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, hide, 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, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROPERTY_TIME_NOW
setTimeNow(long)
,
Constant Field Valuespublic static final java.lang.String PROPERTY_EVENTLINE_MODEL
setModel(IEventlineModel)
,
Constant Field Valuespublic static final java.lang.String PROPERTY_EVENTLINE_SELECTION_MODEL
setSelectionModel(IEventlineSelectionModel)
,
Constant Field Valuespublic static final java.lang.String PROPERTY_POLICY_PROVIDER
setPolicyProvider(IPolicyProvider)
,
Constant Field Valuespublic static final java.lang.String PROPERTY_CREATE_EVENTLNE_OBJECTS_ENABLED
setCreateEventlineObjectsEnabled(boolean)
,
Constant Field ValuesConstructor Detail |
---|
public 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)
Method Detail |
---|
public IGranularity getGridGranularity()
getGridGranularity
in interface IGridComponent
public java.lang.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 java.lang.Object[] getEventlineObjectsAt(int x, int y)
x
- the x-coordinate to check for eventline objectsy
- the y-coordinate to check for eventline objects
public java.awt.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 javax.swing.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 java.awt.Color getGridColor()
public void setGridColor(java.awt.Color color)
color
- the grid line colorprotected void paintComponent(java.awt.Graphics g)
paintComponent
in class javax.swing.JComponent
protected void paintMarker(java.awt.Graphics g, int x, java.lang.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 paintEventlineObjects(java.awt.Graphics g)
g
- the graphics context in which to drawprotected void paintEventlineObject(java.awt.Graphics g, java.lang.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(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
protected Eventline.EventlineEditMode getEditMode(java.lang.Object eventlineObject, java.awt.event.MouseEvent evt)
eventlineObject
- the object for which to return an edit modeevt
- the mouse event
public java.lang.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(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
public void setEventlineObjectRenderer(java.lang.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(java.lang.Class cl)
cl
- the object type in need of rendering
setEventlineObjectRenderer(Class, IEventlineObjectRenderer)
,
DefaultEventlineObjectRenderer
public java.util.Map<java.lang.Class,IEventlineObjectRenderer> getRendererMap()
public void setRendererMap(java.util.Map<java.lang.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 java.awt.Color getSelectionColor()
public void setSelectionColor(java.awt.Color color)
color
- the time span selection colorpublic void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
public void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
public void selectAllEventlineObjects()
IEventlineSelectionModel.addSelection(Object)
public void deleteSelectedEventlineObjects()
IEditEventlineObjectPolicy.isDeletable(Object, IEventlineModel)
,
IEditEventlineObjectPolicy.getDeleteCommand(Object, IEventlineModel)
public boolean isGridAdjustedMouseCursorTime()
public void setGridAdjustedMouseCursorTime(boolean adjusted)
adjusted
- if TRUE the mouse cursor time will use the grid component's
grid settingsprotected java.awt.Cursor createEditModeCursor(Eventline.EventlineEditMode mode)
IconRegistry
to lookup the cursor images. The following IDs are
being used:
IconId.CURSOR_CHANGE_START_TIME
IconId.CURSOR_CHANGE_END_TIME
IconId.CURSOR_MOVE_HORIZONTAL
IconId.CURSOR_CREATE_EVENTLINE_OBJECTS
mode
- the eventline edit mode
public int getResizeHandleSize()
public void setResizeHandleSize(int size)
size
- the size of the resize handle used for editing the eventline
objectpublic java.awt.Color getMarkerFillColor1()
public void setMarkerFillColor1(java.awt.Color color)
color
- the first background colorpublic java.awt.Color getMarkerFillColor2()
public void setMarkerFillColor2(java.awt.Color color)
color
- the second background colorpublic Eventline.EventlineEditMode getEditMode()
public boolean dispatchKeyEvent(java.awt.event.KeyEvent e)
dispatchKeyEvent
in interface java.awt.KeyEventDispatcher
public boolean isTimeNowOnTop()
public void setTimeNowOnTop(boolean onTop)
onTop
- TRUE if the time now marker gets drawn on top of the eventline
objects
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |