Package quadbase.util
Interface IOverlayPropertySet
public interface IOverlayPropertySet
This interface is used to modify the properties associated with a 2D overlay chart.
A handle to an object that implements this interface can be obtained by calling the gethOverlayProperties method defined in QbChart.
eg. QbChart chart = new QbChart(...);
IOverlayPropertySet = chart.gethOverlayProperties();
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionintgetAxis(int index) This method returns corresponding axis of the specific layerintThis method returns the offset of axis gapbooleangetAxisPosition(int index) This method returns corresponding axis of the specific layerintThis method counts the number of layers.intgetLayerType(int index) This method returns the chart type of the specific layerbooleanThis method returns whether the x position of axis is calculated automaticallybooleanDeprecated.Please use @link IDataPointSet#isTranslucent()voidsetAutoAxisPosition(boolean state) This method sets the x position of axis is calculated automaticallyvoidsetAxis(int index, int assignedAxis) This method set the corresponding axis of the specific layervoidsetAxisGapOffset(int offset) This method set the offset of axis gapvoidsetAxisPosition(int index, boolean useSecondaryAxis) This method set the corresponding axis of the specific layervoidsetLayerType(int index, int chartType) This method set the chart type of the specific layervoidsetOverlayTransparent(boolean b) Deprecated.Please use @link IDataPointSet#setTranslucent(boolean b)
-
Field Details
-
NEWAXIS
static final int NEWAXIS- See Also:
-
PRIMARYAXIS
static final int PRIMARYAXIS- See Also:
-
SECONDARYAXIS
static final int SECONDARYAXIS- See Also:
-
-
Method Details
-
getLayerCount
int getLayerCount()This method counts the number of layers.- Returns:
- number of layer
-
getLayerType
int getLayerType(int index) This method returns the chart type of the specific layer- Parameters:
index- index of the layer- Returns:
- corresponding chart type of that layer return -1 if layer is invisible
- See Also:
-
setLayerType
void setLayerType(int index, int chartType) This method set the chart type of the specific layer- Parameters:
index- index of the layerchartType- corresponding chart type. Options are:invisible, set chartType = -1 QbChart.COL QbChart.AREA QbChart.LINE- See Also:
-
getAxisPosition
boolean getAxisPosition(int index) This method returns corresponding axis of the specific layer- Parameters:
index- index of the layer- Returns:
- draw data base on secondary axis scale
- See Also:
-
setAxisPosition
void setAxisPosition(int index, boolean useSecondaryAxis) This method set the corresponding axis of the specific layer- Parameters:
index- index of the layeruseSecondaryAxis- draw data base on secondary axis scale- See Also:
-
getAxis
int getAxis(int index) This method returns corresponding axis of the specific layer- Parameters:
index- index of the layer- Returns:
- index of axis
- See Also:
-
setAxis
void setAxis(int index, int assignedAxis) This method set the corresponding axis of the specific layer- Parameters:
index- index of the layerassignedAxis- index of axis- See Also:
-
isAutoAxisPosition
boolean isAutoAxisPosition()This method returns whether the x position of axis is calculated automatically- Returns:
- the state of auto axis
- See Also:
-
setAutoAxisPosition
void setAutoAxisPosition(boolean state) This method sets the x position of axis is calculated automatically- Parameters:
state- the state of auto axis- See Also:
-
getAxisGapOffset
int getAxisGapOffset()This method returns the offset of axis gap- Returns:
- the offset of axis gap
- See Also:
-
setAxisGapOffset
void setAxisGapOffset(int offset) This method set the offset of axis gap- Parameters:
offset- the offset of axis gap- See Also:
-
isOverlayTransparent
Deprecated.Please use @link IDataPointSet#isTranslucent()This method returns whether the chart is partially transparent- Returns:
- the state
-
setOverlayTransparent
Deprecated.Please use @link IDataPointSet#setTranslucent(boolean b)If new state is true, the overlay parts of the chart are drawn in partially transparent method. The default value is false. This method requires JDK 1.2 or above- Parameters:
state- The new state
-