A report can define a number of styles. Once defined, they can be associated with
report objects in order to provide base configuration for various visual aspects.
This allows to create reports with modular styling that can be easily
adapted to new requirements. JasperAssistant groups these definitions under a single
Styles
node in the Outline View
. New styles
can be added by using the context menu associated to this node.
Styles can have associated conditional styles. Conditional styles allow to change the
style when an associated boolean expression is evaluated to true
.
Conditional styles can be added by right-clicking on a defined style in the
Outline View
and selecting the Add Conditional
Style
action.
Style Properties
Name
Name of the report style definition as it is used to refer to the style throughout the report.
Parent Style
Name of the report style definition from which the style inherits its settings.
Foreground
The foreground color of the object.
Background
The background color of the object.
Mode
Determines whether the background of an object is transparent or opaque.
Line Width
Line width used to draw the object.
Line Style
Line style used to draw the object.
Solid
- Solid line.
Dashed
- Dashed line.
Dotted
- Dotted line.
Double
- Double line.
Line Color
Line color used to draw the object.
Fill
Determines the fill pattern used to fill the object.
Solid
- Solid fill.
Box
Specifies the box properties such as border type, border color and padding. Each property can be set individually for each box side or globally for all sides.
Horizontal Alignment
Specifies the horizontal alignment of the Text
or
Image
object.
Left
- Left.
Center
- Center.
Right
- Right.
Vertical Alignment
Specifies the vertical alignment of the Text
or
Image
object.
Top
- Top.
Middle
- Middle.
Bottom
- Bottom.
Scale
Specifies the image scale type.
Clip
- The image is clipped if it does not fit
the bounds of the Image
object.
Fill Frame
- The image is scaled to fit the
bounds of the Image
object. The scaled image does
not preserve the aspect ratio.
Retain Shape
- The image is scaled to fit the
bounds of the Image
object. The scaled image
preserves the aspect ratio.
Real Height
- The image is scaled to fit the
actual height of the image.
Real Size
- The image is scaled to fit the
actual size of the image.
Radius
Specifies the radius of the rectangle's corner arc.
Pattern
Specifies the pattern that is used to format the value of the Text
Field
's expression. For date type values the pattern is defined by
the java.text.SimpleDateFormat
class. For numerical type
values the pattern is defined by the
java.text.DecimalFormat
.
Blank When Null
Flag that indicates whether the blank character instead of
null
should be displayed when the Text
Field
's expression evaluates to a null
value.
Line Spacing
Specifies the line spacing type for text objects.
Single
- Single line spacing.
1 and 1/2
- One and a half line spacing.
Double
- Double line spacing.
Rotation
Specifies the rotation type for text objects.
None
- No rotation.
Left
- Text is rotated 90 degrees counter wise.
Right
- Text is rotated 90 degrees clock wise.
Upside Down
- Text is rotated 180 degrees.
Markup
Markup language used in the text.
None
- No markup.
Styled
- Styled text.
HTML
- HyperText Markup Language.
RTF
- Rich Text Format.
Font Name
Name of the font.
Font Size
Size of the font.
Bold
Bold flag.
Italic
Italic flag.
Underline
Underline flag.
Strike Through
Strike through flag.
PDF Font Name
Name of the PDF font.
PDF Encoding
Encoding type to use with the PDF font.
PDF Embedded
Flag that specifies whether the PDF font should be embedded in the document.
Conditional Style Properties
Except a few differences, Conditional Style
shares the same
properties with Style
.
Condition Expression
A boolean expression that provides the value that is used to decide whether the conditional style should be applied or not.