/* */ package quicktime.std.movies.media;
/* */
/* */ import quicktime.QTException;
/* */ import quicktime.QTSession;
/* */ import quicktime.qd.QDColor;
/* */ import quicktime.qd.QDRect;
/* */ import quicktime.qd.text.ScrpSTElement;
/* */ import quicktime.util.EndianDescriptor;
/* */ import quicktime.util.EndianFlipSpec;
/* */
/* */ public final class TextDescription extends SampleDescription
/* */ {
/* 26 */ private static boolean apriori = QTSession.apriori();
/* */ public static final int kNativeSize = 58;
/* */ private static EndianDescriptor ed;
/* */
/* */ protected static EndianDescriptor makeED()
/* */ {
/* 35 */ EndianDescriptor localEndianDescriptor = SampleDescription.makeED();
/* */
/* 37 */ EndianFlipSpec localEndianFlipSpec1 = new EndianFlipSpec(16, 4, 2);
/* 38 */ localEndianDescriptor.addFlipSpec(localEndianFlipSpec1);
/* */
/* 40 */ EndianFlipSpec localEndianFlipSpec2 = new EndianFlipSpec(24, 2, 3);
/* 41 */ localEndianDescriptor.addFlipSpec(localEndianFlipSpec2);
/* */
/* 43 */ EndianFlipSpec localEndianFlipSpec3 = new EndianFlipSpec(30, 2, 4);
/* 44 */ localEndianDescriptor.addFlipSpec(localEndianFlipSpec3);
/* */
/* 46 */ EndianFlipSpec localEndianFlipSpec4 = new EndianFlipSpec(38, 4, 1);
/* 47 */ localEndianDescriptor.addFlipSpec(localEndianFlipSpec4);
/* */
/* 49 */ EndianFlipSpec localEndianFlipSpec5 = new EndianFlipSpec(42, 2, 3);
/* 50 */ localEndianDescriptor.addFlipSpec(localEndianFlipSpec5);
/* */
/* 53 */ EndianFlipSpec localEndianFlipSpec6 = new EndianFlipSpec(47, 2, 1);
/* 54 */ localEndianDescriptor.addFlipSpec(localEndianFlipSpec6);
/* */
/* 56 */ EndianFlipSpec localEndianFlipSpec7 = new EndianFlipSpec(50, 2, 3);
/* 57 */ localEndianDescriptor.addFlipSpec(localEndianFlipSpec7);
/* */
/* 59 */ return localEndianDescriptor;
/* */ }
/* */
/* */ public static EndianDescriptor getEndianDescriptor()
/* */ {
/* 67 */ if (ed == null)
/* 68 */ ed = makeED();
/* 69 */ return ed;
/* */ }
/* */
/* */ public TextDescription()
/* */ throws QTException
/* */ {
/* 90 */ super(58, true, 1952807028);
/* */ }
/* */ private TextDescription(int paramInt) {
/* 93 */ super(paramInt, null, false);
/* */ }
/* */
/* */ public Object clone() {
/* 97 */ return new TextDescription(makeAndCopyHandle());
/* */ }
/* */
/* */ public void setDefaultStyle(ScrpSTElement paramScrpSTElement)
/* */ {
/* 104 */ copyFromArray(38, paramScrpSTElement.getBytes(), 0, paramScrpSTElement.getSize());
/* */ }
/* */
/* */ public ScrpSTElement getDefaultStyle()
/* */ {
/* 112 */ ScrpSTElement localScrpSTElement = new ScrpSTElement();
/* 113 */ copyToArray(38, localScrpSTElement.getBytes(), 0, localScrpSTElement.getSize());
/* 114 */ return localScrpSTElement;
/* */ }
/* */
/* */ public void setDisplayFlags(int paramInt)
/* */ {
/* 122 */ setIntAt(16, paramInt);
/* */ }
/* */
/* */ public int getDisplayFlags()
/* */ {
/* 129 */ return getIntAt(16);
/* */ }
/* */
/* */ public void setTextJustification(int paramInt)
/* */ {
/* 136 */ setIntAt(20, paramInt);
/* */ }
/* */
/* */ public int getTextJustification()
/* */ {
/* 143 */ return getIntAt(20);
/* */ }
/* */
/* */ public void setBackgroundColor(QDColor paramQDColor)
/* */ {
/* 151 */ setBytesAt(24, 6, paramQDColor.getRGBColor(), 0);
/* */ }
/* */
/* */ public QDColor getBackgroundColor()
/* */ {
/* 160 */ byte[] arrayOfByte = new byte[6];
/* 161 */ getBytesAt(24, 6, arrayOfByte, 0);
/* 162 */ return QDColor.fromArray(arrayOfByte, 6);
/* */ }
/* */
/* */ public void setDefaultTextBox(QDRect paramQDRect)
/* */ {
/* 171 */ setBytesAt(30, 8, paramQDRect.getRect(), 0);
/* */ }
/* */
/* */ public QDRect getDefaultTextBox()
/* */ {
/* 180 */ byte[] arrayOfByte = new byte[8];
/* 181 */ getBytesAt(30, 8, arrayOfByte, 0);
/* 182 */ return QDRect.fromArray(arrayOfByte, 8);
/* */ }
/* */
/* */ public void setDefaultFontName(String paramString)
/* */ throws QTException
/* */ {
/* 190 */ if (getSize() < 58 + paramString.length() + 1)
/* 191 */ setSize(58 + paramString.length() + 1);
/* 192 */ setPStringAt(58, 255, paramString);
/* */ }
/* */
/* */ public String getDefaultFontName()
/* */ throws QTException
/* */ {
/* 200 */ return getPStringAt(58);
/* */ }
/* */ }
/* Location: Z:\System\Library\Java\Extensions\QTJava.zip
* Qualified Name: quicktime.std.movies.media.TextDescription
* JD-Core Version: 0.6.2
*/