|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.dlsc.flexgantt.swing.layer.AbstractLayer com.dlsc.flexgantt.swing.layer.system.AbstractSystemLayer com.dlsc.flexgantt.swing.layer.system.DatelineLayer
public class DatelineLayer
The dateline layer visualizes the time span that currently has the focus in the dateline so that the user can more easily identify the timeline objects that intersect with this span. The focused time span is the time span between two major or minor grid locations, depending on whether the mouse cursor hovers over the upper or the lower part of the dateline. The dateline layer will draw a semi-transparent rectangle from the top to the bottom of the layer container. The transparency of the rectangle can be controlled with the layer's alpha value. The layer will draw the same rectangle when the user performs a time span selection in the dateline.
Field Summary |
---|
Fields inherited from class com.dlsc.flexgantt.swing.layer.AbstractLayer |
---|
alpha, changeSupport, ganttChart, layerContainer, PROPERTY_ALPHA, PROPERTY_VISIBLE |
Constructor Summary | |
---|---|
DatelineLayer(LayerContainer lc)
Constructs a new dateline layer. |
Method Summary | |
---|---|
java.awt.Paint |
getFocusedTimeSpanFillPaint()
Returns the paint object used for filling the focused time span rectangle. |
java.awt.Paint |
getFocusedTimeSpanLinePaint()
Returns the paint object used for drawing the lines of the focused time span rectangle. |
boolean |
isFocusedTimeVisible()
Determines whether the focused time span will be shown or not. |
boolean |
isVisible()
Determines whether the layer is currently visible or not. |
protected void |
paintLayer(java.awt.Graphics g)
|
void |
propertyChange(java.beans.PropertyChangeEvent evt)
|
void |
setFocusedTimeSpanFillPaint(java.awt.Paint fillPaint)
Sets the paint object used for filling the focused time span rectangle. |
void |
setFocusedTimeSpanLinePaint(java.awt.Paint color)
Sets the paint object used for drawing the lines of the focused time span rectangle. |
void |
setFocusedTimeVisible(boolean visible)
Specifies whether the focused time span will be shown or not. |
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 |
Constructor Detail |
---|
public DatelineLayer(LayerContainer lc)
lc
- the layer container to which the layer belongsMethod Detail |
---|
public boolean isVisible()
AbstractLayer
isVisible
in class AbstractLayer
AbstractLayer.setVisible(boolean)
protected void paintLayer(java.awt.Graphics g)
paintLayer
in class AbstractLayer
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
public java.awt.Paint getFocusedTimeSpanFillPaint()
public void setFocusedTimeSpanFillPaint(java.awt.Paint fillPaint)
fillPaint
- the paint used for filling the focused time span rectanglepublic java.awt.Paint getFocusedTimeSpanLinePaint()
public void setFocusedTimeSpanLinePaint(java.awt.Paint color)
color
- the focused time span line paintpublic boolean isFocusedTimeVisible()
public void setFocusedTimeVisible(boolean visible)
visible
- if TRUE the focused time span gets shown
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |