org.jtgl.gaming
Class RectSurface

java.lang.Object
  extended by org.jtgl.gaming.Surface
      extended by org.jtgl.gaming.RectSurface

public final class RectSurface
extends Surface

A Rectangle surface

Author:
Manuel Polo (manuel_polo at yahoo dot es)

Constructor Summary
RectSurface(int width, int height)
           
RectSurface(int width, int height, JTGLColor color)
          Creates a new instance of RectSurface
RectSurface(JTGLRect rect)
           
RectSurface(JTGLRect rect, JTGLColor color)
           
 
Method Summary
 void draw(JTGLGraphics g)
           
 void setColor(JTGLColor color)
           
 void setFilled(boolean filled)
           
 
Methods inherited from class org.jtgl.gaming.Surface
getAbsRefLocation, getBounds, getCenterLocation, getHeight, getLocation, getRefLocation, getWidth, getX, getY, isVisible, move, setAbsRefLocation, setLocation, setRefLocation, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RectSurface

public RectSurface(int width,
                   int height,
                   JTGLColor color)
Creates a new instance of RectSurface


RectSurface

public RectSurface(int width,
                   int height)

RectSurface

public RectSurface(JTGLRect rect,
                   JTGLColor color)

RectSurface

public RectSurface(JTGLRect rect)
Method Detail

setColor

public void setColor(JTGLColor color)

setFilled

public void setFilled(boolean filled)

draw

public void draw(JTGLGraphics g)
Specified by:
draw in class Surface