API / geotoolkit / scene / exports / HeaderComponent / HeaderComponent
exports.HeaderComponent.HeaderComponent
Header Component that print the title and the date of the pdf document
↳
HeaderComponent
Methods
Constructors
• new HeaderComponent(width, height, title?, date?, textStyle?)
| Name | Type |
|---|---|
width | number |
height | number |
Optional title | string |
Optional date | Date |
Optional textStyle | Type |
PageElement.constructor
Methods
▸ getClassName(): string
string
▸ getDate(): Date
get date
Date
date
▸ getDefaultSize(): Dimension
get the defaultSize of the component
dimension
▸ getMaximumSize(): Dimension
get the maximum size of the component
dimension
▸ getTextStyle(): TextStyle
get date
date
▸ getTitle(): string
get title
string
title
▸ isElementVisible(): isVisiblePageElementCallback
Get function to check element visibility. The default implementation returns null and standard rule is used
function to check
▸ render(context, pageInfo?, pageContext?): void
print title and date in the context
| Name | Type | Description |
|---|---|---|
context | DocumentRenderingContext | PdfRenderingContext |
Optional pageInfo | PageInfo | JSON Object |
Optional pageContext | PageContext | page context |
void
▸ Static getClassName(): string
string