|
||||||||
| 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
public class BasicDrawableCollection
Luokka kuvio-oliokokoelmille. Tämä on tarkoitettu perinnän pohjaksi luotaessa uusia kuviokokoelmia. Siksi tässä on useat metodit protected-tasolla.
| Constructor Summary | |
|---|---|
BasicDrawableCollection()
Luo uuden oliokokelman |
|
| Method Summary | |
|---|---|
protected Drawable |
add(Drawable pDrawable)
Lisää olion tähän kokoelmaan |
protected void |
drawShape(Graphics g,
Matrix a)
Kokoelman piirto |
protected Drawable |
getDrawable(int i)
Paluattaa paikaas i oleva piirrettävän olion |
int |
getDrawables()
Palauttaa tämän oliokokoelman |
protected int |
getIndex(Drawable pDrawable)
Palauttaa annetun olion indeksin tässä kokoelmassa |
void |
justAdd(Drawable pDrawable)
This is only for inner purposes |
void |
justRemove(Drawable pDrawable)
This is only for inner purposes |
void |
redraw()
Piirretään koko kokoelma uudelleen. |
void |
registerSpace(Space space)
Rekisteröi annetun avaruuden sisältämään tämän kokoelmaa |
protected void |
remove(Drawable pDrawable)
Poistaa olion tästä kokoelmasta |
void |
unRegisterSpace(Space space)
Poistaa annetun avaruuden tämän kokoelman rekisteristä, kutsutaan kun annettu avaruus ei enää sisällä tätä kokoelmaa |
| 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 BasicDrawableCollection()
| Method Detail |
|---|
public void registerSpace(Space space)
space - avaruus joka sisältää tämän kokelmanpublic void unRegisterSpace(Space space)
space - poistettava avaruuspublic int getDrawables()
protected Drawable getDrawable(int i)
i - missä paikass aoleva olio otetaan
public void justAdd(Drawable pDrawable)
pDrawable - public void justRemove(Drawable pDrawable)
pDrawable - protected Drawable add(Drawable pDrawable)
pDrawable - lisättävä olio
protected void remove(Drawable pDrawable)
pDrawable - poistettava olioprotected int getIndex(Drawable pDrawable)
pDrawable - olio jonka indeksia haetaan
public void redraw()
redraw in interface Drawableredraw in class BasicShapeBasicShape.redraw()
protected void drawShape(Graphics g,
Matrix a)
drawShape in class BasicShapeg - Graphics-olioa - muunnosmatriisiBasicShape.drawShape(java.awt.Graphics, fi.jyu.mit.graphics.Matrix)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||