Package org.jfree.ui

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


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

       
        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

        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

     
      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

      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

    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

  /**
   * @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 labelInsets the labelInsets to set
   */
  public void setLabelInsets(RectangleInsets labelInsets)
  {
    RectangleInsets old = getLabelInsets();
    this.labelInsets = labelInsets;
    getEventSupport().firePropertyChange(PROPERTY_labelInsets, old, getLabelInsets());
  }
View Full Code Here

  /**
   * @param tickLabelInsets the tickLabelInsets to set
   */
  public void setTickLabelInsets(RectangleInsets tickLabelInsets)
  {
    RectangleInsets old = getTickLabelInsets();
    this.tickLabelInsets = tickLabelInsets;
    getEventSupport().firePropertyChange(PROPERTY_tickLabelInsets, old, getTickLabelInsets());
  }
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.