|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectfi.jyu.mit.graphics.BasicShape
fi.jyu.mit.graphics.BasicDrawableCollection
fi.jyu.mit.graphics.DrawableCollection
public class DrawableCollection
Luokka kuvio-oliokokoelmille. Tehdään julkiseksi BasicDrawableCollection metodeja jotta tätä voi käyttää itsenäisenä luokkana.
| Constructor Summary | |
|---|---|
DrawableCollection()
Luo uuden oliokokelman |
|
| Method Summary | |
|---|---|
Drawable |
add(Drawable pDrawable)
Lisää olion tähän kokoelmaan |
Drawable |
getDrawable(int i)
Paluattaa paikaas i oleva piirrettävän olion |
int |
getIndex(Drawable pDrawable)
Palauttaa annetun olion indeksin tässä kokoelmassa |
void |
remove(Drawable pDrawable)
Poistaa olion tästä kokoelmasta |
| Methods inherited from class fi.jyu.mit.graphics.BasicDrawableCollection |
|---|
drawShape, getDrawables, justAdd, justRemove, redraw, registerSpace, unRegisterSpace |
| Methods inherited from class fi.jyu.mit.graphics.BasicShape |
|---|
changeTransform, draw, getColor, getPoint, getRotator, getRotator, getTransform, getTransform, initGraphics, move, rotate, scale, setColor, setColor, setParent, setRotator, setTransform, transform |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DrawableCollection()
| Method Detail |
|---|
public Drawable getDrawable(int i)
getDrawable in class BasicDrawableCollectioni - missä paikass aoleva olio otetaan
public Drawable add(Drawable pDrawable)
add in class BasicDrawableCollectionpDrawable - lisättävä olio
public void remove(Drawable pDrawable)
remove in class BasicDrawableCollectionpDrawable - poistettava oliopublic int getIndex(Drawable pDrawable)
getIndex in class BasicDrawableCollectionpDrawable - olio jonka indeksia haetaan
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||