Package org.jfree.ui

Examples of org.jfree.ui.VerticalAlignment


     
      HorizontalAlignment hAlign = legendSettings.getHorizontalAlignment();
      if(hAlign != null)
        legend.setHorizontalAlignment(hAlign);
     
      VerticalAlignment vAlign = legendSettings.getVerticalAlignment();
      if(vAlign != null)
        legend.setVerticalAlignment(vAlign);
     
      RectangleInsets padding = legendSettings.getPadding();
      if(padding != null)
View Full Code Here


   
    HorizontalAlignment hAlign = titleSettings.getHorizontalAlignment();
    if(hAlign != null)
      title.setHorizontalAlignment(hAlign);
   
    VerticalAlignment vAlign = titleSettings.getVerticalAlignment();
    if(vAlign != null)
      title.setVerticalAlignment(vAlign);
   
    RectangleInsets padding = titleSettings.getPadding();
    if(padding != null)
View Full Code Here

  /**
   * @param verticalAlignment the verticalAlignment to set
   */
  public void setVerticalAlignment(VerticalAlignment verticalAlignment) {
    VerticalAlignment old = getVerticalAlignment();
    this.verticalAlignment = verticalAlignment;
    getEventSupport().firePropertyChange(PROPERTY_verticalAlignment, old, getVerticalAlignment());
  }
View Full Code Here

       
        HorizontalAlignment defaultTitleHAlignment = (HorizontalAlignment)getDefaultValue(defaultChartPropertiesMap, ChartThemesConstants.TITLE_HORIZONTAL_ALIGNMENT);
        if(defaultTitleHAlignment != null)
          title.setHorizontalAlignment(defaultTitleHAlignment);
       
        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;
View Full Code Here

       
        HorizontalAlignment defaultSubtitleHAlignment = (HorizontalAlignment)getDefaultValue(defaultChartPropertiesMap, ChartThemesConstants.SUBTITLE_HORIZONTAL_ALIGNMENT);
        if(defaultSubtitleHAlignment != null)
          subtitle.setHorizontalAlignment(defaultSubtitleHAlignment);

        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;
View Full Code Here

     
      HorizontalAlignment defaultLegendHAlignment = (HorizontalAlignment)getDefaultValue(defaultChartPropertiesMap, ChartThemesConstants.LEGEND_HORIZONTAL_ALIGNMENT);
      if(defaultLegendHAlignment != null)
        legend.setHorizontalAlignment(defaultLegendHAlignment);
     
      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;
View Full Code Here

  /**
   * @param verticalAlignment the verticalAlignment to set
   */
  public void setVerticalAlignment(VerticalAlignment verticalAlignment) {
    VerticalAlignment old = getVerticalAlignment();
    this.verticalAlignment = verticalAlignment;
    getEventSupport().firePropertyChange(PROPERTY_verticalAlignment, old, getVerticalAlignment());
  }
View Full Code Here

        Rectangle2D titleArea = (Rectangle2D) area.clone();
        g2.setFont(this.font);
        g2.setPaint(this.paint);
        TextBlockAnchor anchor = null;
        float y = 0.0f;
        VerticalAlignment verticalAlignment = getVerticalAlignment();
        if (verticalAlignment == VerticalAlignment.TOP) {
            y = (float) titleArea.getY();
            anchor = TextBlockAnchor.TOP_RIGHT;
        }
        else if (verticalAlignment == VerticalAlignment.BOTTOM) {
View Full Code Here

        else {
            startX = chartArea.getMaxX() - rightSpace - w;
        }

        // what is our alignment?
        VerticalAlignment alignment = getVerticalAlignment();
        double startY = 0.0;
        if (alignment == VerticalAlignment.CENTER) {
            startY = chartArea.getMinY() + topSpace
                     + chartArea.getHeight() / 2.0 - h / 2.0;
        }
View Full Code Here

        Rectangle2D titleArea = (Rectangle2D) area.clone();
        g2.setFont(this.font);
        g2.setPaint(this.paint);
        TextBlockAnchor anchor = null;
        float y = 0.0f;
        VerticalAlignment verticalAlignment = getVerticalAlignment();
        if (verticalAlignment == VerticalAlignment.TOP) {
            y = (float) titleArea.getY();
            anchor = TextBlockAnchor.TOP_RIGHT;
        }
        else if (verticalAlignment == VerticalAlignment.BOTTOM) {
View Full Code Here

TOP

Related Classes of org.jfree.ui.VerticalAlignment

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.