thanassis.com
home
blog
Online Games
Sudoku
Ivory Tower
Web Hangman
Software
Java
Object Oriented
Mobiles / J2ME
Research
C.S. Resources
Galleries
Greece
Music
Photography
Art
Personal
About me
Useful Links
Contact
Site
Downloads
My other sites
Thanassis.gr
Djangopedia
Kilogames
Xoocle
TrainJava
GameAnatomy
Latest News
Decorator Example (3/4)
public class BorderFigureWrapper extends FigureWrapper {
private Drawable myWrapee = null;
private int myThickness = 0;
private String myColour = null;
BorderFigureWrapper(Drawable wrapee, int thickness, String colour) {
super(wrapee);
myWrapee = wrapee;
myThickness = thickness;
myColour = colour;
}
public void draw() {
// draw a border and call parent to draw the rest
super.draw();
}
public Drawable getWrapee() {
// give back wrapee object
return myWrapee;
}
}
Previous slide
Next slide
Back to first slide
View graphic version
Web
this site
Thanassis Blog News
In the News
Deep impact smashes comet
3 Florida shark attacks in a week
Mad Cow
summit in Scotland
Search the Archives