de.enough.polish.ui.gaugeviews
Class RecLineGaugeView
java.lang.Object
de.enough.polish.ui.ItemView
de.enough.polish.ui.gaugeviews.RecLineGaugeView
- All Implemented Interfaces:
- Serializable
public class RecLineGaugeView
- extends ItemView
|
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)
Determines whether this view is valid for the given item. |
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. |
| 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 |
RecLineGaugeView
public RecLineGaugeView()
animate
public boolean animate()
- Description copied from class:
ItemView
- Animates this view - please use animate(long, ClippingRegion) instead, if possible
- Overrides:
animate in class ItemView
- Returns:
- true when the view was actually animated.
- See Also:
ItemView.animate(long, ClippingRegion)
initContent
protected void initContent(Item parent,
int firstLineWidth,
int lineWidth)
- Description copied from class:
ItemView
- Initialises this item view.
The implementation needs to calculate and set the contentWidth and
contentHeight fields.
The implementation should take the fields preferredWidth and preferredHeight
into account.
- Specified by:
initContent in class ItemView
- Parameters:
parent - the parent itemfirstLineWidth - the maximum width of the first linelineWidth - the maximum width of any following lines- See Also:
ItemView.contentWidth,
ItemView.contentHeight
paintContent
protected void paintContent(Item parent,
int x,
int y,
int leftBorder,
int rightBorder,
javax.microedition.lcdui.Graphics g)
- Description copied from class:
ItemView
- Paints this item view.
- Specified by:
paintContent in class ItemView
- Parameters:
parent - 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.
setStyle
protected void setStyle(Style style)
- Description copied from class:
ItemView
- Sets the style for this view.
The style can include additional parameters for the view.
Subclasses should call super.setStyle(style) first.
- Overrides:
setStyle in class ItemView
- Parameters:
style - the style
isValid
protected boolean isValid(Item parent,
Style style)
- Determines whether this view is valid for the given item.
- Overrides:
isValid in class ItemView
- Parameters:
parent - the parent itemstyle - the style
- Returns:
- true when this view can be applied