|
||||||||||
| 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.clockviews.BinaryTextClockView
public class BinaryTextClockView
Visualizes the clock as a binary string, e.g. 101:111 instead of 4:11.
Copyright Enough Software 2007 - 2008
history
May 30, 2007 - rob creation
| Field Summary | |
|---|---|
protected java.util.Calendar |
calendar
|
protected ClockItem |
clockItem
|
protected StringItem |
clockText
|
protected java.util.Date |
date
|
protected long |
lastTimeUpdate
|
| Fields inherited from class de.enough.polish.ui.ItemView |
|---|
contentHeight, contentWidth, isFocused, isLayoutCenter, isLayoutRight, layout, paddingHorizontal, paddingVertical, parentItem |
| Constructor Summary | |
|---|---|
BinaryTextClockView()
Creates a new item view. |
|
| Method Summary | |
|---|---|
boolean |
animate()
Animates this view - please use animate(long, ClippingRegion) instead, if possible |
protected void |
initContent(Item parent,
int firstLineWidth,
int lineWidth)
Initialises this item view. |
protected boolean |
isValid(Item parent,
Style style)
Implementation that are valid only for specific item classes can override this method so that they cannot be accidently attached to unsupported classes. |
protected void |
paintContent(Item parent,
int x,
int y,
int leftBorder,
int rightBorder,
javax.microedition.lcdui.Graphics g)
Paints this item view. |
protected void |
setStyle(Style style)
Sets the style for this view. |
protected java.lang.String |
updateTime(long time)
Updates the shown time. |
| Methods inherited from class de.enough.polish.ui.ItemView |
|---|
addFullRepaintRegion, animate, defocus, focus, getScreen, handleKeyPressed, handleKeyReleased, handlePointerPressed, handlePointerReleased, hideNotify, initContentByParent, notifyItemPressedEnd, notifyItemPressedStart, paintBackground, paintBorder, paintContentByParent, releaseResources, removeItemBackground, removeItemBorder, removeParentBackground, removeParentBorder, removeViewFromParent, requestInit, showNotify |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final transient java.util.Date date
protected final transient java.util.Calendar calendar
protected final transient StringItem clockText
protected transient long lastTimeUpdate
protected transient ClockItem clockItem
| Constructor Detail |
|---|
public BinaryTextClockView()
| Method Detail |
|---|
public boolean animate()
ItemView
animate in class ItemViewItemView.animate(long, ClippingRegion)
protected void initContent(Item parent,
int firstLineWidth,
int lineWidth)
ItemView
initContent in class ItemViewparent - the parent itemfirstLineWidth - the maximum width of the first linelineWidth - the maximum width of any following linesItemView.contentWidth,
ItemView.contentHeightprotected java.lang.String updateTime(long time)
time - the currently shown time
protected void paintContent(Item parent,
int x,
int y,
int leftBorder,
int rightBorder,
javax.microedition.lcdui.Graphics g)
ItemView
paintContent in class ItemViewparent - the parent itemx - the left start positiony - the upper start positionleftBorder - the left border, nothing must be painted left of this positionrightBorder - the right border, nothing must be painted right of this positiong - the Graphics on which this item should be painted.
protected boolean isValid(Item parent,
Style style)
ItemView
isValid in class ItemViewparent - the parent itemstyle - the style
protected void setStyle(Style style)
ItemView
setStyle in class ItemViewstyle - the style
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||