org.moxieapps.gwt.highcharts.client.labels
Class DataLabels

java.lang.Object
  extended by org.moxieapps.gwt.highcharts.client.Configurable<T>
      extended by org.moxieapps.gwt.highcharts.client.labels.Labels<T>
          extended by org.moxieapps.gwt.highcharts.client.labels.BaseDataLabels<DataLabels>
              extended by org.moxieapps.gwt.highcharts.client.labels.DataLabels

public class DataLabels
extends BaseDataLabels<DataLabels>

A simple configurable class that can be used to represent custom data label display options, which can then be set as the default data label display approach which can then be applied to a PlotOptions (via the PlotOptions.setDataLabels(org.moxieapps.gwt.highcharts.client.labels.DataLabels) method).

Note that PlotOptions can then be applied either to the entire chart (via the BaseChart.setSeriesPlotOptions(org.moxieapps.gwt.highcharts.client.plotOptions.SeriesPlotOptions) method), or to a specific data series (via the Series.setPlotOptions(PlotOptions) method).

Example usage:

   chart.setSeriesPlotOptions(
     new SeriesPlotOptions()
       .setDataLabels(
           new DataLabels()
              .setEnabled(true)
              .setAlign(Labels.Align.CENTER)
              .setColor("#CC0000")
       )
   );
 

Since:
1.0.0
Author:
squinn@moxiegroup.com (Shawn Quinn)

Nested Class Summary
 
Nested classes/interfaces inherited from class org.moxieapps.gwt.highcharts.client.labels.Labels
Labels.Align, Labels.VerticalAlign
 
Constructor Summary
DataLabels()
           
 
Method Summary
 
Methods inherited from class org.moxieapps.gwt.highcharts.client.labels.BaseDataLabels
getFormatter, setBackgroundColor, setBorderColor, setBorderRadius, setBorderWidth, setFormat, setFormatter, setPadding, setShadow, setUseHTML
 
Methods inherited from class org.moxieapps.gwt.highcharts.client.labels.Labels
setAlign, setColor, setEnabled, setRotation, setStyle, setVerticalAlign, setX, setY
 
Methods inherited from class org.moxieapps.gwt.highcharts.client.Configurable
getOptions, setOption
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataLabels

public DataLabels()


Copyright © 2015. All Rights Reserved.