|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.ui.ItemView
de.enough.polish.ui.ContainerView
de.enough.polish.ui.containerviews.ShuffleView
public class ShuffleView
Shows the items in a normal list. During the beginning an animation is shown, in which the items are moved horizontally from left and right into their position.
Copyright Enough Software 2004 - 2009
history
18-Nov-2004 - rob creation
| Field Summary |
|---|
| Fields inherited from class de.enough.polish.ui.ItemView |
|---|
availableHeight, availableWidth, contentHeight, contentWidth, isFocused, isLayoutCenter, isLayoutRight, layout, paddingHorizontal, paddingVertical, parentItem |
| Constructor Summary | |
|---|---|
ShuffleView()
Creates new DroppingView |
|
| Method Summary | |
|---|---|
boolean |
animate()
Animates this view - the items appear to drop from above. |
protected void |
initContent(Item parentItm,
int firstLineWidth,
int availWidth,
int availHeight)
Initializes this container view. |
protected void |
paintItem(Item item,
int index,
int x,
int y,
int leftBorder,
int rightBorder,
int clipX,
int clipY,
int clipWidth,
int clipHeight,
Graphics g)
Paints this item at the specified position. |
protected void |
setStyle(Style style)
Sets the style for this view. |
void |
showNotify()
Notifies this view that it is about to be shown (again). |
| Methods inherited from class de.enough.polish.ui.ItemView |
|---|
adjustToContentArea, defocus, focus, handleKeyReleased, hideNotify, init, initContentByParent, notifyItemPressedEnd, notifyItemPressedEnd, notifyItemPressedStart, notifyItemPressedStart, paintBackground, paintBorder, paintContentByParent, removeItemBackground, removeItemBorder, removeParentBackground, removeParentBorder, removeViewFromParent, requestInit, setStyle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ShuffleView()
| Method Detail |
|---|
protected void initContent(Item parentItm,
int firstLineWidth,
int availWidth,
int availHeight)
ContainerView
initContent in class ContainerViewparentItm - the Container which uses this view, use parent.getItems() for retrieving all items.firstLineWidth - the maximum width of the first lineavailWidth - the maximum width of any following linesavailHeight - the maximum height of the viewItemView.contentWidth,
ItemView.contentHeight
protected void paintItem(Item item,
int index,
int x,
int y,
int leftBorder,
int rightBorder,
int clipX,
int clipY,
int clipWidth,
int clipHeight,
Graphics g)
ContainerView
paintItem in class ContainerViewitem - the item that needs to be paintedindex - the index of the itemx - the horizontal position of the itemy - the vertical position of the itemleftBorder - the left borderrightBorder - the right borderclipX - absolute horizontal clipping startclipY - absolute verical clipping startclipWidth - clipping widthclipHeight - clipping heightg - the graphics contextprotected void setStyle(Style style)
ContainerView
setStyle in class ContainerViewstyle - the stylepublic void showNotify()
ContainerView
showNotify in class ContainerViewpublic boolean animate()
animate in class ItemViewItemView.animate(long, ClippingRegion)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||