|
||||||||||
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.EventlineLayer
public class EventlineLayer
The eventline layer picks up eventline activities and events from the eventline (model) and visualizes them in the layer container. Activities are shown as filled rectangles and events as vertical lines, both of them reaching from the top to the bottom of the layer container. Different strokes and paints can be specified for different eventline objects.
Field Summary |
---|
Fields inherited from class com.dlsc.flexgantt.swing.layer.AbstractLayer |
---|
alpha, changeSupport, ganttChart, layerContainer, PROPERTY_ALPHA, PROPERTY_VISIBLE |
Constructor Summary | |
---|---|
EventlineLayer(LayerContainer lc)
Constructs a new eventline layer. |
Method Summary | |
---|---|
java.awt.Paint |
getPaint(java.lang.Class cl)
Returns the paint object that will be used for drawing eventline objects of the given type. |
java.awt.Stroke |
getStroke(java.lang.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(java.awt.Graphics g)
|
void |
setPaint(java.lang.Class eventlineObjectType,
java.awt.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(java.lang.Class eventlineObjectType,
java.awt.Stroke paint)
Sets the stroke object that will be used for drawing eventline objects of the given type. |
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, isVisible, 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 EventlineLayer(LayerContainer lc)
lc
- the layer container to which the layer belongs.Method Detail |
---|
protected void paintLayer(java.awt.Graphics g)
paintLayer
in class AbstractLayer
public void setPaint(java.lang.Class eventlineObjectType, java.awt.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 java.awt.Paint getPaint(java.lang.Class cl)
cl
- the eventline object type
public void setStroke(java.lang.Class eventlineObjectType, java.awt.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 java.awt.Stroke getStroke(java.lang.Class cl)
cl
- the eventline object type
public 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 events
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |