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(unsigned int layout=OELegendLayoutStyle::Default,
unsigned int color=OELegendColorStyle::Default,
unsigned int inter=OELegendInteractiveStyle::Default)
See also
OELegendLayoutStylenamespaceOELegendColorStylenamespaceOELegendInteractiveStylenamespace
OELegendLayoutOptions(const OELegendLayoutOptions &rhs)
Copy constructor.
operator=
OELegendLayoutOptions &operator=(const OELegendLayoutOptions &rhs)
Assignment operator.
GetButtonFont
const OEFont& GetButtonFont() const
See also
OEFont class
GetButtonHeightScale
double GetButtonHeightScale() const
See also
GetButtonPen
const OEPen& GetButtonPen(bool on) const
See also
OEPen class
GetButtonWidthScale
double GetButtonWidthScale() const
See also
GetColorStyle
unsigned int GetColorStyle() const
See also
OELegendColorStylenamespace
GetInteractiveStyle
unsigned int GetInteractiveStyle() const
See also
OELegendInteractiveStylenamespace
GetLayoutStyle
unsigned int GetLayoutStyle() const
See also
OELegendLayoutStylenamespace
GetLegendBoxPen
const OEPen& GetLegendBoxPen() const
See also
OEPen class
GetMargin
double GetMargin(unsigned int percent) const
Returns the ratio of a specific margin of the legend layout.
- margin
This value has to be from the
OEMarginnamespace.
See also
SetButtonFont
void SetButtonFont(const OEFont &font)
See also
OEFont class
SetButtonHeightScale
void SetButtonHeightScale(double scale)
See also
SetButtonPen
void SetButtonPen(const OEPen &pen, bool on)
See also
OEPen class
SetButtonWidthScale
void SetButtonWidthScale(double s)
See also
SetLegendBoxPen
void SetLegendBoxPen(const OEPen &pen)
See also
OEPen class
SetMargin
bool SetMargin(unsigned int margin, double percent)
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
bool SetMargins(double margin)
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