|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BackingStoreManager
This interface must be implemented by the end user and is called in response to events like addition of rectangles into the RectanglePacker. It is used both when a full re-layout must be done as well as when the data in the backing store must be copied to a new one.
Method Summary | |
---|---|
boolean |
additionFailed(Rect cause,
int attemptNumber)
Notification that addition of the given Rect failed because a maximum size was set in the RectanglePacker and the backing store could not be expanded, or because compaction (and, therefore, implicitly expansion) was not supported. |
Object |
allocateBackingStore(int w,
int h)
|
void |
beginMovement(Object oldBackingStore,
Object newBackingStore)
Notification that movement is starting. |
boolean |
canCompact()
Indication whether this BackingStoreManager supports compaction; in other words, the allocation of a new backing store and movement of the contents of the backing store from the old to the new one. |
void |
deleteBackingStore(Object backingStore)
|
void |
endMovement(Object oldBackingStore,
Object newBackingStore)
Notification that movement is ending. |
void |
move(Object oldBackingStore,
Rect oldLocation,
Object newBackingStore,
Rect newLocation)
Tells the manager to move the contents of the given rect from the old location on the old backing store to the new location on the new backing store. |
boolean |
preExpand(Rect cause,
int attemptNumber)
Notification that expansion of the backing store is about to be done due to addition of the given rectangle. |
Method Detail |
---|
Object allocateBackingStore(int w, int h)
void deleteBackingStore(Object backingStore)
boolean canCompact()
boolean preExpand(Rect cause, int attemptNumber)
boolean additionFailed(Rect cause, int attemptNumber)
void beginMovement(Object oldBackingStore, Object newBackingStore)
void move(Object oldBackingStore, Rect oldLocation, Object newBackingStore, Rect newLocation)
void endMovement(Object oldBackingStore, Object newBackingStore)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |