de.enough.polish.ui.gaugeviews
Class RecLineGaugeView

java.lang.Object
  extended by de.enough.polish.ui.ItemView
      extended by de.enough.polish.ui.gaugeviews.RecLineGaugeView
All Implemented Interfaces:
Serializable

public class RecLineGaugeView
extends ItemView


Field Summary
 
Fields inherited from class de.enough.polish.ui.ItemView
contentHeight, contentWidth, isFocused, isLayoutCenter, isLayoutRight, layout, paddingHorizontal, paddingVertical, parentItem
 
Constructor Summary
RecLineGaugeView()
           
 
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
 

Constructor Detail

RecLineGaugeView

public RecLineGaugeView()
Method Detail

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 item
firstLineWidth - the maximum width of the first line
lineWidth - 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 item
x - the left start position
y - the upper start position
leftBorder - the left border, nothing must be painted left of this position
rightBorder - the right border, nothing must be painted right of this position
g - 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 item
style - the style
Returns:
true when this view can be applied