xref: /AOO41X/main/offapi/com/sun/star/chart2/ScaleData.idl (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1*cdf0e10cSrcweir#ifndef com_sun_star_chart2_ScaleData_idl
2*cdf0e10cSrcweir#define com_sun_star_chart2_ScaleData_idl
3*cdf0e10cSrcweir
4*cdf0e10cSrcweir#include <com/sun/star/chart2/XScaling.idl>
5*cdf0e10cSrcweir#include <com/sun/star/chart2/AxisOrientation.idl>
6*cdf0e10cSrcweir#include <com/sun/star/chart2/data/XLabeledDataSequence.idl>
7*cdf0e10cSrcweir#include <com/sun/star/chart2/AxisType.idl>
8*cdf0e10cSrcweir#include <com/sun/star/chart2/IncrementData.idl>
9*cdf0e10cSrcweir#include <com/sun/star/chart/TimeIncrement.idl>
10*cdf0e10cSrcweir
11*cdf0e10cSrcweir//=============================================================================
12*cdf0e10cSrcweir
13*cdf0e10cSrcweirmodule com {  module sun {  module star {  module chart2 {
14*cdf0e10cSrcweir
15*cdf0e10cSrcweir//=============================================================================
16*cdf0e10cSrcweir
17*cdf0e10cSrcweirstruct ScaleData
18*cdf0e10cSrcweir{
19*cdf0e10cSrcweir    /** if the any contains a double value this is used as a fixed
20*cdf0e10cSrcweir        maximum.  Otherwise, if the any is empty or contains an
21*cdf0e10cSrcweir        incompatible type, the maximum is automatic.
22*cdf0e10cSrcweir
23*cdf0e10cSrcweir        <p>If the maximum is automatic, this means, each view that
24*cdf0e10cSrcweir        represents the model containing this scale, has to calculate a
25*cdf0e10cSrcweir        maximum by its own means.</p>
26*cdf0e10cSrcweir     */
27*cdf0e10cSrcweir    any Minimum;
28*cdf0e10cSrcweir
29*cdf0e10cSrcweir    /** if the any contains a double value this is used as a fixed
30*cdf0e10cSrcweir        minimum.  Otherwise, if the any is empty or contains an
31*cdf0e10cSrcweir        incompatible type, the minimum is automatic.
32*cdf0e10cSrcweir
33*cdf0e10cSrcweir        <p>If the minimum is automatic, this means, each view that
34*cdf0e10cSrcweir        represents the model containing this scale, has to calculate a
35*cdf0e10cSrcweir        minimum by its own means.</p>
36*cdf0e10cSrcweir     */
37*cdf0e10cSrcweir    any Maximum;
38*cdf0e10cSrcweir
39*cdf0e10cSrcweir
40*cdf0e10cSrcweir    /** The Origin indicates where other axes cross this axis.
41*cdf0e10cSrcweir        If the any contains a double value that value is used.
42*cdf0e10cSrcweir        Otherwise an appropriate value has to be calculated
43*cdf0e10cSrcweir        by that instances using Origin.
44*cdf0e10cSrcweir     */
45*cdf0e10cSrcweir    any Origin;
46*cdf0e10cSrcweir
47*cdf0e10cSrcweir    /** Axis orientation (standard or reversed).
48*cdf0e10cSrcweir
49*cdf0e10cSrcweir        <p>If used at the Y axis in pie charts or doughnut charts, specifies
50*cdf0e10cSrcweir        the rotation direction of the pie. The value
51*cdf0e10cSrcweir        <const>AxisOrientation::MATHEMATICAL</const> rotates the pie
52*cdf0e10cSrcweir        counterclockwise, the value <const>AxisOrientation::REVERSE</const>
53*cdf0e10cSrcweir        rotates the pie clockwise.</p>
54*cdf0e10cSrcweir
55*cdf0e10cSrcweir        <p>Note: Is this a good place for the axis orientation? Two axes may
56*cdf0e10cSrcweir        use the same scale, but point into two different directions.</p>
57*cdf0e10cSrcweir     */
58*cdf0e10cSrcweir    AxisOrientation     Orientation;
59*cdf0e10cSrcweir
60*cdf0e10cSrcweir    XScaling            Scaling;
61*cdf0e10cSrcweir
62*cdf0e10cSrcweir    data::XLabeledDataSequence Categories;
63*cdf0e10cSrcweir
64*cdf0e10cSrcweir    /** describes the type of the axis.
65*cdf0e10cSrcweir
66*cdf0e10cSrcweir        <p>It can be a real number axis or a category axis or something else.
67*cdf0e10cSrcweir        AxisType is one value out of the constant group <type>AxisType</type>.</p>
68*cdf0e10cSrcweir    */
69*cdf0e10cSrcweir    long   AxisType;
70*cdf0e10cSrcweir
71*cdf0e10cSrcweir    /** if true an AxisType CATEGORY is interpreted as DATE if the underlying data given in Categories are dates
72*cdf0e10cSrcweir    */
73*cdf0e10cSrcweir    boolean AutoDateAxis;
74*cdf0e10cSrcweir
75*cdf0e10cSrcweir    /** describes wether data points on category or date axis are placed between tickmarks or not
76*cdf0e10cSrcweir    if true the maximum on the scale will be expanded for one interval
77*cdf0e10cSrcweir    */
78*cdf0e10cSrcweir    boolean ShiftedCategoryPosition;
79*cdf0e10cSrcweir
80*cdf0e10cSrcweir    /** increment data to be used for not date-time axis
81*cdf0e10cSrcweir    */
82*cdf0e10cSrcweir    IncrementData IncrementData;
83*cdf0e10cSrcweir
84*cdf0e10cSrcweir    /** increment data to be used in case of date-time axis
85*cdf0e10cSrcweir    */
86*cdf0e10cSrcweir    ::com::sun::star::chart::TimeIncrement TimeIncrement;
87*cdf0e10cSrcweir};
88*cdf0e10cSrcweir
89*cdf0e10cSrcweir//=============================================================================
90*cdf0e10cSrcweir
91*cdf0e10cSrcweir}; }; }; };
92*cdf0e10cSrcweir
93*cdf0e10cSrcweir#endif
94