Interface IPaintManager
-
- All Known Implementing Classes:
AbstractPaintManager
,DefaultPaintManager
public interface IPaintManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
drawArrowHead(int x, int y, int face, org.eclipse.swt.graphics.GC gc)
Draws an arrow head.void
drawCheckpoint(GanttComposite ganttComposite, ISettings settings, IColorManager colorManager, GanttEvent ge, org.eclipse.swt.graphics.GC gc, boolean threeDee, int dayWidth, int x, int y, org.eclipse.swt.graphics.Rectangle bounds)
Draws one checkpoint.void
drawDaysOnChart(GanttComposite ganttComposite, ISettings settings, IColorManager colorManager, GanttEvent ge, org.eclipse.swt.graphics.GC gc, boolean threeDee, int x, int y, int eventWidth, int daysNumber, org.eclipse.swt.graphics.Rectangle bounds)
Draws the little plaque showing how many number of days an event spans over.void
drawEvent(GanttComposite ganttComposite, ISettings settings, IColorManager colorManager, GanttEvent ge, org.eclipse.swt.graphics.GC gc, boolean isSelected, boolean threeDee, int dayWidth, int x, int y, int eventWidth, org.eclipse.swt.graphics.Rectangle bounds)
Draws one normal event.void
drawEventString(GanttComposite ganttComposite, ISettings settings, IColorManager colorManager, GanttEvent ge, org.eclipse.swt.graphics.GC gc, java.lang.String toDraw, boolean threeDee, int x, int y, int eventWidth, org.eclipse.swt.graphics.Rectangle bounds)
Draws a string shown next to an event.void
drawImage(GanttComposite ganttComposite, ISettings settings, IColorManager colorManager, GanttEvent ge, org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Image image, boolean threeDee, int dayWidth, int x, int y, org.eclipse.swt.graphics.Rectangle bounds)
Draws one checkpoint.void
drawLockedDateRangeMarker(GanttComposite ganttComposite, ISettings settings, IColorManager colorManager, GanttEvent ge, org.eclipse.swt.graphics.GC gc, boolean threeDee, int dayWidth, int y, int xStart, int xEnd, org.eclipse.swt.graphics.Rectangle bounds)
Draws the marker that shows what dates an event are locked down tovoid
drawPlannedDates(GanttComposite ganttComposite, ISettings settings, IColorManager colorManager, GanttEvent ge, org.eclipse.swt.graphics.GC gc, boolean threeDee, int x, int y, int eventWidth, org.eclipse.swt.graphics.Rectangle bounds)
Draws the planned dates.void
drawScope(GanttComposite ganttComposite, ISettings settings, IColorManager colorManager, GanttEvent ge, org.eclipse.swt.graphics.GC gc, boolean threeDee, int dayWidth, int x, int y, int eventWidth, org.eclipse.swt.graphics.Rectangle bounds)
Draws one scope.void
redrawStarting()
Notifies a redraw is starting from scratch, so you can zero out variables etc
-
-
-
Method Detail
-
redrawStarting
void redrawStarting()
Notifies a redraw is starting from scratch, so you can zero out variables etc
-
drawCheckpoint
void drawCheckpoint(GanttComposite ganttComposite, ISettings settings, IColorManager colorManager, GanttEvent ge, org.eclipse.swt.graphics.GC gc, boolean threeDee, int dayWidth, int x, int y, org.eclipse.swt.graphics.Rectangle bounds)
Draws one checkpoint.- Parameters:
ganttComposite
- GanttComposite parentsettings
- ISettingscolorManager
- IColorManagerge
- GanttEventgc
- GCthreeDee
- Whether 3D events is on or offdayWidth
- Width of one dayx
- x locationy
- y locationbounds
- full bounds of draw area
-
drawEvent
void drawEvent(GanttComposite ganttComposite, ISettings settings, IColorManager colorManager, GanttEvent ge, org.eclipse.swt.graphics.GC gc, boolean isSelected, boolean threeDee, int dayWidth, int x, int y, int eventWidth, org.eclipse.swt.graphics.Rectangle bounds)
Draws one normal event.- Parameters:
ganttComposite
- GanttComposite parentsettings
- ISettingscolorManager
- IColorManagerge
- GanttEventgc
- GCisSelected
- Whether the event is selected or notthreeDee
- Whether 3D events is on or offdayWidth
- Width of one dayx
- x locationy
- y locationeventWidth
- Width of eventbounds
- full bounds of draw area
-
drawPlannedDates
void drawPlannedDates(GanttComposite ganttComposite, ISettings settings, IColorManager colorManager, GanttEvent ge, org.eclipse.swt.graphics.GC gc, boolean threeDee, int x, int y, int eventWidth, org.eclipse.swt.graphics.Rectangle bounds)
Draws the planned dates.- Parameters:
ganttComposite
- GanttComposite parentsettings
- ISettingscolorManager
- IColorManagerge
- GanttEventgc
- GCthreeDee
- Whether 3D events is on or off.x
- x locationy
- y locationeventWidth
- Width of eventbounds
- full bounds of draw area
-
drawDaysOnChart
void drawDaysOnChart(GanttComposite ganttComposite, ISettings settings, IColorManager colorManager, GanttEvent ge, org.eclipse.swt.graphics.GC gc, boolean threeDee, int x, int y, int eventWidth, int daysNumber, org.eclipse.swt.graphics.Rectangle bounds)
Draws the little plaque showing how many number of days an event spans over.- Parameters:
ganttComposite
- GanttComposite parentsettings
- ISettingscolorManager
- IColorManagerge
- GanttEventgc
- GCthreeDee
- Whether 3D events is on or offx
- x locationy
- y locationeventWidth
- Width of eventdaysNumber
- Number of days the event encompassesbounds
- full bounds of draw area
-
drawEventString
void drawEventString(GanttComposite ganttComposite, ISettings settings, IColorManager colorManager, GanttEvent ge, org.eclipse.swt.graphics.GC gc, java.lang.String toDraw, boolean threeDee, int x, int y, int eventWidth, org.eclipse.swt.graphics.Rectangle bounds)
Draws a string shown next to an event.- Parameters:
ganttComposite
- GanttComposite parentsettings
- ISettingscolorManager
- IColorManagerge
- GanttEventgc
- GCtoDraw
- String to drawthreeDee
- Whether 3D events is on or offx
- x locationy
- y locationeventWidth
- Width of eventbounds
- full bounds of draw area
-
drawScope
void drawScope(GanttComposite ganttComposite, ISettings settings, IColorManager colorManager, GanttEvent ge, org.eclipse.swt.graphics.GC gc, boolean threeDee, int dayWidth, int x, int y, int eventWidth, org.eclipse.swt.graphics.Rectangle bounds)
Draws one scope.- Parameters:
ganttComposite
- GanttComposite parentsettings
- ISettingscolorManager
- IColorManagerge
- GanttEventgc
- GCthreeDee
- Whether 3D events is on or offdayWidth
- Width of one dayx
- x locationy
- y locationeventWidth
- Width of eventbounds
- full bounds of draw area
-
drawImage
void drawImage(GanttComposite ganttComposite, ISettings settings, IColorManager colorManager, GanttEvent ge, org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Image image, boolean threeDee, int dayWidth, int x, int y, org.eclipse.swt.graphics.Rectangle bounds)
Draws one checkpoint.- Parameters:
ganttComposite
- GanttComposite parentsettings
- ISettingscolorManager
- IColorManagerge
- GanttEventgc
- GCimage
- ImagethreeDee
- Whether 3D events is on or offdayWidth
- Width of one dayx
- x locationy
- y locationbounds
- full bounds of draw area
-
drawLockedDateRangeMarker
void drawLockedDateRangeMarker(GanttComposite ganttComposite, ISettings settings, IColorManager colorManager, GanttEvent ge, org.eclipse.swt.graphics.GC gc, boolean threeDee, int dayWidth, int y, int xStart, int xEnd, org.eclipse.swt.graphics.Rectangle bounds)
Draws the marker that shows what dates an event are locked down to- Parameters:
ganttComposite
- GanttComposite parentsettings
- ISettingscolorManager
- IColorManagerge
- GanttEventgc
- GCthreeDee
- Whether 3D events is on or offdayWidth
- Width of one dayy
- y locationxStart
- where to draw the being marker. Will be -1 if there is no marker to draw.xEnd
- where to draw the end marker. Will be -1 if there is no marker to draw.bounds
-
-
drawArrowHead
void drawArrowHead(int x, int y, int face, org.eclipse.swt.graphics.GC gc)
Draws an arrow head.- Parameters:
x
- X locationy
- Y locationface
- What direction the arrows is in (one of SWT.LEFT, SWT.RIGHT, SWT.UP, SWT.DOWN)gc
- GC
-
-