Examples of JRLineBox


Examples of net.sf.jasperreports.engine.JRLineBox

  /**
   *
   */
  protected void exportRectangle(DocxTableHelper tableHelper, JRPrintRectangle rectangle, JRExporterGridCell gridCell)
  {
    JRLineBox box = new JRBaseLineBox(null);
    JRPen pen = box.getPen();
    pen.setLineColor(rectangle.getLinePen().getLineColor());
    pen.setLineStyle(rectangle.getLinePen().getLineStyleValue());
    pen.setLineWidth(rectangle.getLinePen().getLineWidth());

    gridCell.setBox(box);//CAUTION: only some exporters set the cell box
View Full Code Here

Examples of net.sf.jasperreports.engine.JRLineBox

  /**
   *
   */
  protected void exportEllipse(DocxTableHelper tableHelper, JRPrintEllipse ellipse, JRExporterGridCell gridCell)
  {
    JRLineBox box = new JRBaseLineBox(null);
    JRPen pen = box.getPen();
    pen.setLineColor(ellipse.getLinePen().getLineColor());
    pen.setLineStyle(ellipse.getLinePen().getLineStyleValue());
    pen.setLineWidth(ellipse.getLinePen().getLineWidth());

    gridCell.setBox(box);//CAUTION: only some exporters set the cell box
View Full Code Here

Examples of net.sf.jasperreports.engine.JRLineBox

    JRExporterGridCell gridCell,
    int colIndex,
    int rowIndex
    ) throws JRException
  {
    JRLineBox box = new JRBaseLineBox(null);
    JRPen pen = null;
    float ratio = line.getWidth() / line.getHeight();
    if (ratio > 1)
    {
      if (line.getDirectionValue() == LineDirectionEnum.TOP_DOWN)
      {
        pen = box.getTopPen();
      }
      else
      {
        pen = box.getBottomPen();
      }
    }
    else
    {
      if (line.getDirectionValue() == LineDirectionEnum.TOP_DOWN)
      {
        pen = box.getLeftPen();
      }
      else
      {
        pen = box.getRightPen();
      }
    }
    pen.setLineColor(line.getLinePen().getLineColor());
    pen.setLineStyle(line.getLinePen().getLineStyleValue());
    pen.setLineWidth(line.getLinePen().getLineWidth());
View Full Code Here

Examples of net.sf.jasperreports.engine.JRLineBox

    JRExporterGridCell gridCell,
    int colIndex,
    int rowIndex
    ) throws JRException
  {
    JRLineBox box = new JRBaseLineBox(null);
    JRPen pen = box.getPen();
    pen.setLineColor(rectangle.getLinePen().getLineColor());
    pen.setLineStyle(rectangle.getLinePen().getLineStyleValue());
    pen.setLineWidth(rectangle.getLinePen().getLineWidth());

    gridCell.setBox(box);//CAUTION: only some exporters set the cell box
View Full Code Here

Examples of net.sf.jasperreports.engine.JRLineBox

    }
  }
 
  protected void setChartBorder(JFreeChart jfreeChart)
  {
    JRLineBox lineBox = getChart().getLineBox();
    if(
      lineBox.getLeftPen().getLineWidth().floatValue() == 0
      && lineBox.getBottomPen().getLineWidth().floatValue() == 0
      && lineBox.getRightPen().getLineWidth().floatValue() == 0
      && lineBox.getTopPen().getLineWidth().floatValue() == 0
      )
    {
      boolean isVisible = getDefaultValue(defaultChartPropertiesMap, ChartThemesConstants.CHART_BORDER_VISIBLE) == null ?
          false :
          ((Boolean)getDefaultValue(defaultChartPropertiesMap, ChartThemesConstants.CHART_BORDER_VISIBLE)).booleanValue();
View Full Code Here

Examples of net.sf.jasperreports.engine.JRLineBox

  }
 
  protected void setChartBorder(JFreeChart jfreeChart)
  {
    ChartSettings chartSettings = getChartSettings();
    JRLineBox lineBox = getChart().getLineBox();
    if(
      lineBox.getLeftPen().getLineWidth().floatValue() == 0
      && lineBox.getBottomPen().getLineWidth().floatValue() == 0
      && lineBox.getRightPen().getLineWidth().floatValue() == 0
      && lineBox.getTopPen().getLineWidth().floatValue() == 0
      )
    {
      boolean isVisible = chartSettings.getBorderVisible() == null
        ? true
        : chartSettings.getBorderVisible().booleanValue();
View Full Code Here

Examples of net.sf.jasperreports.engine.JRLineBox

    hash = computeHash();
  }

  public BoxStyle(JRExporterGridCell gridCell)
  {
    JRLineBox lineBox = gridCell.getBox();
    if (lineBox != null)
    {
      setBox(lineBox);
    }
    JRPrintElement element = gridCell.getElement();
View Full Code Here

Examples of net.sf.jasperreports.engine.JRLineBox

    JRFillCellContents boxContents = (JRFillCellContents) boxContentsCache.get(key);
    if (boxContents == null)
    {
      boxContents = (JRFillCellContents) createClone();
     
      JRLineBox newBox = lineBox.clone(this);
     
      if (copyLeft)
      {
        newBox.copyLeftPen(lineBox.getRightPen());
      }
     
      if (copyRight)
      {
        newBox.copyRightPen(lineBox.getLeftPen());
      }
     
      if (copyTop)
      {
        newBox.copyTopPen(lineBox.getBottomPen());
      }
     
      boxContents.setBox(newBox);
     
      boxContentsCache.put(key, boxContents);
View Full Code Here

Examples of net.sf.jasperreports.engine.JRLineBox

  private void addContour(ReportConverter reportConverter, JRBasePrintFrame frame, JRPrintElement element)
  {
    if (frame != null)
    {
      boolean hasContour = false;
      JRLineBox box = element instanceof JRBoxContainer ? ((JRBoxContainer)element).getLineBox() : null;
      if (box == null)
      {
        JRPrintGraphicElement graphicElement = element instanceof JRPrintGraphicElement ? (JRPrintGraphicElement)element : null;
        hasContour = (graphicElement == null) || graphicElement.getLinePen().getLineWidth().floatValue() <= 0f;
      }
      else
      {
        hasContour =
          box.getTopPen().getLineWidth().floatValue() <= 0f
          && box.getLeftPen().getLineWidth().floatValue() <= 0f
          && box.getRightPen().getLineWidth().floatValue() <= 0f
          && box.getBottomPen().getLineWidth().floatValue() <= 0f;
      }
     
      if (hasContour)
      {
        JRBasePrintRectangle rectangle = new JRBasePrintRectangle(reportConverter.getDefaultStyleProvider());
View Full Code Here

Examples of net.sf.jasperreports.engine.JRLineBox

   */
  public static class Box extends JRPenFactory
  {
    public Object createObject(Attributes atts)
    {
      JRLineBox box = (JRLineBox) digester.peek();
      setPenAttributes(atts, box.getPen());
      return box;
    }
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.