Class: AsposeSlidesCloud::Axis
- Inherits:
-
BaseObject
- Object
- BaseObject
- AsposeSlidesCloud::Axis
- Defined in:
- lib/aspose_slides_cloud/models/axis.rb
Overview
Represents a chart axis
Instance Attribute Summary collapse
-
#axis_between_categories ⇒ Object
True if the value axis crosses the category axis between categories.
-
#base_unit_scale ⇒ Object
The smallest time unit that is represented on the date axis.
-
#category_axis_type ⇒ Object
The type of the category axis.
-
#cross_at ⇒ Object
The point on the axis where the perpendicular axis crosses it.
-
#cross_type ⇒ Object
The CrossType on the specified axis where the other axis crosses.
-
#display_unit ⇒ Object
The scaling value of the display units for the value axis.
-
#effect_format ⇒ Object
Get or sets the effect format.
-
#fill_format ⇒ Object
Get or sets the fill format.
-
#has_title ⇒ Object
True if the axis has a visible title.
-
#is_automatic_major_unit ⇒ Object
True the major unit of the axis is automatically assigned.
-
#is_automatic_max_value ⇒ Object
True if the max value is automatically assigned.
-
#is_automatic_min_value ⇒ Object
True if the min value is automatically assigned.
-
#is_automatic_minor_unit ⇒ Object
True the minor unit of the axis is automatically assigned.
-
#is_automatic_tick_label_spacing ⇒ Object
True for automatic tick label spacing value.
-
#is_automatic_tick_marks_spacing ⇒ Object
True for automatic tick marks spacing value.
-
#is_logarithmic ⇒ Object
True if the value axis scale type is logarithmic.
-
#is_number_format_linked_to_source ⇒ Object
True if the format is linked to source data.
-
#is_plot_order_reversed ⇒ Object
True if MS PowerPoint plots data points from last to first.
-
#is_visible ⇒ Object
True if the axis is visible.
-
#label_offset ⇒ Object
The distance of labels from the axis.
-
#line_format ⇒ Object
Get or sets the line format.
-
#log_base ⇒ Object
The logarithmic base.
-
#major_grid_lines_format ⇒ Object
Get or sets the format of major grid lines.
-
#major_tick_mark ⇒ Object
The type of major tick mark for the specified axis.
-
#major_unit ⇒ Object
The major units for the date or value axis.
-
#major_unit_scale ⇒ Object
The major unit scale for the date axis.
-
#max_value ⇒ Object
The maximum value on the value axis.
-
#min_value ⇒ Object
The minimum value on the value axis.
-
#minor_grid_lines_format ⇒ Object
Get or sets the format of major grid lines.
-
#minor_tick_mark ⇒ Object
The type of minor tick mark for the specified axis.
-
#minor_unit ⇒ Object
The minor units for the date or value axis.
-
#minor_unit_scale ⇒ Object
The minor unit scale for the date axis.
-
#number_format ⇒ Object
the format string for the Axis Labels.
-
#position ⇒ Object
Axis position.
-
#tick_label_position ⇒ Object
The position of tick-mark labels on the specified axis.
-
#tick_label_rotation_angle ⇒ Object
Represents the rotation angle of tick labels.
-
#tick_label_spacing ⇒ Object
Specifies how many tick labels to skip between label that is drawn.
-
#tick_marks_spacing ⇒ Object
Specifies how many tick marks shall be skipped before the next one shall be drawn.
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 = {}) ⇒ Axis
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 = {}) ⇒ Axis
Initializes the object
232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 232 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'IsVisible') self.is_visible = attributes[:'IsVisible'] end if attributes.has_key?(:'HasTitle') self.has_title = attributes[:'HasTitle'] end if attributes.has_key?(:'Position') self.position = attributes[:'Position'] end if attributes.has_key?(:'DisplayUnit') self.display_unit = attributes[:'DisplayUnit'] end if attributes.has_key?(:'BaseUnitScale') self.base_unit_scale = attributes[:'BaseUnitScale'] end if attributes.has_key?(:'IsAutomaticMajorUnit') self.is_automatic_major_unit = attributes[:'IsAutomaticMajorUnit'] end if attributes.has_key?(:'MajorUnit') self.major_unit = attributes[:'MajorUnit'] end if attributes.has_key?(:'MajorUnitScale') self.major_unit_scale = attributes[:'MajorUnitScale'] end if attributes.has_key?(:'MajorTickMark') self.major_tick_mark = attributes[:'MajorTickMark'] end if attributes.has_key?(:'IsAutomaticMinorUnit') self.is_automatic_minor_unit = attributes[:'IsAutomaticMinorUnit'] end if attributes.has_key?(:'MinorUnit') self.minor_unit = attributes[:'MinorUnit'] end if attributes.has_key?(:'MinorUnitScale') self.minor_unit_scale = attributes[:'MinorUnitScale'] end if attributes.has_key?(:'MinorTickMark') self.minor_tick_mark = attributes[:'MinorTickMark'] end if attributes.has_key?(:'IsAutomaticMaxValue') self.is_automatic_max_value = attributes[:'IsAutomaticMaxValue'] end if attributes.has_key?(:'MaxValue') self.max_value = attributes[:'MaxValue'] end if attributes.has_key?(:'IsAutomaticMinValue') self.is_automatic_min_value = attributes[:'IsAutomaticMinValue'] end if attributes.has_key?(:'MinValue') self.min_value = attributes[:'MinValue'] end if attributes.has_key?(:'IsLogarithmic') self.is_logarithmic = attributes[:'IsLogarithmic'] end if attributes.has_key?(:'LogBase') self.log_base = attributes[:'LogBase'] end if attributes.has_key?(:'CategoryAxisType') self.category_axis_type = attributes[:'CategoryAxisType'] end if attributes.has_key?(:'AxisBetweenCategories') self.axis_between_categories = attributes[:'AxisBetweenCategories'] end if attributes.has_key?(:'LabelOffset') self.label_offset = attributes[:'LabelOffset'] end if attributes.has_key?(:'IsPlotOrderReversed') self.is_plot_order_reversed = attributes[:'IsPlotOrderReversed'] end if attributes.has_key?(:'IsNumberFormatLinkedToSource') self.is_number_format_linked_to_source = attributes[:'IsNumberFormatLinkedToSource'] end if attributes.has_key?(:'NumberFormat') self.number_format = attributes[:'NumberFormat'] end if attributes.has_key?(:'CrossType') self.cross_type = attributes[:'CrossType'] end if attributes.has_key?(:'CrossAt') self.cross_at = attributes[:'CrossAt'] end if attributes.has_key?(:'IsAutomaticTickMarksSpacing') self.is_automatic_tick_marks_spacing = attributes[:'IsAutomaticTickMarksSpacing'] end if attributes.has_key?(:'TickMarksSpacing') self.tick_marks_spacing = attributes[:'TickMarksSpacing'] end if attributes.has_key?(:'IsAutomaticTickLabelSpacing') self.is_automatic_tick_label_spacing = attributes[:'IsAutomaticTickLabelSpacing'] end if attributes.has_key?(:'TickLabelSpacing') self.tick_label_spacing = attributes[:'TickLabelSpacing'] end if attributes.has_key?(:'TickLabelPosition') self.tick_label_position = attributes[:'TickLabelPosition'] end if attributes.has_key?(:'TickLabelRotationAngle') self.tick_label_rotation_angle = attributes[:'TickLabelRotationAngle'] end if attributes.has_key?(:'FillFormat') self.fill_format = attributes[:'FillFormat'] end if attributes.has_key?(:'EffectFormat') self.effect_format = attributes[:'EffectFormat'] end if attributes.has_key?(:'LineFormat') self.line_format = attributes[:'LineFormat'] end if attributes.has_key?(:'MajorGridLinesFormat') self.major_grid_lines_format = attributes[:'MajorGridLinesFormat'] end if attributes.has_key?(:'MinorGridLinesFormat') self.minor_grid_lines_format = attributes[:'MinorGridLinesFormat'] end end |
Instance Attribute Details
#axis_between_categories ⇒ Object
True if the value axis crosses the category axis between categories. This property applies only to category axes, and it doesn’t apply to 3-D charts
89 90 91 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 89 def axis_between_categories @axis_between_categories end |
#base_unit_scale ⇒ Object
The smallest time unit that is represented on the date axis
41 42 43 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 41 def base_unit_scale @base_unit_scale end |
#category_axis_type ⇒ Object
The type of the category axis
86 87 88 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 86 def category_axis_type @category_axis_type end |
#cross_at ⇒ Object
The point on the axis where the perpendicular axis crosses it
107 108 109 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 107 def cross_at @cross_at end |
#cross_type ⇒ Object
The CrossType on the specified axis where the other axis crosses
104 105 106 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 104 def cross_type @cross_type end |
#display_unit ⇒ Object
The scaling value of the display units for the value axis
38 39 40 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 38 def display_unit @display_unit end |
#effect_format ⇒ Object
Get or sets the effect format.
131 132 133 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 131 def effect_format @effect_format end |
#fill_format ⇒ Object
Get or sets the fill format.
128 129 130 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 128 def fill_format @fill_format end |
#has_title ⇒ Object
True if the axis has a visible title
32 33 34 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 32 def has_title @has_title end |
#is_automatic_major_unit ⇒ Object
True the major unit of the axis is automatically assigned
44 45 46 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 44 def is_automatic_major_unit @is_automatic_major_unit end |
#is_automatic_max_value ⇒ Object
True if the max value is automatically assigned
68 69 70 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 68 def is_automatic_max_value @is_automatic_max_value end |
#is_automatic_min_value ⇒ Object
True if the min value is automatically assigned
74 75 76 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 74 def is_automatic_min_value @is_automatic_min_value end |
#is_automatic_minor_unit ⇒ Object
True the minor unit of the axis is automatically assigned
56 57 58 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 56 def is_automatic_minor_unit @is_automatic_minor_unit end |
#is_automatic_tick_label_spacing ⇒ Object
True for automatic tick label spacing value
116 117 118 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 116 def is_automatic_tick_label_spacing @is_automatic_tick_label_spacing end |
#is_automatic_tick_marks_spacing ⇒ Object
True for automatic tick marks spacing value
110 111 112 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 110 def is_automatic_tick_marks_spacing @is_automatic_tick_marks_spacing end |
#is_logarithmic ⇒ Object
True if the value axis scale type is logarithmic
80 81 82 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 80 def is_logarithmic @is_logarithmic end |
#is_number_format_linked_to_source ⇒ Object
True if the format is linked to source data
98 99 100 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 98 def is_number_format_linked_to_source @is_number_format_linked_to_source end |
#is_plot_order_reversed ⇒ Object
True if MS PowerPoint plots data points from last to first
95 96 97 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 95 def is_plot_order_reversed @is_plot_order_reversed end |
#is_visible ⇒ Object
True if the axis is visible
29 30 31 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 29 def is_visible @is_visible end |
#label_offset ⇒ Object
The distance of labels from the axis. Applied to category or date axis. Value must be between 0% and 1000%.
92 93 94 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 92 def label_offset @label_offset end |
#line_format ⇒ Object
Get or sets the line format.
134 135 136 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 134 def line_format @line_format end |
#log_base ⇒ Object
The logarithmic base. Default value is 10
83 84 85 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 83 def log_base @log_base end |
#major_grid_lines_format ⇒ Object
Get or sets the format of major grid lines.
137 138 139 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 137 def major_grid_lines_format @major_grid_lines_format end |
#major_tick_mark ⇒ Object
The type of major tick mark for the specified axis
53 54 55 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 53 def major_tick_mark @major_tick_mark end |
#major_unit ⇒ Object
The major units for the date or value axis
47 48 49 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 47 def major_unit @major_unit end |
#major_unit_scale ⇒ Object
The major unit scale for the date axis
50 51 52 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 50 def major_unit_scale @major_unit_scale end |
#max_value ⇒ Object
The maximum value on the value axis
71 72 73 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 71 def max_value @max_value end |
#min_value ⇒ Object
The minimum value on the value axis
77 78 79 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 77 def min_value @min_value end |
#minor_grid_lines_format ⇒ Object
Get or sets the format of major grid lines.
140 141 142 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 140 def minor_grid_lines_format @minor_grid_lines_format end |
#minor_tick_mark ⇒ Object
The type of minor tick mark for the specified axis
65 66 67 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 65 def minor_tick_mark @minor_tick_mark end |
#minor_unit ⇒ Object
The minor units for the date or value axis
59 60 61 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 59 def minor_unit @minor_unit end |
#minor_unit_scale ⇒ Object
The minor unit scale for the date axis
62 63 64 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 62 def minor_unit_scale @minor_unit_scale end |
#number_format ⇒ Object
the format string for the Axis Labels
101 102 103 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 101 def number_format @number_format end |
#position ⇒ Object
Axis position
35 36 37 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 35 def position @position end |
#tick_label_position ⇒ Object
The position of tick-mark labels on the specified axis.
122 123 124 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 122 def tick_label_position @tick_label_position end |
#tick_label_rotation_angle ⇒ Object
Represents the rotation angle of tick labels.
125 126 127 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 125 def tick_label_rotation_angle @tick_label_rotation_angle end |
#tick_label_spacing ⇒ Object
Specifies how many tick labels to skip between label that is drawn.
119 120 121 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 119 def tick_label_spacing @tick_label_spacing end |
#tick_marks_spacing ⇒ Object
Specifies how many tick marks shall be skipped before the next one shall be drawn. Applied to category or series axis.
113 114 115 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 113 def tick_marks_spacing @tick_marks_spacing end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 143 def self.attribute_map { :'is_visible' => :'IsVisible', :'has_title' => :'HasTitle', :'position' => :'Position', :'display_unit' => :'DisplayUnit', :'base_unit_scale' => :'BaseUnitScale', :'is_automatic_major_unit' => :'IsAutomaticMajorUnit', :'major_unit' => :'MajorUnit', :'major_unit_scale' => :'MajorUnitScale', :'major_tick_mark' => :'MajorTickMark', :'is_automatic_minor_unit' => :'IsAutomaticMinorUnit', :'minor_unit' => :'MinorUnit', :'minor_unit_scale' => :'MinorUnitScale', :'minor_tick_mark' => :'MinorTickMark', :'is_automatic_max_value' => :'IsAutomaticMaxValue', :'max_value' => :'MaxValue', :'is_automatic_min_value' => :'IsAutomaticMinValue', :'min_value' => :'MinValue', :'is_logarithmic' => :'IsLogarithmic', :'log_base' => :'LogBase', :'category_axis_type' => :'CategoryAxisType', :'axis_between_categories' => :'AxisBetweenCategories', :'label_offset' => :'LabelOffset', :'is_plot_order_reversed' => :'IsPlotOrderReversed', :'is_number_format_linked_to_source' => :'IsNumberFormatLinkedToSource', :'number_format' => :'NumberFormat', :'cross_type' => :'CrossType', :'cross_at' => :'CrossAt', :'is_automatic_tick_marks_spacing' => :'IsAutomaticTickMarksSpacing', :'tick_marks_spacing' => :'TickMarksSpacing', :'is_automatic_tick_label_spacing' => :'IsAutomaticTickLabelSpacing', :'tick_label_spacing' => :'TickLabelSpacing', :'tick_label_position' => :'TickLabelPosition', :'tick_label_rotation_angle' => :'TickLabelRotationAngle', :'fill_format' => :'FillFormat', :'effect_format' => :'EffectFormat', :'line_format' => :'LineFormat', :'major_grid_lines_format' => :'MajorGridLinesFormat', :'minor_grid_lines_format' => :'MinorGridLinesFormat', } end |
.swagger_types ⇒ Object
Attribute type mapping.
187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 187 def self.swagger_types { :'is_visible' => :'BOOLEAN', :'has_title' => :'BOOLEAN', :'position' => :'String', :'display_unit' => :'String', :'base_unit_scale' => :'String', :'is_automatic_major_unit' => :'BOOLEAN', :'major_unit' => :'Float', :'major_unit_scale' => :'String', :'major_tick_mark' => :'String', :'is_automatic_minor_unit' => :'BOOLEAN', :'minor_unit' => :'Float', :'minor_unit_scale' => :'String', :'minor_tick_mark' => :'String', :'is_automatic_max_value' => :'BOOLEAN', :'max_value' => :'Float', :'is_automatic_min_value' => :'BOOLEAN', :'min_value' => :'Float', :'is_logarithmic' => :'BOOLEAN', :'log_base' => :'Float', :'category_axis_type' => :'String', :'axis_between_categories' => :'BOOLEAN', :'label_offset' => :'Integer', :'is_plot_order_reversed' => :'BOOLEAN', :'is_number_format_linked_to_source' => :'BOOLEAN', :'number_format' => :'String', :'cross_type' => :'String', :'cross_at' => :'Float', :'is_automatic_tick_marks_spacing' => :'BOOLEAN', :'tick_marks_spacing' => :'Integer', :'is_automatic_tick_label_spacing' => :'BOOLEAN', :'tick_label_spacing' => :'Integer', :'tick_label_position' => :'String', :'tick_label_rotation_angle' => :'Float', :'fill_format' => :'FillFormat', :'effect_format' => :'EffectFormat', :'line_format' => :'LineFormat', :'major_grid_lines_format' => :'ChartLinesFormat', :'minor_grid_lines_format' => :'ChartLinesFormat', } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 526 def ==(o) return true if self.equal?(o) self.class == o.class && is_visible == o.is_visible && has_title == o.has_title && position == o.position && display_unit == o.display_unit && base_unit_scale == o.base_unit_scale && is_automatic_major_unit == o.is_automatic_major_unit && major_unit == o.major_unit && major_unit_scale == o.major_unit_scale && major_tick_mark == o.major_tick_mark && is_automatic_minor_unit == o.is_automatic_minor_unit && minor_unit == o.minor_unit && minor_unit_scale == o.minor_unit_scale && minor_tick_mark == o.minor_tick_mark && is_automatic_max_value == o.is_automatic_max_value && max_value == o.max_value && is_automatic_min_value == o.is_automatic_min_value && min_value == o.min_value && is_logarithmic == o.is_logarithmic && log_base == o.log_base && category_axis_type == o.category_axis_type && axis_between_categories == o.axis_between_categories && label_offset == o.label_offset && is_plot_order_reversed == o.is_plot_order_reversed && is_number_format_linked_to_source == o.is_number_format_linked_to_source && number_format == o.number_format && cross_type == o.cross_type && cross_at == o.cross_at && is_automatic_tick_marks_spacing == o.is_automatic_tick_marks_spacing && tick_marks_spacing == o.tick_marks_spacing && is_automatic_tick_label_spacing == o.is_automatic_tick_label_spacing && tick_label_spacing == o.tick_label_spacing && tick_label_position == o.tick_label_position && tick_label_rotation_angle == o.tick_label_rotation_angle && fill_format == o.fill_format && effect_format == o.effect_format && line_format == o.line_format && major_grid_lines_format == o.major_grid_lines_format && minor_grid_lines_format == o.minor_grid_lines_format end |
#eql?(o) ⇒ Boolean
571 572 573 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 571 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
577 578 579 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 577 def hash [is_visible, has_title, position, display_unit, base_unit_scale, is_automatic_major_unit, major_unit, major_unit_scale, major_tick_mark, is_automatic_minor_unit, minor_unit, minor_unit_scale, minor_tick_mark, is_automatic_max_value, max_value, is_automatic_min_value, min_value, is_logarithmic, log_base, category_axis_type, axis_between_categories, label_offset, is_plot_order_reversed, is_number_format_linked_to_source, number_format, cross_type, cross_at, is_automatic_tick_marks_spacing, tick_marks_spacing, is_automatic_tick_label_spacing, tick_label_spacing, tick_label_position, tick_label_rotation_angle, fill_format, effect_format, line_format, major_grid_lines_format, minor_grid_lines_format].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
393 394 395 396 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 393 def list_invalid_properties invalid_properties = Array.new invalid_properties end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 |
# File 'lib/aspose_slides_cloud/models/axis.rb', line 400 def valid? position_validator = EnumAttributeValidator.new('String', ['Bottom', 'Left', 'Right', 'Top']) return false unless position_validator.valid?(@position) display_unit_validator = EnumAttributeValidator.new('String', ['None', 'Hundreds', 'Thousands', 'TenThousands', 'HundredThousands', 'Millions', 'TenMillions', 'HundredMillions', 'Billions', 'Trillions', 'CustomValue']) return false unless display_unit_validator.valid?(@display_unit) base_unit_scale_validator = EnumAttributeValidator.new('String', ['None', 'Days', 'Months', 'Years']) return false unless base_unit_scale_validator.valid?(@base_unit_scale) major_unit_scale_validator = EnumAttributeValidator.new('String', ['None', 'Days', 'Months', 'Years']) return false unless major_unit_scale_validator.valid?(@major_unit_scale) major_tick_mark_validator = EnumAttributeValidator.new('String', ['Cross', 'Inside', 'None', 'Outside']) return false unless major_tick_mark_validator.valid?(@major_tick_mark) minor_unit_scale_validator = EnumAttributeValidator.new('String', ['None', 'Days', 'Months', 'Years']) return false unless minor_unit_scale_validator.valid?(@minor_unit_scale) minor_tick_mark_validator = EnumAttributeValidator.new('String', ['Cross', 'Inside', 'None', 'Outside']) return false unless minor_tick_mark_validator.valid?(@minor_tick_mark) category_axis_type_validator = EnumAttributeValidator.new('String', ['Text', 'Date']) return false unless category_axis_type_validator.valid?(@category_axis_type) cross_type_validator = EnumAttributeValidator.new('String', ['AxisCrossesAtZero', 'Maximum', 'Custom']) return false unless cross_type_validator.valid?(@cross_type) tick_label_position_validator = EnumAttributeValidator.new('String', ['High', 'Low', 'NextTo', 'None']) return false unless tick_label_position_validator.valid?(@tick_label_position) true end |