Package net.sf.jasperreports.engine.base

Examples of net.sf.jasperreports.engine.base.JRBaseFont


   
    showShapes = scatterPlot.getShowShapes();
    showLines = scatterPlot.getShowLines();
   
    xAxisLabelExpression = factory.getExpression( scatterPlot.getXAxisLabelExpression() );
    xAxisLabelFont = new JRBaseFont(scatterPlot.getChart(), scatterPlot.getXAxisLabelFont());
    xAxisLabelColor = scatterPlot.getOwnXAxisLabelColor();
    xAxisTickLabelFont = new JRBaseFont(scatterPlot.getChart(), scatterPlot.getXAxisTickLabelFont());
    xAxisTickLabelColor = scatterPlot.getOwnXAxisTickLabelColor();
    xAxisTickLabelMask = scatterPlot.getXAxisTickLabelMask();
    xAxisVerticalTickLabels = scatterPlot.getXAxisVerticalTickLabels();
    xAxisLineColor = scatterPlot.getOwnXAxisLineColor();
   
    yAxisLabelExpression = factory.getExpression( scatterPlot.getYAxisLabelExpression() );
    yAxisLabelFont = new JRBaseFont(scatterPlot.getChart(), scatterPlot.getYAxisLabelFont());
    yAxisLabelColor = scatterPlot.getOwnYAxisLabelColor();
    yAxisTickLabelFont = new JRBaseFont(scatterPlot.getChart(), scatterPlot.getYAxisTickLabelFont());
    yAxisTickLabelColor = scatterPlot.getOwnYAxisTickLabelColor();
    yAxisTickLabelMask = scatterPlot.getYAxisTickLabelMask();
    yAxisVerticalTickLabels = scatterPlot.getYAxisVerticalTickLabels();
    yAxisLineColor = scatterPlot.getOwnYAxisLineColor();
   
View Full Code Here


    super(plot, chart);
   
    JRAreaPlot areaPlot = plot instanceof JRAreaPlot ? (JRAreaPlot)plot : null;
    if (areaPlot == null)//FIXMECHART make a common interface and try copy props that are common to different plots
    {
      categoryAxisLabelFont = new JRBaseFont(chart, null);
      categoryAxisTickLabelFont = new JRBaseFont(chart, null);
      valueAxisLabelFont = new JRBaseFont(chart, null);
      valueAxisTickLabelFont = new JRBaseFont(chart, null);
    }
    else
    {
      categoryAxisLabelFont = new JRBaseFont(chart, areaPlot.getCategoryAxisLabelFont());
      categoryAxisTickLabelFont = new JRBaseFont(chart, areaPlot.getCategoryAxisTickLabelFont());
      valueAxisLabelFont = new JRBaseFont(chart, areaPlot.getValueAxisLabelFont());
      valueAxisTickLabelFont = new JRBaseFont(chart, areaPlot.getValueAxisTickLabelFont());
    }
  }
View Full Code Here

  public JRBaseAreaPlot( JRAreaPlot areaPlot, JRBaseObjectFactory factory )
  {
    super( areaPlot, factory );
   
    categoryAxisLabelExpression = factory.getExpression( areaPlot.getCategoryAxisLabelExpression() );
    categoryAxisLabelFont = new JRBaseFont(areaPlot.getChart(), areaPlot.getCategoryAxisLabelFont());
    categoryAxisLabelColor = areaPlot.getOwnCategoryAxisLabelColor();
    categoryAxisTickLabelFont = new JRBaseFont(areaPlot.getChart(), areaPlot.getCategoryAxisTickLabelFont());
    categoryAxisTickLabelColor = areaPlot.getOwnCategoryAxisTickLabelColor();
    categoryAxisTickLabelMask = areaPlot.getCategoryAxisTickLabelMask();
    categoryAxisVerticalTickLabels = areaPlot.getCategoryAxisVerticalTickLabels();
    categoryAxisLineColor = areaPlot.getOwnCategoryAxisLineColor();
    labelRotationDouble = areaPlot.getCategoryAxisTickLabelRotation();
   
    valueAxisLabelExpression = factory.getExpression( areaPlot.getValueAxisLabelExpression() );
    domainAxisMinValueExpression = factory.getExpression( areaPlot.getDomainAxisMinValueExpression() );
    domainAxisMaxValueExpression = factory.getExpression( areaPlot.getDomainAxisMaxValueExpression() );
    rangeAxisMinValueExpression = factory.getExpression( areaPlot.getRangeAxisMinValueExpression() );
    rangeAxisMaxValueExpression = factory.getExpression( areaPlot.getRangeAxisMaxValueExpression() );
    valueAxisLabelFont = new JRBaseFont(areaPlot.getChart(), areaPlot.getValueAxisLabelFont());
    valueAxisLabelColor = areaPlot.getOwnValueAxisLabelColor();
    valueAxisTickLabelFont = new JRBaseFont(areaPlot.getChart(), areaPlot.getValueAxisTickLabelFont());
    valueAxisTickLabelColor = areaPlot.getOwnValueAxisTickLabelColor();
    valueAxisTickLabelMask = areaPlot.getValueAxisTickLabelMask();
    valueAxisVerticalTickLabels = areaPlot.getValueAxisVerticalTickLabels();
    valueAxisLineColor = areaPlot.getOwnValueAxisLineColor();
  }
