public class SelectionLayer extends AbstractSystemLayer
ILayerContainerSelectionModel.getSelectedTimeSpans(Object, ITimeSpan)
alpha, changeSupport, ganttChart, layerContainer, PROPERTY_ALPHA, PROPERTY_VISIBLE
Constructor and Description |
---|
SelectionLayer(LayerContainer lc)
Constructs a new selection layer.
|
Modifier and Type | Method and Description |
---|---|
Paint |
getSelectionPaint()
Returns the selection color used for filling selected time spans.
|
boolean |
isVisible()
Determines whether the layer is currently visible or not.
|
protected void |
paintLayer(Graphics g) |
void |
setSelectionPaint(Paint paint)
Changes the selection paint used for filling selected time spans.
|
addPropertyChangeListener, getAlpha, getDateline, getEventline, getGanttChart, getHeight, getLayerContainer, getLayerPolicyProvider, getModel, getName, getStartRow, getTimeAt, getTimeline, getTimeLocation, getTimeSpanUsed, getToolTipText, getTreeTable, getTreeTablePolicyProvider, getWidth, removePropertyChangeListener, repaint, repaint, repaint, setAlpha, setVisible, tearDown
public SelectionLayer(LayerContainer lc)
lc
- the parent layer containerpublic boolean isVisible()
AbstractLayer
isVisible
in class AbstractLayer
AbstractLayer.setVisible(boolean)
protected void paintLayer(Graphics g)
paintLayer
in class AbstractLayer
public Paint getSelectionPaint()
setSelectionPaint(Paint)
public void setSelectionPaint(Paint paint)
paint
- the new selection paintgetSelectionPaint()
Copyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.