if (!BooleanDatatype.getValues("operatorGraph_useStyledBoxes").get(
0).booleanValue()) {
DrawObject.drawSimpleBoxOuterLines(g2d, 0, 0, size.width - 1,
size.height - 1, Color.WHITE, Color.BLACK);
} else {
DrawObject drawObject = null;
if (this.element instanceof Join) {
drawObject = this
.getOperatorStyle("operatorGraph_style_join");
} else if (this.element instanceof Optional) {
drawObject = this
.getOperatorStyle("operatorGraph_style_optional");
} else if (this.element instanceof Union) {
drawObject = this
.getOperatorStyle("operatorGraph_style_union");
} else if (this.element instanceof BasicIndexScan) {
drawObject = this
.getOperatorStyle("operatorGraph_style_basicindexscan");
} else if (this.element instanceof Root) {
drawObject = this
.getOperatorStyle("operatorGraph_style_root");
} else if (this.element instanceof Sort) {
drawObject = this
.getOperatorStyle("operatorGraph_style_sort");
} else if (this.element instanceof Result) {
drawObject = this
.getOperatorStyle("operatorGraph_style_result");
} else if (this.element instanceof Filter) {
drawObject = this
.getOperatorStyle("operatorGraph_style_filter");
} else if (this.element instanceof Projection) {
drawObject = this
.getOperatorStyle("operatorGraph_style_projection");
} else if (this.element instanceof Limit) {
drawObject = this
.getOperatorStyle("operatorGraph_style_limit");
} else if (this.element instanceof Offset) {
drawObject = this
.getOperatorStyle("operatorGraph_style_offset");
}
if (drawObject == null) {
drawObject = this
.getOperatorStyle("operatorGraph_style_basicoperator");
}
if (drawObject != null) {
drawObject.draw(g2d, 0, 0, size.width, size.height);
} else {
DrawObject.drawSimpleBoxOuterLines(g2d, 0, 0, size.width,
size.height, Color.WHITE, Color.BLACK);
}
}