|
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.gauge.SFX
public class SFX
Allows you to apply attributes for special effects to the gauge.
You can use special effects on the gauge components that have a
getSFX
method, such as the PlotArea
,
the Indicator
, the GaugeSetBackground
,
and the GaugeBackground
.
Field Summary | |
---|---|
static java.util.HashMap |
DEFAULT_MAP
|
protected CommonGauge |
m_commonGauge
|
Fields inherited from class oracle.dss.dataView.BaseComponentXML |
---|
m_jsfHashMap |
Fields inherited from interface oracle.dss.presutil.GradientSupport |
---|
a_fillType, a_gradientDirection, a_gradientNumStops, a_gradientReversed, a_gradientStopColor, a_gradientStopPosition, a_visualEffects, GRADIENTPINSTYLE_NAME, GRADIENTSTOPSTYLE_NAME |
Constructor Summary | |
---|---|
SFX(CommonGauge gauge,
int compID)
|
|
SFX(CommonGauge gauge,
int compID,
int index)
|
Method Summary | |
---|---|
static java.util.HashMap |
cloneDefaultMap()
|
static int |
convertGradientDirectionToInt(java.lang.String dir)
|
static java.lang.String |
convertGradientDirectionToString(int direction)
|
static int |
convertGradientFillTypeToInt(java.lang.String type)
|
static java.lang.String |
convertGradientFillTypeToString(int fillType)
|
static int |
convertVisualEffectsToInt(java.lang.String vfxString)
|
static java.lang.String |
convertVisualEffectsToString(int vfx)
|
protected java.util.HashMap |
getAttributeMap()
|
protected java.util.HashMap |
getAttributeMapNoDefault()
|
protected java.lang.String |
getComponentName()
|
int |
getFillType()
Retrieves the fill type for the gauge, such as color and gradient. |
protected java.awt.geom.Point2D |
getGradientCenter()
|
int |
getGradientDirection()
Retrieves the gradient direction for the gauge. |
int |
getGradientNumStops()
Retrieves the number of stops in the gradient. |
java.awt.Color |
getGradientStopColor(int index)
Retrieves the color of a stop. |
double |
getGradientStopPosition(int index)
Retrieves position of a stop in the gradient of the gauge. |
protected oracle.dss.util.xml.ObjectNode |
getGradientStopStyleXML(boolean allProperties,
int stopIndex)
|
int |
getVisualEffects()
Gets the visual effects value for this SFX object. |
protected oracle.dss.util.xml.ContainerNode |
getXML(boolean allProperties,
boolean allOverriddenProperties)
|
boolean |
isGradientReversed()
Indicates whether the gradient direction is reversed. |
void |
setFillType(int type)
Specifies the fill type for the gauge, such as color or gradient. |
protected void |
setGradientCenter(java.awt.geom.Point2D point)
|
void |
setGradientDirection(int dir)
Specifies the gradient direction for the gauge. |
void |
setGradientNumStops(int numStops)
Specifies the number of stops in the gradient of the gauge. |
void |
setGradientReversed(boolean reverse)
Specifies whether to reverse the gradient direction. |
void |
setGradientStopColor(java.awt.Color newColor,
int index)
Specifies the color of a stop. |
void |
setGradientStopPosition(double newPos,
int index)
Sets the position of a stop in a gradient. |
void |
setVisualEffects(int vfx)
Sets the visual effects value for this SFX object. |
protected void |
setXML(oracle.dss.util.xml.ContainerNode node,
boolean allProperties)
|
Methods inherited from class oracle.dss.dataView.BaseComponentXML |
---|
getNonstyleXML, getStyleXML, getStyleXML, getXML, setNonstyleXML, setNonstyleXML, setStyleXML, 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 CommonGauge m_commonGauge
public static final java.util.HashMap DEFAULT_MAP
Constructor Detail |
---|
public SFX(CommonGauge gauge, int compID)
gauge
- The gauge that this object belongs to.compID
- ID of the component to which these effects applypublic SFX(CommonGauge gauge, int compID, int index)
gauge
- The gauge that this object belongs to.compID
- ID of the component to which these effects applyindex
- The index of the parent indicatorMethod Detail |
---|
public int getFillType()
getFillType
in interface oracle.dss.presutil.GradientSupport
DataviewConstants.FT_COLOR
,
DataviewConstants.FT_GRADIENT
public void setFillType(int type)
If you set the FillType
to
GaugeConstants.FT_GRADIENT
, then you should
set the other gradient properties.
setFillType
in interface oracle.dss.presutil.GradientSupport
type
- A constant that represents the fill type for the gauge.
Valid constants are listed in the See Also section.DataviewConstants.FT_COLOR
,
DataviewConstants.FT_GRADIENT
public int getGradientDirection()
Unless the gradient is reversed, it moves from stop 0 to stop 1 and so on,
to the total number of stops.
For example, if you set the number of stops to 2, set stop 0 to gray
and stop 1 to blue, and you set the gradient direction to GD_DOWN
,
then the top of the gradient will be gray and the bottom will be blue.
You can get an opposite direction by calling
setGradientReversed
.
For example, reversing the previous gradient makes it go up, with gray at
the bottom and blue at the top.
getGradientDirection
in interface oracle.dss.presutil.GradientSupport
DataviewConstants.GD_DOWN
,
DataviewConstants.GD_RADIAL
,
DataviewConstants.GD_RIGHT
,
DataviewConstants.GD_DIAGONAL_45
,
DataviewConstants.GD_DIAGONAL_135
,
DataviewConstants.GD_RADIAL_OFF_CENTER
public void setGradientDirection(int dir)
Unless the gradient is reversed, it moves from stop 0 to stop 1 and so on,
to the total number of stops.
For example, if you set the number of stops to 2, set stop 0 to gray
and stop 1 to blue, and you set the gradient direction to GD_DOWN
,
then the top of the gradient will be gray and the bottom will be blue.
You can get an opposite direction by calling
setGradientReversed
.
For example, reversing the previous gradient makes it go up, with gray at
the bottom and blue at the top.
Note that this method does not call the setGradientReversed
method.
Given the previous example, if you then set GradientReversed
to true
, then the gradient will go from gray at the
bottom to blue at the top.
If you then set the gradient direction to GD_RIGHT
, the
GradientReversed
property remains true
, so
the gradient will go from right to left instead of from left to right.
setGradientDirection
in interface oracle.dss.presutil.GradientSupport
dir
- A constant that represents the gradient direction for the
gauge.
Valid constants are listed in the See Also section.setGradientReversed(boolean)
,
DataviewConstants.GD_DOWN
,
DataviewConstants.GD_RADIAL
,
DataviewConstants.GD_RIGHT
,
DataviewConstants.GD_DIAGONAL_45
,
DataviewConstants.GD_DIAGONAL_135
public int getVisualEffects()
public void setVisualEffects(int vfx)
vfx
- int representing the visual effects to apply to this subcomponent.public java.awt.Color getGradientStopColor(int index)
getGradientStopColor
in interface oracle.dss.presutil.GradientSupport
index
- The index of the stop whose color you want. The first
stop is stop 0.
public void setGradientStopColor(java.awt.Color newColor, int index)
setGradientStopColor
in interface oracle.dss.presutil.GradientSupport
newColor
- The color for the stop.index
- The index of the stop whose color to set. The first
stop is stop 0.public double getGradientStopPosition(int index)
For example, if the gradient direction is GD_DOWN
, and the
position for stop 0 is 0, then the color for stop 0 appears at the
top of the gradient.
If the position for stop 1 is 50, then the color for stop 1 appears
in the middle of the gradient.
If the position for stop 2 is 100, then the color for stop 2 appears
at the bottom of the gradient.
If GradientReversed
is true
, however,
position 0 is at the end of the gradient, and position 100 is at the
start.
getGradientStopPosition
in interface oracle.dss.presutil.GradientSupport
index
- The index of this stop.
public void setGradientStopPosition(double newPos, int index)
GD_DOWN
, and the
position for stop 0 is 0, then the color for stop 0 appears at the
top of the gradient.
If the position for stop 1 is 50, then the color for stop 1 appears
in the middle of the gradient.
If the position for stop 2 is 100, then the color for stop 2 appears
at the bottom of the gradient.
If GradientReversed
is true
, however,
position 0 is at the end of the gradient, and position 100 is at the
start.
setGradientStopPosition
in interface oracle.dss.presutil.GradientSupport
index
- The index of the stop whose position to set.newPos
- The position of the specified stop in the gradient.
Valid values are from 0 - 100.public int getGradientNumStops()
getGradientNumStops
in interface oracle.dss.presutil.GradientSupport
public void setGradientNumStops(int numStops)
Whenever you call this method, the gauge positions stops equidistant from each other, with the first and the last stops at the extreme edges. The stops are repositioned without regard for their current position.
setGradientNumStops
in interface oracle.dss.presutil.GradientSupport
numStops
- The number of stops in the gradient of the gauge.public boolean isGradientReversed()
Reversing the gradient direction increases the number of
possible directions.
For example, reversing the direction of GD_DOWN
produces
a gradient that goes up.
true
if the direction is reversed,
false
if it is not.public void setGradientReversed(boolean reverse)
This method provides opposite directions for the available
gradient directions except GD_RADIAL
.
For example, to have a gradient go up,
set the gradient type to GaugeConstants.GD_DOWN
, and
then pass true
to this method.
setGradientReversed
in interface oracle.dss.presutil.GradientSupport
reverse
- true
to reverse the direction of the
gradient,
false
to use the GradientDirection
property value as is.setGradientDirection(int)
public static int convertGradientFillTypeToInt(java.lang.String type)
public static java.lang.String convertGradientFillTypeToString(int fillType)
fillType
-
public static int convertGradientDirectionToInt(java.lang.String dir)
public static java.lang.String convertGradientDirectionToString(int direction)
direction
- int gradient direction
public static int convertVisualEffectsToInt(java.lang.String vfxString)
public static java.lang.String convertVisualEffectsToString(int vfx)
vfx
- int
protected java.lang.String getComponentName()
getComponentName
in class BaseComponentXML
protected oracle.dss.util.xml.ObjectNode getGradientStopStyleXML(boolean allProperties, int stopIndex)
protected oracle.dss.util.xml.ContainerNode getXML(boolean allProperties, boolean allOverriddenProperties)
protected void setXML(oracle.dss.util.xml.ContainerNode node, boolean allProperties)
protected java.awt.geom.Point2D getGradientCenter()
protected void setGradientCenter(java.awt.geom.Point2D point)
protected java.util.HashMap getAttributeMapNoDefault()
protected java.util.HashMap getAttributeMap()
public static java.util.HashMap cloneDefaultMap()
|
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 |