| Modifier and Type | Field and Description |
|---|---|
| private float | |
| private float | |
| private float | |
| private float |
| Access | Constructor and Description |
|---|---|
| public | Reflection()
Constructs a new |
| public | Reflection(Effect
the single input input)EffectConstructs a new |
| Modifier and Type | Method and Description |
|---|---|
| public float | Returns: the bottom opacity valueReturns the bottom opacity value, which is the opacity of the reflection at its bottom extreme. |
| public BaseBounds | getBounds(BaseTransform transform, Effect defaultInput)
Overrides com. Returns the bounding box that will be affected by this filter
operation when viewed under the specified |
| public DirtyRegionContainer | getDirtyRegions(Effect defaultInput, DirtyRegionPool regionPool)
Overrides com. Returns the dirty region container containing dirty regions affected by this filter operation. |
| public float | Returns: the fraction valueReturns the fraction of the input that is visible in the reflection. |
| public final Effect | |
| public RenderState | getRenderState(FilterContext fctx, BaseTransform transform, Rectangle outputClip, Object renderHelper, Effect defaultInput)
Implements abstract com. Returns the object representing the rendering strategy and state for the filter operation characterized by the specified arguments. |
| public float | Returns: the top offset adjustmentReturns the top offset adjustment, which is the distance between the bottom of the input and the top of the reflection. |
| public float | Returns: the top opacity valueReturns the top opacity value, which is the opacity of the reflection at its top extreme. |
| public boolean | reducesOpaquePixels()
Implements abstract com. Whether an opacity for any pixel is different (lower) than the corresponding pixel in the default input. |
| public void | setBottomOpacity(float
the bottom opacity value bottomOpacity)Sets the bottom opacity value, which is the opacity of the reflection at its bottom extreme. |
| public void | setFraction(float
the fraction of the input that is visible
in the reflection fraction)Sets the fraction of the input that is visible in the reflection. |
| public void | |
| public void | setTopOffset(float
the top offset adjustment topOffset)Sets the top offset adjustment, which is the distance between the bottom of the input and the top of the reflection. |
| public void | setTopOpacity(float
the top opacity value topOpacity)Sets the top opacity value, which is the opacity of the reflection at its top extreme. |
| public Point2D | transform(Point2D p, Effect defaultInput)
Overrides com. Transform the specified point |
| public Point2D | untransform(Point2D p, Effect defaultInput)
Overrides com. Transform the specified point |
| bottomOpacity | back to summary |
|---|---|
| private float bottomOpacity | |
| fraction | back to summary |
|---|---|
| private float fraction | |
| topOffset | back to summary |
|---|---|
| private float topOffset | |
| topOpacity | back to summary |
|---|---|
| private float topOpacity | |
| Reflection | back to summary |
|---|---|
| public Reflection() Constructs a new
new Reflection(DefaultInput)
| |
| Reflection | back to summary |
|---|---|
| public Reflection(Effect input) Constructs a new
| |
| getBottomOpacity | back to summary |
|---|---|
| public float getBottomOpacity() Returns the bottom opacity value, which is the opacity of the reflection at its bottom extreme.
| |
| getBounds | back to summary |
|---|---|
| public BaseBounds getBounds(BaseTransform transform, Effect defaultInput) Overrides com. Doc from com. Returns the bounding box that will be affected by this filter
operation when viewed under the specified
| |
| getDirtyRegions | back to summary |
|---|---|
| public DirtyRegionContainer getDirtyRegions(Effect defaultInput, DirtyRegionPool regionPool) Overrides com. Doc from com. Returns the dirty region container containing dirty regions affected by this filter operation.
| |
| getFraction | back to summary |
|---|---|
| public float getFraction() Returns the fraction of the input that is visible in the reflection.
| |
| getInput | back to summary |
|---|---|
| public final Effect getInput() Returns the input for this
| |
| getRenderState | back to summary |
|---|---|
| public RenderState getRenderState(FilterContext fctx, BaseTransform transform, Rectangle outputClip, Object renderHelper, Effect defaultInput) Implements abstract com. Doc from com. Returns the object representing the rendering strategy and state for
the filter operation characterized by the specified arguments.
This call can also be used to get a state object for non-rendering
cases like querying the bounds of an operation in which case the
| |
| getTopOffset | back to summary |
|---|---|
| public float getTopOffset() Returns the top offset adjustment, which is the distance between the bottom of the input and the top of the reflection.
| |
| getTopOpacity | back to summary |
|---|---|
| public float getTopOpacity() Returns the top opacity value, which is the opacity of the reflection at its top extreme.
| |
| reducesOpaquePixels | back to summary |
|---|---|
| public boolean reducesOpaquePixels() Implements abstract com. Doc from com. Whether an opacity for any pixel is different (lower) than the corresponding pixel in the default input. It is always safe to return true from this method, though the consequences may be that the caller chooses to not utilize a planned optimization.
| |
| setBottomOpacity | back to summary |
|---|---|
| public void setBottomOpacity(float bottomOpacity) Sets the bottom opacity value, which is the opacity of the reflection at its bottom extreme.
Min: 0.0
Max: 1.0
Default: 0.0
Identity: 1.0
| |
| setFraction | back to summary |
|---|---|
| public void setFraction(float fraction) Sets the fraction of the input that is visible in the reflection. For example, a value of 0.5 means that only the bottom half of the input will be visible in the reflection.
Min: 0.0
Max: 1.0
Default: 0.75
Identity: 1.0
| |
| setInput | back to summary |
|---|---|
| public void setInput(Effect input) Sets the input for this
| |
| setTopOffset | back to summary |
|---|---|
| public void setTopOffset(float topOffset) Sets the top offset adjustment, which is the distance between the bottom of the input and the top of the reflection.
Min: n/a
Max: n/a
Default: 0.0
Identity: 0.0
| |
| setTopOpacity | back to summary |
|---|---|
| public void setTopOpacity(float topOpacity) Sets the top opacity value, which is the opacity of the reflection at its top extreme.
Min: 0.0
Max: 1.0
Default: 0.5
Identity: 1.0
| |
| transform | back to summary |
|---|---|
| public Point2D transform(Point2D p, Effect defaultInput) Overrides com. Doc from com. Transform the specified point
The definition of which input represents the primary content input
and how the coordinate space of that input compares to the coordinate
space of the result varies from effect to effect.
Note that some effects may have a reasonable definition of how to
map source coordinates to destination coordinates, but not the
reverse.
In particular, effects which map source coordinates discontiguously
into the result may have several output coordinates that are affected
by a given input coordinate and may choose to return one of many
equally valid answers, or an undefined result such as
| |
| untransform | back to summary |
|---|---|
| public Point2D untransform(Point2D p, Effect defaultInput) Overrides com. Doc from com. Transform the specified point
The definition of which input represents the primary content input
and how the coordinate space of that input compares to the coordinate
space of the result varies from effect to effect.
Note that some effects may have a reasonable definition of how to
map destination coordinates back to source coordinates, but not the
reverse.
In particular, effects which produce entirely synthetic results not
based on any content input may not be able to give a meaningful
result to this query and may return undefined coordinates such as
| |