Examples of drawOval()


Examples of com.tinyline.tiny2d.Tiny2D.drawOval()

        if (black)
            t2d.fillColor = t2d.strokeColor;
        else
            t2d.fillColor = new TinyColor(whiteStoneColor);

        t2d.drawOval(daAnchorX, daAnchorY, daWidth(tile), daHeight(tile));
        //t2d.drawLine(arg0, arg1, arg2, arg3)
    }

    void drawCircle(final Tile tile, boolean black) {
        Tiny2D t2d = getT2D(tile);
View Full Code Here

Examples of java.awt.Graphics.drawOval()

    Graphics g = context.getGraphics();
    GraphicsUtil.switchToWidth(g, 2);
    for (Entry e : data) {
      if (e.state == state) {
        Location p = e.loc;
        g.drawOval(p.getX() - 4, p.getY() - 4, 8, 8);
      } else if (stateMap.containsKey(e.state)) {
        CircuitState substate = stateMap.get(e.state);
        Component subcirc = substate.getSubcircuit();
        Bounds b = subcirc.getBounds();
        g.drawRect(b.getX(), b.getY(), b.getWidth(), b.getHeight());
View Full Code Here

Examples of java.awt.Graphics.drawOval()

  public void paintIconShaped(InstancePainter painter) {
    Graphics g = painter.getGraphics();
    GraphicsUtil.drawCenteredArc(g,   0, -5, 22, -9053);
    GraphicsUtil.drawCenteredArc(g,   0, 23, 2290, -53);
    GraphicsUtil.drawCenteredArc(g, -129, 16, -30, 60);
    g.drawOval(16, 8, 4, 4);
  }

  @Override
  protected void paintShape(InstancePainter painter, int width, int height) {
    PainterShaped.paintOr(painter, width, height);
View Full Code Here

Examples of java.awt.Graphics.drawOval()

  protected abstract void paintIconShaped(InstancePainter painter);
 
  protected void paintIconRectangular(InstancePainter painter) {
    Graphics g = painter.getGraphics();
    g.drawRect(1, 2, 16, 16);
    if (negateOutput) g.drawOval(16, 8, 4, 4);
    String label = getRectangularLabel(painter.getAttributeSet());
    GraphicsUtil.drawCenteredText(g, label, 9, 8);
  }

  @Override
View Full Code Here

Examples of java.awt.Graphics.drawOval()

    Graphics g = painter.getGraphics();
    int[] xp = new int[] { 8, 0, 0, 8 };
    int[] yp = new int[] { 2, 2, 18, 18 };
    g.drawPolyline(xp, yp, 4);
    GraphicsUtil.drawCenteredArc(g, 8, 10, 8, -90, 180);
    g.drawOval(16, 8, 4, 4);
  }

  @Override
  protected void paintShape(InstancePainter painter, int width, int height) {
    PainterShaped.paintAnd(painter, width, height);
View Full Code Here

Examples of java.awt.Graphics.drawOval()

    Graphics g = painter.getGraphics();
    GraphicsUtil.drawCenteredArc(g,   0, - 5, 22, -9053);
    GraphicsUtil.drawCenteredArc(g,   0, 23, 2290, -53);
    GraphicsUtil.drawCenteredArc(g,  -89, 16, -30, 60);
    GraphicsUtil.drawCenteredArc(g, -109, 16, -30, 60);
    g.drawOval(16, 8, 4, 4);
  }

  @Override
  protected void paintShape(InstancePainter painter, int width, int height) {
    PainterShaped.paintXor(painter, width, height);
View Full Code Here

Examples of java.awt.Graphics.drawOval()

      int x = isInverter ? 0 : 2;
      g.setColor(Color.BLACK);
      int[] xp = new int[] { x + 15, x + 1, x + 1, x + 15 };
      int[] yp = new int[] { 10,     3,     17,    10 };
      g.drawPolyline(xp, yp, 4);
      if (isInverter) g.drawOval(x + 13, 8, 4, 4);
      g.setColor(Value.FALSE_COLOR);
      g.drawLine(x + 8, 14, x + 8, 18);
    }
  }
View Full Code Here

Examples of java.awt.Graphics.drawOval()

  @Override
  public void paintGhost(InstancePainter painter) {
    Graphics g = painter.getGraphics();
    Bounds bds = painter.getBounds();
    GraphicsUtil.switchToWidth(g, 2);
    g.drawOval(bds.getX() + 1, bds.getY() + 1,
        bds.getWidth() - 2, bds.getHeight() - 2);
  }

  @Override
  public void paintInstance(InstancePainter painter) {
View Full Code Here

Examples of java.awt.Graphics.drawOval()

      g.setColor(val == desired ? onColor : offColor);
      g.fillOval(bds.getX(), bds.getY(), bds.getWidth(), bds.getHeight());
    }
    g.setColor(Color.BLACK);
    GraphicsUtil.switchToWidth(g, 2);
    g.drawOval(bds.getX(), bds.getY(), bds.getWidth(), bds.getHeight());
    GraphicsUtil.switchToWidth(g, 1);
    g.setColor(painter.getAttributeValue(Io.ATTR_LABEL_COLOR));
    painter.drawLabel();
    painter.drawPorts();
  }
View Full Code Here

Examples of java.awt.Graphics.drawOval()

      xp[0] =  -6; yp[0] 0;
      xp[1] = -19; yp[1] = -6;
      xp[2] = -19; yp[2] 6;
      xp[3] =  -6; yp[3] 0;
      g.drawPolyline(xp, yp, 4);
      g.drawOval(-6, -3, 6, 6);
    } else {
      int[] xp = new int[4];
      int[] yp = new int[4];
      xp[0] = -10; yp[0] = 0;
      xp[1] = -29; yp[1] = -7;
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.