Class: Archimate::Svg::Entity::AndJunction
- Inherits:
-
RectEntity
- Object
- BaseEntity
- RectEntity
- Archimate::Svg::Entity::AndJunction
- Defined in:
- lib/archimate/svg/entity/and_junction.rb
Instance Attribute Summary
Attributes inherited from BaseEntity
#background_class, #badge, #badge_bounds, #bounds_offset, #child, #entity, #text_bounds
Instance Method Summary collapse
- #entity_shape(xml, bounds) ⇒ Object
-
#initialize(child, bounds_offset) ⇒ AndJunction
constructor
A new instance of AndJunction.
Methods included from Rect
Methods inherited from BaseEntity
#entity_badge, #entity_label, #group_attrs, #optional_link, #shape_style, #text_lines, #text_style, #to_svg
Constructor Details
#initialize(child, bounds_offset) ⇒ AndJunction
Returns a new instance of AndJunction.
7 8 9 10 |
# File 'lib/archimate/svg/entity/and_junction.rb', line 7 def initialize(child, bounds_offset) super @background_class = "archimate-junction-background" end |
Instance Method Details
#entity_shape(xml, bounds) ⇒ Object
12 13 14 |
# File 'lib/archimate/svg/entity/and_junction.rb', line 12 def entity_shape(xml, bounds) xml.circle(cx: bounds.left + bounds.width / 2.0, cy: bounds.top + bounds.height / 2.0, r: bounds.width / 2.0, class: background_class, style: shape_style) end |