Package net.sf.jasperreports.engine.util
Class StyleUtil
- java.lang.Object
-
- net.sf.jasperreports.engine.util.StyleUtil
-
public final class StyleUtil extends java.lang.Object- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidappendBox(JRLineBox destBox, JRLineBox srcBox)Merges two boxes, by appending the properties of the source box to the ones of the destination box.static voidappendParagraph(JRParagraph destParagraph, JRParagraph srcParagraph)Merges two paragraphs, by appending the properties of the source paragraph to the ones of the destination paragraph.static voidappendPen(JRPen destPen, JRPen srcPen)Merges two pens, by appending the properties of the source pen to the ones of the destination pen.static voidappendStyle(JRStyle destStyle, JRStyle srcStyle)Merges two styles, by appending the properties of the source style to the ones of the destination style.protected booleanhasBorder(JRBoxContainer boxContainer, net.sf.jasperreports.engine.util.StyleUtil.BoxSideSelector selector)booleanhasBox(JRBoxContainer boxContainer)protected booleanhasPadding(JRBoxContainer boxContainer, net.sf.jasperreports.engine.util.StyleUtil.BoxSideSelector penSelector)static StyleUtilinstance()ModeEnumresolveElementMode(JRElement element)ModeEnumresolveMode(JRStyleContainer styleContainer)
-
-
-
Method Detail
-
instance
public static StyleUtil instance()
-
resolveMode
public ModeEnum resolveMode(JRStyleContainer styleContainer)
-
hasBox
public boolean hasBox(JRBoxContainer boxContainer)
-
hasBorder
protected boolean hasBorder(JRBoxContainer boxContainer, net.sf.jasperreports.engine.util.StyleUtil.BoxSideSelector selector)
-
hasPadding
protected boolean hasPadding(JRBoxContainer boxContainer, net.sf.jasperreports.engine.util.StyleUtil.BoxSideSelector penSelector)
-
appendStyle
public static void appendStyle(JRStyle destStyle, JRStyle srcStyle)
Merges two styles, by appending the properties of the source style to the ones of the destination style.
-
appendPen
public static void appendPen(JRPen destPen, JRPen srcPen)
Merges two pens, by appending the properties of the source pen to the ones of the destination pen.
-
appendBox
public static void appendBox(JRLineBox destBox, JRLineBox srcBox)
Merges two boxes, by appending the properties of the source box to the ones of the destination box.
-
appendParagraph
public static void appendParagraph(JRParagraph destParagraph, JRParagraph srcParagraph)
Merges two paragraphs, by appending the properties of the source paragraph to the ones of the destination paragraph.
-
-