<!--
(C) Copyright 1996-2016 ECMWF.
This software is licensed under the terms of the Apache Licence Version 2.0
which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
In applying this licence, ECMWF does not waive the privileges and immunities
granted to it by virtue of its status as an intergovernmental organisation nor
does it submit to any jurisdiction.
-->
<magics>
	<class action="pimport" directory="basic" xmltag="import" name="ImportObjectHandler">
		<parameter member="path"
			to="string"
			default=""
			from="string"
			name="import_file_name">
			<documentation>File to import</documentation>
		</parameter>
		<parameter from="string"
			name="import_format"
			default="png"
			member="format"
			to="string"
			values="png/jpeg/gif">
			<documentation>Specify the format of the imported file</documentation>
		</parameter>
		<parameter from="string"
			name="import_overlay"
			default="on"
			member="overlay"
			to="bool">
			<documentation>if on, the import object will always be displayed last</documentation>
		</parameter>
		<parameter member="import_x"
			to="float"
			default="0"
			from="float"
			name="import_x_position">
			<documentation>X position of the imported image</documentation>
		</parameter>
		<parameter member="import_y"
			to="float"
			default="0"
			from="float"
			name="import_y_position">
			<documentation>Y position of the imported image</documentation>
		</parameter>
		<parameter member="import_width"
			to="float"
			default="-1"
			from="float"
			name="import_width">
			<documentation>Width of the imported image (-1 means use the dimension of the image)</documentation>
		</parameter>
		<parameter member="import_height"
			to="float"
			default="-1"
			from="float"
			name="import_height">
			<documentation>Height of the imported image (-1 means use the dimension of the image)</documentation>
		</parameter>
	</class>
</magics>
