Class JRPenUtil

java.lang.Object
net.sf.jasperreports.engine.util.JRPenUtil

public final class JRPenUtil extends Object
Author:
Teodor Danciu (teodord@users.sourceforge.net)
  • Method Details

    • setLinePenFromPen

      public static void setLinePenFromPen(PenEnum pen, JRPen linePen)
    • getLineWidth

      public static float getLineWidth(JRCommonGraphicElement element, int reportDpi)
      Returns the line width of a graphic element, applying the default that its type implies: images have no line unless one is set explicitly on them, while lines, rectangles and ellipses fall back to a one pixel line, scaled to the resolution of the report.
    • getLineWidthOrDefault

      public static float getLineWidthOrDefault(JRPen pen, int reportDpi)
    • getStroke

      public static Stroke getStroke(JRPen pen, int lineCap)
    • getStroke

      public static Stroke getStroke(JRPen pen, int lineCap, int reportDpi)
    • hasOwnValues

      public static boolean hasOwnValues(JRPen pen)