EspressChart
v 5.5

quadbase.util
Interface ILabel

All Superinterfaces:
java.lang.Cloneable, IText
All Known Implementing Classes:
QbChartBasic.CDataTopLabel, QbChartBasic.CDataTopLabel2, QbChartBasic.CDataTopLabel, QbChartBasic.CDataTopLabel2

public interface ILabel
extends IText

This interface is used to set/get different properties associated with the labels drawn in a chart.

See Also:
ITextString, IText, IFormat

Method Summary
 IFormat getFormat()
          This function returns a handle to an object of type IFormat.
 java.awt.Dimension getOffset()
          This function returns the horizontal and vertical label offset.
 boolean isVisible()
          This function checks if the given label(s) is/are visible or not.
 void setFormat(IFormat f)
          This function sets the format object for the label being displayed.
 void setOffset(java.awt.Dimension offset)
          This function sets the horizontal and vertical label offsets.
 void setVisible(boolean b)
          This function enables/disables the drawing of label(s).
 
Methods inherited from interface quadbase.util.IText
getAngle, getColor, getFont, setAngle, setColor, setFont
 

Method Detail

isVisible

public boolean isVisible()
This function checks if the given label(s) is/are visible or not.
Returns:
true if the labels are visible, false otherwise

setVisible

public void setVisible(boolean b)
This function enables/disables the drawing of label(s).
Parameters:
b - true if labels are to be displayed, false otherwise.

getOffset

public java.awt.Dimension getOffset()
This function returns the horizontal and vertical label offset.
Returns:
The horizontal and vertical offsets in a Dimension object.

setOffset

public void setOffset(java.awt.Dimension offset)
This function sets the horizontal and vertical label offsets.
Parameters:
offset - The horizontal and vertical offsets stored in a Dimension object.

getFormat

public IFormat getFormat()
This function returns a handle to an object of type IFormat.

Associated QbChart property:


           DATA_LABEL_FORMAT
 
Returns:
A handle to an object of type IFormat
See Also:
IFormat, DateTimeFormat, NumericFormat, LogicalFormat

setFormat

public void setFormat(IFormat f)
This function sets the format object for the label being displayed.

Associated QbChart property:


           DATA_LABEL_FORMAT
 
Parameters:
f - The format for the label being displayed.

EspressChart
v 5.5