public final class

GridLayer

extends RootLayer
implements MediaFeed.Listener TimeBar.Listener
java.lang.Object
   ↳ com.cooliris.media.Layer
     ↳ com.cooliris.media.RootLayer
       ↳ com.cooliris.media.GridLayer

Summary

Constants
int ANCHOR_CENTER
int ANCHOR_LEFT
int ANCHOR_RIGHT
int MAX_DISPLAYED_ITEMS_PER_FOCUSED_SLOT
int MAX_DISPLAYED_ITEMS_PER_SLOT
int MAX_DISPLAY_SLOTS
int MAX_ITEMS_DRAWABLE
int MAX_ITEMS_PER_SLOT
int STATE_FULL_SCREEN
int STATE_GRID_VIEW
int STATE_MEDIA_SETS
int STATE_TIMELINE
Public Constructors
GridLayer(Context context, int itemWidth, int itemHeight, LayoutInterface layoutInterface, RenderView view)
Public Methods
void clearUnusedThumbnails()
void cropSelectedItem()
void deleteSelection()
void deselectAll()
void deselectOrCancelSelectMode()
void endSlideshow()
void enterSelectionMode()
boolean feedAboutToChange()
void focusItem(String contentUri)
void generate(RenderView view, RenderView.Lists lists)
DisplayItem getAnchorDisplayItem(int type)
int getAnchorSlotIndex(int anchorType)
IndexRange getBufferedVisibleRange()
IndexRange getCompleteRange()
DataSource getDataSource()
Vector3f getDeltaAnchorPosition()
DisplayItem getDisplayItemForScrollPosition(float posX)
int getExpandedSlot()
MediaFeed getFeed()
HudLayer getHud()
GridLayoutInterface getLayoutInterface()
int getMetadataSlotIndexForScreenPosition(int posX, int posY)
boolean getPickIntent()
DisplayItem getRepresentativeDisplayItem()
float getScrollPosition()
ArrayList<MediaBucket> getSelectedBuckets()
int getSlotIndexForScreenPosition(int posX, int posY)
int getState()
boolean getViewIntent()
IndexRange getVisibleRange()
float getZoomValue()
void handleLowMemory()
boolean inSlideShowMode()
boolean isInAlbumMode()
void markDirty(int numFrames)
boolean noDeleteMode()
void onFeedAboutToChange(MediaFeed feed)
synchronized void onFeedChanged(MediaFeed feed, boolean needsLayout)
boolean onKeyDown(int keyCode, KeyEvent event)
synchronized void onLayout(int newAnchorSlotIndex, int currentAnchorSlotIndex, LayoutInterface oldLayout)
void onPause()
void onResume()
void onSensorChanged(RenderView view, SensorEvent event)
void onSurfaceChanged(RenderView view, int width, int height)
void onSurfaceCreated(RenderView view, GL11 gl)
void onTimeChanged(TimeBar timebar)
boolean onTouchEvent(MotionEvent event)
void renderBlended(RenderView view, GL11 gl)
void renderOpaque(RenderView view, GL11 gl)
void rotateSelectedItems(float f)
void selectAll()
void setDataSource(DataSource dataSource)
void setEnterSelectionMode(boolean enterSelection)
void setPickIntent(boolean b)
void setSingleImage(boolean noDeleteMode)
void setState(int state)
void setViewIntent(boolean b, String setName)
void setZoomValue(float f)
void shutdown()
void startSlideshow()
void stop()
boolean tapGesture(int slotIndex, boolean metadata)
boolean update(RenderView view, float timeElapsed)
void zoomInToSelectedItem()
void zoomOutFromSelectedItem()
Protected Methods
void disableLocationFiltering()
void enableLocationFiltering(String label)
void onSizeChanged()
[Expand]
Inherited Methods
From class com.cooliris.media.RootLayer
From class com.cooliris.media.Layer
From class java.lang.Object
From interface com.cooliris.media.MediaFeed.Listener
From interface com.cooliris.media.TimeBar.Listener

Constants

public static final int ANCHOR_CENTER

Constant Value: 2 (0x00000002)

public static final int ANCHOR_LEFT

Constant Value: 0 (0x00000000)

