Package org.zkoss.chart.options3D
Class Options3D
- java.lang.Object
-
- org.zkoss.chart.Optionable
-
- org.zkoss.chart.options3D.Options3D
-
- All Implemented Interfaces:
Serializable
,OptionDataListener
,org.zkoss.json.JSONAware
public class Options3D extends Optionable
A 3D options.All the options in this class support
DynamicalAttribute
.- Author:
- hanhsu
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.zkoss.chart.Optionable
NOT_NULL_VALUE, options
-
-
Constructor Summary
Constructors Constructor Description Options3D()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Number
getAlpha()
Returns the value of alpha, one of the two rotation angles for the chart.String
getAxisLabelPosition()
Set it to "auto" to automatically move the labels to the best edge.Number
getBeta()
Returns the value of beta, one of the two rotation angles for the chart.Number
getDepth()
Returns the total depth of the chart.Frame3D
getFrame()
Returns the frame options of the 3D chart.Number
getViewDistance()
Returns the distance the viewer is standing in front of the chart.boolean
isEnabled()
Returns whether to render the chart using the 3D functionality.boolean
isFitToPlot()
Returns whether the 3d box should automatically adjust to the chart plot area.void
setAlpha(Number alpha)
Sets the value of alphavoid
setAxisLabelPosition(String axisLabelPosition)
Set it to "auto" to automatically move the labels to the best edge.void
setBeta(Number beta)
Sets the value of betavoid
setDepth(Number depth)
Sets the total depth of the chart.void
setEnabled(boolean enabled)
Sets whether to render the chart using the 3D functionality.void
setFitToPlot(boolean fitToPlot)
Sets whether the 3d box should automatically adjust to the chart plot area.void
setFrame(Frame3D frame)
Sets the frame options of the 3D chart.void
setViewDistance(Number viewDistance)
Sets the distance the viewer is standing in front of the chart.-
Methods inherited from class org.zkoss.chart.Optionable
addExtraAttr, addOptionDataListener, clearOptonDataListener, clone, containsKey, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, getAttr, getAttr, getClientState, getExtraAttr, merge, onChange, removeExtraAttr, removeKey, removeOptionDataListener, setAttr, setAttr, setAttr, setAttr, toJSONString, toString
-
-
-
-
Method Detail
-
getAlpha
public Number getAlpha()
Returns the value of alpha, one of the two rotation angles for the chart.Default: 0.
-
setAlpha
public void setAlpha(Number alpha)
Sets the value of alpha- Parameters:
alpha
- One of the two rotation angles for the chart. Defaults to 0.
-
getAxisLabelPosition
public String getAxisLabelPosition()
Set it to "auto" to automatically move the labels to the best edge.Default: null
- Since:
- 7.2.1.0
-
setAxisLabelPosition
public void setAxisLabelPosition(String axisLabelPosition)
Set it to "auto" to automatically move the labels to the best edge.- Since:
- 7.2.1.0
-
getBeta
public Number getBeta()
Returns the value of beta, one of the two rotation angles for the chart.Default: 0.
-
setBeta
public void setBeta(Number beta)
Sets the value of beta- Parameters:
beta
- One of the two rotation angles for the chart. Defaults to 0.
-
getDepth
public Number getDepth()
Returns the total depth of the chart.Default: 100.
-
setDepth
public void setDepth(Number depth)
Sets the total depth of the chart.- Parameters:
depth
- the total depth of the chart. Defaults to 100.
-
isEnabled
public boolean isEnabled()
Returns whether to render the chart using the 3D functionality.Default: false.
-
setEnabled
public void setEnabled(boolean enabled)
Sets whether to render the chart using the 3D functionality.- Parameters:
enabled
- whether to render the chart using the 3D functionality.
-
isFitToPlot
public boolean isFitToPlot()
Returns whether the 3d box should automatically adjust to the chart plot area.Default: true
- Since:
- 7.2.1.0
-
setFitToPlot
public void setFitToPlot(boolean fitToPlot)
Sets whether the 3d box should automatically adjust to the chart plot area.- Since:
- 7.2.1.0
-
getFrame
public Frame3D getFrame()
Returns the frame options of the 3D chart.Default: an instance of
Frame3D
.
-
setFrame
public void setFrame(Frame3D frame)
Sets the frame options of the 3D chart.- Parameters:
frame
- The options of drawing a frame around the 3D chart.
-
getViewDistance
public Number getViewDistance()
Returns the distance the viewer is standing in front of the chart. It is not used for 3D pie charts.Default: 100.
-
setViewDistance
public void setViewDistance(Number viewDistance)
Sets the distance the viewer is standing in front of the chart. It is not used for 3D pie charts.- Parameters:
viewDistance
- The distance the viewer is standing in front of the chart. It is not usd for 3D pie charts
-
-