AbstractPaintManager, DefaultPaintManagerpublic interface IPaintManager
| 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 to
|
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.
|
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
|
void redrawStarting()
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)
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 areavoid 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)
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 areavoid 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)
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 areavoid 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)
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 areavoid 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)
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 areavoid 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)
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 areavoid 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)
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 areavoid 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)
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 - void drawArrowHead(int x,
int y,
int face,
org.eclipse.swt.graphics.GC gc)
x - X locationy - Y locationface - What direction the arrows is in (one of SWT.LEFT, SWT.RIGHT, SWT.UP, SWT.DOWN)gc - GC