Class GCFactory

java.lang.Object
org.eclipse.nebula.widgets.nattable.util.GCFactory

public class GCFactory extends Object
  • Constructor Details

    • GCFactory

      public GCFactory(org.eclipse.swt.graphics.Drawable drawable)
      Parameters:
      drawable - the drawable to draw on by the GC instances created by this factory.
  • Method Details

    • createGC

      public org.eclipse.swt.graphics.GC createGC()
      Constructs a new instance of this class which has been configured to draw on the drawable configured in this GCFactory. You must dispose the graphics context when it is no longer required.
      Returns:
      A new GC instance or null if the Drawable configured for this GCFactory is disposed.