|
||||||||||
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.CalendarLayer
public class CalendarLayer
The calendar layer is responsible for drawing the information provided by the calendar model.
AbstractGanttChart.getCalendarModel()
Field Summary |
---|
Fields inherited from class com.dlsc.flexgantt.swing.layer.AbstractLayer |
---|
alpha, changeSupport, ganttChart, layerContainer, PROPERTY_ALPHA, PROPERTY_VISIBLE |
Constructor Summary | |
---|---|
CalendarLayer(LayerContainer lc)
Constructs a new background layer. |
Method Summary | |
---|---|
ICalendarEntryRenderer |
getCalendarEntryRenderer(java.lang.Class cl)
Returns a popup renderer for a given popup value type. |
java.util.Map<java.lang.Class,ICalendarEntryRenderer> |
getCalendarEntryRendererMap()
Returns the map storring the mappings between calendar entry types and calendar entry renderers. |
protected void |
paintLayer(java.awt.Graphics g)
|
void |
setCalendarEntryRenderer(java.lang.Class objectType,
ICalendarEntryRenderer renderer)
Maps the implementation of a popup renderer to a popup object definition. |
void |
setCalendarEntryRendererMap(java.util.Map<java.lang.Class,ICalendarEntryRenderer> map)
Sets the map storring the mappings between calendar entry types and calendar entry renderers. |
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 CalendarLayer(LayerContainer lc)
lc
- the parent layer containerMethod Detail |
---|
protected void paintLayer(java.awt.Graphics g)
paintLayer
in class AbstractLayer
public void setCalendarEntryRenderer(java.lang.Class objectType, ICalendarEntryRenderer renderer)
objectType
- the type of the popup objects where the popup will be rendered
with the given rendererrenderer
- an implementation that will be used to renderer instances of
the given popup object typeDefaultPopupRenderer
,
IPopupPolicy.getPopupValue(Object, Object,
com.dlsc.flexgantt.model.gantt.IGanttChartModel, boolean)
public ICalendarEntryRenderer getCalendarEntryRenderer(java.lang.Class cl)
cl
- the popup object type in need of rendering
setCalendarEntryRenderer(Class, ICalendarEntryRenderer)
,
DefaultPopupRenderer
,
IPopupPolicy
public java.util.Map<java.lang.Class,ICalendarEntryRenderer> getCalendarEntryRendererMap()
public void setCalendarEntryRendererMap(java.util.Map<java.lang.Class,ICalendarEntryRenderer> map)
map
- the mapping between entries and renderers
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |