本文整理汇总了Java中com.googlecode.wickedcharts.highcharts.options.color.HexColor类的典型用法代码示例。如果您正苦于以下问题:Java HexColor类的具体用法?Java HexColor怎么用?Java HexColor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
HexColor类属于com.googlecode.wickedcharts.highcharts.options.color包,在下文中一共展示了HexColor类的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getTrafficLightOptions
import com.googlecode.wickedcharts.highcharts.options.color.HexColor; //导入依赖的package包/类
private Options getTrafficLightOptions(){
Options options = new Options();
if(lastBuildSuccess != null){
HexColor color = getTrafficLightColor(lastBuildSuccess.getValue());
options.setChartOptions(new ChartOptions()
.setPlotBackgroundColor(new NullColor())
.setPlotBorderWidth(null)
.setHeight(250)
.setPlotShadow(Boolean.FALSE));
options.setTitle(new Title("Latest Build Status"));
options.setSubtitle(new Title(projectName));
options.setPlotOptions(new PlotOptionsChoice()
.setPie(new PlotOptions()
.setAllowPointSelect(Boolean.FALSE)
.setBorderWidth(0) // to make it look like a "traffic light"
.setCursor(Cursor.POINTER)));
options.addSeries(new PointSeries()
.setType(SeriesType.PIE)
.addPoint(new Point(lastBuildSuccess.getValue(), 100).setColor(color)));
}
return options;
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:26,代码来源:JenkinsWidgetView.java
示例2: createJacksonMapper
import com.googlecode.wickedcharts.highcharts.options.color.HexColor; //导入依赖的package包/类
@SuppressWarnings({ "rawtypes", "unchecked" })
private ObjectMapper createJacksonMapper() {
this.jacksonModule.addSerializer(Center.class, new CenterSerializer());
this.jacksonModule.addSerializer(SimpleColor.class, new SimpleColorReferenceSerializer());
this.jacksonModule.addSerializer(HighchartsColor.class, new HighchartsColorReferenceSerializer());
this.jacksonModule.addSerializer(HexColor.class, new HexColorReferenceSerializer());
this.jacksonModule.addSerializer(LowercaseEnum.class, new LowercaseEnumSerializer());
this.jacksonModule.addSerializer(PixelOrPercent.class, new PixelOrPercentSerializer());
this.jacksonModule.addSerializer(Symbol.class, new SymbolSerializer());
this.jacksonModule.addSerializer(RgbaColor.class, new RgbaColorReferenceSerializer());
this.jacksonModule.addSerializer(NullColor.class, new NullColorReferenceSerializer());
this.jacksonModule.addSerializer(MinorTickInterval.class, new MinorTickIntervalSerializer());
this.jacksonModule.addSerializer(Function.class, new FunctionSerializer());
this.jacksonModule.addSerializer(CssStyle.class, new CssStyleSerializer());
this.jacksonModule.addSerializer(DateTimeLabelFormat.class, new DateTimeLabelFormatSerializer());
this.jacksonModule.addSerializer(Coordinate.class, new CoordinateSerializer());
this.jacksonModule.addSerializer(Crosshair.class, new CrosshairSerializer());
this.jacksonModule.addSerializer(RangeCoordinate.class, new RangeCoordinateSerializer());
this.jacksonModule.addSerializer(Bubble.class, new BubbleSerializer());
ObjectMapper mapper = createDefaultObjectMapper();
mapper.setLocale(Locale.ENGLISH);
mapper.registerModule(this.jacksonModule);
return mapper;
}
开发者ID:PkayJava,项目名称:pluggable,代码行数:27,代码来源:JsonRenderer.java
示例3: generateChart
import com.googlecode.wickedcharts.highcharts.options.color.HexColor; //导入依赖的package包/类
private static Chart generateChart(String[] columnsData, HashMap<String, Double[]> dataMap){
Options options = new Options();
options.setTitle(new Title("Température"));
Axis xAxis = new Axis();
xAxis.setCategories(Arrays.asList(columnsData));
options.setxAxis(xAxis);
PlotLine plotLines = new PlotLine();
plotLines.setValue(0f);
plotLines.setWidth(1);
plotLines.setColor(new HexColor("#999999"));
Axis yAxis = new Axis();
yAxis.setTitle(new Title("Temperature (C)"));
yAxis.setPlotLines(Collections.singletonList(plotLines));
options.setyAxis(yAxis);
Legend legend = new Legend();
legend.setLayout(LegendLayout.VERTICAL);
legend.setAlign(HorizontalAlignment.RIGHT);
legend.setVerticalAlign(VerticalAlignment.TOP);
legend.setX(-10);
legend.setY(100);
legend.setBorderWidth(0);
options.setLegend(legend);
for (HashMap.Entry<String, Double[]> entry : dataMap.entrySet()) {
String key = entry.getKey();
Number[] value = entry.getValue();
Series<Number> series = new SimpleSeries();
series.setName(key);
series.setData(Arrays
.asList(value));
options.addSeries(series);
}
return new Chart("chart", options);
}
开发者ID:haris44,项目名称:Wicket-PDF,代码行数:41,代码来源:HomePage.java
示例4: getTrafficLightColor
import com.googlecode.wickedcharts.highcharts.options.color.HexColor; //导入依赖的package包/类
private HexColor getTrafficLightColor(String status) {
//use hex color values from bootstrap in order to match the layouting
if(status.toLowerCase().equals("stable")){
return new HexColor("#41bb19");
} else if(status.toLowerCase().equals("unstable")){
return new HexColor("#ffe314");
} else if(status.toLowerCase().equals("broken")){
return new HexColor("#f50f43");
}
// gray for unknown
else {
return new HexColor("#445");
}
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:15,代码来源:JenkinsWidgetView.java
示例5: serializeIfNotNull
import com.googlecode.wickedcharts.highcharts.options.color.HexColor; //导入依赖的package包/类
@Override
protected void serializeIfNotNull(final HexColor color, final JsonGenerator jgen, final SerializerProvider provider)
throws JsonGenerationException, IOException {
if (color.getBrightness() == null) {
jgen.writeString(color.getHexColor());
} else {
String colorString = brighten("\"" + color.getHexColor() + "\"", color.getBrightness());
jgen.writeRawValue(colorString);
}
}
开发者ID:PkayJava,项目名称:pluggable,代码行数:12,代码来源:HexColorReferenceSerializer.java
示例6: SkiesTheme
import com.googlecode.wickedcharts.highcharts.options.color.HexColor; //导入依赖的package包/类
public SkiesTheme() {
this.addColor(new HexColor("#514F78"));
this.addColor(new HexColor("#42A07B"));
this.addColor(new HexColor("#9B5E4A"));
this.addColor(new HexColor("#72727F"));
this.addColor(new HexColor("#1F949A"));
this.addColor(new HexColor("#82914E"));
this.addColor(new HexColor("#86777F"));
this.addColor(new HexColor("#42A07B"));
ChartOptions chartOptions = new ChartOptions()
.setClassName("skies")
.setBorderWidth(0)
.setPlotShadow(Boolean.TRUE)
.setPlotBackgroundImage("/img/skies.jpg")
.setPlotBackgroundColor(
new LinearGradient(0, 0, 250, 500).addStop(0, new RgbaColor(255, 255, 255, 1f)).addStop(1,
new RgbaColor(255, 255, 255, 0f))).setPlotBorderWidth(1);
this.setChartOptions(chartOptions);
this.setTitle(new Title().setStyle(new CssStyle()));
this.setSubtitle(new Title().setStyle(new CssStyle()));
Axis xAxis = new Axis().setGridLineWidth(0).setLineColor(new HexColor("#C0D0E0"))
.setTickColor(new HexColor("#C0D0E0")).setLabels(new Labels().setStyle(new CssStyle()))
.setTitle(new Title().setStyle(new CssStyle()));
this.setxAxis(xAxis);
Axis yAxis = new Axis().setAlternateGridColor(new RgbaColor(255, 255, 255, .5f))
.setLineColor(new HexColor("#C0D0E0")).setTickColor(new HexColor("#C0D0E0")).setTickWidth(1)
.setLabels(new Labels().setStyle(new CssStyle())).setTitle(new Title().setStyle(new CssStyle()));
this.setyAxis(yAxis);
Legend legend = new Legend().setItemStyle(new CssStyle()).setItemHoverStyle(new CssStyle())
.setItemHiddenStyle(new CssStyle());
this.setLegend(legend);
this.setLabels(new Labels().setStyle(new CssStyle()));
}
开发者ID:PkayJava,项目名称:pluggable,代码行数:41,代码来源:SkiesTheme.java
示例7: createChartValue
import com.googlecode.wickedcharts.highcharts.options.color.HexColor; //导入依赖的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
示例8: GraficoTortaClientes
import com.googlecode.wickedcharts.highcharts.options.color.HexColor; //导入依赖的package包/类
public GraficoTortaClientes(Map<Cliente, AtomicInteger> a){
setChartOptions(new ChartOptions()
.setPlotBackgroundColor(new NullColor())
.setPlotBorderWidth(null)
.setPlotShadow(Boolean.FALSE));
setTitle(new Title("Grafico Tarjetas por Cliente"));
//*********************************************************************************
PercentageFormatter formatter = new PercentageFormatter();
setTooltip(
new Tooltip()
.setFormatter(
formatter)
. setPercentageDecimals(1));
//*********************************************************************************
setPlotOptions(new PlotOptionsChoice()
.setPie(new PlotOptions()
.setAllowPointSelect(Boolean.TRUE)
.setCursor(Cursor.POINTER)
.setDataLabels(new DataLabels()
.setEnabled(Boolean.TRUE)
.setColor(new HexColor("#000000"))
.setConnectorColor(new HexColor("#000000"))
.setFormatter(formatter))));
//*********************************************************************************
Series<Point> series = new PointSeries()
.setType(SeriesType.PIE);
series.setTooltip(
new Tooltip().setFormatter(new Function().setFunction(" return ''+ Pepe +': '+ Juan;")));
//*********************************************************************************
int i=0;
for (Map.Entry<Cliente, AtomicInteger> entry : a.entrySet()) {
series
.addPoint(
//*********************************************************************************
new Point(entry.getKey().getNombre(), entry.getValue().get()).setColor(
new RadialGradient()
.setCx(0.5)
.setCy(0.3)
.setR(0.7)
.addStop(0, new HighchartsColor(i))
.addStop(1, new HighchartsColor(i).brighten(-0.3f))));
//*********************************************************************************
i++;
}
addSeries(series);
}
开发者ID:TesisTarjetasMejorar,项目名称:TarjetasISIS,代码行数:48,代码来源:GraficoTortaClientes.java
示例9: GraficoTortaReportadas
import com.googlecode.wickedcharts.highcharts.options.color.HexColor; //导入依赖的package包/类
public GraficoTortaReportadas(Map<Boolean, AtomicInteger> a){
setChartOptions(new ChartOptions()
.setPlotBackgroundColor(new NullColor())
.setPlotBorderWidth(null)
.setPlotShadow(Boolean.FALSE));
setTitle(new Title("Grafico Tarjetas Reportadas"));
PercentageFormatter formatter = new PercentageFormatter();
setTooltip(
new Tooltip()
.setFormatter(
formatter)
. setPercentageDecimals(1));
setPlotOptions(new PlotOptionsChoice()
.setPie(new PlotOptions()
.setAllowPointSelect(Boolean.TRUE)
.setCursor(Cursor.POINTER)
.setDataLabels(new DataLabels()
.setEnabled(Boolean.TRUE)
.setColor(new HexColor("#000000"))
.setConnectorColor(new HexColor("#000000"))
.setFormatter(formatter))));
Series<Point> series = new PointSeries()
.setType(SeriesType.PIE);
int i=0;
for (Map.Entry<Boolean, AtomicInteger> entry : a.entrySet()) {
series
.addPoint(
new Point(nombre(entry.getKey()), entry.getValue().get()).setColor(
new RadialGradient()
.setCx(0.5)
.setCy(0.3)
.setR(0.7)
.addStop(0, new HighchartsColor(i))
.addStop(1, new HighchartsColor(i).brighten(-0.3f))));
i++;
}
addSeries(series);
}
开发者ID:TesisTarjetasMejorar,项目名称:TarjetasISIS,代码行数:43,代码来源:GraficoTortaReportadas.java
示例10: GraficoTortaEventos
import com.googlecode.wickedcharts.highcharts.options.color.HexColor; //导入依赖的package包/类
public GraficoTortaEventos(Map<Evento, AtomicInteger> a){
setChartOptions(new ChartOptions()
.setPlotBackgroundColor(new NullColor())
.setPlotBorderWidth(null)
.setPlotShadow(Boolean.FALSE));
setTitle(new Title("Grafico Tarjetas por Eventos"));
PercentageFormatter formatter = new PercentageFormatter();
setTooltip(
new Tooltip()
.setFormatter(
formatter)
. setPercentageDecimals(1));
setPlotOptions(new PlotOptionsChoice()
.setPie(new PlotOptions()
.setAllowPointSelect(Boolean.TRUE)
.setCursor(Cursor.POINTER)
.setDataLabels(new DataLabels()
.setEnabled(Boolean.TRUE)
.setColor(new HexColor("#000000"))
.setConnectorColor(new HexColor("#000000"))
.setFormatter(formatter))));
Series<Point> series = new PointSeries()
.setType(SeriesType.PIE);
int i=0;
for (Map.Entry<Evento, AtomicInteger> entry : a.entrySet()) {
series
.addPoint(
new Point(entry.getKey().getNombre(), entry.getValue().get()).setColor(
new RadialGradient()
.setCx(0.5)
.setCy(0.3)
.setR(0.7)
.addStop(0, new HighchartsColor(i))
.addStop(1, new HighchartsColor(i).brighten(-0.3f))));
i++;
}
addSeries(series);
}
开发者ID:TesisTarjetasMejorar,项目名称:TarjetasISIS,代码行数:43,代码来源:GraficoTortaEventos.java
示例11: GraficoTortaBarras
import com.googlecode.wickedcharts.highcharts.options.color.HexColor; //导入依赖的package包/类
public GraficoTortaBarras(Map<String, AtomicInteger> a){
setChartOptions(new ChartOptions()
.setPlotBackgroundColor(new NullColor())
.setPlotBorderWidth(null)
.setPlotShadow(Boolean.FALSE));
setTitle(new Title("Grafico Tarjetas por Cliente"));
setSubtitle(new Title("Los meses que no aparecen, es por que no se registran cargas de tarjetas"));
PercentageFormatter formatter = new PercentageFormatter();
setTooltip(
new Tooltip()
.setFormatter(
formatter)
. setPercentageDecimals(1));
setPlotOptions(new PlotOptionsChoice()
.setPie(new PlotOptions()
.setAllowPointSelect(Boolean.TRUE)
.setCursor(Cursor.POINTER)
.setDataLabels(new DataLabels()
.setEnabled(Boolean.TRUE)
.setColor(new HexColor("#000000"))
.setConnectorColor(new HexColor("#000000"))
.setFormatter(formatter))));
//*********************************************************************************
Series<Point> series = new PointSeries()
.setType(SeriesType.COLUMN);
List<String> titles = new ArrayList<String>();
//*********************************************************************************
int i=0;
for (Map.Entry<String, AtomicInteger> entry : a.entrySet()) {
series
.addPoint(
new Point(entry.getKey(), entry.getValue().get()).setColor(
new RadialGradient()
.setCx(0.5)
.setCy(0.3)
.setR(0.7)
.addStop(0, new HighchartsColor(i))
.addStop(1, new HighchartsColor(i).brighten(-0.3f))));
titles.add(""+entry.getKey());
i++;
}
this.setxAxis(new Axis().setCategories(titles));
//*********************************************************************************
addSeries(series);
}
开发者ID:TesisTarjetasMejorar,项目名称:TarjetasISIS,代码行数:60,代码来源:GraficoTortaBarras.java
示例12: GraficoTortaResueltos
import com.googlecode.wickedcharts.highcharts.options.color.HexColor; //导入依赖的package包/类
public GraficoTortaResueltos(Map<Boolean, AtomicInteger> a){
setChartOptions(new ChartOptions()
.setPlotBackgroundColor(new NullColor())
.setPlotBorderWidth(null)
.setPlotShadow(Boolean.FALSE));
setTitle(new Title("Grafico Tarjetas Resueltas"));
PercentageFormatter formatter = new PercentageFormatter();
setTooltip(
new Tooltip()
.setFormatter(
formatter)
. setPercentageDecimals(1));
setPlotOptions(new PlotOptionsChoice()
.setPie(new PlotOptions()
.setAllowPointSelect(Boolean.TRUE)
.setCursor(Cursor.POINTER)
.setDataLabels(new DataLabels()
.setEnabled(Boolean.TRUE)
.setColor(new HexColor("#000000"))
.setConnectorColor(new HexColor("#000000"))
.setFormatter(formatter))));
Series<Point> series = new PointSeries()
.setType(SeriesType.PIE);
int i=0;
for (Map.Entry<Boolean, AtomicInteger> entry : a.entrySet()) {
series
.addPoint(
new Point(nombre(entry.getKey()), entry.getValue().get()).setColor(
new RadialGradient()
.setCx(0.5)
.setCy(0.3)
.setR(0.7)
.addStop(0, new HighchartsColor(i))
.addStop(1, new HighchartsColor(i).brighten(-0.3f))));
i++;
}
addSeries(series);
}
开发者ID:TesisTarjetasMejorar,项目名称:TarjetasISIS,代码行数:43,代码来源:GraficoTortaResueltos.java
示例13: PieWithGradientOptions
import com.googlecode.wickedcharts.highcharts.options.color.HexColor; //导入依赖的package包/类
public PieWithGradientOptions(List<Log> _lista, Date _fechaDesde,
Date _fechaHasta, TipoPlato _tipoPlato) {
SimpleDateFormat formato = new SimpleDateFormat("dd/MM/yy");
setTitle(new Title("Productos - "
+ (_fechaDesde != null ? formato.format(new java.util.Date(
_fechaDesde.getTime())) : "1º Registro")
+ " - "
+ (_fechaHasta != null ? formato.format(new java.util.Date(
_fechaHasta.getTime())) : "Último Registro")));
List<Number> valores = new ArrayList<Number>();
List<String> labels = new ArrayList<String>();
for (Log entry : _lista) {
valores.add(entry.getCantidad());
labels.add(entry.getProducto().getNombre());
}
addSeries(new SimpleSeries()
.setColor(Color.DARK_GRAY.darker())
.setName(_tipoPlato.toString())
.setData(valores)
.setDataLabels(
new DataLabels()
.setEnabled(Boolean.TRUE)
.setColor(new HexColor("#000000"))
.setAlign(HorizontalAlignment.CENTER)
.setX(0)
.setY(0)
.setFormatter(
new Function()
.setFunction(" return this.y;"))
.setStyle(
new CssStyle()
.setProperty("font-size",
"13px")
.setProperty("font-family",
"Verdana, sans-serif"))));
setyAxis(new Axis().setMin(0).setTitle(new Title("Cantidad")));
setLegend(new Legend(Boolean.TRUE));
setxAxis(new Axis().setCategories(labels).setLabels(
new Labels()
.setRotation(-45)
.setAlign(HorizontalAlignment.RIGHT)
.setStyle(
new CssStyle().setProperty("font-size",
"13px").setProperty("font-family",
"Verdana, sans-serif"))));
setChartOptions(new ChartOptions().setType(SeriesType.COLUMN)
.setMarginTop(50).setMarginRight(50).setMarginBottom(100)
.setMarginLeft(80));
}
开发者ID:resto-tesis,项目名称:resto-tesis,代码行数:57,代码来源:Torta.java
示例14: GridTheme
import com.googlecode.wickedcharts.highcharts.options.color.HexColor; //导入依赖的package包/类
public GridTheme() {
this.addColor(new HexColor("#058DC7"));
this.addColor(new HexColor("#50B432"));
this.addColor(new HexColor("#ED561B"));
this.addColor(new HexColor("#DDDF00"));
this.addColor(new HexColor("#24CBE5"));
this.addColor(new HexColor("#64E572"));
this.addColor(new HexColor("#FF9655"));
this.addColor(new HexColor("#FFF263"));
this.addColor(new HexColor("#6AF9C4"));
ChartOptions chartOptions = new ChartOptions()
.setBackgroundColor(
new LinearGradient(0, 0, 500, 500).addStop(0, new RgbaColor(255, 255, 255)).addStop(1,
new RgbaColor(240, 240, 255))).setBorderWidth(2)
.setPlotBackgroundColor(new RgbaColor(255, 255, 255, .9f)).setPlotShadow(Boolean.TRUE).setPlotBorderWidth(1);
this.setChartOptions(chartOptions);
Title title = new Title();
title.setStyle(new CssStyle());
this.setTitle(title);
Title subTitle = new Title();
subTitle.setStyle(new CssStyle());
this.setSubtitle(subTitle);
Axis xAxis = new Axis().setGridLineWidth(1).setLineColor(new HexColor("#000000"))
.setTickColor(new HexColor("#000000")).setLabels(new Labels().setStyle(new CssStyle()))
.setTitle(new Title().setStyle(new CssStyle()));
this.setxAxis(xAxis);
Axis yAxis = new Axis().setMinorTickInterval(new MinorTickInterval().setAuto(true))
.setLineColor(new HexColor("#000000")).setLineWidth(1).setTickWidth(1).setTickColor(new HexColor("#000000"))
.setLabels(new Labels().setStyle(new CssStyle())).setTitle(new Title().setStyle(new CssStyle()));
this.setyAxis(yAxis);
Legend legend = new Legend().setItemStyle(new CssStyle()).setItemHoverStyle(new CssStyle())
.setItemHiddenStyle(new CssStyle());
this.setLegend(legend);
Labels labels = new Labels().setStyle(new CssStyle());
this.setLabels(labels);
}
开发者ID:PkayJava,项目名称:pluggable,代码行数:46,代码来源:GridTheme.java
示例15: GrayTheme
import com.googlecode.wickedcharts.highcharts.options.color.HexColor; //导入依赖的package包/类
public GrayTheme() {
this.setColors(HexColor.fromStrings("#DDDF0D", "#7798BF", "#55BF3B", "#DF5353", "#aaeeee", "#ff0066", "#eeaaee",
"#55BF3B", "#DF5353", "#7798BF", "#aaeeee"));
this.setChartOptions(new ChartOptions()
.setBackgroundColor(
new LinearGradient(0, 0, 0, 400).addStop(0, new RgbaColor(96, 96, 96))
.addStop(1, new RgbaColor(16, 16, 16))).setBorderWidth(0).setBorderRadius(15)
.setPlotBackgroundColor(new NullColor()).setPlotShadow(Boolean.FALSE).setPlotBorderWidth(0));
this.setTitle(new Title().setStyle(new CssStyle().setProperty("color", "#FFF").setProperty("font",
"16px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif")));
this.setSubtitle(new Title().setStyle(new CssStyle().setProperty("color", "#DDD").setProperty("font",
"12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif")));
this.setxAxis(new Axis()
.setGridLineWidth(0)
.setLineColor(HexColor.fromString("#999999"))
.setTickColor(HexColor.fromString("#999999"))
.setLabels(new Labels().setStyle(new CssStyle().setProperty("color", "#DDD").setProperty("fontWeight", "bold")))
.setTitle(
new Title().setStyle(new CssStyle().setProperty("color", "#999").setProperty("font",
"bold 12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif"))));
this.setyAxis(new Axis()
.setAlternateGridColor(new NullColor())
.setMinorTickInterval(new MinorTickInterval().setNull())
.setGridLineColor(new RgbaColor(255, 255, 255, .1f))
.setLineWidth(0)
.setTickWidth(0)
.setLabels(new Labels().setStyle(new CssStyle().setProperty("color", "#DDD").setProperty("fontWeight", "bold")))
.setTitle(
new Title().setStyle(new CssStyle().setProperty("color", "#999").setProperty("font",
"bold 12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif"))));
this.setLegend(new Legend().setItemStyle(new CssStyle().setProperty("color", "#CCC"))
.setItemHoverStyle(new CssStyle().setProperty("color", "#FFF"))
.setItemHiddenStyle(new CssStyle().setProperty("color", "#333")));
this.setLabels(new Labels().setStyle(new CssStyle().setProperty("color", "#CCC")));
this.setTooltip(new Tooltip()
.setBackgroundColor(
new LinearGradient(0, 0, 0, 50).addStop(0, new RgbaColor(96, 96, 96, .8f)).addStop(1,
new RgbaColor(16, 16, 16, .8f))).setBorderWidth(0)
.setStyle(new CssStyle().setProperty("color", "#FFF")));
this.setPlotOptions(new PlotOptionsChoice()
.setLine(
new PlotOptions().setDataLabels(new DataLabels().setColor(HexColor.fromString("#cccccc"))).setMarker(
new Marker().setLineColor(HexColor.fromString("#333333"))))
.setSpline(new PlotOptions().setMarker(new Marker().setLineColor(HexColor.fromString("#333333"))))
.setScatter(new PlotOptions().setMarker(new Marker().setLineColor(HexColor.fromString("#333333"))))
.setCandleStick(new PlotOptions().setLineColor(HexColor.fromString("#ffffff"))));
this.setToolbar(new DummyOption());
this.setNavigation(new Navigation().setButtonOptions(new ButtonOptions()
.setBackgroundColor(
new LinearGradient(0, 0, 0, 20).addStop(0.4f, HexColor.fromString("#606060")).addStop(0.6f,
HexColor.fromString("#333333"))).setBorderColor(HexColor.fromString("#000000"))
.setSymbolStroke(HexColor.fromString("#c0c0c0")).setHoverSymbolStroke(HexColor.fromString("#ffffff"))));
this.setExporting(new ExportingOptions().setButtons(new ExportingButtons().setExportButton(
new ButtonOptions().setSymbolFill(HexColor.fromString("#55be3b"))).setPrintButton(
new ButtonOptions().setSymbolFill(HexColor.fromString("#7797be")))));
this.setRangeSelector(new DummyOption());
this.setNavigator(new DummyOption());
this.setScrollbar(new DummyOption());
this.setLegendBackgroundColor(new RgbaColor(48, 48, 48, .8f));
this.setLegendBackgroundColorSolid(new RgbaColor(70, 70, 70));
this.setDataLabelsColor(HexColor.fromString("#444444"));
this.setTextColor(HexColor.fromString("#e0e0e0"));
this.setMaskColor(new RgbaColor(255, 255, 255, 0f));
}
开发者ID:PkayJava,项目名称:pluggable,代码行数:82,代码来源:GrayTheme.java
示例16: PieWithGradientOptions
import com.googlecode.wickedcharts.highcharts.options.color.HexColor; //导入依赖的package包/类
public PieWithGradientOptions(Map<Category, AtomicInteger> byCategory) {
setChartOptions(new ChartOptions()
.setPlotBackgroundColor(new NullColor())
.setPlotBorderWidth(null)
.setPlotShadow(Boolean.FALSE));
setTitle(new Title("ToDoItems by category"));
PercentageFormatter formatter = new PercentageFormatter();
setTooltip(
new Tooltip()
.setFormatter(
formatter)
. setPercentageDecimals(1));
setPlotOptions(new PlotOptionsChoice()
.setPie(new PlotOptions()
.setAllowPointSelect(Boolean.TRUE)
.setCursor(Cursor.POINTER)
.setDataLabels(new DataLabels()
.setEnabled(Boolean.TRUE)
.setColor(new HexColor("#000000"))
.setConnectorColor(new HexColor("#000000"))
.setFormatter(formatter))));
Series<Point> series = new PointSeries()
.setType(SeriesType.PIE);
int i=0;
for (Map.Entry<Category, AtomicInteger> entry : byCategory.entrySet()) {
series
.addPoint(
new Point(entry.getKey().name(), entry.getValue().get()).setColor(
new RadialGradient()
.setCx(0.5)
.setCy(0.3)
.setR(0.7)
.addStop(0, new HighchartsColor(i))
.addStop(1, new HighchartsColor(i).brighten(-0.3f))));
i++;
}
addSeries(series);
}
开发者ID:isisaddons-legacy,项目名称:isis-wicket-wickedcharts,代码行数:44,代码来源:WickedChartsWicketToDoItemChartingService.java
示例17: EventTypePercentageDiagramm
import com.googlecode.wickedcharts.highcharts.options.color.HexColor; //导入依赖的package包/类
public EventTypePercentageDiagramm() {
this.setChartOptions(new ChartOptions().setPlotBackgroundColor(new NullColor()).setPlotBorderWidth(null).setPlotShadow(Boolean.FALSE));
this.setTitle(new Title("Percentage of Events by Event Types"));
this.setTooltip(new Tooltip().setFormatter(new PercentageFormatter()).setPercentageDecimals(1));
this.setPlotOptions(new PlotOptionsChoice().setPie(new PlotOptions().setAllowPointSelect(Boolean.TRUE).setCursor(Cursor.POINTER).setDataLabels(new DataLabels().setEnabled(Boolean.TRUE).setColor(new HexColor("#000000")).setConnectorColor(new HexColor("#000000")).setFormatter(new PercentageFormatter()))));
this.addSeries(this.prepareEventSeries());
}
开发者ID:bptlab,项目名称:Unicorn,代码行数:14,代码来源:EventTypePercentageDiagramm.java
示例18: ColumnChartOptions
import com.googlecode.wickedcharts.highcharts.options.color.HexColor; //导入依赖的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.color.HexColor类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论