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

<!--
 * @(#)Text.xml
 *
 * Copyright: Yokogawa, All rights reserved.
 * YOKOGAWA PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 * Author:    C. Horevoorts
 *
 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 *  Changes ....
 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 *  Who When    Change  What
 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 *  HVS Jan-07  e9435   First version documented
 *  BNL Oct-08  i10080  Add property "keepOriginalSize"
 *  BNL Jun-12  e10657  Basic/Advanced Properties
 *  HMN Apr-15  e10966  Localized String to float conversion
 *  BNL Mar-16  i11534  Correct random appearance glitch for "keepOriginalSize"
 *  BNL Jul-18  e11986  Edit Module HTML Mode
 *  BNL Feb-19  e11986  Disallow connection to positional properties in HTML mode
 *  HVS Jun-20  e12272  Port to JViews 2017.2
 *
-->

<componentType name="number"
  icon="stock_draw-number-16.png"
  description="Number"
  class="fasttools.jwui.ilv.graphic.ExtendedZoomableNumber"
  makeInteractor="fasttools.jwui.ilv.interactor.EditNumberInteractor"
  paletteOrder="45">

  <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"/>
  </category>

  <category name="Value">
    <property name="value" type="double" defaultAllowed="no" setter="setValueAsDouble" getter="getValueAsDouble"/>
    <property name="format" type="java.lang.String"/>
    <property name="javaNotation" type="boolean" advanced="no"/>
  </category>

  <category name="Style">
    <property name="antialiasing" type="boolean" advanced="yes" html="no"/>
    <property name="font" type="fasttools.jtools.common.property.font.FontSet" null="default"/>
    <property name="leftMargin" type="float" advanced="yes" html="no"/>
    <property name="rightMargin" type="float" advanced="yes" html="no"/>
    <property name="topMargin" type="float" advanced="yes" html="no"/>
    <property name="bottomMargin" type="float" advanced="yes" html="no"/>
    <property name="justification" type="fasttools.jwui.ilv.graphic.property.TextJustificationType"
      setter="setTextJustification" getter="getTextJustification" advanced="yes"/>
    <property name="borderOn" type="boolean" advanced="yes"/>
  </category>

  <category name="Fill">
    <property name="fillAmount" type="float" html="no"/>
    <property name="fillDirection" type="fasttools.jwui.ilv.graphic.property.FillDirectionType" html="no"/>
    <property name="fillOn" type="boolean"/>
    <property name="fillPaint" type="fasttools.jwui.common.property.paint.PaintSet" null="default"
      setter="setFillingPaint" getter="getFillingPaint"/>
    <property name="backgroundOn" type="boolean" advanced="yes"/>
    <property name="backgroundPaint" type="fasttools.jwui.common.property.paint.PaintSet" null="default" advanced="yes"/>
    <property name="paintAbsolute" type="boolean" advanced="yes" html="no"/>
  </category>

  <category name="Stroke">
    <property name="stroke" type="fasttools.jtools.common.property.stroke.StrokeSet" null="default"
      setter="setLineStroke" getter="getLineStroke"/>
    <property name="strokeOn" type="boolean"/>
    <property name="strokePaint" type="fasttools.jwui.common.property.paint.PaintSet" null="default"
      setter="setLinePaint" getter="getLinePaint"/>
  </category>

  <category name="Misc">
    <property name="keepOriginalSize" type="boolean" triggers="top,bottom,left,right" connectAllowed="no" html="no"/>
    <property name="linkPins" type="fasttools.jwui.common.property.linkpins.LinkPinsSet" defaultAllowed="no" connectAllowed="no" advanced="yes" html="no"/>
    <property name="blinking" type="boolean"/>
    <property name="blinkingPaint" type="fasttools.jwui.common.property.paint.PaintSet" null="none" advanced="yes"/>
  </category>

  <category name="Transformation">
    <property name="x" type="double" defaultAllowed="no" initialValue="no" advanced="yes" html="noConnect"/>
    <property name="y" type="double" defaultAllowed="no" initialValue="no" advanced="yes" html="noConnect"/>
    <property name="top" type="double" defaultAllowed="no" initialValue="no" advanced="yes" html="noConnect"/>
    <property name="bottom" type="double" defaultAllowed="no" initialValue="no" advanced="yes" html="noConnect"/>
    <property name="left" type="double" defaultAllowed="no" initialValue="no" advanced="yes" html="noConnect"/>
    <property name="right" type="double" defaultAllowed="no" initialValue="no" advanced="yes" html="noConnect"/>
    <property name="rotation" type="double" defaultAllowed="no"/>
    <property name="shear" type="double" defaultAllowed="no" advanced="yes"/>
  </category>

  <category name="Visibility">
    <property name="transparency" type="float"/>
    <property name="visible" type="boolean"/>
  </category>
</componentType>