Package org.jfree.chart.plot

Examples of org.jfree.chart.plot.Plot


        }
      }

    }

    final Plot plot = chart.getPlot();
    plot.setNoDataMessageFont(Font.decode(getLabelFont()));

    final String message = getNoDataMessage();
    if (message != null)
    {
      plot.setNoDataMessage(message);
    }

    plot.setOutlineVisible(isChartSectionOutline());

    if (backgroundImage != null)
    {
      if (plotImageCache != null)
      {
        plot.setBackgroundImage(plotImageCache);
      }
      else
      {
        final ExpressionRuntime expressionRuntime = getRuntime();
        final ProcessingContext context = expressionRuntime.getProcessingContext();
        final ResourceKey contentBase = context.getContentBase();
        final ResourceManager manager = context.getResourceManager();
        try
        {
          final ResourceKey key = createKeyFromString(manager, contentBase, backgroundImage);
          final Resource resource = manager.create(key, null, Image.class);
          final Image image = (Image) resource.getResource();
          plot.setBackgroundImage(image);
          plotImageCache = image;
        }
        catch (Exception e)
        {
          logger.error("ABSTRACTCHARTEXPRESSION.ERROR_0007_ERROR_RETRIEVING_PLOT_IMAGE", e); //$NON-NLS-1$
View Full Code Here


     * Test that the chart is using an xy plot with time as the domain axis.
     *
     * @param chart  the chart.
     */
    private void checkChart(JFreeChart chart) {
        Plot plot = chart.getPlot();
        if (!(plot instanceof PolarPlot)) {
            throw new IllegalArgumentException("plot is not a PolarPlot");
       }
    }
View Full Code Here

        IGfrValueLinearAndLogarithmic
{
   @Override
   public boolean isAxisXLogarithmic()
   {
      Plot plt = super.getPlot();
     
      if (plt != null)
         return ((IGfrValueLinearAndLogarithmic) plt).isAxisXLogarithmic();
     
      return false;
View Full Code Here

   }

   @Override
   public void setAxisXLogarithmic(boolean bln)
   {
      Plot plt = super.getPlot();
     
      if (plt != null)
         ((IGfrValueLinearAndLogarithmic) plt).setAxisXLogarithmic(bln);
   }
View Full Code Here

        IGfrHandlerLifeCycleObject
{
   @Override
   public boolean init()
   {
      Plot plt = super.getPlot();
     
      if (! ((IGfrHandlerLifeCycleObject)plt).init())
         return false;
     
      return true;
View Full Code Here

   }
  
   @Override
   public void destroy()
   {
      Plot plt = super.getPlot();
     
      if (plt != null)
         ((IGfrHandlerLifeCycleObject)plt).destroy();
   }
View Full Code Here

   }

   @Override
   public void setUnitDepthMeter(boolean bln)
   {
      Plot plt = super.getPlot();
     
      if (plt != null)
         ((IGfrDepthMetersAndFeet) plt).setUnitDepthMeter(bln);
   }
View Full Code Here

   // beg tempo
   public void updateSeriesNameChanged(
           String strOldValue,
           String strNewValue)
   {
      Plot plt = super.getPlot();

      if (plt instanceof GfrCombinedDomainXYPlotAbs)
         ((GfrCombinedDomainXYPlotAbs) plt).updateSeriesNameChanged(
                 strOldValue,
                 strNewValue);
View Full Code Here

      super.getDefaultCell().setPadding(5);


      chart.setBackgroundPaint(new Color(255, 255, 255));

      Plot plot = chart.getPlot();

      plot.setBackgroundPaint(new Color(255, 255, 255));


      if (plot instanceof CombinedDomainXYPlot)
      {
         List<XYPlot> lstPlot = ((List<XYPlot>) ((CombinedDomainXYPlot) plot).getSubplots());
View Full Code Here

    chart.getTitle().setFont(Font.decode("Verdana BOLD 12"));
    chart.setAntiAlias(true);
    chart.setBorderVisible(true);
    chart.setBackgroundPaint(new Color(241, 241, 241));

    Plot plot = chart.getPlot();

    plot.setDrawingSupplier(getDrawingSupplier());
    plot.setBackgroundPaint(new GradientPaint(0, 0, Color.white, 640, 480,
        new Color(200, 200, 200)));

    if (plot instanceof XYPlot) {
      XYPlot xyplot = (XYPlot) plot;
      Font labelFont = Font.decode("Verdana PLAIN");
View Full Code Here

TOP

Related Classes of org.jfree.chart.plot.Plot

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.