SIMILE | Timeline | Documentation | GregorianEtherPainter class

- SIMILE
- Timeline
- Documentation
- GregorianEtherPainter class

# Timeline.GregorianEtherPainter class

A Gregorian ether painter paints regular markings at some Gregorian calendar interval, i.e., any of the followings: millisecond, second, minute, hour, day, month, year, decade, century, and millennium.

## Initialization

The constructor of Timeline.GregorianEtherPainter takes an object whose fields (listed below) specify initialization settings for the ether.

theme
required, a theme object that stores default visual settings. In fact, some visual settings can only be set in this theme object.
unit
required, one of the Gregorian calendar unit defined in Timeline.DateTime, e.g., Timeline.DateTime.WEEK. This argument specifies the interval at which ticks and labels are painted on the band's background.
align
optional, one of "Left", "Right", "Top", and "Bottom", specifying which edge of the band markings are drawn. By default, markings are drawn on the bottom edges of bands in horizontal timelines, and on the right edges of bands in vertical timelines. This setting overrides either the hAlign or the vAlign field of theme.ether.interval.marker.
showLine
optional, a boolean specifying whether full lines (from edge to edge)should be drawn at regular intervals. This setting overrides theme.ether.interval.line.show.

## Related Topics

- Ether painters, basics and interface
- Timeline.LinearEther, the ether class that this ether painter class is usually used for