public abstract class XpsGradientBrush extends XpsTransformableBrush
Class incapsulating common features of LinerGradientBrush and RadialGradientBrush elements.
Modifier and Type | Method and Description |
---|---|
XpsColorInterpolationMode |
getColorInterpolationMode()
Returns value specifying the gamma function for color interpolation.
|
List<XpsGradientStop> |
getGradientStops()
Returns list of gradient stops that comprise the gradient.
|
XpsSpreadMethod |
getSpreadMethod()
Returns value describing how the brush should fill the content area outside of the primary,
initial gradient area.
|
void |
setColorInterpolationMode(XpsColorInterpolationMode value)
Sets value specifying the gamma function for color interpolation.
|
void |
setGradientStops(List<XpsGradientStop> value)
Sets list of gradient stops that comprise the gradient.
|
void |
setSpreadMethod(XpsSpreadMethod value)
Sets value describing how the brush should fill the content area outside of the primary,
initial gradient area.
|
getTransform, setTransform
getOpacity, setOpacity
get, iterator, size
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public List<XpsGradientStop> getGradientStops()
Returns list of gradient stops that comprise the gradient.
public void setGradientStops(List<XpsGradientStop> value)
Sets list of gradient stops that comprise the gradient.
value
- List of gradient stops that comprise the gradient.public XpsColorInterpolationMode getColorInterpolationMode()
Returns value specifying the gamma function for color interpolation. The gamma adjustment should not be applied to the alpha component, if specified.
public void setColorInterpolationMode(XpsColorInterpolationMode value)
Sets value specifying the gamma function for color interpolation. The gamma adjustment should not be applied to the alpha component, if specified.
value
- Value specifying the gamma function for color interpolation.public XpsSpreadMethod getSpreadMethod()
Returns value describing how the brush should fill the content area outside of the primary, initial gradient area.
public void setSpreadMethod(XpsSpreadMethod value)
Sets value describing how the brush should fill the content area outside of the primary, initial gradient area.
value
- Value describing how the brush should fill the content area outside of the primary,
initial gradient area.