public static final int ANCHOR_RIGHT

Constant Value: 1 (0x00000001)

public static final int MAX_DISPLAYED_ITEMS_PER_FOCUSED_SLOT

Constant Value: 32 (0x00000020)

public static final int MAX_DISPLAYED_ITEMS_PER_SLOT

Constant Value: 4 (0x00000004)

public static final int MAX_DISPLAY_SLOTS

Constant Value: 96 (0x00000060)

public static final int MAX_ITEMS_DRAWABLE

Constant Value: 3072 (0x00000c00)

public static final int MAX_ITEMS_PER_SLOT

Constant Value: 32 (0x00000020)

public static final int STATE_FULL_SCREEN

Constant Value: 2 (0x00000002)

public static final int STATE_GRID_VIEW

Constant Value: 1 (0x00000001)

public static final int STATE_MEDIA_SETS

Constant Value: 0 (0x00000000)

public static final int STATE_TIMELINE

Constant Value: 3 (0x00000003)

Public Constructors

public GridLayer (Context context, int itemWidth, int itemHeight, LayoutInterface layoutInterface, RenderView view)

Public Methods

public void clearUnusedThumbnails ()

public void cropSelectedItem ()

public void deleteSelection ()

public void deselectAll ()

public void deselectOrCancelSelectMode ()

public void endSlideshow ()

public void enterSelectionMode ()

public boolean feedAboutToChange ()

public void focusItem (String contentUri)

public void generate (RenderView view, RenderView.Lists lists)

public DisplayItem getAnchorDisplayItem (int type)

public int getAnchorSlotIndex (int anchorType)

public IndexRange getBufferedVisibleRange ()

public IndexRange getCompleteRange ()

public DataSource getDataSource ()

public Vector3f getDeltaAnchorPosition ()

public DisplayItem getDisplayItemForScrollPosition (float posX)

public int getExpandedSlot ()

public MediaFeed getFeed ()

public HudLayer getHud ()

public GridLayoutInterface getLayoutInterface ()

public int getMetadataSlotIndexForScreenPosition (int posX, int posY)

public boolean getPickIntent ()

public DisplayItem getRepresentativeDisplayItem ()

public float getScrollPosition ()

public ArrayList<MediaBucket> getSelectedBuckets ()

public int getSlotIndexForScreenPosition (int posX, int posY)

public int getState ()

public boolean getViewIntent ()

public IndexRange getVisibleRange ()

public float getZoomValue ()

public void handleLowMemory ()

public boolean inSlideShowMode ()

public boolean isInAlbumMode ()

public void markDirty (int numFrames)

public boolean noDeleteMode ()

public void onFeedAboutToChange (MediaFeed feed)

public synchronized void onFeedChanged (MediaFeed feed, boolean needsLayout)

public boolean onKeyDown (int keyCode, KeyEvent event)

public synchronized void onLayout (int newAnchorSlotIndex, int currentAnchorSlotIndex, LayoutInterface oldLayout)

public void onPause ()

public void onResume ()

public void onSensorChanged (RenderView view, SensorEvent event)

public void onSurfaceChanged (RenderView view, int width, int height)

public void onSurfaceCreated (RenderView view, GL11 gl)

public void onTimeChanged (TimeBar timebar)

public boolean onTouchEvent (MotionEvent event)

public void renderBlended (RenderView view, GL11 gl)

public void renderOpaque (RenderView view, GL11 gl)

public void rotateSelectedItems (float f)

public void selectAll ()

public void setDataSource (DataSource dataSource)

public void setEnterSelectionMode (boolean enterSelection)

public void setPickIntent (boolean b)

public void setSingleImage (boolean noDeleteMode)

public void setState (int state)

public void setViewIntent (boolean b, String setName)

public void setZoomValue (float f)

public void shutdown ()

public void startSlideshow ()

public void stop ()

public boolean tapGesture (int slotIndex, boolean metadata)

public boolean update (RenderView view, float timeElapsed)

public void zoomInToSelectedItem ()

public void zoomOutFromSelectedItem ()

Protected Methods

protected void disableLocationFiltering ()

protected void enableLocationFiltering (String label)

protected void onSizeChanged ()