|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnextapp.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.BarChart<N>
public class BarChart<N extends Number>
Component wrapper for a Bar chart provided by Google Chart API.
The following code shows sample use of this component:
import echopoint.google.chart.BarChart;
import echopoint.google.chart.model.ChartData;
...
final ChartData<Integer> data = new ChartData<Integer>();
final Integer[] array = new Integer[] { 30,60,70,90,95,110 };
final List<Integer> xdata = Arrays.asList( array );
final int xmax = 120;
data.setXdata( xdata );
data.setXmax( xmax );
final BarChart<Integer> chart = new BarChart<Integer>();
chart.setOrientation( BarChart.Orientation.bhg );
final ArrayList<ChartData<Integer>> collection = new ArrayList<ChartData<Integer>>();
collection.add( data );
chart.setData( collection );
| Nested Class Summary | |
|---|---|
static class |
BarChart.Orientation
Enumeration for orientation types supported by bar charts. |
| Field Summary | |
|---|---|
static String |
PROPERTY_ORIENTATION
The property that is used to specify the orientation type for the chart. |
static String |
PROPERTY_SIZE
The property used to configure the special bar chart width and size. |
static String |
PROPERTY_ZERO_LINE
The property used to configure the zero line for the chart. |
| Fields inherited from class echopoint.google.chart.internal.AdvancedChart |
|---|
PROPERTY_AXIS_LABELS, PROPERTY_AXIS_RANGES, PROPERTY_AXIS_STYLES, PROPERTY_AXIS_TYPE, PROPERTY_FILL_AREA, PROPERTY_GRID_LINES, PROPERTY_LABEL_POSITIONS, PROPERTY_LINE_STYLES, PROPERTY_RANGE_MARKERS |
| Fields inherited from class echopoint.google.chart.internal.SimpleChart |
|---|
PROPERTY_LEGEND_POSITION |
| Fields inherited from class echopoint.google.chart.internal.AbstractChart |
|---|
PROPERTY_ALT, PROPERTY_DATA, PROPERTY_FILL, PROPERTY_TITLE |
| Fields inherited from class echopoint.internal.AbstractContainer |
|---|
ACTION_COMMAND_PROPERTY, ACTION_LISTENERS_CHANGED_PROPERTY, INPUT_ACTION, PROPERTY_ALIGNMENT, PROPERTY_BACKGROUND_IMAGE, PROPERTY_BORDER, PROPERTY_HEIGHT, PROPERTY_INSETS, PROPERTY_WIDTH |
| Constructor Summary | |
|---|---|
BarChart()
|
|
| Method Summary | |
|---|---|
BarChart.Orientation |
getOrientation()
Return the value of the PROPERTY_ORIENTATION property. |
String |
getSize()
Return the value of the PROPERTY_SIZE property. |
String |
getZeroLine()
Return the value of the PROPERTY_ZERO_LINE property. |
void |
setOrientation(BarChart.Orientation orientation)
Set the value of the PROPERTY_ORIENTATION property. |
void |
setSize(BarChartSize size)
Set the value of the PROPERTY_SIZE property using the model
object that encapsulates bar chart size. |
void |
setSize(String size)
Set the value of the PROPERTY_SIZE property. |
void |
setZeroLine(double zeroLine)
Set the value of the PROPERTY_ZERO_LINE property. |
void |
setZeroLine(String zeroLine)
Set the value of the PROPERTY_ZERO_LINE 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.google.chart.internal.SimpleChart |
|---|
getLegendPosition, setLegendPosition |
| Methods inherited from class echopoint.google.chart.internal.AbstractChart |
|---|
getAlt, getData, getFill, getTitle, isValidChild, setAlt, setData, setData, setFill, setTitle |
| 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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROPERTY_ORIENTATION
public static final String PROPERTY_SIZE
public static final String PROPERTY_ZERO_LINE
| Constructor Detail |
|---|
public BarChart()
| Method Detail |
|---|
public BarChart.Orientation getOrientation()
PROPERTY_ORIENTATION property.
public void setOrientation(BarChart.Orientation orientation)
PROPERTY_ORIENTATION property.
orientation - The value of the property to set.public String getSize()
PROPERTY_SIZE property.
public void setSize(String size)
PROPERTY_SIZE property. This property
is best styled.
size - The value to set.public void setSize(BarChartSize size)
PROPERTY_SIZE property using the model
object that encapsulates bar chart size.
size - The value to set.setSize( String )public String getZeroLine()
PROPERTY_ZERO_LINE property.
public void setZeroLine(String zeroLine)
PROPERTY_ZERO_LINE property. This property
may be styled.
zeroLine - The value to set.public void setZeroLine(double zeroLine)
PROPERTY_ZERO_LINE property. This property
may be styled.
zeroLine - The value to set.
|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||