OELegendLayoutOptions
class OELegendLayoutOptions
This class represents the OELegendLayoutOptions class that encapsulates properties that determine how an legend layout is depicted.
The OELegendLayoutOptions class stores the following properties:
Property |
Get method |
Set method |
Corresponding namespace / class / type |
|---|---|---|---|
legend layout style |
(set by the constructor) |
|
|
legend color style |
(set by the constructor) |
|
|
legend interactive style |
(set by the constructor) |
|
|
button label font |
|||
button pen(s) |
|||
button height scale |
positive floating point number in the range of \([0.5, 3.0]\) |
||
button width scale |
positive floating point number in the range of \([0.5, 5.0]\) |
||
legend box pen |
|||
layout margins |
positive floating point number in the range of \([0.0, 90.0]\) |
See also
OELegendLayout class
Constructors
OELegendLayoutOptions(layout: int, color: int, inter: int) -> OELegendLayoutOptions
See also
OELegendLayoutStylenamespaceOELegendColorStylenamespaceOELegendInteractiveStylenamespace
OELegendLayoutOptions(arg2: OELegendLayoutOptions) -> OELegendLayoutOptions
Copy constructor.
GetButtonFont
GetButtonFont() -> OEFont
See also
OEFont class
GetButtonHeightScale
GetButtonHeightScale() -> float
See also
GetButtonPen
GetButtonPen(on: bool) -> OEPen
See also
OEPen class
GetButtonWidthScale
GetButtonWidthScale() -> float
See also
GetColorStyle
GetColorStyle() -> int
See also
OELegendColorStylenamespace
GetInteractiveStyle
GetInteractiveStyle() -> int
See also
OELegendInteractiveStylenamespace
GetLayoutStyle
GetLayoutStyle() -> int
See also
OELegendLayoutStylenamespace
GetLegendBoxPen
GetLegendBoxPen() -> OEPen
See also
OEPen class
GetMargin
GetMargin(percent: int) -> float
Returns the ratio of a specific margin of the legend layout.
- margin
This value has to be from the
OEMarginnamespace.
See also
SetButtonFont
SetButtonFont(font: OEFont) -> None
See also
OEFont class
SetButtonHeightScale
SetButtonHeightScale(s: float) -> None
See also
SetButtonPen
SetButtonPen(pen: OEPen, on: bool) -> None
See also
OEPen class
SetButtonWidthScale
SetButtonWidthScale(s: float) -> None
See also
SetLegendBoxPen
SetLegendBoxPen(pen: OEPen) -> None
See also
OEPen class
SetMargin
SetMargin(margin: int, percent: float) -> bool
Sets the size of a specific margin of the legend layout.
- marginloc
This value has to be from the
OEMarginnamespace.- margin
This number is considered as a percentage of either the width or the height of image on which the legend layout will be drawn and has to be in the range of \([0.0, 90.0]\). For example, 10.0% means, that the left and right margin are 10% of the total width of the image, and the top and bottom margins are 10% of the total height of the image.
See also
SetMargins
SetMargins(percent: float) -> bool
Sets the size of all margins of the legend layout.
- margin
This number is considered as a percentage of either the width or the height of image on which the legend layout will be drawn and has to be in the range of \([0.0, 90.0]\). For example, 10.0% means, that the left and right margin are 10% of the total width of the image, and the top and bottom margins are 10% of the total height of the image.
See also