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();
}
Aggregations