|
Oracle Fusion Middleware Java API Reference for Oracle ADF Data Visualization Components 11g Release 1 (11.1.1.1.0) E12063-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.dss.dataView.BaseComponentXML
oracle.dss.graph.BaseGraphComponent
oracle.dss.graph.BaseDataAxis
public abstract class BaseDataAxis
The base class for data axes of the graph. A data axis is an axis for numeric data.
Field Summary | |
---|---|
protected static java.lang.String |
a_ascending
|
protected static java.lang.String |
a_axisLocation
|
protected static java.lang.String |
a_axisMaxLabelVisible
|
protected static java.lang.String |
a_axisMinLabelVisible
|
protected static java.lang.String |
a_minAutoMajorTickStep
|
protected int |
m_id
|
protected oracle.dss.graph.pfj.draw.IdentObj |
m_identObj2
|
protected oracle.dss.graph.pfj.draw.IdentObj |
m_labelIdentObj
|
protected oracle.dss.graph.pfj.draw.IdentObj |
m_majorGridIdentObj
|
protected oracle.dss.graph.pfj.draw.IdentObj |
m_minorGridIdentObj
|
protected ViewFormat |
m_viewFormat
|
Fields inherited from class oracle.dss.dataView.BaseComponentXML |
---|
m_jsfHashMap |
Constructor Summary | |
---|---|
BaseDataAxis(CommonGraph graph)
|
Method Summary | |
---|---|
protected int |
convertAxisLocationToInt(java.lang.String str)
|
protected java.lang.String |
convertAxisLocationToString(int loc)
|
void |
formatChanged(int attributeId,
java.lang.String attributeName,
java.lang.Object oldValue,
java.lang.Object newValue)
|
abstract double |
getAutoMajorTickStep()
|
int |
getAxisLocation()
Retrieves the location of this data axis in the graph. |
abstract double |
getAxisMaxAutoValue()
Retrieves the high value of the automatic range for this data axis. |
abstract double |
getAxisMaxValue()
Retrieves the high value for the range of this data axis, when the high value is not set automatically. |
abstract double |
getAxisMinAutoValue()
Retrieves the low value for the automatic range of this data axis. |
abstract double |
getAxisMinValue()
Retrieves the low value for the range of this data axis, when the low value is not set automatically. |
abstract double |
getAxisZoomMaxValue()
Retrieves the high value for the range that the axis can zoom to, when the high value is not set automatically. |
abstract double |
getAxisZoomMinValue()
Retrieves the low value for the range that the axis can zoom to, when the low value is not set automatically. |
DataEndPoints |
getDataEndPoints()
Retrieves the DataEndPoints object that identifies the maximum
and minimum values of the data that is displayed for this axis. |
static DataEndPoints |
getDataEndPoints(CommonGraph graph,
int id)
|
java.awt.Color |
getLineColor()
Retrieves the color of this data axis. |
int |
getLineWidth()
Retrieves the width of this data axis in pixels. |
double |
getLogarithmicBase()
Retrieves a logarithmic or linear scale for this data axis. |
double |
getMajorTickStep()
Retrieves the number of tick marks that the graph hides between tick marks that are displayed on this data axis. |
protected boolean |
getMajorTickStepXML(boolean allProperties,
oracle.dss.util.xml.ObjectNode node)
|
double |
getMinAutoMajorTickStep()
Retrieves the minimum tick step that can be set automically for the major tick mark of this axis. |
double |
getMinorTickStep()
Retrieves the number of tick marks that the graph hides between tick marks that are displayed on this data axis. |
GraphConstants.MinorGridStepType |
getMinorTickStepType()
Indicates whether the number of minor tick marks that the graph hides between tick marks that are displayed is calculated automatically. |
protected boolean |
getMinorTickStepXML(boolean allProperties,
oracle.dss.util.xml.ObjectNode node)
|
boolean |
getNonstyleXML(boolean allProperties,
oracle.dss.util.xml.ObjectNode node)
Retrieves Non style properties of this component to XML returns whether if the node exists |
boolean |
getStyleXML(boolean allProperties,
oracle.dss.util.xml.ObjectNode node)
|
ViewFormat |
getViewFormat()
Retrieves a ViewFormat object for this data axis. |
boolean |
isAscending()
Indicates whether the axis is drawn in ascending or descending order. |
abstract boolean |
isAxisAutoScaledFromZero()
Indicates whether the automatic range on this data axis begins with zero. |
abstract boolean |
isAxisMaxAutoScaled()
Indicates whether the graph automatically sets the high value for this data axis. |
boolean |
isAxisMaxLabelVisible()
Indicates whether the maximum label appears on this axis. |
abstract boolean |
isAxisMinAutoScaled()
Indicates whether the graph automatically sets the minimum value for this data axis. |
boolean |
isAxisMinLabelVisible()
Indicates whether the minimum label appears on this axis. |
boolean |
isMajorTickStepAutomatic()
Indicates whether the number of tick marks that the graph hides between tick marks that are displayed is calculated automatically. |
boolean |
isScaledLogarithmic()
Indicates whether this data axis is scaled logarithmically. |
boolean |
isVisible()
Indicates whether this data axis is visible. |
protected void |
resetStyle()
|
void |
resetToDefault()
|
boolean |
selectObject(int series,
int group)
Selects this data axis in the graph. |
void |
setAscending(boolean yesNo)
Specifies whether the axis will be drawn in ascending or descending order. |
abstract void |
setAxisAutoScaledFromZero(boolean yesNo)
Specifies whether the automatic range on this data axis begins with zero. |
void |
setAxisLocation(int location)
Specifies the location of this data axis in the graph. |
abstract void |
setAxisMaxAutoScaled(boolean yesNo)
Specifies whether the graph automatically sets the high value for this data axis. |
void |
setAxisMaxLabelVisible(boolean visible)
Specifies whether the maximum label appears on this axis. |
abstract void |
setAxisMaxValue(double value)
Specifies the high value for the range of this data axis, when the high value is not set automatically. |
abstract void |
setAxisMinAutoScaled(boolean yesNo)
Specifies whether the graph automatically sets the the minimum value for this data axis. |
void |
setAxisMinLabelVisible(boolean visible)
Specifies whether the minimum label appears on this axis. |
abstract void |
setAxisMinValue(double value)
Specifies the low value for the range of this data axis, when the low value is not set automatically. |
abstract void |
setAxisZoomMaxValue(double value)
Specifies the high value for the range that the axis can zoom to, when the high value is not set automatically. |
abstract void |
setAxisZoomMinValue(double value)
Specifies the low value for the range that the axis can zoom to, when the low value is not set automatically. |
void |
setLineColor(java.awt.Color newColor)
Specifies the color of this data axis. |
void |
setLineWidth(int width)
Specifies the width of this data axis in pixels. |
void |
setLogarithmicBase(double value)
Selects a logarithmic or linear scale for this data axis. |
void |
setMajorTickStep(double value)
Specifies the number of tick marks that the graph hides between tick marks that are displayed on this data axis. |
void |
setMajorTickStepAutomatic(boolean yesNo)
Specifies whether the number of tick marks that the graph hides between tick marks that are displayed is calculated automatically. |
protected void |
setMajorTickStepXML(oracle.dss.util.xml.ObjectNode node)
|
void |
setMinAutoMajorTickStep(double value)
Specifies the minimum value for the major tickstep. |
void |
setMinorTickStep(double value)
Specifies the number of tick marks that the graph hides between tick marks that are displayed on this data axis. |
void |
setMinorTickStepType(GraphConstants.MinorGridStepType mgst)
Specifies whether the number of minor tick marks that the graph hides between tick marks that are displayed is calculated automatically. |
protected void |
setMinorTickStepXML(oracle.dss.util.xml.ObjectNode node)
|
void |
setNonstyleXML(oracle.dss.util.xml.ObjectNode node,
java.lang.String version,
int reset)
|
void |
setScaledLogarithmic(boolean yesNo)
Specifies whether this data axis is scaled logarithmically. |
void |
setStyleXML(oracle.dss.util.xml.ObjectNode node)
|
void |
setViewFormat(ViewFormat viewFormat)
Specifies a ViewFormat object for this data axis. |
void |
setVisible(boolean visible)
Specifies whether this data axis is visible. |
Methods inherited from class oracle.dss.dataView.BaseComponentXML |
---|
getComponentName, getStyleXML, getXML, setNonstyleXML, setXML, setXML, setXML, setXML |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected oracle.dss.graph.pfj.draw.IdentObj m_identObj2
protected oracle.dss.graph.pfj.draw.IdentObj m_majorGridIdentObj
protected oracle.dss.graph.pfj.draw.IdentObj m_minorGridIdentObj
protected oracle.dss.graph.pfj.draw.IdentObj m_labelIdentObj
protected ViewFormat m_viewFormat
protected int m_id
protected static final java.lang.String a_axisMaxLabelVisible
protected static final java.lang.String a_axisMinLabelVisible
protected static final java.lang.String a_ascending
protected static final java.lang.String a_axisLocation
protected static final java.lang.String a_minAutoMajorTickStep
Constructor Detail |
---|
public BaseDataAxis(CommonGraph graph)
graph
- The graph that this object belongs to.Method Detail |
---|
public boolean selectObject(int series, int group)
selectObject
in class BaseGraphComponent
series
- Any integer.group
- Any integer.
true
if successful, false
if not.public void resetToDefault()
public void setAscending(boolean yesNo)
yesNo
- true
to draw it in ascending order,
false
to draw it in descending order.public boolean isAscending()
true
if it is drawn in ascending order,
false
if it is drawn in descending order.public abstract boolean isAxisAutoScaledFromZero()
true
if it begins with zero, false
if
it begins with the lowest data value on the axis.public abstract void setAxisAutoScaledFromZero(boolean yesNo)
yesNo
- true
to make it begin with zero,
false
to make it begin with the lowest data value on the axis.public abstract boolean isAxisMaxAutoScaled()
false
, the graph uses the value that
is set in the setAxisMaxValue
method.
true
if the high value is automatically set,
false
if the graph uses the value that is set in the
setAxisMaxValue
method.setAxisMaxValue(double)
public abstract void setAxisMaxAutoScaled(boolean yesNo)
AxisMaxAutoScaled
property is false
,
then the graph uses the value of the setAxisMaxValue
property.
When the AxisMaxAutoScaled
property is true
,
then the graph calculates the maximum value and sets it as the value
of both the AxisMaxValue
property and the
AxisMaxAutoValue
property.
yesNo
- true
to make the graph set the high value
automatically, false
to make the graph use the value that is
set in the setAxisMaxValue
method.setAxisMaxValue(double)
public abstract boolean isAxisMinAutoScaled()
false
, the graph uses the value
that is set in the setAxisMinValue
method.
true
if the minimum value is set automatically,
false
if the graph uses the value that is set in the
setAxisMinValue
method.setAxisMinValue(double)
public abstract void setAxisMinAutoScaled(boolean yesNo)
AxisMinAutoScaled
property is false
,
the graph uses the value of the AxisMinValue
property.
When the AxisMinAutoScaled
property is true
,
then the graph calculates the minimum value and sets it as the value
of both the AxisMinValue
property and the
AxisMinAutoValue
property.
yesNo
- true
to make the graph set the minimum value
automatically, false
to make the graph use the value that
is set in the setAxisMinValue
method.setAxisMinValue(double)
public abstract double getAxisMaxAutoValue()
public abstract double getAxisMaxValue()
setAxisMaxAutoScaled
method to false
.
setAxisMaxAutoScaled(boolean)
public abstract void setAxisMaxValue(double value)
setAxisMaxAutoScaled
method to false
.
value
- The high value for the range of this data axis, when the
high value is not set automatically.setAxisMaxAutoScaled(boolean)
public abstract double getAxisMinAutoValue()
public abstract double getAxisMinValue()
setAxisMinAutoScaled
method to false
.
setAxisMinAutoScaled(boolean)
public abstract void setAxisMinValue(double value)
setAxisMinAutoScaled
method to false
.
value
- The low value for the range of this data axis, when the
low value is not set automatically.setAxisMinAutoScaled(boolean)
public abstract double getAxisZoomMaxValue()
setAxisMaxAutoScaled
method to false
.
public abstract void setAxisZoomMaxValue(double value)
setAxisMaxAutoScaled
method to false
.
value
- The high value for the range of this zoom axis, when the high
value is not set automatically.public abstract double getAxisZoomMinValue()
setAxisMinAutoScaled
method to false
.
public abstract void setAxisZoomMinValue(double value)
setAxisMinAutoScaled
method to false
.
value
- The low value for the range of this zoom axis, when the low
value is not set automatically.public abstract double getAutoMajorTickStep()
setMajorTickStepAutomatic(boolean)
public int getAxisLocation()
BaseGraphComponent
and begin
with AL_.
BaseGraphComponent.AL_LEFT
,
BaseGraphComponent.AL_RIGHT
,
BaseGraphComponent.AL_BOTH
public void setAxisLocation(int location)
BaseGrpahComponent
and begin
with AL_.
location
- A constant that represents the location of this data
axis in the graph. If you enter an invalid parameter value, then the graph
logs an ErrorHandler
message, and will not change the
AxisLocation
attribute.BaseGraphComponent.AL_LEFT
,
BaseGraphComponent.AL_RIGHT
,
BaseGraphComponent.AL_BOTH
public boolean isAxisMinLabelVisible()
true
if the minimum label appears on this axis,
false
if it does not.public void setAxisMinLabelVisible(boolean visible)
visible
- true
to display the minimum label,
false
to hide it.public boolean isAxisMaxLabelVisible()
true
if the maximum label appears on this axis,
false
if it does not.public void setAxisMaxLabelVisible(boolean visible)
visible
- true
to display the maximum label,
false
to hide it.public java.awt.Color getLineColor()
getLineColor
in interface Line
public void setLineColor(java.awt.Color newColor)
setLineColor
in interface Line
newColor
- The color of this data axis.public int getLineWidth()
getLineWidth
in interface Line
public void setLineWidth(int width)
setLineWidth
in interface Line
width
- The width of this data axis in pixels.public double getMajorTickStep()
MajorTickStep
to 10, then the
tick marks appear at 0, 10, 20, 30, and so on.
(This assumes that AxisAutoScaledFromZero
and
AxisMinAutoScaled
are both set to true
.)
To make the graph use the value that this method returns, set the
setMajorTickStepAutomatic
method to false
.
setMajorTickStepAutomatic(boolean)
public void setMajorTickStep(double value)
MajorTickStep
to 10, then the
tick marks appear at 0, 10, 20, 30, and so on.
(This assumes that AxisAutoScaledFromZero
and
AxisMinAutoScaled
are both set to true
.)
To make the graph use the value that is set in this method, set the
setMajorTickStepAutomatic
method to false
.
value
- The interval (or step) at which to display tick marks
on this data axis.setMajorTickStepAutomatic(boolean)
public double getMinorTickStep()
MinorTickStep
to 10, then the
tick marks appear at 0, 10, 20, 30, and so on.
(This assumes that AxisAutoScaledFromZero
and
AxisMinAutoScaled
are both set to true
.)
To make the graph use the value that this method returns, set the
setMinorTickStepAutomatic
method to false
.
#setMinorTickStepAutomatic
public void setMinorTickStep(double value)
MinorTickStep
to 10, then the
tick marks appear at 0, 10, 20, 30, and so on.
(This assumes that AxisAutoScaledFromZero
and
AxisMinAutoScaled
are both set to true
.)
To make the graph use the value that is set in this method, set the
setMinorTickStepAutomatic
method to false
.
value
- The interval (or step) at which to display tick marks
on this data axis.#setMinorTickStepAutomatic
public double getMinAutoMajorTickStep()
public void setMinAutoMajorTickStep(double value)
MajorTickStepAutomatic = true
), then the automatically calculated
tick step value will be the specified value or a multiple of
the specified value.
If the specified value is greater than the difference between
minimum value and the maximum value for the axis, then this method
ignores the MinAutoMajorTickStep
value.
The default value is 0, which specifies no minimimun tick step.
value
- The minimum value for the major tickstep.setMajorTickStepAutomatic(boolean)
public boolean isMajorTickStepAutomatic()
true
if the number is calculated automatically,
false
if it is set in the setMajorTickStep
method.setMajorTickStep(double)
public void setMajorTickStepAutomatic(boolean yesNo)
yesNo
- true
to make the graph calculate it
automatically, false
to make the graph use the value that
is set in the setMajorTickStep
method.setMajorTickStep(double)
public ViewFormat getViewFormat()
ViewFormat
object for this data axis.
The ViewFormat
objects allow you to format numbers.
getViewFormat
in interface Formattable
ViewFormat
object for this data axis.public void setViewFormat(ViewFormat viewFormat)
ViewFormat
object for this data axis.
The ViewFormat
objects allow you to format numbers.
setViewFormat
in interface Formattable
viewFormat
- ViewFormat
object for this data axis.public void formatChanged(int attributeId, java.lang.String attributeName, java.lang.Object oldValue, java.lang.Object newValue)
formatChanged
in interface BaseViewFormatCallback
attributeId
- the static constant in ViewFormat that identifies the attributeattributeName
- the name of the attribute that changedoldValue
- the old value of the attributenewValue
- the new value of the attributepublic double getLogarithmicBase()
public void setLogarithmicBase(double value)
value
- A logarithmic or linear scale for this data axis.public boolean isScaledLogarithmic()
true
if it is scaled logarithmically,
false
if it is not.public void setScaledLogarithmic(boolean yesNo)
yesNo
- true
to scale it logarithmically,
false
to prohibit logarithmic scaling.public boolean isVisible()
isVisible
in interface Visible
true
if it is visible, false
if it is
invisible.public void setVisible(boolean visible)
setVisible
in interface Visible
visible
- true
to make it visible, false
to make it invisible.public DataEndPoints getDataEndPoints()
DataEndPoints
object that identifies the maximum
and minimum values of the data that is displayed for this axis.
DataEndPoints
that has the maximum and minimum data
values for the axis.public static DataEndPoints getDataEndPoints(CommonGraph graph, int id)
DataEndPoints
that has the maximum and minimum data
values for the axis.DataEndPoints
object that identifies the maximum
and minimum values of the data that is displayed for this axis.protected java.lang.String convertAxisLocationToString(int loc)
protected int convertAxisLocationToInt(java.lang.String str)
protected void resetStyle()
public boolean getNonstyleXML(boolean allProperties, oracle.dss.util.xml.ObjectNode node)
BaseComponentXML
getNonstyleXML
in class BaseComponentXML
public boolean getStyleXML(boolean allProperties, oracle.dss.util.xml.ObjectNode node)
getStyleXML
in class BaseComponentXML
public void setNonstyleXML(oracle.dss.util.xml.ObjectNode node, java.lang.String version, int reset)
setNonstyleXML
in class BaseComponentXML
public void setStyleXML(oracle.dss.util.xml.ObjectNode node)
setStyleXML
in class BaseComponentXML
protected void setMajorTickStepXML(oracle.dss.util.xml.ObjectNode node)
protected void setMinorTickStepXML(oracle.dss.util.xml.ObjectNode node)
protected boolean getMajorTickStepXML(boolean allProperties, oracle.dss.util.xml.ObjectNode node)
protected boolean getMinorTickStepXML(boolean allProperties, oracle.dss.util.xml.ObjectNode node)
public GraphConstants.MinorGridStepType getMinorTickStepType()
GraphConstants.MinorGridStepType.AUTO
if the number is calculated automatically,
GraphConstants.MinorGridStepType.ABSOLUTE
if the minor ticks have increment value relative to the axis which is set in setMinorTickStep
method.
GraphConstants.MinorGridStepType.RELATIVE
if the minor ticks have increment value relative to the major ticks which is set in setMinorTickStep
method.public void setMinorTickStepType(GraphConstants.MinorGridStepType mgst)
mgst
- GraphConstants.MinorGridStepType.AUTO
to make the graph calculate it automatically,
GraphConstants.MinorGridStepType.ABSOLUTE
to make the graph use the increment value that is set in the setMinorTickStep
method relative to the axis.
GraphConstants.MinorGridStepType.RELATIVE
to make the graph use the increment value that is set in the setMinorTickStep
method relative to the major ticks.
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Data Visualization Components 11g Release 1 (11.1.1.1.0) E12063-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |