Examples of RectangleInsets


Examples of org.jfree.ui.RectangleInsets

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

Examples of org.jfree.ui.RectangleInsets

    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

Examples of org.jfree.ui.RectangleInsets

    Double padding = (Double)getDefaultValue(defaultChartPropertiesMap, ChartThemesConstants.CHART_PADDING);
    UnitType unitType = (UnitType)getDefaultValue(defaultChartPropertiesMap, ChartThemesConstants.UNIT_TYPE);
    if(padding != null && unitType != null)
    {
      double chartPadding = padding.doubleValue();
      jfreeChart.setPadding(new RectangleInsets(unitType, chartPadding, chartPadding, chartPadding, chartPadding));
    }
    configurePlot(jfreeChart.getPlot(), jrPlot);
  }
View Full Code Here

Examples of org.jfree.ui.RectangleInsets

  /**
   *
   */
  protected void configurePlot(Plot p, JRChartPlot jrPlot)
  {
    RectangleInsets defaultPlotInsets = (RectangleInsets)getDefaultValue(defaultPlotPropertiesMap, ChartThemesConstants.PLOT_INSETS);
    Paint defaultPlotOutlinePaint = (Paint)getDefaultValue(defaultPlotPropertiesMap, ChartThemesConstants.PLOT_OUTLINE_PAINT);
    Stroke defaultPlotOutlineStroke = (Stroke)getDefaultValue(defaultPlotPropertiesMap, ChartThemesConstants.PLOT_OUTLINE_STROKE);
    Boolean defaultPlotOutlineVisible = (Boolean)getDefaultValue(defaultPlotPropertiesMap, ChartThemesConstants.PLOT_OUTLINE_VISIBLE);
    if(defaultPlotInsets != null)
      p.setInsets(defaultPlotInsets);
View Full Code Here

Examples of org.jfree.ui.RectangleInsets

       
        VerticalAlignment defaultTitleVAlignment = (VerticalAlignment)getDefaultValue(defaultChartPropertiesMap, ChartThemesConstants.TITLE_VERTICAL_ALIGNMENT);
        if(defaultTitleVAlignment != null)
          title.setVerticalAlignment(defaultTitleVAlignment);
       
        RectangleInsets defaultTitlePadding = (RectangleInsets)getDefaultValue(defaultChartPropertiesMap, ChartThemesConstants.TITLE_PADDING);
        RectangleInsets titlePadding = title.getPadding() != null ? title.getPadding() : defaultTitlePadding;
        if(titlePadding != null)
          title.setPadding(titlePadding);
       
        Color titleForecolor = getChart().getOwnTitleColor() != null ?
            getChart().getOwnTitleColor() :
View Full Code Here

Examples of org.jfree.ui.RectangleInsets

        VerticalAlignment defaultSubtitleVAlignment = (VerticalAlignment)getDefaultValue(defaultChartPropertiesMap, ChartThemesConstants.SUBTITLE_VERTICAL_ALIGNMENT);
        if(defaultSubtitleVAlignment != null)
          subtitle.setVerticalAlignment(defaultSubtitleVAlignment);
       
        RectangleInsets defaultSubtitlePadding = (RectangleInsets)getDefaultValue(defaultChartPropertiesMap, ChartThemesConstants.SUBTITLE_PADDING);
        RectangleInsets subtitlePadding = subtitle.getPadding() != null ? subtitle.getPadding() : defaultSubtitlePadding;
        if(subtitlePadding != null)
          subtitle.setPadding(subtitlePadding);

        Color subtitleForecolor = getChart().getOwnSubtitleColor() != null ?
            getChart().getOwnSubtitleColor() :
View Full Code Here

Examples of org.jfree.ui.RectangleInsets

     
      VerticalAlignment defaultLegendVAlignment = (VerticalAlignment)getDefaultValue(defaultChartPropertiesMap, ChartThemesConstants.LEGEND_VERTICAL_ALIGNMENT);
      if(defaultLegendVAlignment != null)
        legend.setVerticalAlignment(defaultLegendVAlignment);
     
      RectangleInsets defaultLegendPadding = (RectangleInsets)getDefaultValue(defaultChartPropertiesMap, ChartThemesConstants.LEGEND_PADDING);
      RectangleInsets legendPadding = legend.getPadding() != null ? legend.getPadding() : defaultLegendPadding;
      if(legendPadding != null)
        legend.setPadding(legendPadding);

      RectangleEdge defaultLegendPosition = (RectangleEdge)getDefaultValue(defaultChartPropertiesMap, ChartThemesConstants.LEGEND_POSITION);
      if(getEdge(getChart().getLegendPositionValue(), defaultLegendPosition) != null)
View Full Code Here

Examples of org.jfree.ui.RectangleInsets

      if(defaultLabelAngle != null)
        axis.setLabelAngle(defaultLabelAngle.doubleValue());
      Font themeLabelFont = getFont((JRFont)getDefaultValue(defaultAxisPropertiesMap, ChartThemesConstants.AXIS_LABEL_FONT), labelFont, baseFontSize);
      axis.setLabelFont(themeLabelFont);
     
      RectangleInsets defaultLabelInsets = (RectangleInsets)getDefaultValue(defaultAxisPropertiesMap, ChartThemesConstants.AXIS_LABEL_INSETS);
      if(defaultLabelInsets != null)
      {
        axis.setLabelInsets(defaultLabelInsets);
      }
      Paint labelPaint = labelColor != null ?
View Full Code Here

Examples of org.jfree.ui.RectangleInsets

    if(defaultAxisTickLabelsVisible != null && defaultAxisTickLabelsVisible.booleanValue())
    {
      Font themeTickLabelFont = getFont((JRFont)getDefaultValue(defaultAxisPropertiesMap, ChartThemesConstants.AXIS_TICK_LABEL_FONT), tickLabelFont, baseFontSize);
      axis.setTickLabelFont(themeTickLabelFont);
     
      RectangleInsets defaultTickLabelInsets = (RectangleInsets)getDefaultValue(defaultAxisPropertiesMap, ChartThemesConstants.AXIS_TICK_LABEL_INSETS);
      if(defaultTickLabelInsets != null)
      {
        axis.setTickLabelInsets(defaultTickLabelInsets);
      }
      Paint tickLabelPaint = tickLabelColor != null ?
View Full Code Here

Examples of org.jfree.ui.RectangleInsets

  /**
   * @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
TOP
Copyright © 2018 www.massapi.com. 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.