Package net.sf.jasperreports.engine.util
Class StyleUtil
java.lang.Object
net.sf.jasperreports.engine.util.StyleUtil
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidMerges 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 voidMerges 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 booleanhasConditionalBorder(JRStyle style, net.sf.jasperreports.engine.util.StyleUtil.BoxSideSelector selector) Returns whether any conditional style of the given style sets a border on the given side.protected booleanhasConditionalPadding(JRStyle style, net.sf.jasperreports.engine.util.StyleUtil.BoxSideSelector penSelector) Returns whether any conditional style of the given style sets a padding on the given side.protected booleanhasPadding(JRBoxContainer boxContainer, net.sf.jasperreports.engine.util.StyleUtil.BoxSideSelector penSelector) static StyleUtilinstance()resolveElementMode(JRElement element) resolveMode(JRStyleContainer styleContainer) static JRStylescaleDpiStyle(JRStyle style, int sourceDpi, int targetDpi) Clones a style and scales its dimensional properties from the source DPI to the target DPI.
-
Method Details
-
instance
-
resolveMode
-
resolveElementMode
-
hasBox
-
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) -
hasConditionalBorder
protected boolean hasConditionalBorder(JRStyle style, net.sf.jasperreports.engine.util.StyleUtil.BoxSideSelector selector) Returns whether any conditional style of the given style sets a border on the given side.Conditional styles are only evaluated at fill time, so a border which they set has to be accounted for even though it might not end up being applied.
-
hasConditionalPadding
protected boolean hasConditionalPadding(JRStyle style, net.sf.jasperreports.engine.util.StyleUtil.BoxSideSelector penSelector) Returns whether any conditional style of the given style sets a padding on the given side.- See Also:
-
appendStyle
Merges two styles, by appending the properties of the source style to the ones of the destination style. -
appendPen
Merges two pens, by appending the properties of the source pen to the ones of the destination pen. -
appendBox
Merges two boxes, by appending the properties of the source box to the ones of the destination box. -
appendParagraph
Merges two paragraphs, by appending the properties of the source paragraph to the ones of the destination paragraph. -
scaleDpiStyle
Clones a style and scales its dimensional properties from the source DPI to the target DPI. Non-dimensional properties are left unchanged.
-