renomage et suppretion code
This commit is contained in:
@@ -205,11 +205,6 @@ public class Drawable {
|
|||||||
p = new Paint();
|
p = new Paint();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* cette fonction est appeler quand le drawable est retirer de la liste toDraw
|
|
||||||
*/
|
|
||||||
public void onDeletion(Renderer r){}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* coupe le texte a une certaine longeur
|
* coupe le texte a une certaine longeur
|
||||||
* @param charPerLines nombre de caractére par lignes
|
* @param charPerLines nombre de caractére par lignes
|
||||||
|
|||||||
@@ -182,7 +182,6 @@ public class Renderer extends SurfaceView implements SurfaceHolder.Callback {
|
|||||||
* @param toRemove the element toRemove
|
* @param toRemove the element toRemove
|
||||||
*/
|
*/
|
||||||
public void removeToDraw(Drawable toRemove){
|
public void removeToDraw(Drawable toRemove){
|
||||||
toRemove.onDeletion(this);
|
|
||||||
toDraw.remove(toRemove);
|
toDraw.remove(toRemove);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Reference in New Issue
Block a user