Search
ItemDrawContext.drawContentsText Method
See Also
 






Renders the item's contents text at the specified location.

Namespace: com.mindfusion.scheduling
Package: com.mindfusion.scheduling

 Syntax

Java  Copy Code

public boolean drawContentsText (
    Rectangle destination,
    boolean useSettings,
    boolean rotate
)

 Parameters

destination

A reference to the destination rectangle. This rectangle might be changed in the process of rendering.

useSettings

Specifies whether to take into consideration validation properties, such as ItemSettings.getEnableDefaultRendering. Specify false for this property to perform unconditional rendering.

rotate

Specifies whether to rotate the text at 90 degree.

 Return Value

true if the text has been rendered; otherwise, false.

 Remarks

This method renders the Item.getDescriptionText of the underlying item using the settings from the underlying style, such as Style.getTextColor, Style.getTextAlignment, and so on. Since the style is based on the current theme, the rendered text is guaranteed to be theme independent, that is, the color and font of the text, unless overridden, are the same as those specified in the current theme. If the theme is changed, the font and color are updated accordingly.

 See Also