Package lupos.gui.operatorgraph

Examples of lupos.gui.operatorgraph.DrawObject


      if (!BooleanDatatype.getValues("operatorGraph_useStyledBoxes").get(
          0).booleanValue()) {
        DrawObject.drawSimpleBoxOuterLines(g2d, 0, 0, size.width - 1,
            size.height - 1, Color.WHITE, Color.BLACK);
      } else {
        final DrawObject drawObject = this
            .getOperatorStyle("operatorGraph_style_annotations");
        drawObject.draw(g2d, 0, 0, size.width, size.height);
      }
    } catch (final Exception e) {
      System.err.println(e);
      e.printStackTrace();
    }
View Full Code Here


      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);
        }
      }
View Full Code Here

  public void drawAnnotationsBackground(final Graphics2D g2d, final Dimension size) {
    try {
      if (!BooleanDatatype.getValues("operatorGraph_useStyledBoxes").get(0).booleanValue()) {
        DrawObject.drawSimpleBoxOuterLines(g2d, 0, 0, size.width - 1, size.height - 1, Color.WHITE, Color.BLACK);
      } else {
        final DrawObject drawObject = this.getOperatorStyle("operatorGraph_style_annotations");
        drawObject.draw(g2d, 0, 0, size.width, size.height);
      }
    } catch (final Exception e) {
      System.err.println(e);
      e.printStackTrace();
    }
View Full Code Here

  public void drawBackground(final Graphics2D g2d, final Dimension size) {
    try {
      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;

        final BasicOperatorByteArray operator = (BasicOperatorByteArray) this.element;

        final byte type = operator.getTypeASByte();

        drawObject = this.getOperatorStyle("operatorGraph_style_" + MAPPING_OPERATORTYPE_TO_PREFERENCES[type]);

        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);
        }
      }
View Full Code Here

TOP

Related Classes of lupos.gui.operatorgraph.DrawObject

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.