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

<!--
 * @(#)GenericFunctions.xml
 *
 * Copyright: Yokogawa, All rights reserved.
 * YOKOGAWA PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 * Author:    C. Horevoorts
 *
 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 *  Changes ....
 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 *  Who When    Change  What
 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 *  BNL Aug-10  e10330  Add localization for component type tooltips
 *  BNL Jun-12  e10657  Basic/Advanced Properties
 *  HVS Jun-20  e12272  Port to JViews 2017.2
 *
-->

<componentType name="genericFunctions"
  containedBy="Function"
  icon="stock_function-autopilot-16.png"
  description="GenericFunctions"
  class="fasttools.jwui.components.functions.generic.GenericFunctions"
  paletteOrder="305">

  <category name="General">
    <property name="name" type="java.lang.String" defaultAllowed="no" connectAllowed="no" advanced="yes"/>
  </category>

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

  <category name="NumberArguments">
    <property name="numberArgument1" type="double"/>
    <property name="numberArgument2" type="double"/>
    <property name="numberArgument3" type="double"/>
    <property name="numberArgument4" type="double"/>
  </category>

  <category name="StringArguments">
    <property name="stringArgument1" type="java.lang.String"/>
    <property name="stringArgument2" type="java.lang.String"/>
    <property name="stringArgument3" type="java.lang.String"/>
    <property name="stringArgument4" type="java.lang.String"/>
  </category>

  <category name="BooleanArguments">
    <property name="booleanArgument1" type="boolean"/>
    <property name="booleanArgument2" type="boolean"/>
    <property name="booleanArgument3" type="boolean"/>
    <property name="booleanArgument4" type="boolean"/>
  </category>

  <category name="Results">
    <property name="numberResult" type="double" bound="yes" writeAllowed="no" save="no" defaultAllowed="no"/>
    <property name="stringResult" type="java.lang.String" bound="yes" writeAllowed="no" save="no" defaultAllowed="no"/>
    <property name="booleanResult" type="boolean" bound="yes" writeAllowed="no" save="no" defaultAllowed="no"/>
  </category>

  <category name="Function">
    <property name="function" type="fasttools.jwui.common.property.GenericFunctionType"/>
    <property name="enabled" type="boolean"/>
    <property name="trigger" type="boolean"/>
  </category>

</componentType>