@Deprecated public class GradientStopStyle extends BIComplexAttributeBase
Modifier and Type | Field and Description |
---|---|
static org.apache.myfaces.trinidad.bean.PropertyKey |
GRADIENT_STOP_COLOR_KEY
Deprecated.
|
static org.apache.myfaces.trinidad.bean.PropertyKey |
GRADIENT_STOP_POSITION_KEY
Deprecated.
|
protected java.awt.Color |
m_defaultGradientStopColor
Deprecated.
|
protected double |
m_defaultGradientStopPosition
Deprecated.
|
protected int |
m_defaultStopIndex
Deprecated.
|
static org.apache.myfaces.trinidad.bean.PropertyKey |
STOP_INDEX_KEY
Deprecated.
|
static org.apache.myfaces.trinidad.bean.FacesBean.Type |
TYPE
Deprecated.
|
ID_KEY, m_parent, TRANSIENT_KEY
Constructor and Description |
---|
GradientStopStyle()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected org.apache.myfaces.trinidad.bean.FacesBean.Type |
getBeanType()
Deprecated.
|
java.awt.Color |
getGradientStopColor()
Deprecated.
Retrieves the color of a stop.
|
double |
getGradientStopPosition()
Deprecated.
Retrieves position of a stop in the gradient of the graph.
|
int |
getStopIndex()
Deprecated.
Retrieves the index of this GradientStop.
|
void |
resetStyleProperties()
Deprecated.
Applications do not need to call this method.
|
void |
setDefaultValues(int stopIndex,
java.awt.Color stopColor,
double stopPosition)
Deprecated.
Application developers do not need to call this method.
|
void |
setGradientStopColor(java.awt.Color newColor)
Deprecated.
Specifies the color of a stop.
|
void |
setGradientStopPosition(double newPos)
Deprecated.
Sets the position of a stop in a gradient.
|
void |
setStopIndex(int index)
Deprecated.
Specifies the index of this GradientStop.
|
applyProperties, getBooleanProperty, getFacesBean, getId, getParent, getProperty, getPropertyKey, getSetAttributeIndex, isTransient, isUpdated, processSetAttribute, processSetAttributeAndAdd, registerAttachedObjectKey, restoreState, saveState, setBooleanProperty, setId, setParent, setProperty, setTransient, setUpdated
protected int m_defaultStopIndex
protected java.awt.Color m_defaultGradientStopColor
protected double m_defaultGradientStopPosition
public static final org.apache.myfaces.trinidad.bean.FacesBean.Type TYPE
public static final org.apache.myfaces.trinidad.bean.PropertyKey STOP_INDEX_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey GRADIENT_STOP_COLOR_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey GRADIENT_STOP_POSITION_KEY
public int getStopIndex()
public void setStopIndex(int index)
index
- of this GradientStoppublic java.awt.Color getGradientStopColor()
public void setGradientStopColor(java.awt.Color newColor)
newColor
- The color for the stop.public double getGradientStopPosition()
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.
public void setGradientStopPosition(double newPos)
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.newPos
- The position of the specified stop in the gradient.
Valid values are from 0 - 100.public void resetStyleProperties()
public void setDefaultValues(int stopIndex, java.awt.Color stopColor, double stopPosition)
protected org.apache.myfaces.trinidad.bean.FacesBean.Type getBeanType()
getBeanType
in class BIComplexAttributeBase