public interface I3DPropertySet
Modifier and Type | Field and Description |
---|---|
static int |
DOWN |
static int |
LEFT |
static int |
RIGHT |
static int |
UP
direction constants (UP, DOWN, LEFT, RIGHT) for moving the chart
|
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getAmbientLight()
This function returns the ambient color value used for shading.
|
int |
getAnimationSpeed()
This function returns the animation speed for the navigation panel.
|
int |
getApproximationThreshold()
This method returns the threshold value of 3D rendering approximation.
|
float |
getBarWidthToThicknessRatio()
This function returns the width to thickness ratio for a bar/line 3D chart.
|
ColorSpectrum |
getColorSpectrum()
This function returns the color spectrum being used.
|
java.awt.Color |
getLight()
Returns the intensity of the light source used for shading.
|
Point_3D |
getLightPosition()
This function gets the light position for shading.
|
int |
getRenderMode()
This function returns the 3D rendering mode.
|
int |
getScatterCubeWidth()
This function returns the width of the cube for a scatter 3D chart.
|
Point_3D[] |
getViewDirection()
Returns the viewpoint values for a 3D chart.
|
Point_3D |
getViewTranslation()
Returns the view translation coordinates.
|
java.awt.Color |
getWallColor()
This function returns the color used to draw the xy,yz,xz walls for a 3D chart.
|
float |
getXScale()
Returns the X dimension scaling used for a 3D chart.
|
float |
getYScale()
Returns the Y dimension scaling used for a 3D chart.
|
int |
getZoomFactor()
Returns the zoom factor used for viewing a 3D chart.
|
float |
getZScale()
Returns the Z dimension scaling used for a 3D chart.
|
boolean |
is3DApproximationUsed()
This function returns whether a 3D rendering approximation method is currently used.
|
boolean |
isDrawSeriesOnCategoryAxis()
Determines whether or not drawing series on category axis in 3 dimension space.
|
boolean |
isWallFrameVisible()
Returns whether or not a wireframe is drawn around the 3 walls of a 3D chart.
|
void |
move(boolean rotateMode,
int step,
int direction)
This function can move the chart in 4 different directions
|
void |
set3DApproximationUsed(boolean state)
This function sets the state of 3D rendering approximation.
|
void |
set3DApproximationUsed(boolean state,
int threshold)
This function sets the state of 3D rendering approximation.
|
void |
setAmbientLight(java.awt.Color c)
This function sets an ambient color for shading.
|
void |
setAnimationSpeed(int value)
This function sets the animation speed for the navigation panel in radians per frame.
|
void |
setBarWidthToThicknessRatio(float d)
This function sets the width to thickness ratio for a bar/line 3D chart.
|
void |
setColorSpectrum(ColorSpectrum colorSpectrum)
This function sets the data color based on the vertical value Currently only 3D surface chart
supports this feature.
|
void |
setDrawSeriesOnCategoryAxis(boolean b)
Set drawing series on category axis in 3 dimension space.
|
void |
setLight(java.awt.Color light)
Sets the light source intensity used for shading.
|
void |
setLightPosition(Point_3D x)
This function sets the light position for shading.
|
void |
setRenderMode(int mode)
This function sets the 3D rendering mode.
|
void |
setScatterCubeWidth(int d)
This function sets the width of the cube for a scatter 3D chart.
|
void |
setViewDirection(Point_3D[] x)
This function sets viewpoint for a 3D chart.
|
void |
setViewTranslation(Point_3D x)
This function sets the view translation of the chart from the center.
|
void |
setWallColor(java.awt.Color c)
This function sets the color used to draw the xy,yz, and xz walls in a 3D chart.
|
void |
setWallFrameVisible(boolean b)
Enables/Disables a wireframe around the 3 walls for a 3D chart.
|
void |
setXScale(float scale)
This function sets the X dimension scale factor for a 3D chart.
|
void |
setYScale(float scale)
This function sets the Y dimension scale factor for a 3D chart.
|
void |
setZoomFactor(int f)
This function sets the viewing zoom factor for a 3D chart.
|
void |
setZScale(float scale)
This function sets the Z dimension scale factor for a 3D chart.
|
void |
useDefault3DDisplayView()
Use default 3D Display View angle and scale
|
static final int UP
static final int DOWN
static final int LEFT
static final int RIGHT
int getAnimationSpeed()
Associated QbChart property: ANIMATE_SPEED
void setAnimationSpeed(int value)
value
- The animation speed (should be between 1 and 100).getAnimationSpeed()
void setRenderMode(int mode)
Associated QbChart property: DRAWMODE_3D
mode
- The rendering mode: Options are:
QbChart.FLAT QbChart.WIREFRAME QbChart.FLAT_BORDER QbChart.GOURAUD_BORDER QbChart.GOURAUD
int getRenderMode()
setRenderMode(int)
void setViewDirection(Point_3D[] x)
Associated QbChart property: VIEWPOINT
x
- An array (size 2) of Point_3D objects containing the start and end x,y,z
coordinates which define the viewpoint.Point_3D
Point_3D[] getViewDirection()
setViewDirection(quadbase.util.Point_3D[])
,
Point_3D
void setViewTranslation(Point_3D x)
Associated QbChart property: VIEW_TRANSLATION
x
- The Point_3D object containing the x,y,z coordinates for the translation.Point_3D
void move(boolean rotateMode, int step, int direction)
rotateMode
- If rotateMode is true, rotate a chart along with direction If rotateMode is false,
translate a chart along with directionstep
- Step intervaldirection
- Options are:
I3DPropertySet.UP I3DPropertySet.DOWN I3DPropertySet.LEFT I3DPropertySet.RIGHT
Point_3D getViewTranslation()
Point_3D
void setLightPosition(Point_3D x)
Associated QbChart property: LIGHT_POSITION
x
- The Point_3D object containing the x,y,z coordinates of the light position.Point_3D
Point_3D getLightPosition()
Point_3D
java.awt.Color getAmbientLight()
Color
void setAmbientLight(java.awt.Color c)
Associated QbChart property: AMBIENT_COLOR
c
- The color value to use.Color
java.awt.Color getLight()
void setLight(java.awt.Color light)
Associated QbChart property: LIGHT_INTENSITY
light
- The light intensity to use.int getZoomFactor()
void setZoomFactor(int f)
Associated QbChart property: ZOOM_FACTOR
f
- The zoom factor to use (0 - 100).float getXScale()
void setXScale(float scale)
Associated QbChart property: SPACE_XSCALE
scale
- The X scale factor to use.float getYScale()
void setYScale(float scale)
Associated QbChart property: SPACE_YSCALE
scale
- The Y scale factor to use.float getZScale()
void setZScale(float scale)
Associated QbChart property: SPACE_ZSCALE
scale
- The Z scale factor to use.float getBarWidthToThicknessRatio()
void setBarWidthToThicknessRatio(float d)
Associated QbChart property: THICKNESS_RATIO
d
- The width-thickness ratio to use while drawing the bars.int getScatterCubeWidth()
void setScatterCubeWidth(int d)
d
- The width to use while drawing the scatter cube.boolean isWallFrameVisible()
void setWallFrameVisible(boolean b)
Associated QbChart property: DRAW_WALLFRAME
b
- Set to true if wireframe around walls is needed. False otherwise.java.awt.Color getWallColor()
void setWallColor(java.awt.Color c)
Associated QbChart property: WALL_COLOR
c
- The color object to use.ColorSpectrum getColorSpectrum()
setColorSpectrum(quadbase.util.ColorSpectrum)
void setColorSpectrum(ColorSpectrum colorSpectrum)
colorSpectrum
- The color spectrumgetColorSpectrum()
boolean is3DApproximationUsed()
However, since it is just an approximation, a correct order of faces is not guaranteed, and
thus users should make this decision carefully. This option is particularly useful for 3D
scatter charts and surface charts with a lot of data points.
This option is only available for 3D scatter, surface charts and chart with secondary data.
The default value is true.
set3DApproximationUsed(boolean)
void set3DApproximationUsed(boolean state)
However, since it is just an approximation, a correct order of faces is not guaranteed, and
thus users should make this decision carefully. This option is particularly useful for 3D
scatter charts and surface charts with a lot of data points.
This option is only available for 3D scatter, surface charts and chart with secondary data.
The default value is true.
Same as set3DApproximationUsed(state, 100)
state
- The state of approximationis3DApproximationUsed()
void useDefault3DDisplayView()
void set3DApproximationUsed(boolean state, int threshold)
However, since it is just an approximation, a correct order of faces is not guaranteed, and
thus users should make this decision carefully. The default value is false. This option is
particularly useful for 3D scatter charts and surface charts with a lot of data points.
The approximation method is triggered when the number of data points is greater than the
threshold value.
This option is only available for 3D scatter and surface charts.
The default value of state is true.
The default value of threshold is 100.
state
- The state of approximationthreshold
- The number of data points (threshold) which triggers the approximation methodis3DApproximationUsed()
int getApproximationThreshold()
set3DApproximationUsed(boolean)
boolean isDrawSeriesOnCategoryAxis()
void setDrawSeriesOnCategoryAxis(boolean b)
state
- The state of drawing method