|
||||||||||
| 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.FishEyeContainerView
de.enough.polish.ui.containerviews.CarouselContainerView
public class CarouselContainerView
Arranges the items in an animated carousel.
Activate this view by specifying view-type: carousel in the ChoiceGroup's, Container's or List's style.
Further attributes are:
Since this view extends the fisheye view, you can also use all fisheyeview attributes, e.g.:
fisheyeview-scale: 60%;fisheyeview-scale-end: 30%;fisheyeview-alpha-end: 80;fisheyeview-alpha-end: 80;Example:
.myList {
view-type: carousel;
fisheyeview-remove-text: true;
fisheyeview-scale-start: 70%;
fisheyeview-scale-end: 40%;
fisheyeview-alpha-start: 200;
fisheyeview-alpha-end: 100;
background-color: green;
padding: 5;
}
Copyright Enough Software 2007 - 2008
history
Oct 11, 2007 - rob creation
FishEyeContainerView| Field Summary |
|---|
| Fields inherited from class de.enough.polish.ui.ContainerView |
|---|
allowCycling, allowsAutoTraversal, allowsDirectSelectionByPointerEvent, appearanceMode, columnsSetting, columnsWidths, EQUAL_WIDTH_COLUMNS, focusedIndex, focusedItem, focusFirstElement, isExpandItems, isHorizontal, isSequentialTraversal, isVertical, leftXOffset, NO_COLUMNS, NORMAL_WIDTH_COLUMNS, numberOfColumns, numberOfRows, parentContainer, restartAnimation, rightXOffset, rowsHeights, STATIC_WIDTH_COLUMNS, topYOffset, yOffset |
| Fields inherited from class de.enough.polish.ui.ItemView |
|---|
contentHeight, contentWidth, isFocused, isLayoutCenter, isLayoutRight, layout, paddingHorizontal, paddingVertical, parentItem |
| Constructor Summary | |
|---|---|
CarouselContainerView()
|
|
| Method Summary | |
|---|---|
protected void |
initContent(Item parentContainerItem,
int firstLineWidth,
int lineWidth)
Initialises this item. |
protected void |
initItemArrangement(int lineWidth,
Item[] myItems,
int length,
int maxWidth,
int maxHeight)
Arranges the items in this view. |
protected void |
paintItem(Item item,
int index,
int x,
int y,
int leftBorder,
int rightBorder,
int clipX,
int clipY,
int clipWidth,
int clipHeight,
javax.microedition.lcdui.Graphics g)
Paints this item at the specified position. |
protected void |
setStyle(Style style)
Sets the style for this view. |
| Methods inherited from class de.enough.polish.ui.containerviews.FishEyeContainerView |
|---|
animate, calculateCurrent, defocus, focus, focusItem, getDistance, getScaleFactor, paintContent, releaseResources |
| Methods inherited from class de.enough.polish.ui.ContainerView |
|---|
focusItem, focusItem, getItemRelativeY, getNextFocusableItem, getNextItem, getParentRelativeY, getScreen, handleKeyPressed, isInBottomRow, isLayoutExpand, isValid, paintContent, scroll, shiftFocus, showNotify |
| Methods inherited from class de.enough.polish.ui.ItemView |
|---|
addFullRepaintRegion, animate, handleKeyReleased, handlePointerPressed, handlePointerReleased, hideNotify, initContentByParent, notifyItemPressedEnd, notifyItemPressedStart, paintBackground, paintBorder, paintContentByParent, removeItemBackground, removeItemBorder, removeParentBackground, removeParentBorder, removeViewFromParent, requestInit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CarouselContainerView()
| Method Detail |
|---|
protected void initItemArrangement(int lineWidth,
Item[] myItems,
int length,
int maxWidth,
int maxHeight)
FishEyeContainerView
initItemArrangement in class FishEyeContainerViewlineWidth - the available line widthmyItems - all itemslength - the number of itemsmaxWidth - the maximum width of one itemmaxHeight - the maximum height of one item
protected void initContent(Item parentContainerItem,
int firstLineWidth,
int lineWidth)
ContainerView
initContent in class FishEyeContainerViewparentContainerItem - the Container which uses this view, use parent.getItems() for retrieving all items.firstLineWidth - the maximum width of the first linelineWidth - the maximum width of any following linesItemView.contentWidth,
ItemView.contentHeightprotected void setStyle(Style style)
ContainerView
setStyle in class FishEyeContainerViewstyle - the style
protected void paintItem(Item item,
int index,
int x,
int y,
int leftBorder,
int rightBorder,
int clipX,
int clipY,
int clipWidth,
int clipHeight,
javax.microedition.lcdui.Graphics g)
ContainerView
paintItem in class FishEyeContainerViewitem - 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 context
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||