| 1 | =begin comment | ||
| 2 | |||
| 3 | Copyright (c) 2019 Aspose Pty Ltd | ||
| 4 | |||
| 5 | Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| 6 | of this software and associated documentation files (the "Software"), to deal | ||
| 7 | in the Software without restriction, including without limitation the rights | ||
| 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| 9 | copies of the Software, and to permit persons to whom the Software is | ||
| 10 | furnished to do so, subject to the following conditions: | ||
| 11 | |||
| 12 | The above copyright notice and this permission notice shall be included in all | ||
| 13 | copies or substantial portions of the Software. | ||
| 14 | |||
| 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| 21 | SOFTWARE. | ||
| 22 | |||
| 23 | =end comment | ||
| 24 | |||
| 25 | =cut | ||
| 26 | |||
| 27 | package AsposeSlidesCloud::Object::ChartTitle; | ||
| 28 | |||
| 29 | require 5.6.0; | ||
| 30 | use strict; | ||
| 31 | use warnings; | ||
| 32 | use utf8; | ||
| 33 | use JSON qw(decode_json); | ||
| 34 | use Data::Dumper; | ||
| 35 | use Module::Runtime qw(use_module); | ||
| 36 | use Log::Any qw($log); | ||
| 37 | use Date::Parse; | ||
| 38 | use DateTime; | ||
| 39 | |||
| 40 | use AsposeSlidesCloud::Object::EffectFormat; | ||
| 41 | use AsposeSlidesCloud::Object::FillFormat; | ||
| 42 | use AsposeSlidesCloud::Object::LineFormat; | ||
| 43 | |||
| 44 | use base ("Class::Accessor", "Class::Data::Inheritable"); | ||
| 45 | |||
| 46 | |||
| 47 | # | ||
| 48 | #Represents chart title | ||
| 49 | # | ||
| 50 | # NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. | ||
| 51 | # REF: https://github.com/swagger-api/swagger-codegen | ||
| 52 | # | ||
| 53 | |||
| 54 | # | ||
| 55 | # NOTE: This class is auto generated by the swagger code generator program. | ||
| 56 | # Do not edit the class manually. | ||
| 57 | # Ref: https://github.com/swagger-api/swagger-codegen | ||
| 58 | # | ||
| 59 | __PACKAGE__->mk_classdata('attribute_map' => {}); | ||
| 60 | __PACKAGE__->mk_classdata('swagger_types' => {}); | ||
| 61 | __PACKAGE__->mk_classdata('method_documentation' => {}); | ||
| 62 | __PACKAGE__->mk_classdata('class_documentation' => {}); | ||
| 63 | |||
| 64 | # new object | ||
| 65 | sub new { | ||
| 66 | my ($class, %args) = @_; | ||
| 67 | |||
| 68 | my $self = bless {}, $class; | ||
| 69 | |||
| 70 | foreach my $attribute (keys %{$class->attribute_map}) { | ||
| 71 | my $args_key = $class->attribute_map->{$attribute}; | ||
| 72 | $self->$attribute( $args{ $args_key } ); | ||
| 73 | } | ||
| 74 | return $self; | ||
| 75 | } | ||
| 76 | |||
| 77 | # used by JSON for serialization | ||
| 78 | sub TO_JSON { | ||
| 79 | my $self = shift; | ||
| 80 | my $_data = {}; | ||
| 81 | foreach my $_key (keys %{$self->attribute_map}) { | ||
| 82 | if (defined $self->{$_key}) { | ||
| 83 | $_data->{$self->attribute_map->{$_key}} = $self->{$_key}; | ||
| 84 | } | ||
| 85 | } | ||
| 86 | return $_data; | ||
| 87 | } | ||
| 88 | |||
| 89 | |||
| 90 | __PACKAGE__->class_documentation({description => 'Represents chart title', | ||
| 91 | class => 'ChartTitle', | ||
| 92 | required => [], # TODO | ||
| 93 | } ); | ||
| 94 | |||
| 95 | __PACKAGE__->method_documentation({ | ||
| 96 | 'text' => { | ||
| 97 | datatype => 'string', | ||
| 98 | base_name => 'Text', | ||
| 99 | description => 'Get or sets the text.', | ||
| 100 | format => '', | ||
| 101 | read_only => '', | ||
| 102 | }, | ||
| 103 | 'x' => { | ||
| 104 | datatype => 'double', | ||
| 105 | base_name => 'X', | ||
| 106 | description => 'the X location', | ||
| 107 | format => '', | ||
| 108 | read_only => '', | ||
| 109 | }, | ||
| 110 | 'y' => { | ||
| 111 | datatype => 'double', | ||
| 112 | base_name => 'Y', | ||
| 113 | description => 'the Y location', | ||
| 114 | format => '', | ||
| 115 | read_only => '', | ||
| 116 | }, | ||
| 117 | 'width' => { | ||
| 118 | datatype => 'double', | ||
| 119 | base_name => 'Width', | ||
| 120 | description => 'Width', | ||
| 121 | format => '', | ||
| 122 | read_only => '', | ||
| 123 | }, | ||
| 124 | 'height' => { | ||
| 125 | datatype => 'double', | ||
| 126 | base_name => 'Height', | ||
| 127 | description => 'Height', | ||
| 128 | format => '', | ||
| 129 | read_only => '', | ||
| 130 | }, | ||
| 131 | 'overlay' => { | ||
| 132 | datatype => 'boolean', | ||
| 133 | base_name => 'Overlay', | ||
| 134 | description => 'true if other elements are allowed to overlay the legend', | ||
| 135 | format => '', | ||
| 136 | read_only => '', | ||
| 137 | }, | ||
| 138 | 'fill_format' => { | ||
| 139 | datatype => 'FillFormat', | ||
| 140 | base_name => 'FillFormat', | ||
| 141 | description => 'Get or sets the fill format.', | ||
| 142 | format => '', | ||
| 143 | read_only => '', | ||
| 144 | }, | ||
| 145 | 'effect_format' => { | ||
| 146 | datatype => 'EffectFormat', | ||
| 147 | base_name => 'EffectFormat', | ||
| 148 | description => 'Get or sets the effect format.', | ||
| 149 | format => '', | ||
| 150 | read_only => '', | ||
| 151 | }, | ||
| 152 | 'line_format' => { | ||
| 153 | datatype => 'LineFormat', | ||
| 154 | base_name => 'LineFormat', | ||
| 155 | description => 'Get or sets the line format.', | ||
| 156 | format => '', | ||
| 157 | read_only => '', | ||
| 158 | }, | ||
| 159 | }); | ||
| 160 | |||
| 161 | __PACKAGE__->swagger_types( { | ||
| 162 | 'text' => 'string', | ||
| 163 | 'x' => 'double', | ||
| 164 | 'y' => 'double', | ||
| 165 | 'width' => 'double', | ||
| 166 | 'height' => 'double', | ||
| 167 | 'overlay' => 'boolean', | ||
| 168 | 'fill_format' => 'FillFormat', | ||
| 169 | 'effect_format' => 'EffectFormat', | ||
| 170 | 'line_format' => 'LineFormat' | ||
| 171 | } ); | ||
| 172 | |||
| 173 | __PACKAGE__->attribute_map( { | ||
| 174 | 'text' => 'Text', | ||
| 175 | 'x' => 'X', | ||
| 176 | 'y' => 'Y', | ||
| 177 | 'width' => 'Width', | ||
| 178 | 'height' => 'Height', | ||
| 179 | 'overlay' => 'Overlay', | ||
| 180 | 'fill_format' => 'FillFormat', | ||
| 181 | 'effect_format' => 'EffectFormat', | ||
| 182 | 'line_format' => 'LineFormat' | ||
| 183 | } ); | ||
| 184 | |||
| 185 | __PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map}); | ||
| 186 | |||
| 187 | |||
| 188 | 1; |