de.enough.polish.ui
Class RgbFilter

java.lang.Object
  extended by de.enough.polish.ui.RgbFilter
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AlphaRgbFilter, DropShadowRgbFilter, GaussianBlurRgbFilter, GrayscaleRgbFilter, OpacityRgbFilter, RotateRgbFilter, ScaleRgbFilter

public abstract class RgbFilter
extends Object
implements Serializable

Provides an RGB filter that transforms RGB data in a specific way.

Copyright Enough Software 2008

Author:
Robert Virkus, j2mepolish@enough.de

Constructor Summary
RgbFilter()
          Creates a new filter
 
Method Summary
abstract  boolean isActive()
          Determines whether this filter is active.
abstract  RgbImage process(RgbImage input)
          Processes the given RGB input
 void releaseResources()
          Releases all memory intensive resources
 void setStyle(Style style, boolean resetStyle)
          Configures this filter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RgbFilter

public RgbFilter()
Creates a new filter

Method Detail

process

public abstract RgbImage process(RgbImage input)
Processes the given RGB input

Parameters:
input - the RgbImage input
Returns:
the RgbImage output

isActive

public abstract boolean isActive()
Determines whether this filter is active. An opacity filter is for example not active, when the opacity value is 255

Returns:
true when this RGB filter is active.

setStyle

public void setStyle(Style style,
                     boolean resetStyle)
Configures this filter

Parameters:
style - the style
resetStyle - true when default values should be assumed, may be ignored by subclasses

releaseResources

public void releaseResources()
Releases all memory intensive resources