|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.moxieapps.gwt.highcharts.client.Configurable<T>
org.moxieapps.gwt.highcharts.client.plotOptions.BaseGaugePart<Dial>
org.moxieapps.gwt.highcharts.client.plotOptions.Dial
public class Dial
Represents the general dial options available for for the gauge's dial, which can be set either generically
on the chart via the BaseChart.setGaugePlotOptions(GaugePlotOptions)
method or directly on a
series via the Series.setPlotOptions(PlotOptions)
method.
Chart.setGaugePlotOptions(
new GaugePlotOptions()
.setDialOptions(
new Dial()
.setBaseLength("75%")
)
);
Constructor Summary | |
---|---|
Dial()
|
Method Summary | |
---|---|
Dial |
setBaseLength(String baseLength)
Convenience method for setting the "baseLength" option for a gauge's dial. |
Dial |
setBaseWidth(Number baseWidth)
Convenience method for setting the "baseWidth" option for a gauge's dial. |
Dial |
setRearLength(String rearLength)
Convenience method for setting the "rearLength" option for a gauge's dial. |
Dial |
setTopWidth(Number topWidth)
Convenience method for setting the "topLength" option for a gauge's dial. |
Methods inherited from class org.moxieapps.gwt.highcharts.client.plotOptions.BaseGaugePart |
---|
setBackgroundColor, setBackgroundColor, setBorderColor, setBorderColor, setBorderWidth, setRadius |
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 |
---|
public Dial()
Method Detail |
---|
public Dial setBaseLength(String baseLength)
dial.setOption("baseLength", "75%");
The length of the dial's base part, relative to the total radius or length of the dial. Defaults to 70%.
baseLength
- The length of the base of the dial as a percentage of its radius.
Dial
for convenient method chaining.public Dial setBaseWidth(Number baseWidth)
dial.setOption("baseWidth", 5)
The pixel width of the base of the gauge dial. The base is the part closest to the pivot, defined by baseLength. Defaults to 3.
baseWidth
- The width, in pixels, of the dial.
Dial
for convenient method chaining.public Dial setRearLength(String rearLength)
dial.setOption("rearLength", "15%");
The length of the dial's rear end, the part that extends out on the other side of the pivot. Relative to the dial's length. Defaults to 10%.
rearLength
- The length of the rear end of the dial as a percentage of the radius.
Dial
for convenient method chaining.public Dial setTopWidth(Number topWidth)
dial.setOption("topLength", 2);
The width of the top of the dial, closest to the perimeter. The pivot narrows in from the base to the top. Defaults to 1.
topWidth
- The width, in pixels, of the tip of the dial.
Dial
for convenient method chaining.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |