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 class
ChartView.Category
Represents a chart category.class
ChartView.CategorySequence
Internal class for managing the chart's category list.static class
ChartView.Element
Represents an element of a chart, such as a bar or a pie wedge.static interface
ChartView.Skin
Chart 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<?>
chartData
static java.lang.String
DEFAULT_SERIES_NAME_KEY
static java.lang.String
PROVIDER_NAME
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChartView.CategorySequence
getCategories()
List<?>
getChartData()
ListenerList<ChartViewCategoryListener>
getChartViewCategoryListeners()
ListenerList<ChartViewListener>
getChartViewListeners()
ListenerList<ChartViewSeriesListener>
getChartViewSeriesListeners()
ChartView.Element
getElementAt(int x, int y)
java.lang.String
getHorizontalAxisLabel()
java.lang.String
getSeriesNameKey()
boolean
getShowLegend()
java.lang.String
getTitle()
List<ValueMarker>
getValueMarkers()
java.lang.String
getVerticalAxisLabel()
protected void
installSkin(java.lang.Class<? extends Component> componentClass)
Installs the skin for the given component class, as defined by the current theme.void
setChartData(List<?> chartData)
void
setHorizontalAxisLabel(java.lang.String horizontalAxisLabel)
void
setSeriesNameKey(java.lang.String seriesNameKey)
void
setShowLegend(boolean showLegend)
void
setTitle(java.lang.String title)
void
setValueMarkers(List<ValueMarker> valueMarkers)
void
setVerticalAxisLabel(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:Component
Installs the skin for the given component class, as defined by the current theme.- Overrides:
installSkin
in 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)
-
-