echopoint.google.chart
Class ScatterPlot<N extends Number>
java.lang.Object
nextapp.echo.app.Component
echopoint.internal.AbstractContainer
echopoint.google.chart.internal.AbstractChart<N>
echopoint.google.chart.internal.SimpleChart<N>
echopoint.google.chart.internal.AdvancedChart<N>
echopoint.google.chart.ScatterPlot<N>
- All Implemented Interfaces:
- Serializable, RenderIdSupport
public class ScatterPlot<N extends Number>
- extends AdvancedChart<N>
Component wrapper for a
Scatter Plot
provided by Google Chart
API.
The following code shows sample use of this component:
import echopoint.google.chart.ScatterPlot;
import echopoint.google.chart.model.ChartData;
...
final ChartData<Integer> data = new ChartData<Integer>();
final Integer[] array = new Integer[] { 0, 30, 60, 70, 90, 95, 100 };
final List xdata = Arrays.asList( array );
final int xmax = 120;
final Integer[] ydata = { 20, 30, 40, 50, 60, 70, 80 };
final Integer[] size = { 1, 2, 3, 4, 5, 6, 7 };
data.setXdata( xdata );
data.setXmax( xmax );
data.setYdata( Arrays.asList( ydata ) );
data.setSize( Arrays.asList( size ) );
final ScatterPlot<Integer> chart = new ScatterPlot<Integer>();
final ArrayList<ChartData<Integer>> collection = new ArrayList<ChartData<Integer>>();
collection.add( data );
chart.setData( collection );
- Version:
- $Id: ScatterPlot.java 64 2008-09-01 11:28:02Z sptrakesh $
- Author:
- Rakesh Vidyadharan 2008-08-23
- See Also:
- Serialized Form
| Fields inherited from class nextapp.echo.app.Component |
CHILD_VISIBLE_CHANGED_PROPERTY, CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FOCUS_NEXT_ID_CHANGED_PROPERTY, FOCUS_PREVIOUS_ID_CHANGED_PROPERTY, LAYOUT_DIRECTION_CHANGED_PROPERTY, LOCALE_CHANGED_PROPERTY, PROPERTY_BACKGROUND, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_LAYOUT_DATA, STYLE_CHANGED_PROPERTY, STYLE_NAME_CHANGED_PROPERTY, VISIBLE_CHANGED_PROPERTY |
| Methods inherited from class echopoint.google.chart.internal.AdvancedChart |
getAxisLabels, getAxisRanges, getAxisStyles, getAxisType, getFillArea, getGridLines, getLabelPositions, getLineStyles, getRangeMarkers, setAxisLabels, setAxisRanges, setAxisStyles, setAxisType, setFillArea, setGridLines, setLabelPositions, setLineStyles, setRangeMarkers |
| Methods inherited from class echopoint.internal.AbstractContainer |
addActionListener, fireActionPerformed, getAlignment, getBackgroundImage, getBorder, getHeight, getInsets, getWidth, hasActionListeners, removeActionListener, setAlignment, setBackgroundImage, setBorder, setHeight, setInsets, setWidth |
| Methods inherited from class nextapp.echo.app.Component |
add, add, addPropertyChangeListener, addPropertyChangeListener, dispose, firePropertyChange, get, getApplicationInstance, getBackground, getComponent, getComponent, getComponentCount, getComponents, getEventListenerList, getFocusNextId, getFocusPreviousId, getFont, getForeground, getId, getIndex, getLayoutData, getLayoutDirection, getLocale, getLocalStyle, getParent, getRenderId, getRenderIndexedProperty, getRenderIndexedProperty, getRenderLocale, getRenderProperty, getRenderProperty, getStyle, getStyleName, getVisibleComponent, getVisibleComponentCount, getVisibleComponents, hasEventListenerList, indexOf, init, isAncestorOf, isEnabled, isFocusTraversalParticipant, isRegistered, isRenderEnabled, isRenderVisible, isValidParent, isVisible, processInput, remove, remove, removeAll, removePropertyChangeListener, removePropertyChangeListener, set, setBackground, setComponents, setEnabled, setFocusNextId, setFocusPreviousId, setFocusTraversalParticipant, setFont, setForeground, setId, setIndex, setLayoutData, setLayoutDirection, setLocale, setRenderId, setStyle, setStyleName, setVisible, validate, verifyInput, visibleIndexOf |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScatterPlot
public ScatterPlot()