Package org.jfree.ui

Examples of org.jfree.ui.RectangleInsets


            }
            chart.getXYPlot().setDomainGridlinePaint(new Color(gridColor));
            chart.getXYPlot().setRangeGridlinePaint(new Color(gridColor));
            chart.getXYPlot().setDomainAxis(0, new DateAxis());
            chart.getXYPlot().setDomainAxis(1, new DateAxis());
            chart.getXYPlot().setInsets(new RectangleInsets(-15, 0, 0, 10));

            response.setHeader("Content-type", "image/png");
            response.getOutputStream().write(ChartUtilities.encodeAsPNG(chart.createBufferedImage(width, height)));
        }
View Full Code Here


   
    Boolean textAntiAlias = chartSettings.getTextAntiAlias();
    if(textAntiAlias != null)
      jfreeChart.setTextAntiAlias(textAntiAlias.booleanValue());
   
    RectangleInsets padding = chartSettings.getPadding();
    if(padding != null)
    {
      jfreeChart.setPadding(padding);//FIXMETHEME consider using linebox
    }
    configurePlot(jfreeChart.getPlot(), jrPlot);
View Full Code Here

  /**
   *
   */
  protected void configurePlot(Plot plot, JRChartPlot jrPlot)
  {
    RectangleInsets padding = getPlotSettings().getPadding();
    if(padding != null)
      plot.setInsets(padding);

    Boolean plotOutlineVisible = getPlotSettings().getOutlineVisible();
    if(plotOutlineVisible == null || plotOutlineVisible.booleanValue())
View Full Code Here

     
      VerticalAlignment vAlign = legendSettings.getVerticalAlignment();
      if(vAlign != null)
        legend.setVerticalAlignment(vAlign);
     
      RectangleInsets padding = legendSettings.getPadding();
      if(padding != null)
        legend.setPadding(padding);

      legend.setPosition(
        getEdge(
View Full Code Here

      JRFontUtil.copyNonNullOwnProperties(axisSettings.getLabelFont(), font);
      JRFontUtil.copyNonNullOwnProperties(labelFont, font);
      font = new JRBaseFont(getChart(), font);
      axis.setLabelFont(JRFontUtil.getAwtFont(font, getLocale()));
     
      RectangleInsets labelInsets = axisSettings.getLabelInsets();
      if(labelInsets != null)
      {
        axis.setLabelInsets(labelInsets);
      }
      Paint labelPaint = labelColor != null
View Full Code Here

      JRFontUtil.copyNonNullOwnProperties(axisSettings.getTickLabelFont(), font);
      JRFontUtil.copyNonNullOwnProperties(tickLabelFont, font);
      font = new JRBaseFont(getChart(), font);
      axis.setTickLabelFont(JRFontUtil.getAwtFont(font, getLocale()));
     
      RectangleInsets tickLabelInsets = axisSettings.getTickLabelInsets();
      if(tickLabelInsets != null)
      {
        axis.setTickLabelInsets(tickLabelInsets);
      }
     
View Full Code Here

   
    VerticalAlignment vAlign = titleSettings.getVerticalAlignment();
    if(vAlign != null)
      title.setVerticalAlignment(vAlign);
   
    RectangleInsets padding = titleSettings.getPadding();
    if(padding != null)
      title.setPadding(padding);
   
    if (titleForegroundPaint != null)
      title.setPaint(titleForegroundPaint);
View Full Code Here

  /**
   * @param padding the padding to set
   */
  public void setPadding(RectangleInsets padding) {
    RectangleInsets old = getPadding();
    this.padding = padding;
    getEventSupport().firePropertyChange(PROPERTY_padding, old, getPadding());
  }
View Full Code Here

  /**
   * @param padding the padding to set
   */
  public void setPadding(RectangleInsets padding) {
    RectangleInsets old = getPadding();
    this.padding = padding;
    getEventSupport().firePropertyChange(PROPERTY_padding, old, getPadding());
  }
View Full Code Here

    TextTitle title = jfreeChart.getTitle();

    if(title != null)
    {
     
      RectangleInsets padding = title.getPadding();
      double bottomPadding = Math.max(padding.getBottom(), 15d);
      title.setPadding(padding.getTop(), padding.getLeft(), bottomPadding, padding.getRight());
    }
  }
View Full Code Here

TOP

Related Classes of org.jfree.ui.RectangleInsets

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.