Package java.awt

Examples of java.awt.Paint


        dialPlot.addLayer(dialAnnotation);
      }
    }

    //DialPointer needle = new DialPointer.Pointer();
    Paint paint = new Color(191, 48, 0);
    DialPointer needle = new ScaledDialPointer(dialUnitScale, paint, paint);

    needle.setVisible(true);
    needle.setRadius(0.91);
    dialPlot.addLayer(needle);
View Full Code Here


      plot.setInsets(padding);

    Boolean plotOutlineVisible = getPlotSettings().getOutlineVisible();
    if(plotOutlineVisible == null || plotOutlineVisible.booleanValue())
    {
      Paint outlinePaint = getPlotSettings().getOutlinePaint() == null ? null : getPlotSettings().getOutlinePaint().getPaint();
      if(outlinePaint != null)
        plot.setOutlinePaint(outlinePaint);
     
      Stroke plotOutlineStroke = getPlotSettings().getOutlineStroke();
      if(plotOutlineStroke != null)
View Full Code Here

    }
  }

  protected void setChartBackground(JFreeChart jfreeChart)
  {
    Paint backgroundPaint = getChartSettings().getBackgroundPaint() == null ? null : getChartSettings().getBackgroundPaint().getPaint();

    if (getChart().getOwnModeValue() != null)
    {
      if(getChart().getOwnModeValue() == ModeEnum.OPAQUE)
      {
View Full Code Here

    {
      TextTitle title = jfreeChart.getTitle();
         
      if(title != null)
      {
        Paint forePaint = getChart().getOwnTitleColor();
        if (forePaint == null && titleSettings.getForegroundPaint() != null)
        {
          forePaint = titleSettings.getForegroundPaint().getPaint();
        }
        if (forePaint == null)
View Full Code Here

    {
      String subtitleText = (String)evaluateExpression(getChart().getSubtitleExpression());
      if (subtitleText != null)
      {
        TextTitle subtitle = new TextTitle(subtitleText);
        Paint subtitleForecolor = getChart().getOwnSubtitleColor() != null 
          ? getChart().getOwnSubtitleColor()
          : subtitleSettings.getForegroundPaint() != null 
          ? subtitleSettings.getForegroundPaint().getPaint()
          : getChart().getSubtitleColor();
        //Subtitle has not its own position set, and by default this will be set the same as title position
View Full Code Here

      JRFontUtil.copyNonNullOwnProperties(legendSettings.getFont(), font);
      JRFontUtil.copyNonNullOwnProperties(getChart().getLegendFont(), font);
      font = new JRBaseFont(getChart(), font);
      legend.setItemFont(JRFontUtil.getAwtFont(font, getLocale()));

      Paint forePaint = getChart().getOwnLegendColor();
      if (forePaint == null && legendSettings.getForegroundPaint() != null)
      {
        forePaint = legendSettings.getForegroundPaint().getPaint();
      }
      if (forePaint == null)
      {
        forePaint = getChart().getLegendColor();
      }
      if (forePaint != null)
        legend.setItemPaint(forePaint);

      Paint backPaint = getChart().getOwnLegendBackgroundColor();
      if (backPaint == null && legendSettings.getBackgroundPaint() != null)
      {
        backPaint = legendSettings.getBackgroundPaint().getPaint();
      }
      if (backPaint == null)
View Full Code Here

      if (isVisible)
      {
        Stroke stroke = chartSettings.getBorderStroke();
        if(stroke != null)
          jfreeChart.setBorderStroke(stroke);
        Paint paint = chartSettings.getBorderPaint() == null
            ? null
            : chartSettings.getBorderPaint().getPaint();
        if(paint != null)
          jfreeChart.setBorderPaint(paint);
      }
View Full Code Here

  }

  protected void setPlotBackground(Plot plot, JRChartPlot jrPlot)
  {
    PlotSettings plotSettings = getPlotSettings();
    Paint backgroundPaint = jrPlot.getOwnBackcolor();
    if(backgroundPaint == null && plotSettings.getBackgroundPaint() != null)
    {
      backgroundPaint = plotSettings.getBackgroundPaint().getPaint();
    }
    if(backgroundPaint == null)
View Full Code Here

  protected void setAxisLine(Axis axis, Paint lineColor, AxisSettings axisSettings)
  {
    Boolean axisLineVisible = axisSettings.getLineVisible();
    if(axisLineVisible == null || axisLineVisible.booleanValue())
    {
      Paint linePaint = lineColor;
      if (linePaint == null && axisSettings.getLinePaint() != null)
      {
        linePaint = axisSettings.getLinePaint().getPaint();
      }
      if (linePaint != null)
View Full Code Here

      RectangleInsets labelInsets = axisSettings.getLabelInsets();
      if(labelInsets != null)
      {
        axis.setLabelInsets(labelInsets);
      }
      Paint labelPaint = labelColor != null
          ? labelColor
          : axisSettings.getLabelPaint() != null
          ? axisSettings.getLabelPaint().getPaint()
          : null;
      if (labelPaint != null)
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.