Modifier and Type | Method and Description |
---|---|
void |
apply(MediaPlayer mediaPlayer)
Apply the logo to the media player.
|
Logo |
disable()
Disable the logo.
|
Logo |
enable()
Enable the logo.
|
Logo |
enable(boolean enable)
Apply the initial enabled/disabled state.
|
Logo |
file(File file)
Apply the logo file.
|
Logo |
file(String file)
Apply the logo file.
|
boolean |
getEnable()
Get the enabled flag.
|
String |
getFile()
Get the file name.
|
Float |
getFloatOpacity()
Get the opacity if set as float.
|
RenderedImage |
getImage()
Get the image.
|
Integer |
getIntegerOpacity()
Get the opacity if set as integer.
|
libvlc_logo_position_e |
getPosition()
Get the position.
|
Integer |
getX()
Get the location x co-ordinate.
|
Integer |
getY()
Get the location y co-ordinate.
|
Logo |
image(RenderedImage image)
Apply the logo image.
|
Logo |
location(int x,
int y)
Apply the logo position in video co-ordinates.
|
static Logo |
logo()
Create a logo.
|
Logo |
opacity(float opacity)
Apply a logo opacity.
|
Logo |
opacity(int opacity)
Apply a logo opacity.
|
Logo |
position(libvlc_logo_position_e position)
Apply the logo position.
|
String |
toString() |
public static Logo logo()
public Logo opacity(int opacity)
opacity
- opacity, from 0 to 255, where 255 is fully opaquepublic Logo opacity(float opacity)
opacity
- opacity, from 0.0 to 1.0, where 1.0 is fully opaquepublic Logo location(int x, int y)
x
- x ordinatey
- y ordinatepublic Logo position(libvlc_logo_position_e position)
position
- position enumeration valuepublic Logo file(String file)
It is possible to simply specify the name of the file, or the extended syntax supported by
libvlc - e.g. "file,d,t;file,d,t;...", see
libvlc_video_logo_option_t.libvlc_logo_file
.
file
- name of the filepublic Logo image(RenderedImage image)
This is not optimal as the image must first be written to disk in a temporary file.
image
- logo imagepublic Logo enable(boolean enable)
enable
- true
to enable the logo; false
to disable itpublic Logo enable()
public Logo disable()
public Integer getIntegerOpacity()
public Float getFloatOpacity()
public Integer getX()
public Integer getY()
public libvlc_logo_position_e getPosition()
public String getFile()
public RenderedImage getImage()
public boolean getEnable()
public void apply(MediaPlayer mediaPlayer)
All previously applied properties will be set on the media player.
mediaPlayer
- media playerCopyright © 2009–2015 Caprica Software Limited. All rights reserved.