public class EventlineLayer extends AbstractSystemLayer
alpha, changeSupport, ganttChart, layerContainer, PROPERTY_ALPHA, PROPERTY_VISIBLE| Constructor and Description |
|---|
EventlineLayer(LayerContainer lc)
Constructs a new eventline layer.
|
| Modifier and Type | Method and Description |
|---|---|
Paint |
getPaint(Class cl)
Returns the paint object that will be used for drawing eventline objects
of the given type.
|
Stroke |
getStroke(Class cl)
Returns the paint object that will be used for drawing eventline objects
of the given type.
|
boolean |
isPaintingActivities()
Determines whether the eventline layer will draw the activities defined
in the
IEventlineModel of the Eventline. |
boolean |
isPaintingEvents()
Determines whether the eventline layer will draw the events defined in
the
IEventlineModel of the Eventline. |
protected void |
paintLayer(Graphics g) |
void |
setPaint(Class eventlineObjectType,
Paint paint)
Sets the paint object that will be used for drawing eventline objects of
the given type.
|
void |
setPaintingActivities(boolean paint)
Specifies whether the eventline layer will draw the activities defined in
the
IEventlineModel of the Eventline. |
void |
setPaintingEvents(boolean paint)
Specifies whether the eventline layer will draw the events defined in the
IEventlineModel of the Eventline. |
void |
setStroke(Class eventlineObjectType,
Stroke paint)
Sets the stroke object that will be used for drawing eventline objects of
the given type.
|
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 EventlineLayer(LayerContainer lc)
lc - the layer container to which the layer belongs.protected void paintLayer(Graphics g)
paintLayer in class AbstractLayerpublic void setPaint(Class eventlineObjectType, Paint paint)
eventlineObjectType - the object type of the calendar entriespaint - the paint used for drawing the calendar entries (can be as
simple as Color.GREEN)public Paint getPaint(Class cl)
cl - the eventline object typepublic void setStroke(Class eventlineObjectType, Stroke paint)
eventlineObjectType - the object type of the eventline objectspaint - the paint used for drawing the eventline objects (can be as
simple as Color.GREEN)public Stroke getStroke(Class cl)
cl - the eventline object typepublic boolean isPaintingActivities()
IEventlineModel of the Eventline.public void setPaintingActivities(boolean paint)
IEventlineModel of the Eventline.paint - if TRUE the layer paints eventline activitiespublic boolean isPaintingEvents()
IEventlineModel of the Eventline.public void setPaintingEvents(boolean paint)
IEventlineModel of the Eventline.paint - if TRUE the layer paints eventline eventsCopyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.