public class SFX extends BaseComponentXML implements oracle.dss.presutil.GradientSupport
getSFX
method, such as the PlotArea
,
the LegendArea
, and the GraphBackground
.Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
a_fillType |
protected static java.lang.String |
a_gradientDirection |
protected static java.lang.String |
a_gradientNumPins |
protected static java.lang.String |
a_gradientNumStops |
protected static java.lang.String |
a_gradientPinLeftColor |
protected static java.lang.String |
a_gradientPinRightColor |
protected static java.lang.String |
a_gradientReversed |
protected static java.lang.String |
a_gradientStopColor |
protected static java.lang.String |
a_gradientStopPosition |
protected static java.lang.String |
a_pinIndex |
protected static java.lang.String |
a_textureDisplayMode |
protected static java.lang.String |
a_textureURL |
protected static int |
fillType |
protected static int |
gradientDirection |
protected static int |
gradientNumPins |
protected static java.lang.String |
gradientPinLeftColor |
protected static java.lang.String |
gradientPinRightColor |
protected static java.lang.String |
GRADIENTPINSTYLE_NAME |
protected static java.lang.String |
GRADIENTSTOPSTYLE_NAME |
protected CommonGraph |
m_commonGraph |
protected oracle.dss.graph.pfj.draw.IdentObj |
m_frameBottom |
protected oracle.dss.graph.pfj.draw.IdentObj |
m_frameSide |
protected oracle.dss.graph.pfj.draw.IdentObj |
m_identObj |
protected oracle.dss.graph.pfj.draw.IdentObj |
m_identObj2 |
protected boolean |
m_isPlotArea |
protected boolean |
m_isSeries |
protected PFJ |
m_pfj |
protected static double |
position |
protected static int |
textureDisplayMode |
m_jsfHashMap
Constructor and Description |
---|
SFX(CommonGraph graph,
oracle.dss.graph.pfj.draw.IdentObj identObj) |
SFX(CommonGraph graph,
oracle.dss.graph.pfj.draw.IdentObj identObj,
oracle.dss.graph.pfj.draw.IdentObj identObj2) |
Modifier and Type | Method and Description |
---|---|
static int |
_calcReversedGradientDirection(int dir) |
protected java.lang.String |
getComponentName() |
int |
getFillType()
Retrieves the fill type for the graph, such as color, gradient, and
texture.
|
int |
getGradientDirection()
Retrieves the gradient direction for the graph.
|
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 graph.
|
protected oracle.dss.util.xml.ObjectNode |
getGradientStopStyleXML(boolean allProperties,
int stopIndex) |
java.lang.String |
getTexture()
Retrieves either the URL of the file that contains the texture graphic that
is displayed in the graph, or the name of the texture
Image ,
depending on the method that was used to specify the texture. |
int |
getTextureDisplayMode()
Retrieves the way that texture is displayed in the graph.
|
java.lang.String |
getTextureURL() |
protected oracle.dss.util.xml.ContainerNode |
getXML(boolean allProperties,
boolean allOverriddenProperties) |
boolean |
isGradientReversed()
Indicates whether the gradient direction is reversed.
|
protected void |
resetStyle() |
protected void |
resetStyle(oracle.dss.graph.pfj.draw.IdentObj identObj) |
void |
setFillType(int type)
Specifies the fill type for the graph, such as color, gradient, and
texture.
|
void |
setGradientDirection(int dir)
Specifies the gradient direction for the graph.
|
void |
setGradientNumStops(int numStops)
Specifies the number of stops in the gradient of the graph.
|
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 |
setTextureDisplayMode(int mode)
Specifies the way that texture is displayed in the graph.
|
void |
setTextureImage(java.lang.String imageName,
java.awt.Image image)
Specifies an image to display as a texture in a graph.
|
void |
setTextureURL(java.lang.String url)
Specifies a graphic file to display as a texture in a graph.
|
protected void |
setXML(oracle.dss.util.xml.ContainerNode node,
boolean allProperties) |
getNonstyleXML, getStyleXML, getStyleXML, getXML, setNonstyleXML, setNonstyleXML, setStyleXML, setXML, setXML, setXML, setXML
@Concealed protected static final int fillType
@Concealed protected static final int gradientDirection
@Concealed protected static final int gradientNumPins
@Concealed protected static final int textureDisplayMode
@Concealed protected static final double position
@Concealed protected static final java.lang.String gradientPinLeftColor
@Concealed protected static final java.lang.String gradientPinRightColor
@Concealed protected static final java.lang.String a_fillType
@Concealed protected static final java.lang.String a_gradientDirection
@Concealed protected static final java.lang.String a_gradientNumPins
@Concealed protected static final java.lang.String a_textureDisplayMode
@Concealed protected static final java.lang.String a_pinIndex
@Concealed protected static final java.lang.String a_gradientPinLeftColor
@Concealed protected static final java.lang.String a_gradientPinRightColor
@Concealed protected static final java.lang.String a_textureURL
@Concealed protected static final java.lang.String GRADIENTPINSTYLE_NAME
@Concealed protected static final java.lang.String a_gradientStopColor
@Concealed protected static final java.lang.String a_gradientStopPosition
@Concealed protected static final java.lang.String a_gradientNumStops
@Concealed protected static final java.lang.String a_gradientReversed
@Concealed protected static final java.lang.String GRADIENTSTOPSTYLE_NAME
@Concealed protected CommonGraph m_commonGraph
@Concealed protected PFJ m_pfj
@Concealed protected oracle.dss.graph.pfj.draw.IdentObj m_identObj
@Concealed protected oracle.dss.graph.pfj.draw.IdentObj m_identObj2
@Concealed protected oracle.dss.graph.pfj.draw.IdentObj m_frameSide
@Concealed protected oracle.dss.graph.pfj.draw.IdentObj m_frameBottom
@Concealed protected boolean m_isSeries
@Concealed protected boolean m_isPlotArea
@Concealed public SFX(CommonGraph graph, oracle.dss.graph.pfj.draw.IdentObj identObj)
graph
- The graph that this object belongs to.identObj
- The Perspective for Java object that represents the
identity of this object.
Perspective for Java is a third party package of objects that are used
and manipulated by the BI Beans.@Concealed public SFX(CommonGraph graph, oracle.dss.graph.pfj.draw.IdentObj identObj, oracle.dss.graph.pfj.draw.IdentObj identObj2)
graph
- The graph that this object belongs to.identObj
- The Perspective for Java object that represents the
identity of this object.
Perspective for Java is a third party package of objects that are used
and manipulated by the BI Beans.identObj2
- A second Perspective for Java object that represents the
identity of this object.public int getFillType()
getFillType
in interface oracle.dss.presutil.GradientSupport
BaseGraphComponent.FT_COLOR
,
BaseGraphComponent.FT_GRADIENT
,
BaseGraphComponent.FT_TEXTURE
public void setFillType(int type)
If you set the FillType
to
BaseGraphComponent.FT_GRADIENT
, then you should
set the other gradient properties.
If you set the FillType
to BaseGraphComponent.FT_TEXTURE
,
then you must specify
an image to use as the texture, either by calling
setTextureURL
or setTextureImage
.
setFillType
in interface oracle.dss.presutil.GradientSupport
type
- A constant that represents the fill type for the graph.
Valid constants are listed in the See Also section.BaseGraphComponent.FT_COLOR
,
BaseGraphComponent.FT_GRADIENT
,
BaseGraphComponent.FT_TEXTURE
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
BaseGraphComponent.GD_DOWN
,
BaseGraphComponent.GD_RADIAL
,
BaseGraphComponent.GD_RIGHT
,
BaseGraphComponent.GD_DIAGONAL_45
,
BaseGraphComponent.GD_DIAGONAL_135
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
graph.
Valid constants are listed in the See Also section.setGradientReversed(boolean)
,
BaseGraphComponent.GD_DOWN
,
BaseGraphComponent.GD_RADIAL
,
BaseGraphComponent.GD_RIGHT
,
BaseGraphComponent.GD_DIAGONAL_45
,
BaseGraphComponent.GD_DIAGONAL_135
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 graph 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 graph.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 BaseGraphComponent.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)
@Concealed public static int _calcReversedGradientDirection(int dir)
dir
- the gradient direction to find the reverse forpublic 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 int getTextureDisplayMode()
BaseGraphComponent.TDM_TILED
,
BaseGraphComponent.TDM_STRETCHED
public void setTextureDisplayMode(int mode)
mode
- A constant that represents the the way that texture is
display in the graph. Valid constants are listed in the See Also section.BaseGraphComponent.TDM_TILED
,
BaseGraphComponent.TDM_STRETCHED
public java.lang.String getTexture()
Image
,
depending on the method that was used to specify the texture.
If the setTextureURL
method was used to specify the texture,
then this method's return
value will be the URL of the file
that contains the texture graphic.
If the setTextureImage
method was used to specify the texture,
then this method's return
value will be the name of the
texture graphic itself.Image
, depending on the method that
was used to set the texture.setTextureURL(java.lang.String)
,
setTextureImage(java.lang.String, java.awt.Image)
@Concealed public java.lang.String getTextureURL()
setTextureURL(java.lang.String)
public void setTextureURL(java.lang.String url)
FillType
property is set to FT_TEXTURE
.url
- The URL for the file that contains the texture graphic that
is displayed in the graph.
If the URL does not point to a graphic file, then a runtime
exception is thrown, and the graph is not displayed.setFillType(int)
,
setTextureDisplayMode(int)
public void setTextureImage(java.lang.String imageName, java.awt.Image image)
FillType
property is set to FT_TEXTURE
.
The image that you set in this method is not stored with the XML for the graph. You must arrange for the image to be available to the deployed graph. You should call this method after you set XML on the graph.
imageName
- A name for the Image
.image
- The Image
to display as a texture.setFillType(int)
,
setTextureDisplayMode(int)
@Concealed protected java.lang.String getComponentName()
getComponentName
in class BaseComponentXML
@Concealed protected oracle.dss.util.xml.ObjectNode getGradientStopStyleXML(boolean allProperties, int stopIndex)
@Concealed protected void resetStyle()
@Concealed protected void resetStyle(oracle.dss.graph.pfj.draw.IdentObj identObj)
@Concealed protected oracle.dss.util.xml.ContainerNode getXML(boolean allProperties, boolean allOverriddenProperties)
@Concealed protected void setXML(oracle.dss.util.xml.ContainerNode node, boolean allProperties)