Package java.awt

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


        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

  /**
   * @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

        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

                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

    public TexturePaint getTextureMask() {
        return textureMask;
    }

    protected void setEdgeMatchesFill() {
        Paint paint = getDisplayPaint();
        if (fillPaint instanceof Color && paint instanceof Color
                && !isClear(fillPaint)) {
            edgeMatchesFill = ((Color) fillPaint).equals((Color) paint);
        } else {
            edgeMatchesFill = false;
View Full Code Here

        int[][] ypts = ypoints;
        int[] _x, _y;
        int i;
        int len = xpts.length;

        Paint displayPaint = getDisplayPaint();
        Paint fillPaint = getFillPaint();
        boolean isFillClear = isClear(fillPaint);
        boolean isLineClear = isClear(displayPaint);

        // If shapes are null, then we have to do things the old way.
        try {
View Full Code Here

        int[] _x, _y;
        int i;
        int len = xpts.length;

        Paint displayPaint = getDisplayPaint();
        Paint fillPaint = getFillPaint();
        boolean isFillClear = isClear(fillPaint);
        boolean isLineClear = isClear(displayPaint);

        Paint tm = getTextureMask();

        // If shapes are null, then we have to do things the old way.
        try {
            for (i = 0; i < len; i++) {
                _x = xpts[i];
View Full Code Here

     * @since
     */
    private void setLocationColor(BasicLocation bl, int t) {
        if (bl == null)
            return;
        Paint c = getLabPaint(t);
        OMText label = bl.getLabel();
        if (label != null) {
            if (LabTextColor != null)
                label.setLinePaint(LabTextColor);
            else
View Full Code Here

        // setBackground(ImageServerUtils.getBackground(requestProperties,
        // getBackground()));

        // New way, passed along to ImageServer methods.
        Paint bgPaint = ImageServerUtils.getBackground(requestProperties,
                getBackground());

        boolean formatFound = false;

        String format = requestProperties.getProperty(FORMAT);
View Full Code Here

TOP

Related Classes of java.awt.Paint

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.