Package org.jfree.ui

Examples of org.jfree.ui.HorizontalAlignment


      BlockFrame blockFrame = legendSettings.getBlockFrame();
      if(blockFrame != null)
        legend.setFrame(blockFrame);
     
      HorizontalAlignment hAlign = legendSettings.getHorizontalAlignment();
      if(hAlign != null)
        legend.setHorizontalAlignment(hAlign);
     
      VerticalAlignment vAlign = legendSettings.getVerticalAlignment();
      if(vAlign != null)
View Full Code Here


    JRFontUtil.copyNonNullOwnProperties(titleSettings.getFont(), font);
    JRFontUtil.copyNonNullOwnProperties(titleFont, font);
    font = new JRBaseFont(getChart(), font);
    title.setFont(JRFontUtil.getAwtFont(font, getLocale()));
   
    HorizontalAlignment hAlign = titleSettings.getHorizontalAlignment();
    if(hAlign != null)
      title.setHorizontalAlignment(hAlign);
   
    VerticalAlignment vAlign = titleSettings.getVerticalAlignment();
    if(vAlign != null)
View Full Code Here

  /**
   * @param horizontalAlignment the horizontalAlignment to set
   */
  public void setHorizontalAlignment(HorizontalAlignment horizontalAlignment) {
    HorizontalAlignment old = getHorizontalAlignment();
    this.horizontalAlignment = horizontalAlignment;
    getEventSupport().firePropertyChange(PROPERTY_horizontalAlignment, old, getHorizontalAlignment());
  }
View Full Code Here

        JRFont titleFont = getChart().getTitleFont();

        Font themeTitleFont = getFont((JRFont)getDefaultValue(defaultChartPropertiesMap, ChartThemesConstants.TITLE_FONT), titleFont, baseFontSize);
        title.setFont(themeTitleFont);
       
        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)
View Full Code Here

        TextTitle subtitle = new TextTitle(subtitleText);
       
        Font themeSubtitleFont = getFont((JRFont)getDefaultValue(defaultChartPropertiesMap, ChartThemesConstants.SUBTITLE_FONT), getChart().getSubtitleFont(), baseFontSize);
        subtitle.setFont(themeSubtitleFont);
       
        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)
View Full Code Here

     
      BlockFrame frame = (BlockFrame)getDefaultValue(defaultChartPropertiesMap, ChartThemesConstants.LEGEND_FRAME);
      if(frame != null)
        legend.setFrame(frame);
     
      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)
View Full Code Here

  /**
   * @param horizontalAlignment the horizontalAlignment to set
   */
  public void setHorizontalAlignment(HorizontalAlignment horizontalAlignment) {
    HorizontalAlignment old = getHorizontalAlignment();
    this.horizontalAlignment = horizontalAlignment;
    getEventSupport().firePropertyChange(PROPERTY_horizontalAlignment, old, getHorizontalAlignment());
  }
View Full Code Here

        Rectangle2D titleArea = (Rectangle2D) area.clone();
        g2.setFont(this.font);
        g2.setPaint(this.paint);
        TextBlockAnchor anchor = null;
        float x = 0.0f;
        HorizontalAlignment horizontalAlignment = getHorizontalAlignment();
        if (horizontalAlignment == HorizontalAlignment.LEFT) {
            x = (float) titleArea.getX();
            anchor = TextBlockAnchor.TOP_LEFT;
        }
        else if (horizontalAlignment == HorizontalAlignment.RIGHT) {
View Full Code Here

        else {
            startY = chartArea.getY() + chartArea.getHeight() - bottomSpace - h;
        }

        // what is our alignment?
        HorizontalAlignment horizontalAlignment = getHorizontalAlignment();
        double startX = 0.0;
        if (horizontalAlignment == HorizontalAlignment.CENTER) {
            startX = chartArea.getX() + leftSpace + chartArea.getWidth() / 2.0
                     - w / 2.0;
        }
View Full Code Here

        Rectangle2D titleArea = (Rectangle2D) area.clone();
        g2.setFont(this.font);
        g2.setPaint(this.paint);
        TextBlockAnchor anchor = null;
        float x = 0.0f;
        HorizontalAlignment horizontalAlignment = getHorizontalAlignment();
        if (horizontalAlignment == HorizontalAlignment.LEFT) {
            x = (float) titleArea.getX();
            anchor = TextBlockAnchor.TOP_LEFT;
        }
        else if (horizontalAlignment == HorizontalAlignment.RIGHT) {
View Full Code Here

TOP

Related Classes of org.jfree.ui.HorizontalAlignment

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.