Package net.sf.jasperreports.engine.type

Examples of net.sf.jasperreports.engine.type.LineStyleEnum


  /**
   *
   */
  public static LineStyleEnum getLineStyleValue(JRPen pen)
  {
    LineStyleEnum ownLineStyle = pen.getOwnLineStyleValue();
    if (ownLineStyle != null)
    {
      return ownLineStyle;
    }
    JRStyle baseStyle = getBaseStyle(pen.getStyleContainer());
    if (baseStyle != null)
    {
      LineStyleEnum lineStyle = baseStyle.getLinePen().getLineStyleValue();
      if (lineStyle != null)
      {
        return lineStyle;
      }
    }
View Full Code Here


  /**
   *
   */
  public static LineStyleEnum getLineStyleValue(JRBoxPen boxPen)
  {
    LineStyleEnum ownLineStyle = boxPen.getOwnLineStyleValue();
    if (ownLineStyle != null)
    {
      return ownLineStyle;
    }
    LineStyleEnum penLineStyle = boxPen.getBox().getPen().getOwnLineStyleValue();
    if (penLineStyle != null)
    {
      return penLineStyle;
    }
    JRStyle baseStyle = getBaseStyle(boxPen.getStyleContainer());
    if (baseStyle != null)
    {
      LineStyleEnum lineStyle = boxPen.getPen(baseStyle.getLineBox()).getLineStyleValue();
      if (lineStyle != null)
      {
        return lineStyle;
      }
    }
View Full Code Here

  {
    float lineWidth = pen.getLineWidth().floatValue();
   
    if (lineWidth > 0f)
    {
      LineStyleEnum lineStyle = pen.getLineStyleValue();
     
      switch (lineStyle)
      {
        case DOUBLE :
        {
View Full Code Here

    if (lineWidth != null && lineWidth.length() > 0)
    {
      pen.setLineWidth(Float.parseFloat(lineWidth));
    }

    LineStyleEnum lineStyle = LineStyleEnum.getByName(atts.getValue(JRXmlConstants.ATTRIBUTE_lineStyle));
    if (lineStyle != null)
    {
      pen.setLineStyle(lineStyle);
    }
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.engine.type.LineStyleEnum

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.