Search in sources :

Example 1 with SWTDirectGC

use of org.pentaho.di.ui.spoon.SWTDirectGC in project pentaho-kettle by pentaho.

the class StarModelDialog method drawLogicalModel.

protected void drawLogicalModel(LogicalModel logicalModel, Canvas canvas, PaintEvent paintEvent) {
    getRelationshipsFromFact();
    Rectangle rect = canvas.getBounds();
    GCInterface gc = new SWTDirectGC(paintEvent.gc, new org.pentaho.di.core.gui.Point(rect.width, rect.height), 32);
    StarModelPainter painter = new StarModelPainter(gc, logicalModel, logicalRelationships, locale);
    painter.draw();
}
Also used : GCInterface(org.pentaho.di.core.gui.GCInterface) SWTDirectGC(org.pentaho.di.ui.spoon.SWTDirectGC) Rectangle(org.eclipse.swt.graphics.Rectangle)

Aggregations

Rectangle (org.eclipse.swt.graphics.Rectangle)1 GCInterface (org.pentaho.di.core.gui.GCInterface)1 SWTDirectGC (org.pentaho.di.ui.spoon.SWTDirectGC)1