Class pvc.options.panels.LegendPanel
Extends
DockedPanel.
Constructor Attributes | Constructor Name and Description |
---|---|
The options documentation class of the legend panel.
|
Field Attributes | Field Name and Description |
---|---|
Layout | |
The alignment side of the panel (the source)
that will align to a side of the parent panel (the target).
|
|
The maximum positive number of legend items that can fit in the legend panel.
|
|
Half the space between legend items, in pixel units.
|
|
The fixed size of legend items, in pixel units or as a percentage.
|
|
The margins of the panel.
|
|
The width and height of the marker panel, in pixel units.
|
|
The behavior of the legend panel when an overflow is detected.
|
|
The paddings of the panel.
|
|
The docking position of the panel.
|
|
The fixed size of the panel, in pixel units or as a percentage.
|
|
The maximum size of the panel, in pixel units or as a percentage.
|
|
The space between the marker and the associated label, in pixel units.
|
|
Style | |
The extension points provided by the legend panel.
|
|
The font of the panel.
|
The alignment side must be orthogonal to the docking side.
The default value is 'middle', if DockedPanel#position is an horizontal side, and 'center', otherwise.
- Borrowed from:
- DockedPanel
See pvc.options.varia.LegendOverflow for information about the different behaviors of the legend panel when this maximum is exceeded.
This property should be named "itemMargins", according to the current naming and box model concept, but is as is for historical reasons.
Percentage values are in relation to the legend panel's available client size (i.e. the available size with margins and paddings discounted).
The item margins are only applied between items.
See pvc.options.varia.Sides for information about the different supported data types.
- Default Value:
- 2.5
The size includes #itemPadding. The items' client size is the size discounted of the item padding.
Percentage values are in relation to the legend panel's available client size (i.e. the available size with margins and paddings discounted).
When unspecified, each item assumes the smallest possible size that fits all content. You can specify only the item's width or height.
The default item height is the biggest of the font height and the #markerSize. The default item width is the #markerSize, plus the #textMargin, plus the width of the item's text at the current font.
See pvc.options.varia.Size for information about the different supported data types.
See pvc.options.varia.Sides for information about the different supported data types.
- Default Value:
- 0
- Borrowed from:
- DockedPanel
The marker itself will be slightly smaller.
- Default Value:
- 15
See pvc.options.varia.LegendOverflow for information about the different behaviors of the legend panel when an overflow is detected.
- Default Value:
- 'clip'
See pvc.options.varia.Sides for information about the different supported data types.
- Default Value:
- 5
- Default Value:
- 'bottom'
See pvc.options.varia.Size for information about the different supported data types.
- Borrowed from:
- Panel
See pvc.options.varia.Size for information about the different supported data types.
- Borrowed from:
- Panel
- Default Value:
- 6
See the supported font format in http://www.w3.org/TR/CSS2/fonts.html#font-shorthand
- Default Value:
- '10px sans-serif'