Package com.jogamp.opengl.util.av
Class SubTextEvent
- java.lang.Object
-
- com.jogamp.opengl.util.av.SubtitleEvent
-
- com.jogamp.opengl.util.av.SubTextEvent
-
public class SubTextEvent extends SubtitleEvent
Text Event Line including ASS/SAA ofSubtitleEvent
See http://www.tcax.org/docs/ass-specs.htm
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SubTextEvent.ASSType
ASS Formatting Typestatic class
SubTextEvent.TextFormat
Text formatting-
Nested classes/interfaces inherited from class com.jogamp.opengl.util.av.SubtitleEvent
SubtitleEvent.Type
-
-
Field Summary
Fields Modifier and Type Field Description SubTextEvent.ASSType
assType
SubTextEvent.ASSType
sub-typeString
effect
int
end
End time in milliseconds, or -1.int
layer
int
lines
Number of lines oftext
, i.e.String
name
int
seqnr
int
start
Start time in milliseconds, or -1.String
style
String
text
Actual subtitle textSubTextEvent.TextFormat
textFormat
SubTextEvent.TextFormat
of this text subtitle event.
-
Constructor Summary
Constructors Constructor Description SubTextEvent(CodecID codec, String lang, SubTextEvent.TextFormat fmt, String ass, int pts_start, int pts_end)
ASS/SAA Event Line ctor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
release()
Release the resources, if any, back to the owner.String
toString()
-
Methods inherited from class com.jogamp.opengl.util.av.SubtitleEvent
getDuration, getStartString, isEndDefined
-
-
-
-
Field Detail
-
textFormat
public final SubTextEvent.TextFormat textFormat
SubTextEvent.TextFormat
of this text subtitle event.
-
assType
public final SubTextEvent.ASSType assType
SubTextEvent.ASSType
sub-type
-
start
public final int start
Start time in milliseconds, or -1.
-
end
public final int end
End time in milliseconds, or -1.
-
style
public final String style
-
seqnr
public final int seqnr
-
layer
public final int layer
-
name
public final String name
-
effect
public final String effect
-
text
public final String text
Actual subtitle text
-
lines
public final int lines
Number of lines oftext
, i.e. occurrence of\n
+ 1.
-
-
Constructor Detail
-
SubTextEvent
public SubTextEvent(CodecID codec, String lang, SubTextEvent.TextFormat fmt, String ass, int pts_start, int pts_end)
ASS/SAA Event Line ctor- Parameters:
codec
- theCodecID
lang
- language code, supposed to be 3-letters of `ISO 639-2 language codes`fmt
- input format ofass
ass
- ASS/SAA compatible event line according toSubTextEvent.ASSType
pts_start
- pts start in mspts_end
- pts end in ms
-
-
Method Detail
-
release
public void release()
Description copied from class:SubtitleEvent
Release the resources, if any, back to the owner.- Specified by:
release
in classSubtitleEvent
-
-