TextOverlayFactory#
- class ansys.stk.core.graphics.TextOverlayFactory#
A rectangular overlay that contains text.
Overview#
Initialize the overlay with a position of (0, 0), a width of 100 pixels, and a height of 50 pixels. |
|
Initialize the overlay with the specified x position, y position, width, and height, all specified in pixels. |
|
Initialize the overlay with the specified position and size. |
|
Initialize the overlay with the specified position and size. |
Import detail#
from ansys.stk.core.graphics import TextOverlayFactory
Method detail#
- TextOverlayFactory.initialize(self, font: GraphicsFont) TextOverlay #
Initialize the overlay with a position of (0, 0), a width of 100 pixels, and a height of 50 pixels.
- Parameters:
font :
GraphicsFont
- Returns:
TextOverlay
- TextOverlayFactory.initialize_with_xy_width_height(self, font: GraphicsFont, x_pixels: float, y_pixels: float, width_pixels: float, height_pixels: float) TextOverlay #
Initialize the overlay with the specified x position, y position, width, and height, all specified in pixels.
- TextOverlayFactory.initialize_with_position_size(self, font: GraphicsFont, position: list, size: list) TextOverlay #
Initialize the overlay with the specified position and size.
- TextOverlayFactory.initialize_with_width_height_units(self, font: GraphicsFont, width: float, width_unit: ScreenOverlayUnit, height: float, height_unit: ScreenOverlayUnit) TextOverlay #
Initialize the overlay with the specified position and size.