pivot.charts
Class ChartView

java.lang.Object
  extended by pivot.wtk.Component
      extended by pivot.charts.ChartView
All Implemented Interfaces:
ConstrainedVisual, Visual
Direct Known Subclasses:
AreaChartView, BarChartView, HighLowChartView, LineChartView, PieChartView

public abstract class ChartView
extends Component

Abstract base class for chart views.

Author:
gbrown

Nested Class Summary
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 pivot.wtk.Component
Component.Attributes, Component.ComponentDictionary, Component.DecoratorSequence, Component.StyleDictionary
 
Field Summary
static java.lang.String DEFAULT_SERIES_NAME_KEY
           
static java.lang.String PROVIDER_PROPERTY_NAME
           
 
Constructor Summary
ChartView()
           
ChartView(java.lang.String seriesNameKey, List<?> chartData)
           
 
Method Summary
 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()
           
 java.lang.String getVerticalAxisLabel()
           
protected  void installChartSkin(java.lang.Class<? extends ChartView> chartViewClass)
           
protected  void installSkin(java.lang.Class<? extends Component> componentClass)
          Installs the skin for the given component class, unless a subclass has defined a more specific skin.
 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 setVerticalAxisLabel(java.lang.String verticalAxisLabel)
           
 
Methods inherited from class pivot.wtk.Component
clearFocus, clearFocus, finalize, getAttributes, getBounds, getComponentClassListeners, getComponentDataListeners, getComponentDecoratorListeners, getComponentDragDropListeners, getComponentKeyListeners, getComponentLayoutListeners, getComponentListeners, getComponentMouseButtonListeners, getComponentMouseListeners, getComponentMouseWheelListeners, getComponents, getComponentStateListeners, getCursor, getDecoratedBounds, getDecorators, getDisplay, getDragSource, getDropTarget, getFocusedComponent, getHandle, getHeight, getLocation, getParent, getPreferredHeight, getPreferredHeight, getPreferredSize, getPreferredWidth, getPreferredWidth, getSize, getSkin, getStyles, getTooltipText, getUserData, getVisibleArea, getVisibleArea, getVisibleArea, getWidth, getWindow, getX, getY, invalidate, isBlocked, isDisplayable, isEnabled, isFocusable, isFocused, isMouseOver, isPreferredHeightSet, isPreferredSizeSet, isPreferredWidthSet, isShowing, isValid, isVisible, keyPressed, keyReleased, keyTyped, load, mapPointFromAncestor, mapPointToAncestor, mouseClick, mouseDown, mouseMove, mouseOut, mouseOver, mouseUp, mouseWheel, paint, repaint, repaint, repaint, repaint, repaint, repaint, requestFocus, requestFocus, scrollAreaToVisible, scrollAreaToVisible, setAttributes, setCursor, setCursor, setDisplayable, setDragSource, setDropTarget, setEnabled, setFocused, setLocation, setLocation, setParent, setPreferredHeight, setPreferredSize, setPreferredSize, setPreferredWidth, setSize, setSize, setSkin, setStyles, setStyles, setStyles, setTooltipText, setUserData, setVisible, store, toString, transferFocus, validate
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_SERIES_NAME_KEY

public static final java.lang.String DEFAULT_SERIES_NAME_KEY
See Also:
Constant Field Values

PROVIDER_PROPERTY_NAME

public static final java.lang.String PROVIDER_PROPERTY_NAME
See Also:
Constant Field Values
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, unless a subclass has defined a more specific skin. Any component that defines a custom skin class must call this method.

Overrides:
installSkin in class Component

installChartSkin

protected void installChartSkin(java.lang.Class<? extends ChartView> chartViewClass)

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()