diff options
author | Sven Göthel <[email protected]> | 2024-02-02 12:11:59 +0100 |
---|---|---|
committer | Sven Göthel <[email protected]> | 2024-02-02 12:11:59 +0100 |
commit | 020f998cad685ce2267751196528b31ce939764c (patch) | |
tree | d28bedb6379a578ad6fd760767b54cf9531a0790 /src/graphui/classes/com/jogamp/graph/ui/widgets | |
parent | 5242c1392c39d3a4b0a95ebfdc72bcd93bf2f820 (diff) |
Bug 1493 - Text/ASS Subtitle via MediaButton/MediaPlayer Alignment defaults to CenterHoriz, also support Left.
MediaButton: Also cleanup local vars in layout
Diffstat (limited to 'src/graphui/classes/com/jogamp/graph/ui/widgets')
-rw-r--r-- | src/graphui/classes/com/jogamp/graph/ui/widgets/MediaPlayer.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/widgets/MediaPlayer.java b/src/graphui/classes/com/jogamp/graph/ui/widgets/MediaPlayer.java index 2d2ba07f1..d93078288 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/widgets/MediaPlayer.java +++ b/src/graphui/classes/com/jogamp/graph/ui/widgets/MediaPlayer.java @@ -628,10 +628,11 @@ public class MediaPlayer extends Widget { * @param subFont text/ASS subtitle font * @param subLineHeightPct text/ASS subtitle line height percentage, defaults to {@link MediaButton#DEFAULT_ASS_SUB_HEIGHT} * @param subLineDY text/ASS y-axis offset to bottom in line-height, defaults to {@link MediaButton#DEFAULT_ASS_SUB_POS} + * @param subAlignment text/ASS subtitle alignment, defaults to {@link #DEFAULT_ASS_SUB_ALIGNMENT} */ - public void setSubtitleParams(final Font subFont, final float subLineHeightPct, final float subLineDY) { + public void setSubtitleParams(final Font subFont, final float subLineHeightPct, final float subLineDY, final Alignment subAlignment) { if( null != mButton ) { - mButton.setSubtitleParams(subFont, subLineHeightPct, subLineDY); + mButton.setSubtitleParams(subFont, subLineHeightPct, subLineDY, subAlignment); } } /** |