|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
oracle.dss.graph.SFX
Allows you to apply attributes for special effects to the graph. You can use special effects on the graph components that have a getSFX
method, such as the PlotArea
, the LegendArea
, and the GraphBackground
.
Method Summary | |
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 |
getGradientNumPins() Deprecated. As of 2.8.0.10, replaced by getGradientNumStops() . |
int |
getGradientNumStops() Retrieves the number of stops in the gradient. |
java.awt.Color |
getGradientPinLeftColor(int pinIndex) Deprecated. As of 2.8.0.10, replaced by getGradientStopColor(int) . |
double |
getGradientPinPosition(int pinIndex) Deprecated. As of 2.8.0.10, replaced by getGradientStopPosition(int) . |
java.awt.Color |
getGradientPinRightColor(int pinIndex) Deprecated. As of 2.8.0.10, replaced by getGradientStopColor(int) . |
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. |
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. |
boolean |
isGradientReversed() Indicates whether the gradient direction is reversed. |
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 |
setGradientNumPins(int numPins) Deprecated. As of 2.8.0.10, replaced by setGradientNumStops(int) . |
void |
setGradientNumStops(int numStops) Specifies the number of stops in the gradient of the graph. |
void |
setGradientPinLeftColor(java.awt.Color newColor, int pinIndex) Deprecated. As of 2.8.0.10, replaced by setGradientStopColor(java.awt.Color, int) . |
void |
setGradientPinPosition(double newPos, int pinIndex) Deprecated. As of 2.8.0.10, replaced by setGradientStopPosition(double, int) |
void |
setGradientPinRightColor(java.awt.Color newColor, int pinIndex) Deprecated. As of 2.8.0.10, replaced by setGradientStopColor(java.awt.Color, int) . |
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. |
Method Detail |
public int getFillType()
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
.
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.
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.
dir
- A constant that represents the gradient direction for the graph. Valid constants are listed in the See Also section.BaseGraphComponent.GD_DOWN
, BaseGraphComponent.GD_RADIAL
, BaseGraphComponent.GD_RIGHT
, BaseGraphComponent.GD_DIAGONAL_45
, BaseGraphComponent.GD_DIAGONAL_135
public int getGradientNumPins()
getGradientNumStops()
.public void setGradientNumPins(int numPins)
setGradientNumStops(int)
.numPins
- The number of pins in the gradient of the graph.public double getGradientPinPosition(int pinIndex)
getGradientStopPosition(int)
.pinIndex
- The index of this pin.public void setGradientPinPosition(double newPos, int pinIndex)
setGradientStopPosition(double, int)
pinIndex
- The index of this pin.newPos
- The position of the pin in the gradient of the graph.public java.awt.Color getGradientPinLeftColor(int pinIndex)
getGradientStopColor(int)
.pinIndex
- The index of this pin.public void setGradientPinLeftColor(java.awt.Color newColor, int pinIndex)
setGradientStopColor(java.awt.Color, int)
.newColor
- The left color of this pin.pinIndex
- The index of this pin.public java.awt.Color getGradientPinRightColor(int pinIndex)
getGradientStopColor(int)
.pinIndex
- The index of this pin.public void setGradientPinRightColor(java.awt.Color newColor, int pinIndex)
setGradientStopColor(java.awt.Color, int)
.newColor
- The right color of this pin.pinIndex
- The index of this pin.public java.awt.Color getGradientStopColor(int index)
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)
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.
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.
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()
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.
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.
reverse
- true
to reverse the direction of the gradient, false
to use the GradientDirection
property value as is.setGradientDirection(int)
public boolean isGradientReversed()
Reversing the gradient direction doubles the possible directions. For example, reversing the direction of GD_DOWN
produces a gradient that goes up.
reverse
- 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)
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)
|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |