public class BasicDrawableCollection extends BasicShape
| Constructor and Description |
|---|
BasicDrawableCollection()
Luo uuden oliokokelman
|
| Modifier and Type | Method and Description |
|---|---|
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
|
protected void |
removeAll()
Poistaa kaikki oliot 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
|
changeTransform, draw, getColor, getPoint, getRotator, getRotator, getTransform, getTransform, initGraphics, move, rotate, scale, setColor, setColor, setParent, setRotator, setTransform, transformpublic BasicDrawableCollection()
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 otetaanpublic void justAdd(Drawable pDrawable)
pDrawable - public void justRemove(Drawable pDrawable)
pDrawable - protected Drawable add(Drawable pDrawable)
pDrawable - lisättävä olioprotected void remove(Drawable pDrawable)
pDrawable - poistettava olioprotected void removeAll()
protected int getIndex(Drawable pDrawable)
pDrawable - olio jonka indeksia haetaanpublic 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)