Class GCFactory
java.lang.Object
org.eclipse.nebula.widgets.nattable.util.GCFactory
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
GCFactory
public GCFactory(org.eclipse.swt.graphics.Drawable drawable) - Parameters:
drawable- the drawable to draw on by theGCinstances 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 thisGCFactory. You must dispose the graphics context when it is no longer required.- Returns:
- A new
GCinstance ornullif theDrawableconfigured for thisGCFactoryis disposed.
-