<?xml version="1.0" encoding="utf-8" ?>

<!--
 * @(#)MapViewer.xml
 *
 * Copyright: Yokogawa, All rights reserved.
 * YOKOGAWA PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 * Author:    P. de Haan
 *
 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 *  Changes ....
 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 *  Who When    Change  What
 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 *  DHN Nov-18  e12054  First version
 *  DHN Feb-19  e12054  GASGIS-74 MV Make invisible symbols layer unique
 *  DHN Feb-19  e12054  use configuration from editor dialogs
 *  HMN Sep-19  e12134  remove rotate & shear
 *  HMN Oct-19  e12134  OIS
 *  HVS Jun-20  e12272  Port to JViews 2017.2
 *
-->

<componentType name="mapViewer"
               containedBy="JComponent"
               icon="ged_mapviewer-16.png"
               description="MapViewer"
               class="fasttools.jwui.components.mapviewer.MapViewer"
               paletteOrder="404"
               resourceBundle="fasttools.jwui.components.mapviewer.MapViewer">

  <category name="General">
    <property name="name" type="java.lang.String" defaultAllowed="no" connectAllowed="no" advanced="yes"/>
    <property name="toolTipText" type="java.lang.String" defaultAllowed="no" localized="yes" description="This is the tooltip text" advanced="yes"/>
  </category>

  <category name="Transformation">
    <property name="x" type="double" defaultAllowed="no" setter="setXAsFloat" getter="getXAsFloat" advanced="yes"/>
    <property name="y" type="double" defaultAllowed="no" setter="setYAsFloat" getter="getYAsFloat" advanced="yes"/>
    <property name="top" type="double" defaultAllowed="no" advanced="yes"/>
    <property name="bottom" type="double" defaultAllowed="no" advanced="yes"/>
    <property name="left" type="double" defaultAllowed="no" advanced="yes"/>
    <property name="right" type="double" defaultAllowed="no" advanced="yes"/>
  </category>

  <category name="Visibility">
    <property name="transparency" type="float"/>
    <property name="opaque" type="boolean"/>
    <property name="backgroundColor" type="fasttools.jtools.common.property.color.ColorSet" advanced="yes"/>
    <property name="visible" type="boolean" setter="setVisibleAsBoolean" getter="isVisibleAsBoolean"/>
  </category>

  <category name="Runtime">
    <!-- r/w -->
    <property name="mapCenterLongitude" type="double"           save="no" bound="yes" defaultAllowed="no" advanced="no" description="The map center longitude in WGS84 coordinate."/>
    <property name="mapCenterLatitude"  type="double"           save="no" bound="yes" defaultAllowed="no" advanced="no" description="The map center latitude in WGS84 coordinate."/>
    <property name="mapZoomLevel"       type="int"              save="no" bound="yes" defaultAllowed="no" advanced="no" description="The time of Mouse Click. In milliseconds since 1970."/>
    <!-- r -->
    <property name="clickInfo"          writeAllowed="no" type="java.lang.String" save="no" bound="yes" defaultAllowed="no" advanced="no" description="The Mouse Click Info in JSON format."/>
    <property name="clickTime"          writeAllowed="no" type="long"             save="no" bound="yes" defaultAllowed="no" advanced="no" description="The time of Mouse Click. In milliseconds since 1970."/>
    <property name="mouseLongitude"     writeAllowed="no" type="double"           save="no" bound="yes" defaultAllowed="no" advanced="no" description="The last known mouse position in longitude WGS84 coordinate."/>
    <property name="mouseLatitude"      writeAllowed="no" type="double"           save="no" bound="yes" defaultAllowed="no" advanced="no" description="The last known mouse position in latitude WGS84 coordinate."/>

  </category>
  
  
</componentType>