Examples of draw()


Examples of com.badlogic.gdx.graphics.g2d.BitmapFont.draw()

        font.setColor(fontColorSelected.r, fontColorSelected.g, fontColorSelected.b, fontColorSelected.a * parentAlpha);
      } else {
        font.setColor(fontColorUnselected.r, fontColorUnselected.g, fontColorUnselected.b, fontColorUnselected.a
          * parentAlpha);
      }
      font.draw(batch, items[i], x + textOffsetX, y + posY - textOffsetY);
      posY -= itemHeight;
    }
  }

  @Override
View Full Code Here

Examples of com.badlogic.gdx.graphics.g2d.NinePatch.draw()

    layout();
    applyTransform(batch);
    calculateBoundsAndScissors(batch.getTransformMatrix());

    batch.setColor(color.r, color.g, color.b, color.a * parentAlpha);
    backgroundPatch.draw(batch, 0, 0, width, height);
    float textY = height - (int)(backgroundPatch.getTopHeight() / 2) + (int)(textBounds.height / 2);
    titleFont.setColor(titleFontColor.r, titleFontColor.g, titleFontColor.b, titleFontColor.a * parentAlpha);
    titleFont.drawMultiLine(batch, title, (int)(width / 2), textY, 0, HAlignment.CENTER);
    batch.flush();

View Full Code Here

Examples of com.badlogic.gdx.scenes.scene2d.Stage.draw()

                road.update(v);
                road.render(stage.getCamera());

                stage.act();
                stage.draw();
            }

            @Override
            public void resize(int i, int i2) {
View Full Code Here

Examples of com.badlogic.gdx.scenes.scene2d.utils.Drawable.draw()

        if (bg != null) offset = bg.getTopHeight();
        knobBefore.draw(batch, x + (int)((width - knobBefore.getMinWidth()) * 0.5f), y + offset, knobBefore.getMinWidth(),
          (int)(position + knobHeightHalf));
      }
      if (knobAfter != null) {
        knobAfter.draw(batch, x + (int)((width - knobAfter.getMinWidth()) * 0.5f), y + (int)(position + knobHeightHalf),
          knobAfter.getMinWidth(), height - (int)(position + knobHeightHalf));
      }
      if (knob != null) knob.draw(batch, x + (int)((width - knobWidth) * 0.5f), (int)(y + position), knobWidth, knobHeight);
    } else {
      bg.draw(batch, x, y + (int)((height - bg.getMinHeight()) * 0.5f), width, bg.getMinHeight());
View Full Code Here

Examples of com.cburch.logisim.circuit.Circuit.draw()

      // And finally draw the circuit onto the page
      ComponentDrawContext context = new ComponentDrawContext(
          proj.getFrame().getCanvas(), circ, circState,
          base, g, printerView);
      Collection<Component> noComps = Collections.emptySet();
      circ.draw(context, noComps);
      g.dispose();
      return Printable.PAGE_EXISTS;
    }
  }
 
View Full Code Here

Examples of com.cburch.logisim.tools.Tool.draw()

    // draw tool
    Tool tool = dragTool != null ? dragTool : proj.getTool();
    if (tool != null && !canvas.isPopupMenuUp()) {
      Graphics gCopy = g.create();
      context.setGraphics(gCopy);
      tool.draw(canvas, context);
      gCopy.dispose();
    }
  }
 
  private void drawWidthIncompatibilityData(Graphics base, Graphics g, Project proj) {
View Full Code Here

Examples of com.cubusmail.client.canvases.addressbook.AddressDetailsCanvas.draw()

    detail.setHeight100();

    CanvasRegistry.ADDRESS_DETAILS.get(AddressDetailsCanvas.class)
        .setAddress(createTestAddress());

    detail.draw();
  }

  private Address createTestAddress() {
    Address address = new Address();
    address.setFirstName("firstname");
View Full Code Here

Examples of com.cubusmail.client.canvases.addressbook.AddressEditAddressForm.draw()

    // testAddressForm();
  }

  private void testAddressForm() {
    AddressEditAddressForm form = new AddressEditAddressForm();
    form.draw();
  }

  private void testAddressEditCanvas() {
    final AddressEditCanvas edit = new AddressEditCanvas();
    edit.setWidth100();
View Full Code Here

Examples of com.cubusmail.client.canvases.addressbook.AddressEditCanvas.draw()

              com.smartgwt.client.widgets.events.ClickEvent event) {
            GWT.log(edit.getAddress().toString());
          }
        });

    edit.draw();
  }

  private void testForms() {
    final DynamicForm form = new DynamicForm();
    form.setWidth100();
View Full Code Here

Examples of com.cubusmail.client.canvases.mail.ComposeMessageCanvas.draw()

  }

  private void testComposeMessageCanvas() {
    ComposeMessageCanvas compose = new ComposeMessageCanvas();

    compose.draw();
  }

  private void testEmailAddressLine() {
    VLayout layout = new VLayout();
    layout.setSize("100%", "100%");
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.