|
||||||||||
| 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.gaugeviews.CyclingIconsGaugeView
public class CyclingIconsGaugeView
Shows an animation of cyclic aligned icons for visualizing an CONTINUOUS_RUNNING indefinite gauge.
Copyright Enough Software 2007 - 2010
history
Aug 30, 2007 - asc 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 | |
|---|---|
CyclingIconsGaugeView()
|
|
| Method Summary | |
|---|---|
void |
animate(long currentTime,
ClippingRegion repaintRegion)
Animates this item. |
Image |
getCenterImage(int startIndex,
Graphics g,
int i)
|
protected void |
initContent(Item parent,
int firstLineWidth,
int availWidth,
int availHeight)
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,
Graphics g)
Paints this item view. |
protected void |
setStyle(Style style)
Sets the style for this view. |
protected void |
setStyle(Style style,
boolean resetStyle)
Sets the style for this view and is used to specify animatable CSS attribute. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CyclingIconsGaugeView()
| Method Detail |
|---|
protected void initContent(Item parent,
int firstLineWidth,
int availWidth,
int availHeight)
ItemView
initContent in class ItemViewparent - the parent itemfirstLineWidth - the maximum width of the first lineavailWidth - the maximum width of the viewavailHeight - the maximum height of the viewItemView.contentWidth,
ItemView.contentHeightprotected void setStyle(Style style)
ItemView
setStyle in class ItemViewstyle - the style
protected void setStyle(Style style,
boolean resetStyle)
ItemView
setStyle in class ItemViewstyle - the styleresetStyle - true when default style settings should be applied when nothing is set
public void animate(long currentTime,
ClippingRegion repaintRegion)
ItemView
animate in class ItemViewcurrentTime - the current time in millisecondsrepaintRegion - the repaint area that needs to be updated when this item is animatedItem.getAbsoluteX(),
Item.getAbsoluteY()
protected void paintContent(Item parent,
int x,
int y,
int leftBorder,
int rightBorder,
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.
public Image getCenterImage(int startIndex,
Graphics g,
int i)
protected boolean isValid(Item parent,
Style style)
isValid in class ItemViewparent - the parent itemstyle - the style
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||