aboutsummaryrefslogtreecommitdiffstats
path: root/src/records/definitions/legend_record.xml
blob: 4b7e74c1b38b537a638a738751c1723f8c56ac7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<record id="0x1015" name="Legend" package="org.apache.poi.hssf.record">
    <description>The legend record specifies the location of legend on a chart and it's overall size.</description>
    <author>Glen Stampoultzis (glens at apache.org)</author>
    <fields>
        <field type="int" size="4" name="x position"/>
        <field type="int" size="4" name="y position"/>
        <field type="int" size="4" name="x size"/>
        <field type="int" size="4" name="y size"/>
        <field type="int" size="1" name="type">
            <const name="bottom" value="0"/>
            <const name="corner" value="1"/>?
            <const name="top" value="2"/>
            <const name="right" value="3"/>
            <const name="left" value="4"/>
            <const name="not docked" value="7"/>
        </field>
        <field type="int" size="1" name="spacing">
            <const name="close" value="0"/>
            <const name="medium" value="1"/>
            <const name="open" value="2"/>
        </field>
        <field type="int" size="2" name="options">
            <bit number="0" name="auto position" description="set to true if legend is docked"/>
            <bit number="1" name="auto series" description="automatic series distribution"/>
            <bit number="2" name="auto pos x" description="x positioning is done automatically"/>
            <bit number="3" name="auto pos y" description="y positioning is done automatically"/>
            <bit number="4" name="vert" description="if true legend is vertical (otherwise it's horizonal)"/>
            <bit number="5" name="contains data table" description="true if the chart contains the data table"/>
        </field>
    </fields>
</record>