BlurNodeEffect
class BlurNodeEffect
Extends: NodeEffect<Node>
Package: dev.joid.lib.ui.node.effect.impl · Module: core · Source: BlurNodeEffect.java
Blurs what a node draws with a horizontal then a vertical Gaussian pass.

Description
Section titled “Description”It blurs the pixels of the node, and with the CHILDREN scope those of its children too; it never blurs what lies behind the node.
Its priority is 150: it blurs the result of a rounded or circle pass, and a border drawn after it stays sharp.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
BlurNodeEffect | create(float radius) factory | Creates a blur of this radius, in design pixels. |
BlurNodeEffect | create(Supplier | Creates a blur whose radius follows a Supplier: a signal, a derived value or a lambda. |
| BlurNodeEffect(Supplier | Called by a subclass with the same argument as create(Supplier). |
Properties
Section titled “Properties”| Property | Type | Default | Summary |
|---|---|---|---|
| radius signal | float | set at creation | Strength of the blur, in design pixels; 0F or less turns the effect off. |
Inherited from NodeEffect (2)
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
boolean | shouldApply(Node node) | Returns false while the radius is 0F or less. |
List<IShaderPass> | toShaderPasses(Node node) | Returns a horizontal and a vertical BlurShaderPass of the current radius. |
Inherited from NodeEffect (3)
draw · toShaderPass · copy
Creation details
Section titled “Creation details”create
Section titled “create”BlurNodeEffect create(float radius) factory
Creates a blur of this radius, in design pixels.
BlurNodeEffect create(Supplier<Float> radiusSupplier) factory
Creates a blur whose radius follows a Supplier: a signal, a derived value or a lambda.
BlurNodeEffect
Section titled “BlurNodeEffect”BlurNodeEffect(Supplier<Float> radiusSupplier) protected
Called by a subclass with the same argument as create(Supplier).
Property details
Section titled “Property details”radius
Section titled “radius”this radius(float radius)fluentthis radius(Supplier<Float> radiusSupplier)fluent signalfloat getRadius()
Default: set at creation
Strength of the blur, in design pixels; 0F or less turns the effect off.
Method details
Section titled “Method details”shouldApply
Section titled “shouldApply”boolean shouldApply(Node node)
Returns false while the radius is 0F or less.
toShaderPasses
Section titled “toShaderPasses”List<IShaderPass> toShaderPasses(Node node)
Returns a horizontal and a vertical BlurShaderPass of the current radius.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
