package core

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. core
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Package Members

  1. package components
  2. package crosstabs

Type Members

  1. sealed abstract class AbstractStyle extends AnyRef
  2. abstract class Anchor extends AnyRef
  3. sealed case class Band(splitType: SplitTypeEnum, content: Element, height: BandHeight = BandHeight.Auto, printWhenExpression: Option[Expression[Boolean]] = None) extends Product with Serializable
  4. sealed abstract class BandHeight extends AnyRef
  5. sealed case class BoxPadding(top: Option[Int] = None, left: Option[Int] = None, bottom: Option[Int] = None, right: Option[Int] = None) extends Product with Serializable
  6. sealed case class BoxPen(top: Pen = Pen.empty, left: Pen = Pen.empty, bottom: Pen = Pen.empty, right: Pen = Pen.empty) extends Product with Serializable
  7. sealed case class Break(key: String, y: YPos, conditions: Conditions, breakType: BreakTypeEnum) extends Element with Product with Serializable
  8. sealed case class Columns(count: Int = 1, direction: RunDirectionEnum = RunDirectionEnum.LTR, footer: Option[FloatingBand] = None, header: Option[Band] = None, spacing: Length = 0.px, width: RestrictedLength = 100.percent, printOrder: PrintOrderEnum = PrintOrderEnum.VERTICAL) extends Product with Serializable
  9. sealed case class ComponentElement(component: Component, height: Height, width: Width = Width.Remaining, x: RestrictedLength = 0.px, y: YPos = YPos.float(0 px), style: AbstractStyle = Style.inherit, conditions: Conditions = Conditions.default, key: String = "") extends Element with Product with Serializable
  10. sealed case class Conditions(printInFirstWholeBand: Boolean = false, printWhenExpression: Option[Expression[Boolean]] = None, printRepeatedValues: Boolean = true, printWhenDetailOverflows: Boolean = false, printWhenGroupChanges: Option[Group] = None, removeLineWhenBlank: Boolean = false) extends Product with Serializable
  11. sealed abstract class Data extends AnyRef
  12. sealed case class DataDef(dataset: Dataset, source: Expression[JRDataSource], arguments: Map[String, Expression[Any]] = Map.empty) extends Data with Product with Serializable
  13. sealed case class Dataset(parameters: Seq[Parameter] = Vector.empty, variables: Seq[Variable] = Vector.empty, fields: Map[String, String] = Map.empty, sortFields: Seq[SortField] = Vector.empty, query: JRDesignQuery = null, scriptlets: IndexedSeq[JRScriptlet] = Vector.empty, scriptletClassName: Option[String] = None, groups: Map[String, Group] = Map.empty, resourceBundle: Option[String] = None, filterExpression: Option[Expression[Boolean]] = None, whenResourceMissingType: WhenResourceMissingTypeEnum = WhenResourceMissingTypeEnum.NULL, customProperties: Map[String, String] = Map.empty) extends Product with Serializable
  14. sealed case class DatasetRun(datasetName: String, arguments: Map[String, Expression[Any]] = Map.empty, argumentsMapExpression: Option[Expression[Map[String, AnyRef]]] = None, dataSourceExpression: Option[Expression[JRDataSource]] = None, connectionExpression: Option[Expression[Connection]] = None) extends Data with Product with Serializable

    use DataDef instead

  15. abstract class Element extends AnyRef
  16. sealed case class ElementGroup(content: Seq[Element]) extends Element with Product with Serializable

    The only reason to group your report elements is to customize their stretch behavior.

  17. sealed case class ElementSeq(elements: Seq[Element]) extends Element with Product with Serializable

    Element sequences are totally transparent, e.g.

    Element sequences are totally transparent, e.g. an Element e behaves exactly the same if it is nested in an ElementSeq or not. Various utilities in this library freely pack and unpack elements from these sequences.

  18. sealed case class Ellipse(width: Width, height: Height, x: RestrictedLength = 0.px, y: YPos = YPos.float(0 px), style: AbstractStyle = Style.inherit, conditions: Conditions = Conditions.default, key: String = "") extends Element with Product with Serializable
  19. sealed abstract class EvaluationTime extends AnyRef
  20. abstract class Expression[+A] extends AnyRef

    See also

    See companion object for various functions that return Expression objects.

  21. sealed case class FloatingBand(band: Band, floating: Boolean = false) extends Product with Serializable
  22. sealed case class Font(fontName: Option[String] = None, fontSize: Option[Float] = None, bold: Option[Boolean] = None, italic: Option[Boolean] = None, strikeThrough: Option[Boolean] = None, underline: Option[Boolean] = None, pdfEncoding: Option[String] = None, pdfFontName: Option[String] = None, pdfEmbedded: Option[Boolean] = None) extends Product with Serializable
  23. sealed case class Frame(height: Height, content: Element, x: RestrictedLength = 0.px, y: YPos = YPos.float(0.px), width: Width = Width.Remaining, style: AbstractStyle = Style.inherit, conditions: Conditions = Conditions.default, key: String = "") extends Element with Product with Serializable
  24. sealed case class Group(expression: Expression[Any], header: Seq[Band] = Vector.empty, footer: Seq[Band] = Vector.empty, footerPosition: FooterPositionEnum = FooterPositionEnum.NORMAL, startNewColumn: Boolean = false, resetPageNumber: Boolean = false, reprintHeaderOnEachPage: Boolean = false, minHeightToStartNewPage: Int = 0, keepTogether: Boolean = false) extends Product with Serializable
  25. sealed case class Height(value: VerticalLength, stretchType: StretchTypeEnum) extends Product with Serializable

    Height of an element

  26. abstract class Hyperlink extends AnyRef

    When the user clicks a hyperlink, he or she is redirected to a local destination within the current document or to an external resource.

  27. sealed abstract class HyperlinkTarget extends AnyRef
  28. sealed case class Image(expression: Expression[Any], width: Width, height: Height, x: RestrictedLength = 0.px, y: YPos = YPos.float(0 px), style: AbstractStyle = Style.inherit, conditions: Conditions = Conditions.default, key: String = "", usingCache: Option[Boolean] = None, lazily: Boolean = false, onError: OnErrorTypeEnum = net.sf.jasperreports.engine.`type`.OnErrorTypeEnum.ERROR, evaluationTime: EvaluationTime = EvaluationTime.Now, link: Link = Link.empty, anchor: Anchor = Anchor.None) extends Element with Product with Serializable
  29. sealed abstract class Increment extends AnyRef
  30. sealed case class Line(width: Width, height: Height, x: RestrictedLength = 0.px, y: YPos = YPos.float(0 px), style: AbstractStyle = Style.inherit, conditions: Conditions = Conditions.default, key: String = "", direction: LineDirectionEnum = net.sf.jasperreports.engine.`type`.LineDirectionEnum.TOP_DOWN) extends Element with Product with Serializable
  31. sealed case class LineBox(pen: BoxPen = BoxPen.empty, padding: BoxPadding = BoxPadding.empty) extends Product with Serializable
  32. sealed abstract class LineSpacing extends AnyRef
  33. sealed case class Link(hyperlink: Hyperlink, target: HyperlinkTarget, tooltip: Option[Expression[String]]) extends Product with Serializable
  34. sealed case class Margins(top: RestrictedLength = 0.px, right: RestrictedLength = 0.px, bottom: RestrictedLength = 0.px, left: RestrictedLength = 0.px) extends Product with Serializable

    top and bottom margins can be relative to the page height, left and right relative to the page with

  35. sealed case class Page(format: PageFormat = PageFormat.A4, margins: Margins = Margins.default, footer: Option[Band] = None, header: Option[Band] = None, background: Option[Band] = None, columns: Columns = Columns.singleColumn) extends Product with Serializable
  36. sealed case class PageFormat(width: Length, height: Length, orientation: OrientationEnum) extends Product with Serializable

    Orientation is used mostly to inform printers of page layouts.

  37. sealed case class Paragraph(lineSpacing: Option[LineSpacing] = None, firstLineIndent: Option[Int] = None, leftIndent: Option[Int] = None, rightIndent: Option[Int] = None, spacingBefore: Option[Int] = None, spacingAfter: Option[Int] = None, tabStopWidth: Option[Int] = None, tabStops: Seq[TabStop] = Seq.empty) extends Product with Serializable
  38. sealed case class Parameter(name: String, defaultValueExpression: Option[Expression[Any]] = None, isForPrompting: Boolean = false, nestedTypeName: String = null, valueClassName: String = "java.lang.String", description: String = "") extends Product with Serializable
  39. sealed case class Pen(lineColor: Option[Color] = None, lineStyle: Option[LineStyleEnum] = None, lineWidth: Option[Float] = None) extends Product with Serializable
  40. sealed case class Rectangle(width: Width, height: Height, x: RestrictedLength = 0.px, y: YPos = YPos.float(0 px), style: AbstractStyle = Style.inherit, conditions: Conditions = Conditions.default, key: String = "") extends Element with Product with Serializable
  41. sealed case class Report(name: String, details: Seq[Band] = Vector.empty, defaultStyle: Style = Style.empty, styles: Map[String, Style] = Map.empty, templates: IndexedSeq[JRReportTemplate] = Vector.empty, subDatasets: Map[String, Dataset] = Map.empty, mainDataset: Dataset = Dataset.empty, imports: Set[String] = Set.empty, ignorePagination: Boolean = false, language: String = net.sf.jasperreports.engine.JRReport.LANGUAGE_JAVA, lastPageFooter: Option[Band] = None, noData: Option[Band] = None, page: Page = Page.default, summary: Option[SummaryBand] = None, title: Option[TitleBand] = None) extends Product with Serializable
  42. sealed abstract class Reset extends AnyRef
  43. sealed case class ReturnValue(subreportVariable: String, toVariable: String, calculation: CalculationEnum = CalculationEnum.NOTHING, incrementerFactoryClassName: Option[String]) extends Product with Serializable
  44. sealed case class SortField(name: String, order: SortOrderEnum, fieldType: SortFieldTypeEnum) extends Product with Serializable
  45. sealed case class StaticText(text: String, height: Height = Height.fixed(1.0.em), width: Width = Width.Remaining, x: RestrictedLength = 0.px, y: YPos = YPos.float(0 px), key: String = "", style: AbstractStyle = Style.inherit, conditions: Conditions = Conditions.default) extends Element with Product with Serializable
  46. sealed case class Style(parentStyle: Option[StyleReference] = None, conditionalStyles: Seq[(Expression[Boolean], Style)] = Vector.empty, backcolor: Option[Color] = None, forecolor: Option[Color] = None, font: Font = Font.empty, horizontalImageAlignment: Option[HorizontalImageAlignEnum] = None, horizontalTextAlignment: Option[HorizontalTextAlignEnum] = None, paragraph: Paragraph = Paragraph.empty, markup: Option[String] = None, mode: Option[ModeEnum] = None, pattern: Option[String] = None, radius: Option[Int] = None, rotation: Option[RotationEnum] = None, scaleImage: Option[ScaleImageEnum] = None, verticalImageAlignment: Option[VerticalImageAlignEnum] = None, verticalTextAlignment: Option[VerticalTextAlignEnum] = None, line: Pen = Pen.empty, box: LineBox = LineBox.empty, fill: Option[FillEnum] = None, blankWhenNull: Option[Boolean] = None) extends AbstractStyle with Product with Serializable
  47. sealed case class StyleReference(reference: String) extends AbstractStyle with Product with Serializable
  48. sealed case class Subreport(subreportExpression: Expression[Any], height: Height, width: Width = Width.Remaining, x: RestrictedLength = 0.px, y: YPos = YPos.float(0 px), style: AbstractStyle = Style.inherit, conditions: Conditions = Conditions.default, key: String = "", arguments: Map[String, Expression[Any]] = Map.empty, argumentsMapExpression: Option[Expression[Map[String, AnyRef]]] = None, usingCache: Option[Boolean] = None, dataSourceExpression: Option[Expression[JRDataSource]] = None, connectionExpression: Option[Expression[Connection]] = None, returnValues: Seq[ReturnValue] = Vector.empty) extends Element with Product with Serializable
  49. sealed case class SummaryBand(band: Band, newPage: Boolean = false, withPageHeaderAndFooter: Boolean = false) extends Product with Serializable
  50. sealed case class TabStop(position: Int, align: TabStopAlignEnum) extends Product with Serializable
  51. sealed case class TextField(expression: Expression[Any], height: Height = Height.fixed(1.0.em), width: Width = Width.Remaining, x: RestrictedLength = 0.px, y: YPos = YPos.float(0 px), key: String = "", style: AbstractStyle = Style.inherit, conditions: Conditions = Conditions.default, link: Link = Link.empty, anchor: Anchor = Anchor.None, stretchWithOverflow: Boolean = false, evaluationTime: EvaluationTime = EvaluationTime.Now, patternExpression: Option[Expression[Any]] = None) extends Element with Product with Serializable
  52. sealed case class TitleBand(band: Band, newPage: Boolean = false) extends Product with Serializable
  53. sealed case class Variable(name: String, calculation: CalculationEnum, expression: Expression[Any], valueClassName: String = "java.lang.String", increment: Increment = Increment.None, reset: Reset = Reset.Report, incrementerFactoryClassName: Option[String] = None) extends Product with Serializable
  54. sealed abstract class Width extends AnyRef
  55. sealed case class YPos(value: VerticalLength, positionType: PositionTypeEnum) extends Product with Serializable

    Vertical position of an element

