|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GraphAxisProperties
Warning: This interface is no longer functional from the SAP BusinessObjects 4.0 release onwards.
GraphAxisProperties
interface represents all properties of a graph axis.
Method Summary | |
---|---|
FormatNumber |
getFormatNumber(int index)
Returns the format number for the expression at index . |
GraphGrid |
getGrid()
Returns the axis grid. |
GraphTitle |
getLabel()
Returns the label for this axis. |
int |
getMarkerFrequency()
Returns the marker frequency for this axis. |
int |
getMaxValue()
Deprecated. use GraphAxisProperties.getMaxValueGraph() |
double |
getMaxValueGraph()
Returns the maximum value for this axis. |
int |
getMinValue()
Deprecated. use GraphAxisProperties.getMinValueGraph() |
double |
getMinValueGraph()
Returns the minimum value for this axis. |
GraphAxisValues |
getValues()
Returns the axis values properties. |
boolean |
hasMaxValue()
Returns true when the value returned by
GraphAxisProperties.getMaxValue() is used as the maximum value for this axis. |
void |
hasMaxValue(boolean b)
Set to true so the value returned by
GraphAxisProperties.getMaxValue() is used as the maximum value for this axis. |
boolean |
hasMinValue()
Returns true , when the value returned by
GraphAxisProperties.getMinValue() is used as the minimum value for this axis. |
void |
hasMinValue(boolean b)
When set to true , the value returned by
GraphAxisProperties.getMinValue() is used as the minimum value for this axis. |
boolean |
isAutoScale()
checks if this axis has a auto scale option. |
boolean |
isCustomFormula(int index)
Checks if the expression at the given index is a custom formula or not. |
boolean |
isLogarithmic()
Checks if this axis has a logarithmic presentation. |
boolean |
isNumeric()
Returns true , if this axis represents numeric values. |
void |
setAutoScale(boolean b)
Change this to true to set the auto scale option, so that minimum and maximum scale value will be calculated automatically. |
void |
setFormatNumber(int index,
FormatNumber formatNumber)
Sets the format for values of the expression at index . |
void |
setLogarithmic(boolean b)
Changes this axis's presentation to either logarithmic or linear. |
void |
setMarkerFrequency(int freq)
Changes the marker frequency. |
void |
setMaxValue(int value)
Deprecated. use GraphAxisProperties.setMaxValueGraph(double) |
void |
setMaxValueGraph(double value)
Sets the maximum value for this axis. |
void |
setMinValue(int value)
Deprecated. use GraphAxisProperties.setMinValueGraph(double) |
void |
setMinValueGraph(double value)
Sets the minimum value for this axis. |
Method Detail |
---|
boolean isNumeric()
true
, if this axis represents numeric values.
true
, if this axis represents numeric valuesboolean isLogarithmic()
true
, if this axis has a logarithmic presentation .void setLogarithmic(boolean b)
b
- when true
, this axis will be shown in logarithmic
presentation, otherwise it will be linear.boolean hasMinValue()
true
, when the value returned by
GraphAxisProperties.getMinValue()
is used as the minimum value for this axis.
true
when there is a minumum value for this axis.void hasMinValue(boolean b)
true
, the value returned by
GraphAxisProperties.getMinValue()
is used as the minimum value for this axis.
b
- A boolean value@Deprecated int getMinValue()
GraphAxisProperties.getMinValueGraph()
hasMinValue() == true
.
double getMinValueGraph()
Note: this value will only
be taken into account when hasMinValue() == true
.
@Deprecated void setMinValue(int value)
GraphAxisProperties.setMinValueGraph(double)
GraphAxisProperties.hasMinValue()
to true
.
value
- the new minimum value for this axisvoid setMinValueGraph(double value)
Calling this method automatically sets
GraphAxisProperties.hasMinValue()
to true
.
value
- the new minimum value for this axisboolean hasMaxValue()
true
when the value returned by
GraphAxisProperties.getMaxValue()
is used as the maximum value for this axis.
true
when there is a maximum value for this axisvoid hasMaxValue(boolean b)
true
so the value returned by
GraphAxisProperties.getMaxValue()
is used as the maximum value for this axis.
b
- when true
, the value returned by
GraphAxisProperties.getMaxValue()
will be used as the minimum value@Deprecated int getMaxValue()
GraphAxisProperties.getMaxValueGraph()
Note: this value will only be taken into account when
hasMaxValue() == true
.
double getMaxValueGraph()
Note: this value will only be taken into account when
hasMaxValue() == true
.
@Deprecated void setMaxValue(int value)
GraphAxisProperties.setMaxValueGraph(double)
Calling this method automatically
sets GraphAxisProperties.hasMaxValue()
to true
.
value
- the new maximum value for this axisvoid setMaxValueGraph(double value)
Calling this method automatically
sets GraphAxisProperties.hasMaxValue()
to true
.
value
- the new maximum value for this axisGraphTitle getLabel()
GraphAxisValues getValues()
GraphGrid getGrid()
int getMarkerFrequency()
-1
means that all markers will be placed
automatically0
means no markers at all1
means a marker for each value2
means one marker for every two values3
means one marker for every three values
void setMarkerFrequency(int freq)
getMarkerFrequency()
for a
description of possible values. Note that for this method, any freq
< 0
will be interpreted as "determine frequency automatically."
freq
- the new marker frequencyGraphAxisProperties.getMarkerFrequency()
FormatNumber getFormatNumber(int index)
index
.
index
- the index of the expression, as on BlockAxis.getExpr(int)
FormatNumber
object for the requested
expression, or null
for the default format as defined in the
universe
java.lang.ArrayIndexOutOfBoundsException
- index
is not a valid
indexvoid setFormatNumber(int index, FormatNumber formatNumber)
index
.
index
- the index of the expression, as on BlockAxis.getExpr(int)
formatNumber
- the new format, or null
for the default
format from the universe for this expression
java.lang.ArrayIndexOutOfBoundsException
- index
is not a valid
indexboolean isCustomFormula(int index)
ReportDictionary.createFormula(String)
) that does not evaluate
to a single object. For example, =[Revenue]
is not custom,
but =[Revenue]*2
is.
index
- the index of the expression to test, as on
BlockAxis.getExpr(int)
true
is the expression is a custom formula
java.lang.IndexOutOfBoundsException
- index
is not a validTableCell.isCustomFormula()
,
ReportCell.isCustomFormula()
boolean isAutoScale()
true, if this axis has a auto scale option.- Since:
- 12.2
void setAutoScale(boolean b)
true
to set the auto scale option, so that minimum and maximum scale value will be calculated automatically.
b
- boolean value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |