Class Logo
java.lang.Object
|
+----Logo
- public class Logo
- extends Object
Draw the WebSim logo at any location with any size
This code is (c) 1996 Leemon Baird
<leemon@cs.cmu.edu>,
http://www.cs.cmu.edu/~baird
The source and object code may be redistributed freely.
If the code is modified, please state so in the comments.
- Version:
- 1.0, 22 Oct 96
- Author:
- Leemon Baird
-
Logo()
-
-
credits(Graphics, int, int)
- Draw the logo and credits at location (x,y).
-
draw(Graphics, int, int, int)
- Draw the logo with upper-left corner at (x,y) and given width.
-
draw(Graphics, int, int, int, Color, Color, int)
- Draw the logo with upper-left corner at (x,y) and given width.
-
draw(Graphics, int, int, int, int, int, Color, Color, int)
- Draw the logo with upper-left corner at (x,y) and shaped according
to the given parameters (THIS METHOD IS NOT RECOMMENDED).
Logo
public Logo()
credits
public static final void credits(Graphics g,
int x,
int y)
- Draw the logo and credits at location (x,y).
This fits within a rectangle 250 pixels wide by 44 high
on Win95 with the default font.
draw
public static final void draw(Graphics g,
int x,
int y,
int width)
- Draw the logo with upper-left corner at (x,y) and given width.
The width is rounded down to the nearest multiple of 16 pixels.
If the width is 16*n, then the height will be 13*n
draw
public static final void draw(Graphics g,
int x,
int y,
int width,
Color fore,
Color back,
int border)
- Draw the logo with upper-left corner at (x,y) and given width.
The width is rounded down to the nearest multiple of 16 pixels.
If the width is 16*n, then the height will be 13*n. The two
colors define the foreground and background color.
draw
public static final void draw(Graphics g,
int x,
int y,
int b,
int c,
int w,
Color fore,
Color back,
int f)
- Draw the logo with upper-left corner at (x,y) and shaped according
to the given parameters (THIS METHOD IS NOT RECOMMENDED).
It is better to use draw(g,x,y,width) or draw(g,x,y,fore,back) to
ensure that the logo has the standard proportions. Fore and Back
are the colors for the foreground and background. If Back is null,
then the background is transparent.