| Constructor and Description |
|---|
SparklinesResource(IntegerList data,
Interval limits,
Request request,
UriInfo ui) |
| Modifier and Type | Method and Description |
|---|---|
Response |
discrete(int width,
int upper,
ColorParam upperColor,
ColorParam lowerColor) |
Response |
smooth(int step,
boolean hasMin,
boolean hasMax,
boolean hasLast,
ColorParam minColor,
ColorParam maxColor,
ColorParam lastColor) |
public SparklinesResource(@QueryParam(value="d") IntegerList data, @DefaultValue(value="0,100") @QueryParam(value="limits") Interval limits, @Context Request request, @Context UriInfo ui)
@Path(value="discrete") @GET public Response discrete(@DefaultValue(value="2") @QueryParam(value="width") int width, @DefaultValue(value="50") @QueryParam(value="upper") int upper, @DefaultValue(value="red") @QueryParam(value="upper-color") ColorParam upperColor, @DefaultValue(value="gray") @QueryParam(value="lower-color") ColorParam lowerColor)
@Path(value="smooth") @GET public Response smooth(@DefaultValue(value="2") @QueryParam(value="step") int step, @DefaultValue(value="true") @QueryParam(value="min-m") boolean hasMin, @DefaultValue(value="true") @QueryParam(value="max-m") boolean hasMax, @DefaultValue(value="true") @QueryParam(value="last-m") boolean hasLast, @DefaultValue(value="blue") @QueryParam(value="min-color") ColorParam minColor, @DefaultValue(value="green") @QueryParam(value="max-color") ColorParam maxColor, @DefaultValue(value="red") @QueryParam(value="last-color") ColorParam lastColor)
Copyright © 2007-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.