Examples of TabStop


Examples of net.sf.jasperreports.engine.TabStop

    if (tabStops != null && tabStops.length > 0)
    {
      write("   <w:tabs>\n");
      for (int i = 0; i < tabStops.length; i++)
      {
        TabStop tabStop = tabStops[i];
        write("   <w:tab w:pos=\"" + LengthUtil.twip(tabStop.getPosition()) + "\" w:val=\"" + getTabStopAlignment(tabStop.getAlignment()) + "\"/>\n");
      }
      write("   </w:tabs>\n");
    }
  }
View Full Code Here

Examples of net.sf.jasperreports.engine.TabStop

    TabStop[] tabStops = text.getParagraph().getTabStops();
    if (tabStops != null && tabStops.length > 0)
    {
      for (int i = 0; i < tabStops.length; i++)
      {
        TabStop tabStop = tabStops[i];

        String tabStopAlign = "";
       
        switch (tabStop.getAlignment())
        {
          case CENTER:
            tabStopAlign = "\\tqc";
            break;
          case RIGHT:
            tabStopAlign = "\\tqr";
            break;
          case LEFT:
          default:
            tabStopAlign = "";
            break;
        }

        writer.write(tabStopAlign + "\\tx" + LengthUtil.twip(tabStop.getPosition()) + " ");
      }
    }

    JRFont font = text;
    if (text.getRunDirectionValue() == RunDirectionEnum.RTL)
View Full Code Here

Examples of net.sf.jasperreports.engine.TabStop

  /**
   *
   */
  public Object createObject(Attributes atts)
  {
    TabStop tabStop = new TabStop();
   
    String position = atts.getValue(JRXmlConstants.ATTRIBUTE_position);
    if (position != null && position.length() > 0)
    {
      tabStop.setPosition(Integer.parseInt(position));
    }

    TabStopAlignEnum alignment = TabStopAlignEnum.getByName(atts.getValue(JRXmlConstants.ATTRIBUTE_alignment));
    if (alignment != null)
    {
      tabStop.setAlignment(alignment);
    }

    return tabStop;
  }
View Full Code Here

Examples of net.sf.jasperreports.engine.TabStop

  {
    if (tabStops != null)
    {
      if (index >= 0 && index < tabStops.size())
      {
        TabStop tabStop = tabStops.remove(index);
        getEventSupport().fireCollectionElementRemovedEvent(PROPERTY_TAB_STOPS, tabStop, index);
      }
    }
  }
View Full Code Here

Examples of net.sf.jasperreports.engine.TabStop

    if (tabStops != null)
    {
      clone.tabStops = new ArrayList<TabStop>(tabStops.size());
      for(int i = 0; i < tabStops.size(); i++)
      {
        TabStop tabStop = (TabStop)tabStops.get(i).clone();
        clone.tabStops.add(tabStop);
      }
    }

    return clone;
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.