org.jtgl.gaming
Class RectSurface
java.lang.Object
org.jtgl.gaming.Surface
org.jtgl.gaming.RectSurface
public final class RectSurface
- extends Surface
A Rectangle surface
- Author:
- Manuel Polo (manuel_polo at yahoo dot es)
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 |
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)
setColor
public void setColor(JTGLColor color)
setFilled
public void setFilled(boolean filled)
draw
public void draw(JTGLGraphics g)
- Specified by:
draw
in class Surface