Examples of Paint


Examples of ae.java.awt.Paint

    public void clearRect(int x, int y, int w, int h) {
        // REMIND: has some "interesting" consequences if threads are
        // not synchronized
        Composite c = composite;
        Paint p = paint;
        setComposite(AlphaComposite.Src);
        setColor(getBackground());
        validatePipe();
        fillRect(x, y, w, h);
        setPaint(p);
View Full Code Here

Examples of android.graphics.Paint

                            new Rect(
                                (g.getBitmapWidth() - rgb.getWidth())/2,
                                (g.getBitmapHeight() - rgb.getHeight())/2,
                                rgb.getWidth(),
                                rgb.getHeight()),
                            new Paint());
                } else {
                    RgbImage rgb = (RgbImage) rs.Front();
                    g.drawARGB(0, 255, 0, 0); // red
                    g.drawBitmap(
                            RgbImageAndroid.toBitmap(rgb),
                            new Rect(0, 0, rgb.getWidth(), rgb.getHeight()),
                            new Rect(
                                (g.getBitmapWidth() - rgb.getWidth())/2,
                                (g.getBitmapHeight() - rgb.getHeight())/2,
                                rgb.getWidth(),
                                rgb.getHeight()),
                            new Paint());
                }
             }
        }
    }
View Full Code Here

Examples of android.graphics.Paint

  }
 
  public void onDraw(Canvas canvas) {
    super.onDraw(canvas);
    if (this.boolShowX && this.vR.size() == 0) {
      Paint p = new Paint();
      p.setColor(Color.RED);
      canvas.drawLine(0, 0, this.getWidth(), this.getHeight(), p);
      canvas.drawLine(0, this.getHeight(), this.getWidth(), 0, p);
      return;
    }
    if (this.rectCurrent != null) {
      Paint p = new Paint();
      p.setColor(Color.YELLOW);
      p.setStyle(Style.STROKE);
      canvas.drawRect(this.rectCurrent, p);     
    }
    for (Enumeration<Rect> e = this.vR.elements();e.hasMoreElements();) {
      Rect r = e.nextElement();
      Paint p = new Paint();
      p.setColor(Color.GREEN);
      p.setStyle(Style.STROKE);
      canvas.drawRect(r, p);
    }
  }
View Full Code Here

Examples of com.google.code.appengine.awt.Paint

     * @param y rectangle to be cleared.
     * @param width rectangle to be cleared.
     * @param height rectangle to be cleared.
     */
    public void clearRect(double x, double y, double width, double height) {
        Paint temp = getPaint();
        setPaint(getBackground());
        fillRect(x, y, width, height);
        setPaint(temp);
    }
View Full Code Here

Examples of com.jgraph.gaeawt.java.awt.Paint

        boolean strikeThrough =
                TextAttribute.STRIKETHROUGH_ON.equals(
                        attributes.get(TextAttribute.STRIKETHROUGH)
                );

        Paint fg = (Paint) attributes.get(TextAttribute.FOREGROUND);
        Paint bg = (Paint) attributes.get(TextAttribute.BACKGROUND);

        if (
                !hasStandardUnderline &&
                imUnderline == null &&
                fg == null &&
View Full Code Here

Examples of java.awt.Paint

        setText(text);
        this.widthMultiplier = widthMultiplier;
    }

    public void paintComponent(Graphics2D g2d) {
        Paint oldPaint = g2d.getPaint();
        Composite oldComposite = g2d.getComposite();
        Color oldColor = g2d.getColor();
        Shape oldClip = g2d.getClip();

        if (!transparent) {
View Full Code Here

Examples of java.awt.Paint

        LabVisible = PropUtils.booleanFromProperties(props, prefix
                + ".LabVisible", LabVisible);
        Tx7Visible = PropUtils.booleanFromProperties(props, prefix
                + ".Tx7Visible", Tx7Visible);

        Paint dfault = null;

        ArcColors = parseColors(props, prefix, "ArcColors", Color.black);
        LabColors = parseColors(props, prefix, "LabColors", Color.black);
        Tx7Color = parseColor(props, prefix, "Tx7Color", dfault);
        SelectTx7Color = parseColor(props, prefix, "SelectTx7Color", null);
View Full Code Here

Examples of java.awt.Paint

  /**
   * @see Graphics#clearRect(int, int, int, int)
   */
  public void clearRect(final int x, final int y, final int width, final int height)
  {
    final Paint temp = paint;
    setPaint(background);
    fillRect(x, y, width, height);
    setPaint(temp);
  }
View Full Code Here

Examples of java.awt.Paint

        if (key instanceof GridCategoryItem)
        {
          continue;
        }
        final String label = key.toString();
        final Paint paint = getSeriesPaint(series);
        final Paint outlinePaint = getSeriesOutlinePaint(series);
        final Stroke stroke = getSeriesOutlineStroke(series);
        final LegendItem item = new LegendItem(label, label,
            null, null, shape, paint, stroke, outlinePaint);
        item.setDataset(getDataset());
        item.setSeriesKey(key);
View Full Code Here

Examples of java.awt.Paint

                right.closePath();
            }
        }

        if (pass == 0) {
            final Paint itemPaint = getItemPaint(row, column);
            g2.setPaint(itemPaint);
            g2.fill(left);
            g2.fill(right);

            // add an entity for the item...
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.