Kanzi  3.9.5
Java API
ShadowEffect2DMetadata Interface Reference

Metadata definitions for ShadowEffect2D. More...

Inheritance diagram for ShadowEffect2DMetadata:
[legend]

Public Attributes

DynamicPropertyType< Float > AngleProperty
 Sets the direction of the shadow as an angle relative to the positive x axis. More...
 
DynamicPropertyType< Float > BlurRadiusProperty
 Sets the softness of the shadow by defining the distance in pixels the shadow blur extends outward from an edge. More...
 
DynamicPropertyType< ColorRGBAColorProperty
 Sets the color and alpha of the shadow. More...
 
DynamicPropertyType< Float > DistanceProperty
 Sets how far to move the shadow from the object in the direction set by the Shadow Angle property. More...
 
AbstractMetaclass metaclass = new AbstractMetaclass("Kanzi.ShadowEffect2D")
 Metaclass for ShadowEffect2D.
 
DynamicPropertyType< Integer > QualityProperty
 Sets the visual quality of the shadow. More...
 
DynamicPropertyType< Boolean > ShadowOnlyProperty
 Whether to render only the shadow without the node contents. More...
 
DynamicPropertyType< Integer > TypeProperty
 Sets the type of the shadow: More...
 
- Public Attributes inherited from NodeEffect2DMetadata
AbstractMetaclass metaclass = new AbstractMetaclass("Kanzi.NodeEffect2D")
 Metaclass for NodeEffect2D.
 
- Public Attributes inherited from ResourceMetadata
AbstractMetaclass metaclass = new AbstractMetaclass("Kanzi.Resource")
 Metaclass for Resource.
 

Detailed Description

Metadata definitions for ShadowEffect2D.

Member Data Documentation

◆ AngleProperty

DynamicPropertyType<Float> AngleProperty
Initial value:
=
new DynamicPropertyType<>("ShadowEffect2D.Angle", Float.class)

Sets the direction of the shadow as an angle relative to the positive x axis.

The default is 45 degrees.

◆ BlurRadiusProperty

DynamicPropertyType<Float> BlurRadiusProperty
Initial value:
=
new DynamicPropertyType<>("ShadowEffect2D.BlurRadius", Float.class)

Sets the softness of the shadow by defining the distance in pixels the shadow blur extends outward from an edge.

For a shadow with sharp edges, set to 0. The default is 8 pixels.

◆ ColorProperty

Initial value:
=
new DynamicPropertyType<>("ShadowEffect2D.Color", ColorRGBA.class)

Sets the color and alpha of the shadow.

◆ DistanceProperty

DynamicPropertyType<Float> DistanceProperty
Initial value:
=
new DynamicPropertyType<>("ShadowEffect2D.Distance", Float.class)

Sets how far to move the shadow from the object in the direction set by the Shadow Angle property.

The default is 10 pixels.

◆ QualityProperty

DynamicPropertyType<Integer> QualityProperty
Initial value:
=
new DynamicPropertyType<>("ShadowEffect2D.Quality", Integer.class)

Sets the visual quality of the shadow.

Lower quality uses less computing and memory resources.

◆ ShadowOnlyProperty

DynamicPropertyType<Boolean> ShadowOnlyProperty
Initial value:
=
new DynamicPropertyType<>("ShadowEffect2D.ShadowOnly", Boolean.class)

Whether to render only the shadow without the node contents.

◆ TypeProperty

DynamicPropertyType<Integer> TypeProperty
Initial value:
=
new DynamicPropertyType<>("ShadowEffect2D.Type", Integer.class)

Sets the type of the shadow:

  • Drop Shadow appears behind or below objects.
  • Inner Shadow appears inside objects.