com.flagstone.transform.filter
Class DropShadowFilter.Builder

java.lang.Object
  extended by com.flagstone.transform.filter.DropShadowFilter.Builder
Enclosing class:
DropShadowFilter

public static final class DropShadowFilter.Builder
extends Object

Builder for creating DropShadowFilter objects.


Constructor Summary
DropShadowFilter.Builder()
           
 
Method Summary
 DropShadowFilter build()
          Create a DropShadowFilter object using the parameters defined in the Builder.
 DropShadowFilter.Builder setAngle(float radians)
          Set the shadow angle in radians.
 DropShadowFilter.Builder setBlur(float xAmount, float yAmount)
          Set the blur amounts.
 DropShadowFilter.Builder setDistance(float width)
          Set the distance from the object that the shadow is displayed.
 DropShadowFilter.Builder setMode(FilterMode filterMode)
          Set the compositing mode for the shadow.
 DropShadowFilter.Builder setPasses(int count)
          Set the number of passes for creating the blur.
 DropShadowFilter.Builder setShadow(Color aColor)
          Set the colour of the shadow.
 DropShadowFilter.Builder setStrength(float weight)
          Set the shadow strength.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DropShadowFilter.Builder

public DropShadowFilter.Builder()
Method Detail

setShadow

public DropShadowFilter.Builder setShadow(Color aColor)
Set the colour of the shadow.

Parameters:
aColor - the shadow colour.
Returns:
this Builder.

setBlur

public DropShadowFilter.Builder setBlur(float xAmount,
                                        float yAmount)
Set the blur amounts.

Parameters:
xAmount - the horizontal blur amount.
yAmount - the vertical blur amount.
Returns:
this Builder.

setMode

public DropShadowFilter.Builder setMode(FilterMode filterMode)
Set the compositing mode for the shadow.

Parameters:
filterMode - the compositing mode, either INNER, KNOCKOUT or TOP.
Returns:
this Builder.

setAngle

public DropShadowFilter.Builder setAngle(float radians)
Set the shadow angle in radians.

Parameters:
radians - the angle.
Returns:
this Builder.

setDistance

public DropShadowFilter.Builder setDistance(float width)
Set the distance from the object that the shadow is displayed.

Parameters:
width - the width of the shadow.
Returns:
this Builder.

setStrength

public DropShadowFilter.Builder setStrength(float weight)
Set the shadow strength.

Parameters:
weight - the weight of the shadow.
Returns:
this Builder.

setPasses

public DropShadowFilter.Builder setPasses(int count)
Set the number of passes for creating the blur.

Parameters:
count - the number of blur passes.
Returns:
this Builder.

build

public DropShadowFilter build()
Create a DropShadowFilter object using the parameters defined in the Builder.

Returns:
a DropShadowFilter object.


Copyright © 2002-2010 Flagstone Software Ltd.. All Rights Reserved.