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 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
    • 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 parent
        settings - ISettings
        colorManager - IColorManager
        ge - GanttEvent
        gc - GC
        threeDee - Whether 3D events is on or off
        dayWidth - Width of one day
        x - x location
        y - y location
        bounds - 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 parent
        settings - ISettings
        colorManager - IColorManager
        ge - GanttEvent
        gc - GC
        isSelected - Whether the event is selected or not
        threeDee - Whether 3D events is on or off
        dayWidth - Width of one day
        x - x location
        y - y location
        eventWidth - Width of event
        bounds - 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 parent
        settings - ISettings
        colorManager - IColorManager
        ge - GanttEvent
        gc - GC
        threeDee - Whether 3D events is on or off.
        x - x location
        y - y location
        eventWidth - Width of event
        bounds - 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 parent
        settings - ISettings
        colorManager - IColorManager
        ge - GanttEvent
        gc - GC
        threeDee - Whether 3D events is on or off
        x - x location
        y - y location
        eventWidth - Width of event
        daysNumber - Number of days the event encompasses
        bounds - 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 parent
        settings - ISettings
        colorManager - IColorManager
        ge - GanttEvent
        gc - GC
        toDraw - String to draw
        threeDee - Whether 3D events is on or off
        x - x location
        y - y location
        eventWidth - Width of event
        bounds - 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 parent
        settings - ISettings
        colorManager - IColorManager
        ge - GanttEvent
        gc - GC
        threeDee - Whether 3D events is on or off
        dayWidth - Width of one day
        x - x location
        y - y location
        eventWidth - Width of event
        bounds - 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 parent
        settings - ISettings
        colorManager - IColorManager
        ge - GanttEvent
        gc - GC
        image - Image
        threeDee - Whether 3D events is on or off
        dayWidth - Width of one day
        x - x location
        y - y location
        bounds - 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 parent
        settings - ISettings
        colorManager - IColorManager
        ge - GanttEvent
        gc - GC
        threeDee - Whether 3D events is on or off
        dayWidth - Width of one day
        y - y location
        xStart - 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 location
        y - Y location
        face - What direction the arrows is in (one of SWT.LEFT, SWT.RIGHT, SWT.UP, SWT.DOWN)
        gc - GC