View Full Code Here

   */
  public JRFillAreaPlot( JRAreaPlot areaPlot, JRFillObjectFactory factory )
  {
    super( areaPlot, factory );

    categoryAxisLabelFont = new JRBaseFont(areaPlot.getChart(), areaPlot.getCategoryAxisLabelFont());
    categoryAxisLabelColor = areaPlot.getOwnCategoryAxisLabelColor();
    categoryAxisTickLabelFont = new JRBaseFont(areaPlot.getChart(), areaPlot.getCategoryAxisTickLabelFont());
    categoryAxisTickLabelColor = areaPlot.getOwnCategoryAxisTickLabelColor();
    categoryAxisLineColor = areaPlot.getOwnCategoryAxisLineColor();
   
    valueAxisLabelFont = new JRBaseFont(areaPlot.getChart(), areaPlot.getValueAxisLabelFont());
    valueAxisLabelColor = areaPlot.getOwnValueAxisLabelColor();
    valueAxisTickLabelFont = new JRBaseFont(areaPlot.getChart(), areaPlot.getValueAxisTickLabelFont());
    valueAxisTickLabelColor = areaPlot.getOwnValueAxisTickLabelColor();
    valueAxisLineColor = areaPlot.getOwnValueAxisLineColor();
  }
View Full Code Here

   *
   */
  public JRFillBar3DPlot( JRBar3DPlot barPlot, JRFillObjectFactory factory ){
    super( barPlot, factory );

    categoryAxisLabelFont = new JRBaseFont(barPlot.getChart(), barPlot.getCategoryAxisLabelFont());
    categoryAxisLabelColor = barPlot.getOwnCategoryAxisLabelColor();
    categoryAxisTickLabelFont = new JRBaseFont(barPlot.getChart(), barPlot.getCategoryAxisTickLabelFont());
    categoryAxisTickLabelColor = barPlot.getOwnCategoryAxisTickLabelColor();
    categoryAxisLineColor = barPlot.getOwnCategoryAxisLineColor();
   
    valueAxisLabelFont = new JRBaseFont(barPlot.getChart(), barPlot.getValueAxisLabelFont());
    valueAxisLabelColor = barPlot.getOwnValueAxisLabelColor();
    valueAxisTickLabelFont = new JRBaseFont(barPlot.getChart(), barPlot.getValueAxisTickLabelFont());
    valueAxisTickLabelColor = barPlot.getOwnValueAxisTickLabelColor();
    valueAxisLineColor = barPlot.getOwnValueAxisLineColor();
  }
View Full Code Here

        break;
      default:
        throw new JRRuntimeException("Chart type not supported.");
    }

    titleFont = new JRBaseFont(chart, chart.getTitleFont());
    subtitleFont = new JRBaseFont(chart, chart.getSubtitleFont());
    legendFont = new JRBaseFont(chart, chart.getLegendFont());
   
    lineBox = chart.getLineBox().clone(this);

    evaluationGroup = factory.getGroup(chart.getEvaluationGroup());
View Full Code Here

    AttributedCharacterIterator iterator = styledText.getAttributedString().getIterator();

    while(runLimit < styledText.length() && (runLimit = iterator.getRunLimit()) <= styledText.length())
    {
      Map attributes = iterator.getAttributes();
      JRFont runFont = attributes.isEmpty()? defaultFont : new JRBaseFont(attributes);
      short runForecolor = attributes.get(TextAttribute.FOREGROUND) != null ?
          getWorkbookColor((Color)attributes.get(TextAttribute.FOREGROUND)).getIndex() :
          forecolor;
      HSSFFont font = getLoadedFont(runFont, runForecolor, attributes, locale);
      richTextStr.applyFont(iterator.getIndex(), runLimit, font);
View Full Code Here

   *
   */
  public void setXAxisLabelFont(JRFont xAxisLabelFont)
  {
    Object old = this.xAxisLabelFont;
    this.xAxisLabelFont = new JRBaseFont(this.getChart(), xAxisLabelFont);
    getEventSupport().firePropertyChange(PROPERTY_X_AXIS_LABEL_FONT, old, this.xAxisLabelFont);
  }
View Full Code Here

   *
   */
  public void setXAxisTickLabelFont(JRFont xAxisTickLabelFont)
  {
    Object old = this.xAxisTickLabelFont;
    this.xAxisTickLabelFont = new JRBaseFont(this.getChart(), xAxisTickLabelFont);
    getEventSupport().firePropertyChange(PROPERTY_X_AXIS_TICK_LABEL_FONT, old, this.xAxisTickLabelFont);
  }
View Full Code Here

   *
   */
  public void setYAxisLabelFont(JRFont yAxisLabelFont)
  {
    Object old = this.yAxisLabelFont;
    this.yAxisLabelFont = new JRBaseFont(this.getChart(), yAxisLabelFont);
    getEventSupport().firePropertyChange(PROPERTY_Y_AXIS_LABEL_FONT, old, this.yAxisLabelFont);
  }
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.engine.base.JRBaseFont

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.