public class DatelineLayer extends AbstractSystemLayer implements PropertyChangeListener
The layer also draws vertical lines at the beginning and the end of the currently used horizon.
alpha, changeSupport, ganttChart, layerContainer, PROPERTY_ALPHA, PROPERTY_VISIBLE| Constructor and Description |
|---|
DatelineLayer(LayerContainer lc)
Constructs a new dateline layer.
|
| Modifier and Type | Method and Description |
|---|---|
Paint |
getFocusedTimeSpanFillPaint()
Returns the paint object used for filling the focused time span
rectangle.
|
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 |
isHorizonLimitsVisible()
Determines if the visual indicators for the bounds of the dateline
horizon will be shown by the layer or not.
|
protected void |
paintHorizonLimits(ITimeSpan horizon,
Graphics g)
Draws the visual feedback for the horizon used by the
Dateline. |
protected void |
paintLayer(Graphics g) |
void |
propertyChange(PropertyChangeEvent evt) |
void |
setFocusedTimeSpanFillPaint(Paint fillPaint)
Sets the paint object used for filling the focused time span rectangle.
|
void |
setFocusedTimeSpanLinePaint(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.
|
void |
setHorizonLimitsVisible(boolean visible)
Specifies whether the visual indicators for the bounds of the dateline
horizon will be shown by the layer or not.
|
addPropertyChangeListener, getAlpha, getDateline, getEventline, getGanttChart, getHeight, getLayerContainer, getLayerPolicyProvider, getModel, getName, getStartRow, getTimeAt, getTimeline, getTimeLocation, getTimeSpanUsed, getToolTipText, getTreeTable, getTreeTablePolicyProvider, getWidth, isVisible, removePropertyChangeListener, repaint, repaint, repaint, setAlpha, setVisible, tearDownpublic DatelineLayer(LayerContainer lc)
lc - the layer container to which the layer belongsprotected void paintLayer(Graphics g)
paintLayer in class AbstractLayerprotected void paintHorizonLimits(ITimeSpan horizon, Graphics g)
Dateline.
The area before and after the horizon becomes grayed out by this method,
which fills the area with a two dot texture.horizon - the horizon of the Datelineg - the graphics context into which to drawpublic void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerpublic Paint getFocusedTimeSpanFillPaint()
public void setFocusedTimeSpanFillPaint(Paint fillPaint)
fillPaint - the paint used for filling the focused time span rectanglepublic Paint getFocusedTimeSpanLinePaint()
public void setFocusedTimeSpanLinePaint(Paint color)
color - the focused time span line paintpublic boolean isFocusedTimeVisible()
public void setFocusedTimeVisible(boolean visible)
visible - if TRUE the focused time span gets shownpublic boolean isHorizonLimitsVisible()
public void setHorizonLimitsVisible(boolean visible)
visible - if TRUE the indicators will be shownCopyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.