class AsposeSlidesCloud::PlotArea
Represents the plot area
Attributes
Get or sets the effect format.
Get or sets the fill format.
Height
If layout of the plot area is defined manually specifies whether to layout the plot area by its inside (not including axis and axis labels) or outside.
Get or sets the line format.
Width
the X location
the Y location
Public Class Methods
Attribute mapping from ruby-style variable name to JSON key.
# File lib/aspose_slides_cloud/models/plot_area.rb, line 53 def self.attribute_map { :'x' => :'X', :'y' => :'Y', :'width' => :'Width', :'height' => :'Height', :'layout_target_type' => :'LayoutTargetType', :'fill_format' => :'FillFormat', :'effect_format' => :'EffectFormat', :'line_format' => :'LineFormat', } end
Initializes the object @param [Hash] attributes Model attributes in the form of hash
# File lib/aspose_slides_cloud/models/plot_area.rb, line 82 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?(:'X') self.x = attributes[:'X'] end if attributes.has_key?(:'Y') self.y = attributes[:'Y'] end if attributes.has_key?(:'Width') self.width = attributes[:'Width'] end if attributes.has_key?(:'Height') self.height = attributes[:'Height'] end if attributes.has_key?(:'LayoutTargetType') self.layout_target_type = attributes[:'LayoutTargetType'] 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 end
Attribute type mapping.
# File lib/aspose_slides_cloud/models/plot_area.rb, line 67 def self.swagger_types { :'x' => :'Float', :'y' => :'Float', :'width' => :'Float', :'height' => :'Float', :'layout_target_type' => :'String', :'fill_format' => :'FillFormat', :'effect_format' => :'EffectFormat', :'line_format' => :'LineFormat', } end
Public Instance Methods
Checks equality by comparing each attribute. @param [Object] Object to be compared
# File lib/aspose_slides_cloud/models/plot_area.rb, line 148 def ==(o) return true if self.equal?(o) self.class == o.class && x == o.x && y == o.y && width == o.width && height == o.height && layout_target_type == o.layout_target_type && fill_format == o.fill_format && effect_format == o.effect_format && line_format == o.line_format end
@see the ‘==` method @param [Object] Object to be compared
# File lib/aspose_slides_cloud/models/plot_area.rb, line 163 def eql?(o) self == o end
Calculates hash code according to all attributes. @return [Fixnum] Hash code
# File lib/aspose_slides_cloud/models/plot_area.rb, line 169 def hash [x, y, width, height, layout_target_type, fill_format, effect_format, line_format].hash end
Custom attribute writer method checking allowed values (enum). @param [Object] layout_target_type
Object to be assigned
# File lib/aspose_slides_cloud/models/plot_area.rb, line 138 def layout_target_type=(layout_target_type) validator = EnumAttributeValidator.new('String', ['Inner', 'Outer']) unless validator.valid?(layout_target_type) fail ArgumentError, 'invalid value for "layout_target_type", must be one of #{validator.allowable_values}.' end @layout_target_type = layout_target_type end
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
# File lib/aspose_slides_cloud/models/plot_area.rb, line 123 def list_invalid_properties invalid_properties = Array.new invalid_properties end
Check to see if the all the properties in the model are valid @return true if the model is valid
# File lib/aspose_slides_cloud/models/plot_area.rb, line 130 def valid? layout_target_type_validator = EnumAttributeValidator.new('String', ['Inner', 'Outer']) return false unless layout_target_type_validator.valid?(@layout_target_type) true end