public class ActionLayer extends AbstractSystemLayer implements ITimelineObjectSelectionListener
alpha, changeSupport, ganttChart, layerContainer, PROPERTY_ALPHA, PROPERTY_VISIBLE
Constructor and Description |
---|
ActionLayer(LayerContainer lc)
Constructs a new editing layer.
|
Modifier and Type | Method and Description |
---|---|
IActionProvider |
getActionProvider()
Returns the action provider that is used by this layer to lookup the
available actions for a given timeline object.
|
TimelineObjectPath |
getActiveTimelineObjectPath()
Returns the path to the currently active timeline object, meaning the
object which has been selected by the user and for which action buttons
are shown.
|
ActionLayerButtonPanel |
getButtonPanel()
Returns the panel that is used to display the various action buttons.
|
int |
getDelay()
Returns the delay that will be applied before the action panel starts to
show up.
|
int |
getFadeInDuration()
Returns the duration for the fade-in animation.
|
void |
removeActionPanel()
Removes the panel that is containing the action buttons from the layer /
layer container.
|
void |
setActionProvider(IActionProvider actionProvider)
Sets the action provider that is used by this layer to lookup the
available actions for a given timeline object.
|
void |
setButtonPanel(ActionLayerButtonPanel panel)
Sets the panel to use for displaying the action buttons.
|
void |
setDelay(int delay)
Sets the delay that will be applied before the action panel starts to
show up.
|
void |
setFadeInDuration(int duration)
Sets the duration for the fade-in animation.
|
void |
valueChanged(TimelineObjectSelectionEvent evt)
Callback method that gets invoked when the selection within the observed
TimelineObjectLayer changes. |
addPropertyChangeListener, getAlpha, getDateline, getEventline, getGanttChart, getHeight, getLayerContainer, getLayerPolicyProvider, getModel, getName, getStartRow, getTimeAt, getTimeline, getTimeLocation, getTimeSpanUsed, getToolTipText, getTreeTable, getTreeTablePolicyProvider, getWidth, isVisible, paintLayer, removePropertyChangeListener, repaint, repaint, repaint, setAlpha, setVisible, tearDown
public ActionLayer(LayerContainer lc)
lc
- the layer container to which the editing layer belongspublic void setDelay(int delay)
delay
- the delay before showing the action panel (in milliseconds)public int getDelay()
public void setActionProvider(IActionProvider actionProvider)
actionProvider
- the action provider instancepublic IActionProvider getActionProvider()
public void setFadeInDuration(int duration)
duration
- the animation durationpublic int getFadeInDuration()
public void valueChanged(TimelineObjectSelectionEvent evt)
ITimelineObjectSelectionListener
TimelineObjectLayer
changes.valueChanged
in interface ITimelineObjectSelectionListener
evt
- the event with detailed information about the change that
occuredpublic TimelineObjectPath getActiveTimelineObjectPath()
public void removeActionPanel()
public void setButtonPanel(ActionLayerButtonPanel panel)
panel
- the action panelpublic ActionLayerButtonPanel getButtonPanel()
Copyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.