Package java.awt

Examples of java.awt.Paint


      if(tickLabelInsets != null)
      {
        axis.setTickLabelInsets(tickLabelInsets);
      }
     
      Paint tickLabelPaint = tickLabelColor != null
        ? tickLabelColor
        : axisSettings.getTickLabelPaint() != null
        ? axisSettings.getTickLabelPaint().getPaint()
        : null;
       
View Full Code Here


     
      Float axisTickMarksOutsideLength = axisSettings.getTickMarksOutsideLength();
      if(axisTickMarksOutsideLength != null)
        axis.setTickMarkInsideLength(axisTickMarksOutsideLength.floatValue());
     
      Paint tickMarkPaint = axisSettings.getTickMarksPaint() != null && axisSettings.getTickMarksPaint().getPaint() != null
        ? axisSettings.getTickMarksPaint().getPaint()
        : lineColor;
     
      if (tickMarkPaint != null)
      {
View Full Code Here

      title.setPadding(padding);
   
    if (titleForegroundPaint != null)
      title.setPaint(titleForegroundPaint);

    Paint backPaint = titleSettings.getBackgroundPaint() != null ? titleSettings.getBackgroundPaint().getPaint() : null;
    if(backPaint != null)
      title.setBackgroundPaint(backPaint);
    if(titleEdge != null)
      title.setPosition(titleEdge);
  }
View Full Code Here

      else if (orientation == PlotOrientation.HORIZONTAL) {
        circle = new Ellipse2D.Double(transY - transRange / 2.0,
            transX - transDomain / 2.0, transRange, transDomain);
      }

      Paint paint = getItemPaint(series, item);
      if (paint instanceof GradientPaint)
      {
        paint = new StandardGradientPaintTransformer().transform((GradientPaint)paint, circle);
      }
      g2.setPaint(paint);
View Full Code Here

      bar = new Rectangle2D.Double(barL0, barW0, barLength, state.getBarWidth());
    }
    else {
      bar = new Rectangle2D.Double(barW0, barL0, state.getBarWidth(), barLength);
    }
    Paint itemPaint = getItemPaint(row, column);
    if (itemPaint instanceof GradientPaint)
    {
      itemPaint = getGradientPaintTransformer().transform((GradientPaint)itemPaint, bar);
    }
    g2.setPaint(itemPaint);
View Full Code Here

        BarRenderer renderer = (BarRenderer) plot.getRenderer();
        renderer.setDrawBarOutline(false);
       
        // set up gradient paints for series...
        GradientPaint gp0 = new GradientPaint(0.0f, 0.0f, Color.green, 0.0f, 0.0f, new Color(0, 64, 0));
        Paint gp1 = new Color(0, 0, 0, 0);
        GradientPaint gp2 = new GradientPaint(0.0f, 0.0f, Color.red, 0.0f, 0.0f, new Color(64, 0, 0));
        //renderer.setSeriesPaint(0, gp0);
  renderer.setSeriesPaint(0, Color.green);
        renderer.setSeriesPaint(1, gp1);
        //renderer.setSeriesPaint(2, gp2);
View Full Code Here

    if (paintMode == PaintMode.PAINT) {
      List<Selectable> selectedItems = this.home.getSelectedItems();
     
      Color selectionColor = getSelectionColor();
      Color furnitureOutlineColor = getFurnitureOutlineColor();
      Paint selectionOutlinePaint = new Color(selectionColor.getRed(), selectionColor.getGreen(),
          selectionColor.getBlue(), 128);
      Stroke selectionOutlineStroke = new BasicStroke(6 / planScale,
          BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND);
      Stroke dimensionLinesSelectionOutlineStroke = new BasicStroke(4 / planScale,
          BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND);
View Full Code Here

            }
          });
    }   
   
    Color selectionColor = getSelectionColor();
    Paint selectionOutlinePaint = new Color(selectionColor.getRed(), selectionColor.getGreen(),
        selectionColor.getBlue(), 128);
    Stroke selectionOutlineStroke = new BasicStroke(6 / planScale,
        BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND);
    Stroke dimensionLinesSelectionOutlineStroke = new BasicStroke(4 / planScale,
        BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND);
View Full Code Here

      return width;
    }

    public void paintIcon(Component c, Graphics g, int x, int y) {
      Graphics2D g2d = (Graphics2D) g;
      Paint oldPaint = g2d.getPaint();

      if (color != null) {
        g2d.setPaint(color);
        g.fillRect(x, y, getIconWidth(), getIconHeight());
      }
View Full Code Here

            Color control = UIManager.getColor("control");
            int width = getWidth();
            int height = getHeight();

            Graphics2D g2 = (Graphics2D) g;
            Paint storedPaint = g2.getPaint();
            g2.setPaint(new GradientPaint(0, 0, getBackground(), width, 0,
                    control));
            g2.fillRect(0, 0, width, height);
            g2.setPaint(storedPaint);
        }
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.