Package totalcross.ui.chart
Class ColumnChart
- java.lang.Object
-
- totalcross.ui.gfx.GfxSurface
-
- totalcross.ui.Control
-
- totalcross.ui.chart.Chart
-
- totalcross.ui.chart.ColumnChart
-
public class ColumnChart extends Chart
A vertical column chart.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class totalcross.ui.Control
Control.TranslucentShape
-
-
Field Summary
Fields Modifier and Type Field Description protected VectorcolumnsVector of columns rectanglesintperspectiveHPerspective horizontal distance.intperspectiveVPerspective vertical distance.-
Fields inherited from class totalcross.ui.chart.Chart
axisBackColor, axisForeColor, axisText, border, categoryMarkColor, categoryMarkIndex, clientRect, COLOR1, COLOR2, COLOR3, COLOR4, COLOR5, COLOR6, COLOR7, COLOR8, COLOR9, columnW, drawAxis, fillColor2, GRADIENT_DARK, GRADIENT_HORIZONTAL, GRADIENT_INVERT, GRADIENT_VERTICAL, IS_3D, legendPerspective, legendPosition, legendTextColor, legendValues, onlyShowCategories, series, showCategories, showCategoriesOnTick, showFirstYValue, showHGrids, showLegend, showTitle, showVGrids, showYValues, snapToBottom, snapToTop, title, type, UNSET, use2ndColorEveryXColumns, xAxisCategories, xAxisMaxValue, xAxisMinValue, xAxisSteps, xAxisX1, xAxisX2, xDecimalPlaces, yAxisMaxValue, yAxisMinValue, yAxisSteps, yAxisY1, yAxisY2, yDecimalPlaces, yValuesSize
-
Fields inherited from class totalcross.ui.Control
AFTER, alphaValue, appId, appObj, asContainer, asWindow, backColor, BEFORE, BOTTOM, BOTTOM_OF, BRIGHTER_BACKGROUND, callListenersOnAllTargets, CENTER, CENTER_OF, clearValueInt, clearValueStr, DARKER_BACKGROUND, effect, enableUpdateScreen, esce, eventsEnabled, FILL, fillColor, FIT, fm, fmH, focusHandler, focusLess, focusOnPenDown, focusTraversable, font, FONTSIZE, foreColor, height, ignoreInsets, isHighlighting, isTablet, KEEP, keepDisabled, keepEnabled, LEFT, nextTabControl, offscreen, offscreen0, onEventFirst, parent, PARENTSIZE, PARENTSIZEMAX, PARENTSIZEMIN, PREFERRED, RANGE, repositionAllowed, RIGHT, RIGHT_OF, SAME, SCREENSIZE, SCREENSIZEMAX, SCREENSIZEMIN, setFont, setH, setRel, setW, setX, setY, tempW, textShadowColor, TOP, translucentShape, transparentBackground, uiAdjustmentsBasedOnFontHeightIsSupported, uiAndroid, UICONST, uiFlat, uiHolo, uiMaterial, uiVista, visible, width, WILL_RESIZE, x, y
-
-
Constructor Summary
Constructors Constructor Description ColumnChart(int type, java.lang.String[] categories)Creates a new column chartColumnChart(java.lang.String[] categories)Creates a new 2D column chart
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonEvent(Event e)Called to process key, pen, control and other posted events.voidonPaint(Graphics g)Called to draw the control.-
Methods inherited from class totalcross.ui.chart.Chart
draw, drawTextBox, getCustomInsets, getTitle, getXValuePos, getYValuePos, setTitle, setXAxis, setXAxis, setYAxis
-
Methods inherited from class totalcross.ui.Control
_onEvent, addEnabledStateListener, addFocusListener, addGridListener, addHighlightListener, addKeyListener, addListContainerListener, addMouseListener, addMultiTouchListener, addPenListener, addPressListener, addPushNotificationListener, addTimer, addTimer, addTimerListener, addWindowListener, bringToFront, changeHighlighted, clear, contains, drawTranslucentBackground, getAbsoluteRect, getBackColor, getEffectH, getEffectW, getEffectX, getEffectY, getEventListeners, getFont, getForeColor, getGap, getGraphics, getHeight, getNext, getParent, getParentWindow, getPos, getPreferredHeight, getPreferredWidth, getPressedEvent, getPrev, getRect, getSize, getTextShadowColor, getWidth, getX, getX2, getY, getY2, hadParentScrolled, handleGeographicalFocusChangeKeys, hasFocus, internalSetEnabled, intXYWH, isActionEvent, isChildOf, isDisplayed, isEnabled, isInsideOrNear, isObscured, isTopMost, isVisible, isVisibleAndInside, onBoundsChanged, onColorsChanged, onFontChanged, onWindowPaintFinished, post, postEvent, postPressedEvent, releaseScreenShot, removeEnabledStateListener, removeFocusListener, removeGridListener, removeHighlightListener, removeKeyListener, removeListContainerListener, removeMouseListener, removeMultiTouchListener, removePenListener, removePressListener, removePushNotificationListener, removeTimer, removeTimerListener, removeWindowListener, repaint, repaintNow, reposition, reposition, repositionChildren, requestFocus, resetSetPositions, safeRepaintNow, safeUpdateScreen, sendToBack, setBackColor, setBackForeColors, setEnabled, setFocusLess, setFont, setForeColor, setRect, setRect, setRect, setRect, setSet, setTextShadowColor, setTranslucent, setVisible, showTip, takeInitialScreenShot, takeScreenShot, translateFromOrigin, uiStyleChanged, updateScreen, updateTemporary, willOpenKeyboard
-
-
-
-
Field Detail
-
columns
protected Vector columns
Vector of columns rectangles
-
perspectiveH
public int perspectiveH
Perspective horizontal distance.
-
perspectiveV
public int perspectiveV
Perspective vertical distance.
-
-
Constructor Detail
-
ColumnChart
public ColumnChart(java.lang.String[] categories)
Creates a new 2D column chart- Parameters:
categories- The categories that will be used
-
ColumnChart
public ColumnChart(int type, java.lang.String[] categories)Creates a new column chart- Parameters:
type- the chart's type (2D or 3D)categories- The categories that will be used- See Also:
Chart.type
-
-