public abstract class AbstractPaintManager extends java.lang.Object implements IPaintManager
Constructor and Description |
---|
AbstractPaintManager() |
Modifier and Type | Method and 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 event,
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 event,
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 event,
org.eclipse.swt.graphics.GC gc,
boolean isSelected,
boolean threeDee,
int dayWidth,
int xStart,
int y,
int eventWidth,
org.eclipse.swt.graphics.Rectangle bounds)
Draws one normal event.
|
void |
drawEventString(GanttComposite ganttComposite,
ISettings settings,
IColorManager colorManager,
GanttEvent event,
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 event,
org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Image image,
boolean threeDee,
int dayWidth,
int xLoc,
int yStart,
org.eclipse.swt.graphics.Rectangle fullBounds)
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 startLoc,
int end,
org.eclipse.swt.graphics.Rectangle bounds)
Draws the marker that shows what dates an event are locked down to
|
void |
drawPlannedDates(GanttComposite ganttComposite,
ISettings settings,
IColorManager colorManager,
GanttEvent event,
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 event,
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
|
public void redrawStarting()
IPaintManager
redrawStarting
in interface IPaintManager
public void drawEvent(GanttComposite ganttComposite, ISettings settings, IColorManager colorManager, GanttEvent event, org.eclipse.swt.graphics.GC gc, boolean isSelected, boolean threeDee, int dayWidth, int xStart, int y, int eventWidth, org.eclipse.swt.graphics.Rectangle bounds)
IPaintManager
drawEvent
in interface IPaintManager
ganttComposite
- GanttComposite parentsettings
- ISettingscolorManager
- IColorManagerevent
- GanttEventgc
- GCisSelected
- Whether the event is selected or notthreeDee
- Whether 3D events is on or offdayWidth
- Width of one dayxStart
- x locationy
- y locationeventWidth
- Width of eventbounds
- full bounds of draw areapublic void drawCheckpoint(GanttComposite ganttComposite, ISettings settings, IColorManager colorManager, GanttEvent event, org.eclipse.swt.graphics.GC gc, boolean threeDee, int dayWidth, int x, int y, org.eclipse.swt.graphics.Rectangle bounds)
IPaintManager
drawCheckpoint
in interface IPaintManager
ganttComposite
- GanttComposite parentsettings
- ISettingscolorManager
- IColorManagerevent
- GanttEventgc
- GCthreeDee
- Whether 3D events is on or offdayWidth
- Width of one dayx
- x locationy
- y locationbounds
- full bounds of draw areapublic void drawPlannedDates(GanttComposite ganttComposite, ISettings settings, IColorManager colorManager, GanttEvent event, org.eclipse.swt.graphics.GC gc, boolean threeDee, int x, int y, int eventWidth, org.eclipse.swt.graphics.Rectangle bounds)
IPaintManager
drawPlannedDates
in interface IPaintManager
ganttComposite
- GanttComposite parentsettings
- ISettingscolorManager
- IColorManagerevent
- GanttEventgc
- GCthreeDee
- Whether 3D events is on or off.x
- x locationy
- y locationeventWidth
- Width of eventbounds
- full bounds of draw areapublic void drawDaysOnChart(GanttComposite ganttComposite, ISettings settings, IColorManager colorManager, GanttEvent event, org.eclipse.swt.graphics.GC gc, boolean threeDee, int x, int y, int eventWidth, int daysNumber, org.eclipse.swt.graphics.Rectangle bounds)
IPaintManager
drawDaysOnChart
in interface IPaintManager
ganttComposite
- GanttComposite parentsettings
- ISettingscolorManager
- IColorManagerevent
- 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 areapublic void drawEventString(GanttComposite ganttComposite, ISettings settings, IColorManager colorManager, GanttEvent event, org.eclipse.swt.graphics.GC gc, java.lang.String toDraw, boolean threeDee, int x, int y, int eventWidth, org.eclipse.swt.graphics.Rectangle bounds)
IPaintManager
drawEventString
in interface IPaintManager
ganttComposite
- GanttComposite parentsettings
- ISettingscolorManager
- IColorManagerevent
- GanttEventgc
- GCtoDraw
- String to drawthreeDee
- Whether 3D events is on or offx
- x locationy
- y locationeventWidth
- Width of eventbounds
- full bounds of draw areapublic void drawScope(GanttComposite ganttComposite, ISettings settings, IColorManager colorManager, GanttEvent event, org.eclipse.swt.graphics.GC gc, boolean threeDee, int dayWidth, int x, int y, int eventWidth, org.eclipse.swt.graphics.Rectangle bounds)
IPaintManager
drawScope
in interface IPaintManager
ganttComposite
- GanttComposite parentsettings
- ISettingscolorManager
- IColorManagerevent
- GanttEventgc
- GCthreeDee
- Whether 3D events is on or offdayWidth
- Width of one dayx
- x locationy
- y locationeventWidth
- Width of eventbounds
- full bounds of draw areapublic void drawImage(GanttComposite ganttComposite, ISettings settings, IColorManager colorManager, GanttEvent event, org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Image image, boolean threeDee, int dayWidth, int xLoc, int yStart, org.eclipse.swt.graphics.Rectangle fullBounds)
IPaintManager
drawImage
in interface IPaintManager
ganttComposite
- GanttComposite parentsettings
- ISettingscolorManager
- IColorManagerevent
- GanttEventgc
- GCimage
- ImagethreeDee
- Whether 3D events is on or offdayWidth
- Width of one dayxLoc
- x locationyStart
- y locationfullBounds
- full bounds of draw areapublic void drawArrowHead(int x, int y, int face, org.eclipse.swt.graphics.GC gc)
IPaintManager
drawArrowHead
in interface IPaintManager
x
- X locationy
- Y locationface
- What direction the arrows is in (one of SWT.LEFT, SWT.RIGHT, SWT.UP, SWT.DOWN)gc
- GCpublic void drawLockedDateRangeMarker(GanttComposite ganttComposite, ISettings settings, IColorManager colorManager, GanttEvent ge, org.eclipse.swt.graphics.GC gc, boolean threeDee, int dayWidth, int y, int startLoc, int end, org.eclipse.swt.graphics.Rectangle bounds)
IPaintManager
drawLockedDateRangeMarker
in interface IPaintManager
ganttComposite
- GanttComposite parentsettings
- ISettingscolorManager
- IColorManagerge
- GanttEventgc
- GCthreeDee
- Whether 3D events is on or offdayWidth
- Width of one dayy
- y locationstartLoc
- where to draw the being marker. Will be -1 if there is no marker to draw.end
- where to draw the end marker. Will be -1 if there is no marker to draw.