Package quadbase.util
Interface ITextString
- All Known Implementing Classes:
TextString,TextString
This function is used to set/get the different properties associated with the text strings drawn
in a chart.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the given object equals this one.Gets the relative offsets (horizontal and vertical) of the text stringReturns the position of the text string in the canvasgetValue()This function returns the value of the string.voidSets the offset values of the text string.voidsetPosition(Position pos) Sets the position of the string in the canvas.voidThis function sets the value of the string.
-
Method Details
-
getValue
String getValue()This function returns the value of the string.- Returns:
- The value of the string as a String object.
-
setValue
This function sets the value of the string.- Parameters:
value- The string value to set.
-
getPosition
Position getPosition()Returns the position of the text string in the canvas- Returns:
- The position object containing the x and y coordinates.
-
setPosition
Sets the position of the string in the canvas.- Parameters:
pos- The position object.Note that the x and y values in the position object should be between 0 and 1.
- See Also:
-
getOffset
Dimension getOffset()Gets the relative offsets (horizontal and vertical) of the text string- Returns:
- The offset as a Dimension object.
-
setOffset
Sets the offset values of the text string.- Parameters:
offset- The Dimension object containing the horizontal and vertical offsets.
-
equals
Returns true if the given object equals this one.
-