java.lang.Object
uk.co.caprica.vlcj.player.base.MarqueeApi
Behaviour pertaining to the marquee.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
enable
(boolean enable) Enable/disable the marquee.void
Set a marquee from a builder.void
setColour
(int colour) Set the marquee colour.void
Set the marquee colour.void
setLocation
(int x, int y) Set the marquee location.void
setOpacity
(float opacity) Set the marquee opacity.void
setOpacity
(int opacity) Set the marquee opacity.void
setPosition
(MarqueePosition position) Set the marquee position.void
setRefresh
(int refresh) Set the delay before refreshing the marquee text.void
setSize
(int size) Set the marquee size.void
Set the marquee text.void
setTimeout
(int timeout) Set the marquee timeout.
-
Method Details
-
enable
public void enable(boolean enable) Enable/disable the marquee.The marquee will not be enabled if there is currently no video being played.
- Parameters:
enable
-true
to show the marquee,false
to hide it
-
setText
Set the marquee text.Format variables are available, some examples:
Time related: %Y = year %d = day %H = hour %M = minute %S = second
Seehttp://wiki.videolan.org/index.php?title=Documentation:Modules/marq
.You can use any format specifiers used by the strftime C function ("man strftime" for more information).
If you want to use new-lines in the marquee text make sure you use the "\r\n" escape sequence - "\n" on its own will not work.
- Parameters:
text
- text
-
setColour
Set the marquee colour.- Parameters:
colour
- colour, any alpha component will be masked off
-
setColour
public void setColour(int colour) Set the marquee colour.- Parameters:
colour
- RGB colour value
-
setOpacity
public void setOpacity(int opacity) Set the marquee opacity.- Parameters:
opacity
- opacity in the range 0 to 100 where 255 is fully opaque
-
setOpacity
public void setOpacity(float opacity) Set the marquee opacity.- Parameters:
opacity
- opacity percentage in the range 0.0 to 1.0 where 1.0 is fully opaque
-
setSize
public void setSize(int size) Set the marquee size.- Parameters:
size
- size, height of the marquee text in pixels
-
setTimeout
public void setTimeout(int timeout) Set the marquee timeout.- Parameters:
timeout
- timeout, in milliseconds
-
setLocation
public void setLocation(int x, int y) Set the marquee location.- Parameters:
x
- x co-ordinate for the top left of the marqueey
- y co-ordinate for the top left of the marquee
-
setPosition
Set the marquee position.- Parameters:
position
- position
-
setRefresh
public void setRefresh(int refresh) Set the delay before refreshing the marquee text.- Parameters:
refresh
- refresh delay, milliseconds
-
set
Set a marquee from a builder.- Parameters:
marquee
- marquee builder
-