view flys-artifacts/doc/conf/virtual-themes.xml @ 4254:33b15ac17fd1

Only create and add GaugePanel when necessary The GaugePanel isn't created always and only show if WINFO and a river is selected now. It is only created on demand. Therefore all access to the GaugePanel is abstraced via methods that check if the GaugePanel is null before accessing it's methods.
author Björn Ricks <bjoern.ricks@intevation.de>
date Thu, 25 Oct 2012 13:58:53 +0200
parents 017e3d8526e0
children 11545c3b9111
line wrap: on
line source
<?xml version="1.0" encoding="UTF-8"?>
<themegroup name="virtual">
    <!-- Virtual themes are following now! DO NOT USE VIRTUAL THEMES FOR
        FACETS! Please implement concrete themes! -->
    <theme name="Lines" type="virtual">
        <fields>
            <field name="showlines" type="boolean" display="Linie anzeigen"
                default="true" />
            <field name="linesize" type="int" display="Liniendicke"
                default="1" />
            <field name="linetype" type="Dash" display="Linienart"
                default="10" />
            <field name="showlinelabel" type="boolean"
                display="Beschriftung anzeigen" default="false" hints="h" />
            <field name="labelfontface" type="Font"
                display="Beschriftung: Schriftart" default="arial" />
            <field name="labelfontcolor" type="Color"
                display="Beschriftung: Schriftfarbe" default="0, 0, 0" />
            <field name="labelfontsize" type="int"
                display="Beschriftung: Schriftgröße" default="10" />
            <field name="labelfontstyle" type="Style"
                display="Beschriftung: Schriftstil" default="standard" />
            <field name="labelbgcolor" type="Color"
                display="Beschriftung: Hintergrundfarbe" default="0, 0, 0" />
            <field name="labelshowbg" type="boolean"
                display="Beschriftung: Hintergrund füllen" default="false" />
            <!--orientation? -->
        </fields>
    </theme>

    <theme name="Points" type="virtual">
        <fields>
            <field name="showlinelabel" type="boolean"
                display="Linienbeschriftung anzeigen" default="false" />
            <field name="showpointlabel" type="boolean"
                display="Punktbeschriftung anzeigen" default="false"/>
            <field name="showlines" type="boolean" default="false" />
            <field name="linesize" type="int" display="Liniendicke"
                default="1" />
            <field name="linetype" type="Dash" display="Linienart"
                default="10" />
            <field name="showpoints" type="boolean" display="Punkte anzeigen"
                default="true" />
            <field name="textorientation" type="boolean" display="Text horizontal"
                default="true"/>
            <field name="labelfontface" type="Font" default="Arial"
                display="Beschriftung: Schriftart" />
            <field name="labelfontcolor" type="Color" default="Color.BLACK"
                display="Beschriftung: Schriftfarbe" />
            <field name="labelfontsize" type="int"
                display="Beschriftung: Schriftgröße" default="10" />
            <field name="labelshowbg" type="boolean" default="false"
                display="Beschriftung: Hintergrund anzeigen" />
            <field name="labelbgcolor" type="Color" default="Color.WHITE"
                display="Beschriftung: Hintergrundfarbe" />
        </fields>
    </theme>

    <theme name="ColorLines" type="virtual">
        <inherits>
            <inherit from="Lines" />
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe"
                default="Color.BLACK" />
        </fields>
    </theme>

    <theme name="HiddenColorLines" type="virtual">
        <inherits>
            <inherit from="ColorLines" />
        </inherits>
        <fields>
            <field name="showlines" type="boolean" display="Linie anzeigen"
                default="true" hints="h" />
            <field name="linesize" type="int" display="Liniendicke"
                default="1" hints="h" />
            <field name="linetype" type="Dash" display="Linienart"
                default="10" hints="h" />
            <field name="showpoints" type="boolean" display="Datenpunkte anzeigen"
                default="false" hints="h" />
            <field name="pointsize" type="int" display="Punktdicke"
                default="5" hints="h" />
        </fields>
    </theme>

    <theme name="ColorLinesOnly" type="virtual">
        <inherits>
            <inherit from="ColorLines" />
        </inherits>
        <fields>
            <field name="showlines" type="boolean" display="Linie anzeigen"
                default="true" hints="h" />
            <field name="linesize" type="int" display="Liniendicke"
                default="1" hints="h" />
            <field name="linetype" type="Dash" display="Linienart"
                default="10" hints="h" />
        </fields>
    </theme>

    <theme name="ColorPoints" type="virtual">
        <inherits>
            <inherit from="Points" />
        </inherits>
        <fields>
            <field name="showpoints" type="boolean" display="Datenpunkte anzeigen"
                default="true" />
            <field name="pointsize" type="int" display="Punktdicke"
                default="5" />
            <field name="pointcolor" type="Color" display="Punktfarbe"
                default="Color.BLACK" />
        </fields>
    </theme>

    <theme name="MinMaxPoints" type="virtual">
        <fields>
            <field name="showminimum" type="boolean" display="Minimum anzeigen"
                default="false" hints="h" />
            <field name="showmaximum" type="boolean" display="Minimum anzeigen"
                default="false" hints="h" />
        </fields>
    </theme>

    <theme name="Text" type="virtual">
        <fields>
            <field name="font" type="Font" display="Schriftart"
                default="arial" />
            <field name="textcolor" type="Color" display="Schriftfarbe"
                default="0, 0, 0" />
            <field name="textsize" type="int" display="Schriftgröße"
                default="10" />
            <field name="textstyle" type="Style" display="Schriftstil"
                default="standard" />
        </fields>
    </theme>

    <theme name="AnnotationText" type="virtual">
        <fields>
            <field name="backgroundcolor" type="Color" display="Texthintergrund"
                default="255, 255, 255" />
            <field name="textorientation" type="boolean" display="Textausrichtung"
                default="false" />
            <field name="showbackground" type="boolean"
                display="Hintergrund anzeigen" default="false" />
        </fields>
    </theme>

    <!-- Area relevant theme(s) -->
    <theme name="Areas">
        <fields>
            <field name="backgroundcolor" type="Color" display="Füllfarbe"
                default="0, 100, 0" />
            <!-- <field name="showbackground" type="boolean"
                display="Hintergrund anzeigen" default="true" hidden="true" /> //-->
            <!-- <field name="showborder" type="boolean"
                display="Flaechebegrenzungslinie anzeigen" default="false" /> //-->
            <field name="transparency" type="int" default="50" display="Transparenz" />
        </fields>
    </theme>


    <!-- MAP relevant themes -->
    <theme name="WSPLGENS" type="virtual">
        <fields>
            <field name="wsplgen_cat1" type="Color" display="Hintergrund"
                default="178, 201, 215" />
            <field name="wsplgen_cat2" type="Color" display="Hintergrund"
                default="111, 147, 170" />
            <field name="wsplgen_cat3" type="Color" display="Hintergrund"
                default="66, 111, 139" />
            <field name="wsplgen_cat4" type="Color" display="Hintergrund"
                default="33, 79, 108" />
            <field name="wsplgen_cat5" type="Color" display="Hintergrund"
                default="2, 27, 42" />
        </fields>
    </theme>

    <theme name="RiverAxes" type="virtual">
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe"
                default="0, 0, 205" />
            <field name="linesize" type="int" display="Liniendicke"
                default="3" hints="h" />
        </fields>
    </theme>

    <theme name="Km" type="virtual">
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe"
                default="255, 0, 0" />
            <field name="linesize" type="int" display="Liniendicke"
                default="5" hints="h" />
            <field name="textcolor" type="Color" display="Schriftfarbe"
                default="0, 0, 0" />
            <field name="textsize" type="int" display="Schriftgröße"
                default="10" />
            <field name="symbol" type="Symbol" display="Symbol"
                default="square" />
        </fields>
    </theme>

    <theme name="Fixpoint" type="virtual">
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe"
                default="255, 0, 0" />
            <field name="linesize" type="int" display="Liniendicke"
                default="3" hints="h" />
            <field name="symbol" type="Symbol" display="Symbol"
                default="point" />
        </fields>
    </theme>

    <theme name="Floodmap" type="virtual">
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe"
                default="0, 0, 0" />
            <field name="linesize" type="int" display="Liniendicke"
                default="1" hints="h" />
            <field name="backgroundcolor" type="Color" display="Hintergrund"
                default="140, 200, 130" />
        </fields>
    </theme>

    <theme name="GaugeLocations" type="virtual">
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe"
                default="0, 0, 0" />
            <field name="linesize" type="int" display="Liniendicke"
                default="1" hints="h" />
            <field name="symbol" type="Symbol" display="Symbol"
                default="point" />
        </fields>
    </theme>

    <theme name="Qp" type="virtual">
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe"
                default="0, 0, 255" />
            <field name="linesize" type="int" display="Liniendicke"
                default="3" hints="h" />
        </fields>
    </theme>

    <theme name="Hw" type="virtual">
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe"
                default="255, 0, 0" />
            <field name="linesize" type="int" display="Liniendicke"
                default="3" hints="h" />
        </fields>
    </theme>

    <theme name="Catchments" type="virtual">
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe"
                default="0, 0, 0" />
            <field name="linesize" type="int" display="Liniendicke"
                default="1" hints="h" />
            <field name="backgroundcolor" type="Color" display="Hintergrund"
                default="140, 200, 130" />
        </fields>
    </theme>

    <theme name="Floodplain" type="virtual">
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe"
                default="0, 0, 0" />
            <field name="linesize" type="int" display="Liniendicke"
                default="1" hints="h" />
            <field name="backgroundcolor" type="Color" display="Hintergrund"
                default="140, 200, 130" />
        </fields>
    </theme>

    <theme name="FloodmapLine" type="virtual">
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe"
                default="140, 200, 130" />
            <field name="linesize" type="int" display="Liniendicke"
                default="3" hints="h" />
        </fields>
    </theme>

    <theme name="Building" type="virtual">
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe"
                default="255, 0, 0" />
            <field name="linesize" type="int" display="Liniendicke"
                default="5" hints="h" />
        </fields>
    </theme>

    <theme name="HydrBoundariesLine" type="virtual">
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe"
                default="255, 0, 0" />
            <field name="linesize" type="int" display="Liniendicke"
                default="5" hints="h" />
        </fields>
    </theme>

    <theme name="HydrBoundariesPoly" type="virtual">
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe"
                default="255, 0, 0" />
            <field name="linesize" type="int" display="Liniendicke"
                default="5" hints="h" />
            <field name="backgroundcolor" type="Color" display="Hintergrund"
                default="140, 200, 130" />
        </fields>
    </theme>

</themegroup>

http://dive4elements.wald.intevation.org