Project

General

Profile

« Previous | Next » 

Revision c6e1c219

Added by Leszek Koltunski almost 8 years ago

Save PNG effect almost finished. Supporting App (hopefully!) completely finished.

What remains to be done: put actual saving of the Bitmap in a separate thread, away from the Graphics thread!!

View differences:

src/main/java/org/distorted/library/EffectListener.java
9 9

  
10 10
public interface EffectListener 
11 11
  {
12

  
13 12
/**
14 13
 * Gets called when event of type 'em' happens to effect 'effectID'. 
15 14
 * 
16
 * @param eventMessage Type of event that happened.
17
 * @param effectID     ID of the effect the event happened to. This ID must have been previously returned by one
18
 *                     of the DistortedBitmap.{deform,distort,move,...} functions.
19
 * @param effectType   Type of the effect as defined in EffectNames, e.g. if effectType==EffectNames.MOVE.ordinal(),
20
 *                     then the event happened to a MOVE effect. 
21
 * @param bitmapID     the ID of the DistortedBitmap object, as returned by {@link DistortedBitmap#getID()}, this event 
22
 *                     happened to. If the object has been created using a copy constructor from another instance of
23
 *                     DistortedBitmap, the ID here will be the one of the original object.     
24
 *                                     
15
 * @param eventType  Type of event that happened.
16
 * @param effectID   ID of the effect the event happened to. This ID must have been previously returned by one
17
 *                   of the DistortedBitmap.{deform,distort,move,...} functions.
18
 * @param effectName Name of the effect as defined in EffectNames, e.g. if effectType==EffectNames.MOVE.ordinal(),
19
 *                   then the event happened to a MOVE effect.
20
 * @param bitmapID   the ID of the DistortedBitmap object, as returned by {@link DistortedBitmap#getID()}, this event
21
 *                   happened to. If the object has been created using a copy constructor from another instance of
22
 *                   DistortedBitmap, the ID here will be the one of the original object.
23
 * @param message    Any message string associated with it. 'Failed' event types have one.
25 24
 * @see EffectMessage
26 25
 * @see EffectNames
27 26
 */
28 27
   
29
  void effectMessage(EffectMessage eventMessage, long effectID, int effectType, long bitmapID);
28
  void effectMessage(final EffectMessage eventType, final long effectID, final int effectName, final long bitmapID, final String message);
30 29
  }
31 30

  
32 31
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff