Top Description Fields Constructors Methods
com.sun.scenario.effect

public Class Glow

extends DelegateEffect
Class Inheritance
Imports
com.sun.javafx.geom.Point2D

A high-level effect that makes the input image appear to glow, based on a configurable threshold.

Field Summary

Modifier and TypeField and Description
private final Blend
private final GaussianBlur

Constructor Summary

AccessConstructor and Description
public
Glow()

Constructs a new Glow effect with the default level (0.3), using the default input for source data.

public
Glow(Effect
the single input Effect
input
)

Constructs a new Glow effect with the default level (0.3).

Method Summary

Modifier and TypeMethod and Description
protected Effect
getDelegate()

Implements abstract com.sun.scenario.effect.DelegateEffect.getDelegate.

Returns the Effect object to delegate all operations to.

public final Effect

Returns:

the input for this Effect
getInput
()

Returns the input for this Effect.

public float

Returns:

the level value
getLevel
()

Returns the level value, which controls the intensity of the glow effect.

public void
setInput(Effect
the input for this Effect
input
)

Sets the input for this Effect to a specific Effect or to the default input if input is null.

public void
setLevel(float
the level value
level
)

Sets the level value, which controls the intensity of the glow effect.

public Point2D
transform(Point2D
the point in the coordinate space of the primary content input to be transformed
p
,
Effect
the default input Effect to be used in all cases where a filter has a null input
defaultInput
)

Overrides com.sun.scenario.effect.DelegateEffect.transform.

Transform the specified point p from the coordinate space of the primary content input to the coordinate space of the effect output.

public Point2D
untransform(Point2D
the point in the coordinate space of the result output to be transformed
p
,
Effect
the default input Effect to be used in all cases where a filter has a null input
defaultInput
)

Overrides com.sun.scenario.effect.DelegateEffect.untransform.

Transform the specified point p from the coordinate space of the output of the effect into the coordinate space of the primary content input.

Inherited from com.sun.scenario.effect.DelegateEffect:
filtergetAccelTypegetBoundsgetDirtyRegionsreducesOpaquePixels

Field Detail

blendback to summary
private final Blend blend
blurback to summary
private final GaussianBlur blur

Constructor Detail

Glowback to summary
public Glow()

Constructs a new Glow effect with the default level (0.3), using the default input for source data. This is a shorthand equivalent to:

    new Glow(DefaultInput)
Glowback to summary
public Glow(Effect input)

Constructs a new Glow effect with the default level (0.3).

Parameters
input:Effect

the single input Effect

Method Detail

getDelegateback to summary
protected Effect getDelegate()

Implements abstract com.sun.scenario.effect.DelegateEffect.getDelegate.

Doc from com.sun.scenario.effect.DelegateEffect.getDelegate.

Returns the Effect object to delegate all operations to.

Returns:Effect

the Effect object to delegate to.

Annotations
@Override
getInputback to summary
public final Effect getInput()

Returns the input for this Effect.

Returns:Effect

the input for this Effect

getLevelback to summary
public float getLevel()

Returns the level value, which controls the intensity of the glow effect.

Returns:float

the level value

setInputback to summary
public void setInput(Effect input)

Sets the input for this Effect to a specific Effect or to the default input if input is null.

Parameters
input:Effect

the input for this Effect

setLevelback to summary
public void setLevel(float level)

Sets the level value, which controls the intensity of the glow effect.

      Min: 0.0
      Max: 1.0
  Default: 0.3
 Identity: 0.0
Parameters
level:float

the level value

Exceptions
IllegalArgumentException:
if level is outside the allowable range
transformback to summary
public Point2D transform(Point2D p, Effect defaultInput)

Overrides com.sun.scenario.effect.DelegateEffect.transform.

Doc from com.sun.scenario.effect.Effect.transform.

Transform the specified point p from the coordinate space of the primary content input to the coordinate space of the effect output. In essence, this method asks the question "Which output coordinate is most affected by the data at the specified coordinate in the primary source input?"

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 NaN, or some other anomalous value. Most effects perform simple transformations of the color of each pixel and so represent an identity transform and return the point unchanged.

Parameters
p:Point2D

the point in the coordinate space of the primary content input to be transformed

defaultInput:Effect

the default input Effect to be used in all cases where a filter has a null input

Returns:Point2D

the transformed point in the coordinate space of the result

Annotations
@Override
untransformback to summary
public Point2D untransform(Point2D p, Effect defaultInput)

Overrides com.sun.scenario.effect.DelegateEffect.untransform.

Doc from com.sun.scenario.effect.Effect.untransform.

Transform the specified point p from the coordinate space of the output of the effect into the coordinate space of the primary content input. In essence, this method asks the question "Which source coordinate contributes most to the definition of the output at the specified coordinate?"

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 0, Infinity, or NaN. Most effects perform simple transformations of the color of each pixel and so represent an identity transform and return the point unchanged.

Parameters
p:Point2D

the point in the coordinate space of the result output to be transformed

defaultInput:Effect

the default input Effect to be used in all cases where a filter has a null input

Returns:Point2D

the untransformed point in the coordinate space of the primary content input

Annotations
@Override