Class TextSampleEntry

    • Constructor Detail

      • TextSampleEntry

        public TextSampleEntry()
      • TextSampleEntry

        public TextSampleEntry​(String type)
    • Method Detail

      • setType

        public void setType​(String type)
      • parse

        public void parse​(ReadableByteChannel dataSource,
                          ByteBuffer header,
                          long contentSize,
                          BoxParser boxParser)
                   throws IOException
        Description copied from interface: ParsableBox
        Parses the box excluding the already parsed header (size, 4cc, [long-size], [user-type]). The remaining size of the box is the contentSize, contentSize number of bytes should be read from the box source (readableByteChannel). If you need the header buffer at a later stage you have to create a copy.
        Specified by:
        parse in interface ParsableBox
        Specified by:
        parse in class AbstractSampleEntry
        Parameters:
        dataSource - the source for this box
        header - the box' already parsed header (create copy if you need it later as it will be overwritten)
        contentSize - remaining bytes of this box
        boxParser - use it to parse sub-boxes.
        Throws:
        IOException - in case of an error during a read operation
      • getBox

        public void getBox​(WritableByteChannel writableByteChannel)
                    throws IOException
        Description copied from interface: Box
        Writes the complete box - size | 4-cc | content - to the given writableByteChannel.
        Specified by:
        getBox in interface Box
        Specified by:
        getBox in class AbstractSampleEntry
        Parameters:
        writableByteChannel - the box's sink
        Throws:
        IOException - in case of problems with the Channel
      • isScrollIn

        public boolean isScrollIn()
      • setScrollIn

        public void setScrollIn​(boolean scrollIn)
      • isScrollOut

        public boolean isScrollOut()
      • setScrollOut

        public void setScrollOut​(boolean scrollOutIn)
      • isScrollDirection

        public boolean isScrollDirection()
      • setScrollDirection

        public void setScrollDirection​(boolean scrollOutIn)
      • isContinuousKaraoke

        public boolean isContinuousKaraoke()
      • setContinuousKaraoke

        public void setContinuousKaraoke​(boolean continuousKaraoke)
      • isWriteTextVertically

        public boolean isWriteTextVertically()
      • setWriteTextVertically

        public void setWriteTextVertically​(boolean writeTextVertically)
      • isFillTextRegion

        public boolean isFillTextRegion()
      • setFillTextRegion

        public void setFillTextRegion​(boolean fillTextRegion)
      • getHorizontalJustification

        public int getHorizontalJustification()
      • setHorizontalJustification

        public void setHorizontalJustification​(int horizontalJustification)
      • getVerticalJustification

        public int getVerticalJustification()
      • setVerticalJustification

        public void setVerticalJustification​(int verticalJustification)
      • getBackgroundColorRgba

        public int[] getBackgroundColorRgba()
      • setBackgroundColorRgba

        public void setBackgroundColorRgba​(int[] backgroundColorRgba)