Modifier and Type | Method and Description |
---|---|
void |
apply(MediaPlayer mediaPlayer)
Apply the marquee to the media player.
|
Marquee |
colour(Color colour)
Apply the text colour.
|
Marquee |
colour(int rgb)
Apply the text colour as RGB components.
|
Marquee |
disable()
Disable the marquee.
|
Marquee |
enable()
Enable the marquee.
|
Marquee |
enable(boolean enable)
Apply the initial enabled/disabled state.
|
Color |
getColour()
Get the colour if set as Color.
|
boolean |
getEnable()
Get the enabled flag.
|
Float |
getFloatOpacity()
Get the opacity if set as float.
|
Integer |
getIntegerOpacity()
Get the opacity if set as integer.
|
libvlc_marquee_position_e |
getPosition()
Get the position.
|
Integer |
getRgb()
Get the colour if set as RGB.
|
Integer |
getSize()
Get the text size.
|
String |
getText()
Get the text.
|
Integer |
getTimeout()
Get the timeout.
|
Integer |
getX()
Get the location x co-ordinate.
|
Integer |
getY()
Get the location y co-ordinate.
|
Marquee |
location(int x,
int y)
Apply the text location in video co-ordinates.
|
static Marquee |
marquee()
Create a marquee.
|
Marquee |
opacity(float opacity)
Apply the text opacity.
|
Marquee |
opacity(int opacity)
Apply the text opacity.
|
Marquee |
position(libvlc_marquee_position_e position)
Apply the text position.
|
Marquee |
size(int size)
Apply the text size.
|
Marquee |
text(String text)
Apply the text.
|
Marquee |
timeout(int timeout)
Apply the timeout.
|
String |
toString() |
public static Marquee marquee()
public Marquee text(String text)
Format variables are available:
Time related: %Y = year %d = day %H = hour %M = minute %S = secondMeta data related:
$a = artist $b = album $c = copyright $d = description $e = encoded by $g = genre $l = language $n = track num $p = now playing $r = rating $s = subtitles language $t = title $u = url $A = date $B = audio bitrate (in kb/s) $C = chapter $D = duration $F = full name with path $I = title $L = time left $N = name $O = audio language $P = position (in %) $R = rate $S = audio sample rate (in kHz) $T = time $U = publisher $V = volume $_ = new lineSee
http://wiki.videolan.org/index.php?title=Documentation:Modules/marq
.text
- textpublic Marquee colour(Color colour)
colour
- text colourpublic Marquee colour(int rgb)
rgb
- integer encoded red, green, blue colour componentspublic Marquee opacity(int opacity)
opacity
- opacity, 0 to 255, where 255 is fully opaquepublic Marquee opacity(float opacity)
opacity
- opacity, 0.0 to 1.0, where 1.0 is fully opaquepublic Marquee size(int size)
size
- text sizepublic Marquee timeout(int timeout)
The marquee will be removed when the timeout expires.
timeout
- timeout, in millisecondspublic Marquee location(int x, int y)
x
- x ordinatey
- y ordinatepublic Marquee position(libvlc_marquee_position_e position)
position
- predefined text positionpublic Marquee enable(boolean enable)
enable
- true
to enable the marquee; false
to disable itpublic Marquee enable()
public Marquee disable()
public String getText()
public Color getColour()
public Integer getRgb()
public Integer getIntegerOpacity()
public Float getFloatOpacity()
public Integer getSize()
public Integer getTimeout()
public Integer getX()
public Integer getY()
public libvlc_marquee_position_e getPosition()
public boolean getEnable()
public void apply(MediaPlayer mediaPlayer)
mediaPlayer
- media playerCopyright © 2009–2015 Caprica Software Limited. All rights reserved.