Package org.apache.pivot.charts
Class ChartView
- java.lang.Object
-
- org.apache.pivot.wtk.Component
-
- org.apache.pivot.charts.ChartView
-
- All Implemented Interfaces:
ConstrainedVisual,Visual
- Direct Known Subclasses:
AreaChartView,BarChartView,HighLowChartView,HistogramView,LineChartView,PieChartView,PolarChartView,SingleValueChartView,SpiderWebView
@DefaultProperty("chartData") public abstract class ChartView extends Component
Abstract base class for chart views.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classChartView.CategoryRepresents a chart category.classChartView.CategorySequenceInternal class for managing the chart's category list.static classChartView.ElementRepresents an element of a chart, such as a bar or a pie wedge.static interfaceChartView.SkinChart view skin interface.-
Nested classes/interfaces inherited from class org.apache.pivot.wtk.Component
Component.DecoratorSequence, Component.StyleDictionary, Component.UserDataDictionary
-
-
Field Summary
Fields Modifier and Type Field Description protected List<?>chartDatastatic java.lang.StringDEFAULT_SERIES_NAME_KEYstatic java.lang.StringPROVIDER_NAME
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChartView.CategorySequencegetCategories()List<?>getChartData()ListenerList<ChartViewCategoryListener>getChartViewCategoryListeners()ListenerList<ChartViewListener>getChartViewListeners()ListenerList<ChartViewSeriesListener>getChartViewSeriesListeners()ChartView.ElementgetElementAt(int x, int y)java.lang.StringgetHorizontalAxisLabel()java.lang.StringgetSeriesNameKey()booleangetShowLegend()java.lang.StringgetTitle()List<ValueMarker>getValueMarkers()java.lang.StringgetVerticalAxisLabel()protected voidinstallSkin(java.lang.Class<? extends Component> componentClass)Installs the skin for the given component class, as defined by the current theme.voidsetChartData(List<?> chartData)voidsetHorizontalAxisLabel(java.lang.String horizontalAxisLabel)voidsetSeriesNameKey(java.lang.String seriesNameKey)voidsetShowLegend(boolean showLegend)voidsetTitle(java.lang.String title)voidsetValueMarkers(List<ValueMarker> valueMarkers)voidsetVerticalAxisLabel(java.lang.String verticalAxisLabel)-
Methods inherited from class org.apache.pivot.wtk.Component
checkSkin, clear, clearFocus, contains, copyStyle, copyStyle, getAncestor, getAncestor, getAttribute, getAutomationID, getBaseline, getBaseline, getBounds, getComponentClassListeners, getComponentDataListeners, getComponentDecoratorListeners, getComponentKeyListeners, getComponentListeners, getComponentMouseButtonListeners, getComponentMouseListeners, getComponentMouseWheelListeners, getComponentStateListeners, getComponentStyleListeners, getComponentTooltipListeners, getCursor, getDecoratedBounds, getDecorators, getDisplay, getDragSource, getDropTarget, getFocusedComponent, getGraphics, getHeight, getHeightLimits, getLocation, getMaximumHeight, getMaximumWidth, getMenuHandler, getMinimumHeight, getMinimumWidth, getMouseLocation, getName, getNamedStyles, getParent, getPreferredHeight, getPreferredHeight, getPreferredSize, getPreferredWidth, getPreferredWidth, getScreenBounds, getSize, getSkin, getStyle, getStyle, getStyleBoolean, getStyleBoolean, getStyleColor, getStyleColor, getStyleFont, getStyleFont, getStyleInt, getStyleInt, getStyles, getTextInputMethodListener, getTooltipDelay, getTooltipText, getTooltipWrapText, getTypedStyles, getUserData, getVisibleArea, getVisibleArea, getVisibleArea, getWidth, getWidthLimits, getWindow, getX, getY, indexBoundsCheck, invalidate, isBlocked, isEnabled, isFocusable, isFocused, isMouseOver, isOpaque, isPreferredHeightSet, isPreferredSizeSet, isPreferredWidthSet, isShowing, isValid, isVisible, keyPressed, keyReleased, keyTyped, layout, load, mapPointFromAncestor, mapPointFromAncestor, mapPointToAncestor, mapPointToAncestor, mouseClick, mouseDown, mouseMove, mouseOut, mouseOver, mouseUp, mouseWheel, offsetToScreen, paint, putStyle, putStyle, reenterMouse, repaint, repaint, repaint, repaint, repaint, repaint, requestFocus, scrollAreaToVisible, scrollAreaToVisible, setAttribute, setAutomationID, setAutomationID, setCursor, setDragSource, setDropTarget, setEnabled, setFocused, setHeight, setHeightLimits, setHeightLimits, setLocation, setLocation, setMaximumHeight, setMaximumWidth, setMenuHandler, setMinimumHeight, setMinimumWidth, setName, setParent, setPreferredHeight, setPreferredSize, setPreferredSize, setPreferredWidth, setSize, setSize, setSkin, setStyleName, setStyleNames, setStyleNames, setStyles, setStyles, setTooltipDelay, setTooltipText, setTooltipWrapText, setVisible, setWidth, setWidthLimits, setWidthLimits, setX, setY, store, toString, transferFocus, validate
-
-
-
-
Field Detail
-
chartData
protected List<?> chartData
-
DEFAULT_SERIES_NAME_KEY
public static final java.lang.String DEFAULT_SERIES_NAME_KEY
- See Also:
- Constant Field Values
-
PROVIDER_NAME
public static final java.lang.String PROVIDER_NAME
-
-
Constructor Detail
-
ChartView
public ChartView()
-
ChartView
public ChartView(java.lang.String seriesNameKey, List<?> chartData)
-
-
Method Detail
-
installSkin
protected void installSkin(java.lang.Class<? extends Component> componentClass)
Description copied from class:ComponentInstalls the skin for the given component class, as defined by the current theme.- Overrides:
installSkinin classComponent- Parameters:
componentClass- Pivot component class for which to install the skin.
-
getCategories
public ChartView.CategorySequence getCategories()
-
getChartData
public List<?> getChartData()
-
setChartData
public void setChartData(List<?> chartData)
-
getSeriesNameKey
public java.lang.String getSeriesNameKey()
-
setSeriesNameKey
public void setSeriesNameKey(java.lang.String seriesNameKey)
-
getTitle
public java.lang.String getTitle()
-
setTitle
public void setTitle(java.lang.String title)
-
getHorizontalAxisLabel
public java.lang.String getHorizontalAxisLabel()
-
setHorizontalAxisLabel
public void setHorizontalAxisLabel(java.lang.String horizontalAxisLabel)
-
getVerticalAxisLabel
public java.lang.String getVerticalAxisLabel()
-
setVerticalAxisLabel
public void setVerticalAxisLabel(java.lang.String verticalAxisLabel)
-
getShowLegend
public boolean getShowLegend()
-
setShowLegend
public void setShowLegend(boolean showLegend)
-
getElementAt
public ChartView.Element getElementAt(int x, int y)
-
getChartViewListeners
public ListenerList<ChartViewListener> getChartViewListeners()
-
getChartViewCategoryListeners
public ListenerList<ChartViewCategoryListener> getChartViewCategoryListeners()
-
getChartViewSeriesListeners
public ListenerList<ChartViewSeriesListener> getChartViewSeriesListeners()
-
getValueMarkers
public List<ValueMarker> getValueMarkers()
-
setValueMarkers
public void setValueMarkers(List<ValueMarker> valueMarkers)
-
-