Value Members

  1. implicit def absoluteLength(l: Length): RestrictedLength
  2. implicit def absoluteVertical(value: Length): AbsoluteVerticalLength
  3. def compile(r: Report): JasperReport

    Creates a JasperReport object (a report template) that can be stored for later use.

    Creates a JasperReport object (a report template) that can be stored for later use. May throw an exception if the report cannot be stored; use prepare or print if unsure.

  4. implicit def fontRelatedVertical(value: FontSizedLength): FontRelatedVerticalLength
  5. implicit def fractionValue(value: Int): FractionValue
  6. implicit def fractionValue(value: Double): FractionValue
  7. implicit def lengthValue(value: Int): LengthValue
  8. implicit def lengthValue(value: Double): LengthValue
  9. implicit def liftElements(l: Seq[Element]): Element
  10. implicit def partialLength(p: FractionValue): RestrictedLength
  11. def prepare(r: Report): (JasperReport, Map[String, AnyRef])

    Creates a JasperReport object (a report template) and a map of fixed arguments to generated parameters, which can be combined with additional arguments and passed to print later.

    Creates a JasperReport object (a report template) and a map of fixed arguments to generated parameters, which can be combined with additional arguments and passed to print later. This way the overhead can be reduced if many similar reports have to be created for different data.

  12. def print(r: Report, args: Map[String, AnyRef] = Map.empty, ds: JRDataSource = null): JasperPrint

    Creates a JasperPrint object of the report, optionally specifying a map of named arguments and a datasource

  13. def printJasperReport(jreport: JasperReport, args: Map[String, AnyRef] = Map.empty, ds: JRDataSource = null): JasperPrint

    Creates a JasperPrint object of the JasperPrint, optionally specifying a map of named arguments and a datasource

  14. implicit def specificWidth(value: Length): Specific
  15. implicit def specificWidth(value: FractionValue): Specific
  16. implicit def specificWidth(value: RestrictedLength): Specific
  17. object Anchor
  18. object BandHeight
  19. object BoxPadding extends Serializable
  20. object BoxPen extends Serializable
  21. object Break extends Serializable
  22. object Columns extends Serializable
  23. object Compiler
  24. object Conditions extends Serializable
  25. object Dataset extends Serializable
  26. object Dimensions
  27. object Element
  28. object ElementGroup extends Serializable
  29. object EvaluationTime
  30. object Expression

    This object provides various ways to create Expression objects.

  31. object Font extends Serializable
  32. object Height extends Serializable
  33. object Hyperlink
  34. object HyperlinkTarget
  35. object Increment
  36. object LineBox extends Serializable
  37. object LineSpacing
  38. object Link extends Serializable
  39. object Margins extends Serializable
  40. object Page extends Serializable
  41. object PageFormat extends Serializable
  42. object Paragraph extends Serializable
  43. object Pen extends Serializable
  44. object Reset
  45. object Style extends Serializable
  46. object Subreport extends Serializable
  47. object TabStop extends Serializable
  48. object Width
  49. object YPos extends Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped