de.enough.polish.ui.chartviews
Class PieChartView
java.lang.Object
de.enough.polish.ui.ItemView
de.enough.polish.ui.chartviews.PieChartView
- All Implemented Interfaces:
- Serializable
public class PieChartView
- extends ItemView
Visualizes the chart as a pie chart.
Copyright Enough Software 2007 - 2008
history
Jul 19, 2007 - asc creation
- Author:
- Andre Schmidt, j2mepolish@enough.de
|
Method Summary |
protected void |
initContent(Item parent,
int firstLineWidth,
int lineWidth)
Initialises this item view. |
protected void |
paintContent(Item parent,
int x,
int y,
int leftBorder,
int rightBorder,
javax.microedition.lcdui.Graphics g)
Paints this item view. |
| Methods inherited from class de.enough.polish.ui.ItemView |
addFullRepaintRegion, animate, animate, defocus, focus, getScreen, handleKeyPressed, handleKeyReleased, handlePointerPressed, handlePointerReleased, hideNotify, initContentByParent, isValid, notifyItemPressedEnd, notifyItemPressedStart, paintBackground, paintBorder, paintContentByParent, releaseResources, removeItemBackground, removeItemBorder, removeParentBackground, removeParentBorder, removeViewFromParent, requestInit, setStyle, showNotify |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PieChartView
public PieChartView()
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.