Examples of DrawObject


Examples of lupos.gui.operatorgraph.DrawObject

      if (!BooleanDatatype.getValues("ast_useStyledBoxes").get(0)
          .booleanValue()) {
        DrawObject.drawSimpleBoxOuterLines(g2d, 0, 0, size.width - 1,
            size.height - 1, Color.WHITE, Color.BLACK);
      } else {
        DrawObject drawObject = null;

        if (isQueryHead(this.element.getClass())) {
          drawObject = this
              .getOperatorStyle("ast_style_queryheadnode");
        } else if (isOperatorNode(this.element.getClass())) {
          drawObject = this
              .getOperatorStyle("ast_style_operatornode");
        } else if (this.element instanceof ASTTripleSet) {
          drawObject = this
              .getOperatorStyle("ast_style_triplepatternnode");
        } else if (isFunctionNode(this.element.getClass())) {
          drawObject = this
              .getOperatorStyle("ast_style_functionnode");
        } else if (isHighLevelOperator(this.element.getClass())) {
          drawObject = this
              .getOperatorStyle("ast_style_highleveloperatornode");
        } else if (isTerminalNode(this.element.getClass())) {
          drawObject = this
              .getOperatorStyle("ast_style_terminalnode");
        } else if (isNonTerminalNode(this.element.getClass())) {
          drawObject = this
              .getOperatorStyle("ast_style_nonterminalnode");
        }

        if (drawObject != null) {
          drawObject.draw(g2d, 0, 0, size.width, size.height);
        } else {
          DrawObject.drawGradientPaintRoundBox(g2d, 0, 0, size.width,
              size.height, Color.LIGHT_GRAY, Color.WHITE);
        }
      }
View Full Code Here

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

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 {
        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

Examples of lupos.gui.operatorgraph.DrawObject

  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

Examples of lupos.gui.operatorgraph.DrawObject

  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

Examples of org.apache.pdfbox.contentstream.operator.DrawObject

     * @throws IOException If there is an error loading text stripper properties.
     */
    public PrintImageLocations() throws IOException
    {
        addOperator(new Concatenate());
        addOperator(new DrawObject());
        addOperator(new SetGraphicsStateParameters());
        addOperator(new Save());
        addOperator(new Restore());
        addOperator(new SetMatrix());
    }
View Full Code Here

Examples of org.apache.pdfbox.contentstream.operator.DrawObject

     */
    public PDFTextStreamEngine() throws IOException
    {
        addOperator(new BeginText());
        addOperator(new Concatenate());
        addOperator(new DrawObject()); // special text version
        addOperator(new EndText());
        addOperator(new SetGraphicsStateParameters());
        addOperator(new Save());
        addOperator(new Restore());
        addOperator(new NextLine());
View Full Code Here

Examples of org.apache.pdfbox.contentstream.operator.DrawObject

        addOperator(new Concatenate());

        addOperator(new SetStrokingColorSpace());
        addOperator(new SetNonStrokingColorSpace());
        addOperator(new SetLineDashPattern());
        addOperator(new DrawObject());

        addOperator(new SetLineJoinStyle());
        addOperator(new SetLineCapStyle());
        addOperator(new SetStrokingDeviceCMYKColor());
        addOperator( new SetNonStrokingDeviceCMYKColor());
View Full Code Here

Examples of org.apache.pdfbox.contentstream.operator.graphics.DrawObject

        addOperator(new CurveTo());
        addOperator(new Concatenate());
        addOperator(new SetStrokingColorSpace());
        addOperator(new SetNonStrokingColorSpace());
        addOperator(new SetLineDashPattern());
        addOperator(new DrawObject()); // special graphics version
        addOperator(new EndText());
        addOperator(new FillNonZeroRule());
        addOperator(new LegacyFillNonZeroRule());
        addOperator(new FillEvenOddRule());
        addOperator(new SetStrokingDeviceGrayColor());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.