Header Class
The static Header class provides a few static methods to draw compact or full headers and the grain shape legend in SLFProfile, StructureProfile and SimpleProfile. Furthermore methods such as Header.link may be used to make any Element object into a clickable hyperlink.
Methods
draw
(
static
-
ctx
-
left
-
width
This method draws the compact or full header or the full header with a grain shape legend below.
height
(
Number
static
-
p
-
paper
-
profile
-
left
-
width
This function returns the presumptive pixel height of the header for the passed properties.
Parameters:
Returns:
Number:
The height of the header in pixel
link
(
static
-
element
-
url
-
[color]
This method accepts a Element and turns it into a hyperlink pointing to the passed URL. When hovering over the element the color changes to blue. Note: Best used for elements of type 'text'.