com.dlsc.flexgantt.swing.layer.system
Class TimeNowLayer
java.lang.Object
com.dlsc.flexgantt.swing.layer.AbstractLayer
com.dlsc.flexgantt.swing.layer.system.AbstractSystemLayer
com.dlsc.flexgantt.swing.layer.system.TimeNowLayer
- All Implemented Interfaces:
- java.beans.PropertyChangeListener, java.util.EventListener
public class TimeNowLayer
- extends AbstractSystemLayer
- implements java.beans.PropertyChangeListener
The time now layer has the sole purpose of drawing the vertical line at the
location of the time now.
- Since:
- 1.0
- Author:
- Dirk Lemmermann
- See Also:
Eventline.getTimeNow()
Method Summary |
boolean |
isVisible()
Determines whether the layer is currently visible or not. |
protected void |
paintLayer(java.awt.Graphics g)
|
protected void |
paintTimeNow(java.awt.Graphics g,
int x)
Draws the time now indicator line at the given location. |
void |
propertyChange(java.beans.PropertyChangeEvent evt)
|
Methods inherited from class com.dlsc.flexgantt.swing.layer.AbstractLayer |
addPropertyChangeListener, getAlpha, getDateline, getEventline, getGanttChart, getLayerContainer, getLayerPolicyProvider, getModel, getName, getStartRow, getTimeAt, getTimeline, getTimeLocation, getTimeSpanUsed, getToolTipText, getTreeTable, getTreeTablePolicyProvider, removePropertyChangeListener, repaint, repaint, repaint, setAlpha, setVisible, tearDown |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimeNowLayer
public TimeNowLayer(LayerContainer lc)
- Constructs a new time now layer.
- Parameters:
lc
- the layer container to which the layer belongs- Since:
- 1.0
isVisible
public boolean isVisible()
- Description copied from class:
AbstractLayer
- Determines whether the layer is currently visible or not.
- Overrides:
isVisible
in class AbstractLayer
- Returns:
- TRUE if the layer is currently visible
- See Also:
AbstractLayer.setVisible(boolean)
paintLayer
protected void paintLayer(java.awt.Graphics g)
- Overrides:
paintLayer
in class AbstractLayer
paintTimeNow
protected void paintTimeNow(java.awt.Graphics g,
int x)
- Draws the time now indicator line at the given location.
- Parameters:
g
- the graphics context into which to drawx
- the location of time now- Since:
- 1.0
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent evt)
- Specified by:
propertyChange
in interface java.beans.PropertyChangeListener