view flys-artifacts/doc/conf/themes.xml @ 1755:f7072039ad84

Added default diff theme, avoid possible NPE. flys-artifacts/trunk@3058 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 24 Oct 2011 09:50:11 +0000
parents 415ec0223dff
children 1636686070f7
line wrap: on
line source
<themes>

    <!-- Concrete themes are following now! -->
    <theme name="DischargeCurve">
        <inherits>
            <inherit from="HiddenColorLines"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="0, 0, 153"/>
            <field name="linesize"  type="int"   display="Liniendicke" default="2" hints="h"/>
        </fields>
    </theme>

    <!--
        Discharge Longitudinal Section
    -->
    <theme name="LongitudinalSectionW">
        <inherits>
            <inherit from="HiddenColorLines"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="204, 204, 204"/>
        </fields>
    </theme>

    <theme name="LongitudinalSectionW_HQ1">
        <inherits>
            <inherit from="LongitudinalSectionW"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="0, 0, 102"/>
        </fields>
    </theme>

    <theme name="LongitudinalSectionW_HQ2">
        <inherits>
            <inherit from="LongitudinalSectionW"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="0, 0, 102"/>
        </fields>
    </theme>

    <theme name="LongitudinalSectionW_HQ5">
        <inherits>
            <inherit from="LongitudinalSectionW"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="0, 153, 51"/>
        </fields>
    </theme>

    <theme name="LongitudinalSectionW_HQ10">
        <inherits>
            <inherit from="LongitudinalSectionW"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="0, 204, 204"/>
        </fields>
    </theme>

    <theme name="LongitudinalSectionW_HQ20">
        <inherits>
            <inherit from="LongitudinalSectionW"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="153, 153, 0"/>
        </fields>
    </theme>

    <theme name="LongitudinalSectionW_HQ25">
        <inherits>
            <inherit from="LongitudinalSectionW"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="102, 51, 0"/>
        </fields>
    </theme>

    <theme name="LongitudinalSectionW_HQ50">
        <inherits>
            <inherit from="LongitudinalSectionW"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="255, 153, 153"/>
        </fields>
    </theme>

    <theme name="LongitudinalSectionW_HQ100">
        <inherits>
            <inherit from="LongitudinalSectionW"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="255, 0, 51"/>
        </fields>
    </theme>

    <theme name="LongitudinalSectionW_HQ200">
        <inherits>
            <inherit from="LongitudinalSectionW"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="255, 0, 255"/>
        </fields>
    </theme>

    <theme name="LongitudinalSectionW_HQ500">
        <inherits>
            <inherit from="LongitudinalSectionW"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="102, 0, 102"/>
        </fields>
    </theme>

    <theme name="LongitudinalSectionW_HQ1000">
        <inherits>
            <inherit from="LongitudinalSectionW"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="0, 0, 0"/>
        </fields>
    </theme>

    <theme name="LongitudinalSectionW_HQRZ">
        <inherits>
            <inherit from="LongitudinalSectionW"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="102, 0, 102"/>
        </fields>
    </theme>

    <theme name="LongitudinalSectionW_HSQ">
        <inherits>
            <inherit from="LongitudinalSectionW"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="253, 153, 0"/>
        </fields>
    </theme>

    <theme name="LongitudinalSectionW_MHQ">
        <inherits>
            <inherit from="LongitudinalSectionW"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="102, 255, 102"/>
        </fields>
    </theme>

    <theme name="LongitudinalSectionW_MNQ">
        <inherits>
            <inherit from="LongitudinalSectionW"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="0, 255, 255"/>
        </fields>
    </theme>

    <theme name="LongitudinalSectionW_MQ">
        <inherits>
            <inherit from="LongitudinalSectionW"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="0, 51, 204"/>
        </fields>
    </theme>

    <theme name="LongitudinalSectionW_NQ">
        <inherits>
            <inherit from="LongitudinalSectionW"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="153, 204, 255"/>
        </fields>
    </theme>

    <theme name="LongitudinalSectionW_HQExtrem">
        <inherits>
            <inherit from="LongitudinalSectionW"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="0, 0, 0"/>
        </fields>
    </theme>

    <theme name="LongitudinalSectionQ">
        <inherits>
            <inherit from="HiddenColorLines"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="204, 204, 204"/>
        </fields>
    </theme>

    <theme name="LongitudinalSectionQ_HQ1">
        <inherits>
            <inherit from="LongitudinalSectionQ"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="0, 0, 102"/>
        </fields>
    </theme>

    <theme name="LongitudinalSectionQ_HQ2">
        <inherits>
            <inherit from="LongitudinalSectionQ"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="0, 0, 102"/>
        </fields>
    </theme>

    <theme name="LongitudinalSectionQ_HQ5">
        <inherits>
            <inherit from="LongitudinalSectionQ"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="0, 153, 51"/>
        </fields>
    </theme>

    <theme name="LongitudinalSectionQ_HQ10">
        <inherits>
            <inherit from="LongitudinalSectionQ"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="0, 204, 204"/>
        </fields>
    </theme>

    <theme name="LongitudinalSectionQ_HQ20">
        <inherits>
            <inherit from="LongitudinalSectionQ"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="153, 153, 0"/>
        </fields>
    </theme>

    <theme name="LongitudinalSectionQ_HQ25">
        <inherits>
            <inherit from="LongitudinalSectionQ"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="102, 51, 0"/>
        </fields>
    </theme>

    <theme name="LongitudinalSectionQ_HQ50">
        <inherits>
            <inherit from="LongitudinalSectionQ"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="255, 153, 153"/>
        </fields>
    </theme>

    <theme name="LongitudinalSectionQ_HQ100">
        <inherits>
            <inherit from="LongitudinalSectionQ"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="255, 0, 51"/>
        </fields>
    </theme>

    <theme name="LongitudinalSectionQ_HQ200">
        <inherits>
            <inherit from="LongitudinalSectionQ"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="255, 0, 255"/>
        </fields>
    </theme>

    <theme name="LongitudinalSectionQ_HQ500">
        <inherits>
            <inherit from="LongitudinalSectionQ"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="102, 0, 102"/>
        </fields>
    </theme>

    <theme name="LongitudinalSectionQ_HQ1000">
        <inherits>
            <inherit from="LongitudinalSectionQ"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="0, 0, 0"/>
        </fields>
    </theme>

    <theme name="LongitudinalSectionQ_HQRZ">
        <inherits>
            <inherit from="LongitudinalSectionQ"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="102, 0, 102"/>
        </fields>
    </theme>

    <theme name="LongitudinalSectionQ_HSQ">
        <inherits>
            <inherit from="LongitudinalSectionQ"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="253, 153, 0"/>
        </fields>
    </theme>

    <theme name="LongitudinalSectionQ_MHQ">
        <inherits>
            <inherit from="LongitudinalSectionQ"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="102, 255, 102"/>
        </fields>
    </theme>

    <theme name="LongitudinalSectionQ_MNQ">
        <inherits>
            <inherit from="LongitudinalSectionQ"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="0, 255, 255"/>
        </fields>
    </theme>

    <theme name="LongitudinalSectionQ_MQ">
        <inherits>
            <inherit from="LongitudinalSectionQ"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="0, 51, 204"/>
        </fields>
    </theme>

    <theme name="LongitudinalSectionQ_NQ">
        <inherits>
            <inherit from="LongitudinalSectionQ"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="153, 204, 255"/>
        </fields>
    </theme>

    <theme name="LongitudinalSectionQ_HQExtrem">
        <inherits>
            <inherit from="LongitudinalSectionQ"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="0, 0, 0"/>
        </fields>
    </theme>


    <!--
        Computed Discharge Curves
    -->
    <theme name="ComputedDischargeCurve">
        <inherits>
            <inherit from="HiddenColorLines"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="0, 0, 153"/>
            <field name="linesize"  type="int"   display="Liniendicke" default="2" hints="h"/>
        </fields>
    </theme>

    <theme name="ComputedDischargeCurveQ">
        <inherits>
            <inherit from="HiddenColorLines"/>
            <inherit from="Text"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Farbe" default="200, 0, 15"/>
        </fields>
    </theme>

    <theme name="ComputedDischargeCurveW">
        <inherits>
            <inherit from="HiddenColorLines"/>
            <inherit from="Text"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Farbe" default="0, 215, 0"/>
        </fields>
    </theme>

    <!--
        Cross Sections
    -->
    <theme name="CrossSection">
        <inherits>
            <inherit from="HiddenColorLines"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="0,0,0"/>
            <field name="linesize"  type="int"   display="Liniendicke" default="1" hints="h"/>
        </fields>
    </theme>

    <theme name="CrossSectionWaterLine">
        <inherits>
            <inherit from="HiddenColorLines"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="0,0,153"/>
            <field name="linesize"  type="int"   display="Liniendicke" default="1" hints="h"/>
        </fields>
    </theme>


    <!--
        Duration Curves
    -->
    <theme name="DurationCurveW">
        <inherits>
            <inherit from="HiddenColorLines"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="0,51,204"/>
            <field name="linesize"  type="int"   display="Liniendicke" default="2" hints="h"/>
        </fields>
    </theme>

    <theme name="DurationCurveQ">
        <inherits>
            <inherit from="HiddenColorLines"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="0,204,0"/>
            <field name="linesize"  type="int"   display="Liniendicke" default="2" hints="h"/>
        </fields>
    </theme>

    <!-- Differences -->
    <theme name="Differences">
        <inherits>
            <inherit from="HiddenColorLines"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="204, 204, 204"/>
        </fields>
    </theme>


    <!--
        Discharge Longitudinal Section
    -->
    <theme name="DischargeLongitudinalSectionW">
        <inherits>
            <inherit from="HiddenColorLines"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="204, 204, 204"/>
        </fields>
    </theme>


    <theme name="DischargeLongitudinalSectionC">
        <inherits>
            <inherit from="HiddenColorLines"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="255, 0 , 0"/>
        </fields>
    </theme>

    <theme name="DischargeLongitudinalSectionQ">
        <inherits>
            <inherit from="HiddenColorLines"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="204, 204, 204"/>
        </fields>
    </theme>


    <!-- Annotations -->
    <theme name="Annotations">
        <inherits>
            <inherit from="HiddenColorLines"/>
            <inherit from="Text"/>
            <inherit from="AnnotationText"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="0, 0, 0"/>
        </fields>
    </theme>


    <!-- Virtual themes are following now! -->
    <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"/>
        </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"/>
        </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>


    <!-- Mappings are following now. A mapping maps between a name of a facet
         and a theme. -->
    <mappings>
        <mapping from="longitudinal_section.w" to="LongitudinalSectionW"/>
        <mapping from="longitudinal_section.w" pattern=".*(HQ1)(\D.*)*" to="LongitudinalSectionW_HQ1"/>
        <mapping from="longitudinal_section.w" pattern=".*(HQ2)(\D.*)*" to="LongitudinalSectionW_HQ2"/>
        <mapping from="longitudinal_section.w" pattern=".*(HQ5)(\D.*)*" to="LongitudinalSectionW_HQ5"/>
        <mapping from="longitudinal_section.w" pattern=".*(HQ10)(\D.*)*" to="LongitudinalSectionW_HQ10"/>
        <mapping from="longitudinal_section.w" pattern=".*(HQ20)(\D.*)*" to="LongitudinalSectionW_HQ20"/>
        <mapping from="longitudinal_section.w" pattern=".*(HQ25)(\D.*)*" to="LongitudinalSectionW_HQ25"/>
        <mapping from="longitudinal_section.w" pattern=".*(HQ50)(\D.*)*" to="LongitudinalSectionW_HQ50"/>
        <mapping from="longitudinal_section.w" pattern=".*(HQ100)(\D.*)*" to="LongitudinalSectionW_HQ100"/>
        <mapping from="longitudinal_section.w" pattern=".*(HQ200)(\D.*)*" to="LongitudinalSectionW_HQ200"/>
        <mapping from="longitudinal_section.w" pattern=".*(HQ500)(\D.*)*" to="LongitudinalSectionW_HQ500"/>
        <mapping from="longitudinal_section.w" pattern=".*(HQ1000)(\D.*)*" to="LongitudinalSectionW_HQ1000"/>
        <mapping from="longitudinal_section.w" pattern=".*(HQExtrem)(\D.*)*" to="LongitudinalSectionW_HQExtrem"/>
        <mapping from="longitudinal_section.w" pattern=".*(HQRZ)(\D.*)*" to="LongitudinalSectionW_HQRZ"/>
        <mapping from="longitudinal_section.w" pattern=".*(HSQ)(\D.*)*" to="LongitudinalSectionW_HSQ"/>
        <mapping from="longitudinal_section.w" pattern=".*(MHQ)(\D.*)*" to="LongitudinalSectionW_MHQ"/>
        <mapping from="longitudinal_section.w" pattern=".*(MNQ)(\D.*)*" to="LongitudinalSectionW_MNQ"/>
        <mapping from="longitudinal_section.w" pattern=".*(MQ)(\D.*)*" to="LongitudinalSectionW_MQ"/>
        <mapping from="longitudinal_section.w" pattern=".*(NQ)(\D.*)*" to="LongitudinalSectionW_NQ"/>
        <mapping from="longitudinal_section.q" to="LongitudinalSectionQ"/>
        <mapping from="longitudinal_section.q" pattern="(HQ1)(\D.*)*" to="LongitudinalSectionQ_HQ1"/>
        <mapping from="longitudinal_section.q" pattern="(HQ2)(\D.*)*" to="LongitudinalSectionQ_HQ2"/>
        <mapping from="longitudinal_section.q" pattern="(HQ5)(\D.*)*" to="LongitudinalSectionQ_HQ5"/>
        <mapping from="longitudinal_section.q" pattern="(HQ10)(\D.*)*" to="LongitudinalSectionQ_HQ10"/>
        <mapping from="longitudinal_section.q" pattern="(HQ20)(\D.*)*" to="LongitudinalSectionQ_HQ20"/>
        <mapping from="longitudinal_section.q" pattern="(HQ25)(\D.*)*" to="LongitudinalSectionQ_HQ25"/>
        <mapping from="longitudinal_section.q" pattern="(HQ50)(\D.*)*" to="LongitudinalSectionQ_HQ50"/>
        <mapping from="longitudinal_section.q" pattern="(HQ100)(\D.*)*" to="LongitudinalSectionQ_HQ100"/>
        <mapping from="longitudinal_section.q" pattern="(HQ200)(\D.*)*" to="LongitudinalSectionQ_HQ200"/>
        <mapping from="longitudinal_section.q" pattern="(HQ500)(\D.*)*" to="LongitudinalSectionQ_HQ500"/>
        <mapping from="longitudinal_section.q" pattern="(HQ1000)(\D.*)*" to="LongitudinalSectionQ_HQ1000"/>
        <mapping from="longitudinal_section.q" pattern="(HQExtrem)(\D.*)*" to="LongitudinalSectionQ_HQExtrem"/>
        <mapping from="longitudinal_section.q" pattern="(HQRZ)(\D.*)*" to="LongitudinalSectionQ_HQRZ"/>
        <mapping from="longitudinal_section.q" pattern="(HSQ)(\D.*)*" to="LongitudinalSectionQ_HSQ"/>
        <mapping from="longitudinal_section.q" pattern="(MHQ)(\D.*)*" to="LongitudinalSectionQ_MHQ"/>
        <mapping from="longitudinal_section.q" pattern="(MNQ)(\D.*)*" to="LongitudinalSectionQ_MNQ"/>
        <mapping from="longitudinal_section.q" pattern="(MQ)(\D.*)*" to="LongitudinalSectionQ_MQ"/>
        <mapping from="longitudinal_section.q" pattern="(NQ)(\D.*)*" to="LongitudinalSectionQ_NQ"/>
        <mapping from="discharge_curve.curve" to="DischargeCurve"/>
        <mapping from="cross_section" to="CrossSection"/>
        <mapping from="cross_section_water_line" to="CrossSectionWaterLine"/>
        <mapping from="computed_discharge_curve.q" to="ComputedDischargeCurve"/>
        <mapping from="duration_curve.w" to="DurationCurveW"/>
        <mapping from="duration_curve.q" to="DurationCurveQ"/>
        <mapping from="discharge_longitudinal_section.w" to="DischargeLongitudinalSectionW"/>
        <mapping from="discharge_longitudinal_section.c" to="DischargeLongitudinalSectionC"/>
        <mapping from="discharge_longitudinal_section.q" to="DischargeLongitudinalSectionQ"/>
        <mapping from="computed_discharge_curve.mainvalues.q" to="ComputedDischargeCurveQ"/>
        <mapping from="computed_discharge_curve.mainvalues.w" to="ComputedDischargeCurveW"/>
        <mapping from="longitudinal_section.annotations" to="Annotations"/>
        <mapping from="w_differences" to="Differences"/>
    </mappings>
</themes>

http://dive4elements.wald.intevation.org