Project Details
Changes Log
Who We Are

Synth2 Look and Feel

    1  File format and supported properties
    2  Structure
       2.1  Global properties
          2.1.1  Example
       2.2  Constants
          2.2.1  Example
       2.3  Resources
          2.3.1  Example
       2.4  Styles Definition
          2.4.1  Definition of the style and bind elements
    3  See also

The Synth2 Look and Feel is a Swing Look and Feel which can be configured through an XML file. This Look and Feel is specific to the J661 Server, and is derived from the Swing synth Look and Feel.

File format and supported properties

See the Synth2 File format. See the Synth2 components XML properties.


The synth2 XML configuration file is composed by the following top−level nodes:

Global properties

The "globalProperty" element allows to define several global properties which will be used for all components. The supported properties are:


      <globalProperty key="labelsEllipsis" value="false"/>  


Constants can be of the following types:


      <constant key="AMBER" value="#FFC700" type="color"/>  
      <constant key="FRAMED" value="1 ! 4" />  


Resources can be fonts or image paths.


      <resource key="MyMediumLargeFont" value="Mediumlarge.ttf" type="font"/>  

Styles Definition

The definition for the Look for one component is itself composed of two consecutive elements
For example:
      <style id="line">  
         <state styleSet="0">  
            <stroke width="2" endCap="CAP_ROUND" />  
            <property key="graphicWidget.halo" type="boolean" value="false" />  
            <property key="halo" type="string" value="supersmall" />  
      <bind style="line" key="line"/>  

Definition of the style and bind elements

See the Synth2 Look and Feel configuration bindings for the syntax of these elements.

See Also

Categories: lookandfeel | server | swing | user

Copyright 2016-2017 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v2 licence

Project Web Hosted by SourceForge.net Copyright 1999-2010 - Geeknet, Inc., All Rights Reserved About - Legal - Help