de.matthiasmann.twl.renderer
Class Gradient

java.lang.Object
  extended by de.matthiasmann.twl.renderer.Gradient

public class Gradient
extends java.lang.Object

Info class used to construct a gradient image

See Also:
Renderer.createGradient(de.matthiasmann.twl.renderer.Gradient)

Nested Class Summary
static class Gradient.Stop
           
static class Gradient.Type
           
static class Gradient.Wrap
           
 
Constructor Summary
Gradient(Gradient.Type type)
           
 
Method Summary
 void addStop(float pos, Color color)
           
 int getNumStops()
           
 Gradient.Stop getStop(int index)
           
 Gradient.Stop[] getStops()
           
 Gradient.Type getType()
           
 Gradient.Wrap getWrap()
           
 void setWrap(Gradient.Wrap wrap)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Gradient

public Gradient(Gradient.Type type)
Method Detail

getType

public Gradient.Type getType()

setWrap

public void setWrap(Gradient.Wrap wrap)

getWrap

public Gradient.Wrap getWrap()

getNumStops

public int getNumStops()

getStop

public Gradient.Stop getStop(int index)

getStops

public Gradient.Stop[] getStops()

addStop

public void addStop(float pos,
                    Color color)