Class: Ea::Model::Legend
- Defined in:
- lib/ea/model/legend.rb
Overview
An auto-generated legend block. EA emits these from a
t_object row of Object_Type="Text" whose StyleEx carries
LegendOpts=.... The visible block β title, colored icon
rects, and per-item labels β is configured by a sibling
t_xref row of name="CustomProperties" on the same GUID.
Colors are stored as EA's BGR-packed integers (same encoding as t_object.BCol). Convert to "#RRGGBB" at render time via Ea::Svg::EaEmitter::Element::BColDecoder.
Constant Summary collapse
- DEFAULT_TITLE =
"ε‘δΎ"- DEFAULT_HEADING_SIZE =
12- DEFAULT_ITEM_SIZE =
9- DEFAULT_FONT_COLOR =
BGR for #003060
0x603000- DEFAULT_BACKGROUND_COLOR =
BGR for #F0F0F0
0xF0F0F0- DEFAULT_BORDER_COLOR =
BGR for #D7D7D7
0xD7D7D7