Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public final class EffectContext
- Object
- EffectContext
What an effect needs to know about where it is applied.
Constructors
public EffectContext(double scale, Raster backdrop) | Creates a context. |
Methods
public double getScale() | Device pixels per unit. |
public Raster getBackdrop() | What is painted below the layer, or null. |
Inherited methods
Constructor details
EffectContext
public EffectContext(double scale, Raster backdrop)Creates a context.
Parameters
scaledouble- device pixels per unit of the node’s space
backdropRaster- what is painted below the layer, for background blur and
BackgroundImage; may be null
Method details
getScale
public double getScale()Device pixels per unit.
getBackdrop
public Raster getBackdrop()What is painted below the layer, or null.