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 ofSubtitleEventSee http://www.tcax.org/docs/ass-specs.htm
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSubTextEvent.ASSTypeASS Formatting Typestatic classSubTextEvent.TextFormatText formatting-
Nested classes/interfaces inherited from class com.jogamp.opengl.util.av.SubtitleEvent
SubtitleEvent.Type
-
-
Field Summary
Fields Modifier and Type Field Description SubTextEvent.ASSTypeassTypeSubTextEvent.ASSTypesub-typeStringeffectintendEnd time in milliseconds, or -1.intlayerintlinesNumber of lines oftext, i.e.StringnameintseqnrintstartStart time in milliseconds, or -1.StringstyleStringtextActual subtitle textSubTextEvent.TextFormattextFormatSubTextEvent.TextFormatof 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 voidrelease()Release the resources, if any, back to the owner.StringtoString()-
Methods inherited from class com.jogamp.opengl.util.av.SubtitleEvent
getDuration, getStartString, isEndDefined
-
-
-
-
Field Detail
-
textFormat
public final SubTextEvent.TextFormat textFormat
SubTextEvent.TextFormatof this text subtitle event.
-
assType
public final SubTextEvent.ASSType assType
SubTextEvent.ASSTypesub-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- theCodecIDlang- language code, supposed to be 3-letters of `ISO 639-2 language codes`fmt- input format ofassass- ASS/SAA compatible event line according toSubTextEvent.ASSTypepts_start- pts start in mspts_end- pts end in ms
-
-
Method Detail
-
release
public void release()
Description copied from class:SubtitleEventRelease the resources, if any, back to the owner.- Specified by:
releasein classSubtitleEvent
-
-