view
Class MyAlphaComposite

java.lang.Object
  extended by view.MyAlphaComposite
All Implemented Interfaces:
Composite

public class MyAlphaComposite
extends Object
implements Composite

An alpha-composite that can be constructed with a string.


Field Summary
private  AlphaComposite alpha
          The alpha composite created from the argument string.
 
Constructor Summary
MyAlphaComposite(String al)
          Creates an alpha composite from a string.
 
Method Summary
 CompositeContext createContext(ColorModel src, ColorModel dest, RenderingHints hints)
          Delegates the call to my alpha-composite object.
 String toString()
          Returns a string compatible with the constructor.
static String toString(AlphaComposite al)
          Returns a string compatible with the constructor for an alpha composite.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

alpha

private AlphaComposite alpha
The alpha composite created from the argument string.

Constructor Detail

MyAlphaComposite

public MyAlphaComposite(String al)
Creates an alpha composite from a string.

Method Detail

createContext

public CompositeContext createContext(ColorModel src,
                                      ColorModel dest,
                                      RenderingHints hints)
Delegates the call to my alpha-composite object.

Specified by:
createContext in interface Composite

toString

public String toString()
Returns a string compatible with the constructor.

Overrides:
toString in class Object

toString

public static String toString(AlphaComposite al)
Returns a string compatible with the constructor for an alpha composite.