Class AbstractPaintManager

java.lang.Object
org.eclipse.nebula.widgets.ganttchart.AbstractPaintManager
All Implemented Interfaces:
IPaintManager
Direct Known Subclasses:
DefaultPaintManager

public abstract class AbstractPaintManager
extends java.lang.Object
implements IPaintManager
  • Constructor Summary

    Constructors 
    Constructor Description
    AbstractPaintManager()  
  • Method Summary

    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 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • redrawStarting

      public void redrawStarting()
      Description copied from interface: IPaintManager
      Notifies a redraw is starting from scratch, so you can zero out variables etc
      Specified by:
      redrawStarting in interface IPaintManager
    • drawEvent

      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)
      Description copied from interface: IPaintManager
      Draws one normal event.
      Specified by:
      drawEvent in interface IPaintManager
      Parameters:
      ganttComposite - GanttComposite parent
      settings - ISettings
      colorManager - IColorManager
      event - GanttEvent
      gc - GC
      isSelected - Whether the event is selected or not
      threeDee - Whether 3D events is on or off
      dayWidth - Width of one day
      xStart - x location
      y - y location
      eventWidth - Width of event
      bounds - full bounds of draw area
    • drawCheckpoint

      public 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)
      Description copied from interface: IPaintManager
      Draws one checkpoint.
      Specified by:
      drawCheckpoint in interface IPaintManager
      Parameters:
      ganttComposite - GanttComposite parent
      settings - ISettings
      colorManager - IColorManager
      event - 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
    • drawPlannedDates

      public 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)
      Description copied from interface: IPaintManager
      Draws the planned dates.
      Specified by:
      drawPlannedDates in interface IPaintManager
      Parameters:
      ganttComposite - GanttComposite parent
      settings - ISettings
      colorManager - IColorManager
      event - 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

      public 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)
      Description copied from interface: IPaintManager
      Draws the little plaque showing how many number of days an event spans over.
      Specified by:
      drawDaysOnChart in interface IPaintManager
      Parameters:
      ganttComposite - GanttComposite parent
      settings - ISettings
      colorManager - IColorManager
      event - 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

      public 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)
      Description copied from interface: IPaintManager
      Draws a string shown next to an event.
      Specified by:
      drawEventString in interface IPaintManager
      Parameters:
      ganttComposite - GanttComposite parent
      settings - ISettings
      colorManager - IColorManager
      event - 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

      public 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)
      Description copied from interface: IPaintManager
      Draws one scope.
      Specified by:
      drawScope in interface IPaintManager
      Parameters:
      ganttComposite - GanttComposite parent
      settings - ISettings
      colorManager - IColorManager
      event - 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

      public 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)
      Description copied from interface: IPaintManager
      Draws one checkpoint.
      Specified by:
      drawImage in interface IPaintManager
      Parameters:
      ganttComposite - GanttComposite parent
      settings - ISettings
      colorManager - IColorManager
      event - GanttEvent
      gc - GC
      image - Image
      threeDee - Whether 3D events is on or off
      dayWidth - Width of one day
      xLoc - x location
      yStart - y location
      fullBounds - full bounds of draw area
    • drawArrowHead

      public void drawArrowHead​(int x, int y, int face, org.eclipse.swt.graphics.GC gc)
      Description copied from interface: IPaintManager
      Draws an arrow head.
      Specified by:
      drawArrowHead in interface IPaintManager
      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
    • drawLockedDateRangeMarker

      public 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)
      Description copied from interface: IPaintManager
      Draws the marker that shows what dates an event are locked down to
      Specified by:
      drawLockedDateRangeMarker in interface IPaintManager
      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
      startLoc - 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.