#803 Align text (left, right, center) in Define*Text

This commit is contained in:
honfika@gmail.com
2015-02-18 20:22:21 +01:00
parent 92c16bf618
commit 2aba948769
14 changed files with 211 additions and 3 deletions

View File

@@ -100,6 +100,7 @@ import com.jpexs.decompiler.flash.tags.base.SoundStreamHeadTypeTag;
import com.jpexs.decompiler.flash.tags.base.SoundTag;
import com.jpexs.decompiler.flash.tags.base.TextImportErrorHandler;
import com.jpexs.decompiler.flash.tags.base.TextTag;
import com.jpexs.decompiler.flash.tags.text.TextAlign;
import com.jpexs.decompiler.flash.tags.text.TextParseException;
import com.jpexs.decompiler.flash.timeline.DepthState;
import com.jpexs.decompiler.flash.timeline.Frame;
@@ -1990,6 +1991,14 @@ public final class MainPanel extends JPanel implements ActionListener, TreeSelec
return false;
}
public boolean alignText(TextTag textTag, TextAlign textAlign) {
if (textTag.alignText(textAlign)) {
return true;
}
return false;
}
@Override
public void actionPerformed(ActionEvent e) {
switch (e.getActionCommand()) {