Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

public final class EffectContext

  1. Object
  2. 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

scale double
device pixels per unit of the node’s space
backdrop Raster
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.