Class: DYI::Shape::Polygon
- Defined in:
- lib/dyi/shape/base.rb
Overview
Constant Summary
Constants inherited from GraphicalElement
GraphicalElement::CLASS_REGEXP
Constants inherited from Element
Instance Attribute Summary
Attributes inherited from Base
#anchor_href, #anchor_target, #attributes, #clipping, #parent
Attributes inherited from GraphicalElement
Attributes inherited from Element
Instance Method Summary collapse
Methods inherited from Polyline
#bottom, #current_point, #initialize, #left, #line_to, #points, #right, #rline_to, #start_point, #top, #undo
Methods included from Markable
#has_marker?, #marker, #set_marker
Methods inherited from Base
#add_animation, #add_painting_animation, #add_transform_animation, #animate?, #animations, #clear_clipping, #draw_on, #has_marker?, #has_uri_reference?, #root_element?, #root_node?, #rotate, #scale, #set_clipping, #set_clipping_shapes, #set_event, #skew_x, #skew_y, #transform, #translate
Methods inherited from GraphicalElement
#add_css_class, #add_event_listener, #css_classes, #event_listeners, #event_target?, #remove_css_class, #remove_event_listener, #set_event, #to_reused_source
Methods inherited from Element
#canvas, #child_elements, #has_uri_reference?, #id, #id=, #include_external_file?, #inner_id
Constructor Details
This class inherits a constructor from DYI::Shape::Polyline
Instance Method Details
#write_as(formatter, io = $>) ⇒ Object
733 734 735 |
# File 'lib/dyi/shape/base.rb', line 733 def write_as(formatter, io=$>) formatter.write_polygon(self, io, &(block_given? ? Proc.new : nil)) end |