Java Reference
In-Depth Information
default:
drawUnknown(g, w, h);
break;
}
}
private void drawSun(Graphics g, int w, int h) {
int x, y, min, r;
min = Math.min(w, h);
r=3*min/4;
x=(w-r)/4;
y=(h-r)/4;
g.setColor( YELLOW );
g.fillArc(x, y,x+r,y+r,0,360);
}
private void drawCloud(Graphics g, int w, int h) {
// Drawing code here.
}
private void drawRain(Graphics g, int w, int h) {
// Drawing code here.
}
private void drawSnow(Graphics g, int w, int h) {
// Drawing code here.
}
private void drawUnknown(Graphics g, int w, int h) {
// Drawing code here.
}
protected boolean traverse(int dir, int viewportWidth, int viewportHeight,
int[] visRect) {
hasFocus = !hasFocus;
if ( hasFocus )
{
visRect[0]=0;
visRect[1]=0;
visRect[2]=width;
visRect[3]=height;
}
 
Search WWH ::




Custom Search