com.b3dgs.lionengine.utility
Class Draws

java.lang.Object
  extended by com.b3dgs.lionengine.utility.Draws

public class Draws
extends java.lang.Object

Standard draws operation.


Method Summary
static void bar(java.awt.Graphics2D g, int x, int y, int width, int height, boolean raised)
          Display a bar.
static void percentBar(java.awt.Graphics2D g, int x, int y, int width, int height, int pWidth, int pHeight, int hBorder, int vBorder, java.awt.Color barC, java.awt.Color borderC, boolean topDown, boolean raised)
          Draw a percent bar.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

percentBar

public static void percentBar(java.awt.Graphics2D g,
                              int x,
                              int y,
                              int width,
                              int height,
                              int pWidth,
                              int pHeight,
                              int hBorder,
                              int vBorder,
                              java.awt.Color barC,
                              java.awt.Color borderC,
                              boolean topDown,
                              boolean raised)
Draw a percent bar.

Parameters:
g - graphic output.
x - location x.
y - location y.
width - box width.
height - box height.
pWidth - percent width.
pHeight - percent height
hBorder - horizontal border.
vBorder - vertical border.
barC - percent bar color.
borderC - border color.
topDown - true will start from top to down
raised - raised effect.

bar

public static void bar(java.awt.Graphics2D g,
                       int x,
                       int y,
                       int width,
                       int height,
                       boolean raised)
Display a bar.

Parameters:
g - graphic output.
x - location x.
y - location y.
width - box width.
height - box height.
raised - raised effect.