Examples of RectangleEdge


Examples of org.jfree.ui.RectangleEdge

  /**
   *
   */
  private static RectangleEdge getEdge(EdgeEnum position, RectangleEdge defaultPosition)
  {
    RectangleEdge edge = defaultPosition;
    if(position != null)
    {
      switch (position)
      {
        case TOP :
View Full Code Here

Examples of org.jfree.ui.RectangleEdge

  /**
   *
   */
  private static RectangleEdge getEdge(EdgeEnum position, RectangleEdge defaultPosition)
  {
    RectangleEdge edge = defaultPosition;
    if(position != null)
    {
      switch (position)
      {
        case TOP :
View Full Code Here

Examples of org.jfree.ui.RectangleEdge

        }
        if (forePaint == null)
        {
          forePaint = getChart().getTitleColor();
        }
        RectangleEdge titleEdge = getEdge(
            getChart().getTitlePositionValue(),
            getEdge(
              titleSettings.getPositionValue(),
              RectangleEdge.TOP
              )
View Full Code Here

Examples of org.jfree.ui.RectangleEdge

          ? getChart().getOwnSubtitleColor()
          : subtitleSettings.getForegroundPaint() != null 
          ? subtitleSettings.getForegroundPaint().getPaint()
          : getChart().getSubtitleColor();
        //Subtitle has not its own position set, and by default this will be set the same as title position
        RectangleEdge subtitleEdge = getEdge(subtitleSettings.getPositionValue(), jfreeChart.getTitle() == null ? null : jfreeChart.getTitle().getPosition());
        handleTitleSettings(subtitle, subtitleSettings, getChart().getSubtitleFont(), subtitleForecolor, subtitleEdge);
 
        jfreeChart.addSubtitle(subtitle);
      }
    }
View Full Code Here

Examples of org.jfree.ui.RectangleEdge

  /**
   *
   */
  private static RectangleEdge getEdge(EdgeEnum position, RectangleEdge defaultPosition)
  {
    RectangleEdge edge = defaultPosition;
    if(position != null)
    {
      switch (position)
      {
        case TOP :
View Full Code Here

Examples of org.jfree.ui.RectangleEdge

    Boolean titleVisibility = (Boolean)getDefaultValue(defaultChartPropertiesMap, ChartThemesConstants.TITLE_VISIBLE);
    if(titleVisibility != null && titleVisibility.booleanValue())
    {
      TextTitle title = jfreeChart.getTitle();
     
      RectangleEdge titleEdge = null;
         
      if(title != null)
      {
        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)
          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() :
            (getDefaultValue(defaultChartPropertiesMap, ChartThemesConstants.TITLE_FORECOLOR) != null ?
                (Color)getDefaultValue(defaultChartPropertiesMap, ChartThemesConstants.TITLE_FORECOLOR) :
                getChart().getTitleColor());
        if(titleForecolor != null)
          title.setPaint(titleForecolor);
 
        Color titleBackcolor = (Color)getDefaultValue(defaultChartPropertiesMap, ChartThemesConstants.TITLE_BACKCOLOR);
        if(titleBackcolor != null)
          title.setBackgroundPaint(titleBackcolor);
       
        RectangleEdge defaultTitlePosition = (RectangleEdge)getDefaultValue(defaultChartPropertiesMap, ChartThemesConstants.TITLE_POSITION);
        titleEdge = getEdge(getChart().getTitlePositionValue(), defaultTitlePosition);
        if(titleEdge != null)
          title.setPosition(titleEdge);
      }
    }
View Full Code Here

Examples of org.jfree.ui.RectangleEdge

            (Color)getDefaultValue(defaultChartPropertiesMap, ChartThemesConstants.SUBTITLE_BACKCOLOR) :
            null;
        if(subtitleBackcolor != null)
          subtitle.setBackgroundPaint(subtitleBackcolor);
 
        RectangleEdge defaultSubtitlePosition = (RectangleEdge)getDefaultValue(defaultChartPropertiesMap, ChartThemesConstants.SUBTITLE_POSITION);
        //Subtitle has not its own position set, and by default this will be set the same as title position
        RectangleEdge subtitleEdge = null;
        if(defaultSubtitlePosition == null)
        { 
          subtitleEdge = jfreeChart.getTitle().getPosition();
        }
        else
View Full Code Here

Examples of org.jfree.ui.RectangleEdge

      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)
        legend.setPosition(getEdge(getChart().getLegendPositionValue(), defaultLegendPosition));
     
    }
  }
View Full Code Here

Examples of org.jfree.ui.RectangleEdge

    if (dataset instanceof XYZDataset) {
      XYZDataset xyzData = (XYZDataset) dataset;
      z = xyzData.getZValue(series, item);
    }
    if (!Double.isNaN(z)) {
      RectangleEdge domainAxisLocation = plot.getDomainAxisEdge();
      RectangleEdge rangeAxisLocation = plot.getRangeAxisEdge();
      double transX = domainAxis.valueToJava2D(x, dataArea,
          domainAxisLocation);
      double transY = rangeAxis.valueToJava2D(y, dataArea,
          rangeAxisLocation);
View Full Code Here

Examples of org.jfree.ui.RectangleEdge

    double[] barL0L1 = calculateBarL0L1(value);
    if (barL0L1 == null) {
      return// the bar is not visible
    }

    RectangleEdge edge = plot.getRangeAxisEdge();
    double transL0 = rangeAxis.valueToJava2D(barL0L1[0], adjusted, edge);
    double transL1 = rangeAxis.valueToJava2D(barL0L1[1], adjusted, edge);
    double barL0 = Math.min(transL0, transL1);
    double barLength = Math.abs(transL1 - transL0);
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.