Class: AsposeSlidesCloud::MatrixElement
- Inherits:
-
MathElement
- Object
- BaseObject
- MathElement
- AsposeSlidesCloud::MatrixElement
- Defined in:
- lib/aspose_slides_cloud/models/matrix_element.rb
Overview
Specifies the Matrix object,
Instance Attribute Summary collapse
-
#base_justification ⇒ Object
Specifies the vertical justification respect to surrounding text.
-
#column_gap ⇒ Object
The value of horizontal spacing between columns of a matrix.
-
#column_gap_rule ⇒ Object
The type of horizontal spacing between columns of a matrix.
-
#hide_placeholders ⇒ Object
Hide the placeholders for empty matrix elements.
-
#items ⇒ Object
Matrix items.
-
#min_column_width ⇒ Object
Minimum column width in twips (1/20th of a point).
-
#row_gap ⇒ Object
The value of vertical spacing between rows of a matrix;.
-
#row_gap_rule ⇒ Object
The type of vertical spacing between rows of a matrix.
Attributes inherited from MathElement
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ MatrixElement
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Methods inherited from BaseObject
#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash, #to_s
Constructor Details
#initialize(attributes = {}) ⇒ MatrixElement
Initializes the object
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 |
# File 'lib/aspose_slides_cloud/models/matrix_element.rb', line 82 def initialize(attributes = {}) super if attributes.has_key?(:'HidePlaceholders') self.hide_placeholders = attributes[:'HidePlaceholders'] end if attributes.has_key?(:'BaseJustification') self.base_justification = attributes[:'BaseJustification'] end if attributes.has_key?(:'MinColumnWidth') self.min_column_width = attributes[:'MinColumnWidth'] end if attributes.has_key?(:'ColumnGapRule') self.column_gap_rule = attributes[:'ColumnGapRule'] end if attributes.has_key?(:'ColumnGap') self.column_gap = attributes[:'ColumnGap'] end if attributes.has_key?(:'RowGapRule') self.row_gap_rule = attributes[:'RowGapRule'] end if attributes.has_key?(:'RowGap') self.row_gap = attributes[:'RowGap'] end if attributes.has_key?(:'Items') if (value = attributes[:'Items']).is_a?(Array) self.items = value end end self.type = 'Matrix' end |
Instance Attribute Details
#base_justification ⇒ Object
Specifies the vertical justification respect to surrounding text.
32 33 34 |
# File 'lib/aspose_slides_cloud/models/matrix_element.rb', line 32 def base_justification @base_justification end |
#column_gap ⇒ Object
The value of horizontal spacing between columns of a matrix
41 42 43 |
# File 'lib/aspose_slides_cloud/models/matrix_element.rb', line 41 def column_gap @column_gap end |
#column_gap_rule ⇒ Object
The type of horizontal spacing between columns of a matrix.
38 39 40 |
# File 'lib/aspose_slides_cloud/models/matrix_element.rb', line 38 def column_gap_rule @column_gap_rule end |
#hide_placeholders ⇒ Object
Hide the placeholders for empty matrix elements
29 30 31 |
# File 'lib/aspose_slides_cloud/models/matrix_element.rb', line 29 def hide_placeholders @hide_placeholders end |
#items ⇒ Object
Matrix items
50 51 52 |
# File 'lib/aspose_slides_cloud/models/matrix_element.rb', line 50 def items @items end |
#min_column_width ⇒ Object
Minimum column width in twips (1/20th of a point)
35 36 37 |
# File 'lib/aspose_slides_cloud/models/matrix_element.rb', line 35 def min_column_width @min_column_width end |
#row_gap ⇒ Object
The value of vertical spacing between rows of a matrix;
47 48 49 |
# File 'lib/aspose_slides_cloud/models/matrix_element.rb', line 47 def row_gap @row_gap end |
#row_gap_rule ⇒ Object
The type of vertical spacing between rows of a matrix
44 45 46 |
# File 'lib/aspose_slides_cloud/models/matrix_element.rb', line 44 def row_gap_rule @row_gap_rule end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/aspose_slides_cloud/models/matrix_element.rb', line 53 def self.attribute_map super.merge({ :'hide_placeholders' => :'HidePlaceholders', :'base_justification' => :'BaseJustification', :'min_column_width' => :'MinColumnWidth', :'column_gap_rule' => :'ColumnGapRule', :'column_gap' => :'ColumnGap', :'row_gap_rule' => :'RowGapRule', :'row_gap' => :'RowGap', :'items' => :'Items', }) end |
.swagger_types ⇒ Object
Attribute type mapping.
67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/aspose_slides_cloud/models/matrix_element.rb', line 67 def self.swagger_types super.merge({ :'hide_placeholders' => :'BOOLEAN', :'base_justification' => :'String', :'min_column_width' => :'Integer', :'column_gap_rule' => :'String', :'column_gap' => :'Integer', :'row_gap_rule' => :'String', :'row_gap' => :'Integer', :'items' => :'Array<Array<MathElement>>', }) end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
173 174 175 176 177 178 179 180 181 182 183 184 185 |
# File 'lib/aspose_slides_cloud/models/matrix_element.rb', line 173 def ==(o) return true if self.equal?(o) self.class == o.class && type == o.type && hide_placeholders == o.hide_placeholders && base_justification == o.base_justification && min_column_width == o.min_column_width && column_gap_rule == o.column_gap_rule && column_gap == o.column_gap && row_gap_rule == o.row_gap_rule && row_gap == o.row_gap && items == o.items end |
#eql?(o) ⇒ Boolean
189 190 191 |
# File 'lib/aspose_slides_cloud/models/matrix_element.rb', line 189 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
195 196 197 |
# File 'lib/aspose_slides_cloud/models/matrix_element.rb', line 195 def hash [type, hide_placeholders, base_justification, min_column_width, column_gap_rule, column_gap, row_gap_rule, row_gap, items].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
123 124 125 126 |
# File 'lib/aspose_slides_cloud/models/matrix_element.rb', line 123 def list_invalid_properties invalid_properties = super invalid_properties end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
130 131 132 133 134 135 136 137 138 139 |
# File 'lib/aspose_slides_cloud/models/matrix_element.rb', line 130 def valid? return false if !super base_justification_validator = EnumAttributeValidator.new('String', ['NotDefined', 'Top', 'Center', 'Bottom']) return false unless base_justification_validator.valid?(@base_justification) column_gap_rule_validator = EnumAttributeValidator.new('String', ['SingleSpacingGap', 'OneAndHalfSpacingGap', 'DoubleSpacingGap', 'Exactly', 'Multiple']) return false unless column_gap_rule_validator.valid?(@column_gap_rule) row_gap_rule_validator = EnumAttributeValidator.new('String', ['SingleSpacingGap', 'OneAndHalfSpacingGap', 'DoubleSpacingGap', 'Exactly', 'Multiple']) return false unless row_gap_rule_validator.valid?(@row_gap_rule) true end |