本文整理汇总了Java中com.googlecode.wickedcharts.highcharts.options.VerticalAlignment类的典型用法代码示例。如果您正苦于以下问题:Java VerticalAlignment类的具体用法?Java VerticalAlignment怎么用?Java VerticalAlignment使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
VerticalAlignment类属于com.googlecode.wickedcharts.highcharts.options包,在下文中一共展示了VerticalAlignment类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: createChartValue
import com.googlecode.wickedcharts.highcharts.options.VerticalAlignment; //导入依赖的package包/类
private WickedChart createChartValue(String title, List<String> titles, List<Number> values, Number min, Number max) {
Options options = new Options();
options.setChartOptions(new ChartOptions().setType(SeriesType.COLUMN));
options.setTitle(new Title(title));
options.setxAxis(new Axis().setCategories(titles));
options.setyAxis(new Axis().setMin(min).setMax(max));
options.setLegend(
new Legend()
.setLayout(LegendLayout.VERTICAL)
.setBackgroundColor(new HexColor("#FFFFFF"))
.setAlign(HorizontalAlignment.LEFT)
.setVerticalAlign(VerticalAlignment.TOP).setX(100).setY(70).setFloating(Boolean.TRUE).setShadow(Boolean.TRUE));
options.setTooltip(
new Tooltip().setFormatter(new Function().setFunction(" return ''+ this.x +': '+ this.y;")));
options.setPlotOptions(
new PlotOptionsChoice()
.setColumn(new PlotOptions().setPointPadding(0.2f).setBorderWidth(0)));
Series<Number> setData = new SimpleSeries().setName("Value").setData(values);
options.addSeries(setData);
return new WickedChart(options);
}
开发者ID:isisaddons-legacy,项目名称:isis-wicket-wickedcharts,代码行数:29,代码来源:CollectionContentsAsSummaryCharts.java
示例2: getBuildHistoryOptions
import com.googlecode.wickedcharts.highcharts.options.VerticalAlignment; //导入依赖的package包/类
private Options getBuildHistoryOptions(int limitingNumber){
Options options = new Options();
String title = "Build History";
options.setChartOptions(new ChartOptions().setPlotBackgroundColor(new NullColor()).setPlotBorderWidth(null)
.setHeight(250).setPlotShadow(Boolean.FALSE));
options.setTitle(new Title(title));
options.setSubtitle(new Title(projectName));
options.setPlotOptions(new PlotOptionsChoice().setPie(new PlotOptions().setAllowPointSelect(Boolean.FALSE).setCursor(
Cursor.POINTER)));
Series<Number> history = new SimpleSeries();
history.setType(SeriesType.AREA);
history.setName(title);
// TODO:
// y-axis: load BuildStatus from last100Builds here --> PLEASE OPTIMIZE HERE!
// add the correct labels on the axes (0 = stable, 1=unstable, 2=broken, 3=Unknown
// add the correct BuildNumber on the x-axis (not 0-99, but 634-734)
List<Number> data = new ArrayList<>();
List<String> yAxisLabels = new ArrayList<>();
List<String> xAxisLabels = new ArrayList<>();
int counter = 0;
for (Map.Entry<Number, String> e : sortedLast100Builds) {
if(counter <= limitingNumber){ //make sure the counter is smaller than limiting number
if (e.getValue().toLowerCase().equals("stable")) {
data.add(0);
} else if (e.getValue().toLowerCase().equals("unstable")) {
data.add(1);
} else if (e.getValue().toLowerCase().equals("broken")) {
data.add(2);
} else {
data.add(3);
}
xAxisLabels.add(String.valueOf(e.getKey()));
counter++;
}
}
history.setData(data);
// Numbers on xAxis
Axis xAxis = new Axis();
xAxis.setType(AxisType.DATETIME);
xAxis.setCategories(xAxisLabels);
xAxis.setLabels(new Labels().setVerticalAlign(VerticalAlignment.BOTTOM)
.setStyle(new CssStyle().setProperty("font-size", "10px").setProperty("font-family", "Verdana, sans-serif")));
options.setxAxis(xAxis);
// Labels as String on yAxis
yAxisLabels.add("stable");
yAxisLabels.add("unstable");
yAxisLabels.add("broken");
yAxisLabels.add("out-of-scope");
Axis yAxis = new Axis();
yAxis.setType(AxisType.DATETIME);
yAxis.setCategories(yAxisLabels);
yAxis.setLabels(new Labels().setVerticalAlign(VerticalAlignment.BOTTOM)
.setStyle(new CssStyle().setProperty("font-size", "10px").setProperty("font-family", "Verdana, sans-serif")));
options.setyAxis(yAxis);
options.addSeries(history);
return options;
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:67,代码来源:JenkinsWidgetView.java
示例3: getVerticalAlign
import com.googlecode.wickedcharts.highcharts.options.VerticalAlignment; //导入依赖的package包/类
public VerticalAlignment getVerticalAlign() {
return this.verticalAlign;
}
开发者ID:PkayJava,项目名称:pluggable,代码行数:4,代码来源:Position.java
示例4: setVerticalAlign
import com.googlecode.wickedcharts.highcharts.options.VerticalAlignment; //导入依赖的package包/类
public Position setVerticalAlign(final VerticalAlignment verticalAlign) {
this.verticalAlign = verticalAlign;
return this;
}
开发者ID:PkayJava,项目名称:pluggable,代码行数:5,代码来源:Position.java
示例5: createOptions
import com.googlecode.wickedcharts.highcharts.options.VerticalAlignment; //导入依赖的package包/类
Options createOptions() {
Options options = new Options();
options.setChartOptions(new ChartOptions().setType(SeriesType.LINE));
options.setTitle(new Title("My very own chart."));
options.setxAxis(new Axis().setCategories(Arrays.asList(new String[] { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" })));
options.setyAxis(new Axis().setTitle(new Title("Temperature (C)")));
options.setLegend(new Legend().setLayout(LegendLayout.VERTICAL).setAlign(HorizontalAlignment.RIGHT).setVerticalAlign(VerticalAlignment.TOP).setX(-10).setY(100).setBorderWidth(0));
options.addSeries(new SimpleSeries().setName("Tokyo").setData(Arrays.asList(new Number[] { 7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6 })));
options.addSeries(new SimpleSeries().setName("New York").setData(Arrays.asList(new Number[] { -0.2, 0.8, 5.7, 11.3, 17.0, 22.0, 24.8, 24.1, 20.1, 14.1, 8.6, 2.5 })));
return options;
}
开发者ID:isisaddons-legacy,项目名称:isis-wicket-wickedcharts,代码行数:19,代码来源:WicketChartSemanticsProviderEncoderDecoderTest.java
示例6: crearGraficoPeriodo
import com.googlecode.wickedcharts.highcharts.options.VerticalAlignment; //导入依赖的package包/类
/**
* Metodo que devuelve un grafico de WickedCharts
* para representar la consulta de alquileres por periodo.
*
* @param ano
* @param mes
* @param categoria
*
* @return WickedChart
*/
@Named("Consulta Por Periodo")
@MemberOrder(sequence="1")
public WickedChart crearGraficoPeriodo(
@Named("Año") String ano,
@Optional
@Named("Mes") Mes mes,
@Optional
@Named("Categoria") Categoria categoria) {
estadistica(ano, mes, categoria);
Options options = new Options();
options
.setChartOptions(new ChartOptions()
.setType(SeriesType.COLUMN));
options
.setTitle(new Title("ESTADISTICAS"));
options
.setyAxis(new Axis()
.setTitle(new Title("CANTIDAD DE ALQUILERES")));
options
.setLegend(new Legend()
.setLayout(LegendLayout.VERTICAL)
.setAlign(HorizontalAlignment.RIGHT)
.setVerticalAlign(VerticalAlignment.TOP)
.setX(-10)
.setY(100)
.setBorderWidth(0));
List<Estadistica> listaEst = traerEstadisticas();
for(Estadistica h : listaEst) {
if(categoria==null){
options
.addSeries(new SimpleSeries()
.setName(h.getPatente())
.setData(
Arrays
.asList(new Number[] { h.getCantAlq() })));
options
.setxAxis(new Axis()
.setCategories(Arrays
.asList(new String[] {h.getMes() })));
}else{ // (h.getSeleccionCategoria()==true)
options
.addSeries(new SimpleSeries()
.setName(h.getCategoria().getNombre())
.setData(
Arrays
.asList(new Number[] { h.getCantAlq() })));
options
.setxAxis(new Axis()
.setCategories(Arrays
.asList(new String[] {h.getMes() })));
}
}
return new WickedChart(options);
}
开发者ID:rentacarPDF,项目名称:Proyecto,代码行数:72,代码来源:EstadisticaServicio.java
示例7: crearGraficoAnual
import com.googlecode.wickedcharts.highcharts.options.VerticalAlignment; //导入依赖的package包/类
/**
* Metodo que devuelve un grafico de WickedCharts
* para representar la consulta anual de alquileres.
*
* @param ano
*
* @return WickedChart
*/
@Named("Consulta Anual")
@MemberOrder(sequence="2")
public WickedChart crearGraficoAnual(
@Named("Año") String ano,
@Named("Categoria") Categoria categoria) {
estadisticaAnual(ano,categoria);
Options options = new Options();
options
.setChartOptions(new ChartOptions()
.setType(SeriesType.LINE));
options
.setTitle(new Title("ESTADISTICAS AÑO "+ano));
options
.setyAxis(new Axis()
.setTitle(new Title("CANTIDAD DE ALQUILERES AÑO "+ano)));
options
.setLegend(new Legend()
.setLayout(LegendLayout.VERTICAL)
.setAlign(HorizontalAlignment.RIGHT)
.setVerticalAlign(VerticalAlignment.TOP)
.setX(-10)
.setY(100)
.setBorderWidth(0));
List<Auto> listaAutos=listaAutosCate(categoria);
List<Estadistica> listaEst=null;
if(ano!=null){
for(Auto a : listaAutos) {
listaEst = listaEstadisticaPorAuto(a.getPatente());
options
.addSeries(new SimpleSeries()
.setName(a.getPatente())
.setData(
Arrays
.asList(new Number[] {listaEst.get(0).getCantAlq(),listaEst.get(1).getCantAlq(),listaEst.get(2).getCantAlq(),listaEst.get(3).getCantAlq(),listaEst.get(4).getCantAlq(),listaEst.get(5).getCantAlq(),listaEst.get(6).getCantAlq(),listaEst.get(7).getCantAlq(),listaEst.get(8).getCantAlq(),listaEst.get(9).getCantAlq(),listaEst.get(10).getCantAlq(),listaEst.get(11).getCantAlq()})));
options
.setxAxis(new Axis()
.setCategories(Arrays
.asList(new String[] {"ENERO","FEBRERO","MARZO","ABRIL","MAYO","JUNIO","JULIO","AGOSTO","SEPTIEMBRE","OCTUBRE","NOVIEMBRE","DICIEMBRE"})));
}
}
return new WickedChart(options);
}
开发者ID:rentacarPDF,项目名称:Proyecto,代码行数:61,代码来源:EstadisticaServicio.java
示例8: ColumnChartOptions
import com.googlecode.wickedcharts.highcharts.options.VerticalAlignment; //导入依赖的package包/类
public ColumnChartOptions(final ChartConfiguration configuration) {
this.eventType = configuration.getEventType();
this.attributeName = configuration.getAttributeName();
this.attributeType = configuration.getAttributeType();
this.rangeSize = configuration.getRangeSize();
this.title = configuration.getTitle();
this.setChartOptions(new ChartOptions().setType(SeriesType.COLUMN));
this.setGlobal(new Global().setUseUTC(Boolean.TRUE));
this.setTitle(new Title(this.title));
this.setxAxis(new Axis().setCategories(this.eventType.getTypeName()).setTitle(new Title(null)));
this.setyAxis(new Axis().setTitle(new Title("Frequency").setAlign(HorizontalAlignment.HIGH)).setLabels(new Labels().setOverflow(Overflow.JUSTIFY)));
this.setTooltip(new Tooltip().setFormatter(new Function("return ''+this.series.name +': '+ this.y;")));
this.setPlotOptions(new PlotOptionsChoice().setBar(new PlotOptions().setDataLabels(new DataLabels().setEnabled(Boolean.TRUE))));
this.setLegend(new Legend().setLayout(LegendLayout.VERTICAL).setAlign(HorizontalAlignment.RIGHT).setVerticalAlign(VerticalAlignment.TOP).setX(-100).setY(100).setFloating(Boolean.TRUE).setBorderWidth(1).setBackgroundColor(new HexColor("#ffffff")).setShadow(Boolean.TRUE));
this.setCredits(new CreditOptions().setEnabled(Boolean.FALSE));
for (final SimpleSeries serie : this.buildSeries()) {
this.addSeries(serie);
}
}
开发者ID:bptlab,项目名称:Unicorn,代码行数:31,代码来源:ColumnChartOptions.java
注:本文中的com.googlecode.wickedcharts.highcharts.options.VerticalAlignment类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论