Examples of VerticalAlignment


Examples of org.eclipse.sapphire.ui.def.VerticalAlignment

{
  public SapphireImageFigure(ImagePresentation imagePresentation, Image image)
  {
    super(image);
    HorizontalAlignment horizontalAlign = imagePresentation.getLayoutConstraint().getHorizontalAlignment().content();   
    VerticalAlignment verticalAlign = imagePresentation.getLayoutConstraint().getVerticalAlignment().content();
    int alignment = getDraw2dImageAlignment(horizontalAlign);
    alignment |= getDraw2dImageAlignment(verticalAlign);
    setAlignment(alignment);
  }
View Full Code Here

Examples of org.eclipse.sapphire.ui.def.VerticalAlignment

    else if (horizontalAlign == HorizontalAlignment.CENTER)
    {
      offsetX = (baseSize.width - childSize.width + 1) >> 1;
    }
   
    VerticalAlignment verticalAlign = constraint.getVerticalAlignment();
    if (verticalAlign == VerticalAlignment.TOP)
    {
      offsetY = constraint.getTopMargin();
    }
    else if (verticalAlign == VerticalAlignment.BOTTOM)
View Full Code Here

Examples of org.jfree.chart.ui.VerticalAlignment

        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

Examples of org.jfree.chart.ui.VerticalAlignment

        } 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;
        } else if (alignment == VerticalAlignment.TOP) {
View Full Code Here

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

Examples of org.jfree.ui.VerticalAlignment

   
    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

Examples of org.jfree.ui.VerticalAlignment

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

Examples of org.jfree.ui.VerticalAlignment

       
        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

Examples of org.jfree.ui.VerticalAlignment

       
        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

Examples of org.jfree.ui.VerticalAlignment

     
      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
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.