mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-27 12:40:47 +00:00
More documentation.
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
package com.jpexs.decompiler.flash.types;
|
||||
|
||||
/**
|
||||
*
|
||||
* Basic types enum.
|
||||
* @author JPEXS
|
||||
*/
|
||||
public enum BasicType {
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
package com.jpexs.decompiler.flash.types;
|
||||
|
||||
/**
|
||||
*
|
||||
* Blend modes.
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class BlendMode {
|
||||
|
||||
+13
-1
@@ -19,17 +19,29 @@ package com.jpexs.decompiler.flash.types;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
*
|
||||
* Single color color transform.
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class ConstantColorColorTransform extends ColorTransform implements Serializable {
|
||||
|
||||
/**
|
||||
* Color
|
||||
*/
|
||||
private final int color;
|
||||
|
||||
/**
|
||||
* Constructs ConstantColorColorTransform
|
||||
* @param color Color
|
||||
*/
|
||||
public ConstantColorColorTransform(int color) {
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
/**
|
||||
* Apply colortransform.
|
||||
* @param color Color
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int apply(int color) {
|
||||
return this.color;
|
||||
|
||||
@@ -17,14 +17,23 @@
|
||||
package com.jpexs.decompiler.flash.types;
|
||||
|
||||
/**
|
||||
*
|
||||
* Glyph entry of dynamic text.
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class DynamicTextGlyphEntry extends GLYPHENTRY {
|
||||
|
||||
/**
|
||||
* Font face.
|
||||
*/
|
||||
public String fontFace;
|
||||
|
||||
/**
|
||||
* Font style.
|
||||
*/
|
||||
public int fontStyle;
|
||||
|
||||
/**
|
||||
* Character.
|
||||
*/
|
||||
public char character;
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ package com.jpexs.decompiler.flash.types;
|
||||
import java.lang.reflect.Field;
|
||||
|
||||
/**
|
||||
*
|
||||
* Observer for field change.
|
||||
* @author JPEXS
|
||||
*/
|
||||
public interface FieldChangeObserver {
|
||||
|
||||
@@ -17,12 +17,21 @@
|
||||
package com.jpexs.decompiler.flash.types;
|
||||
|
||||
/**
|
||||
*
|
||||
* An item with characterId
|
||||
* @author JPEXS
|
||||
*/
|
||||
public interface HasCharacterId {
|
||||
|
||||
/**
|
||||
* Gets characterId.
|
||||
* Can be -1 in some special cases.
|
||||
* @return
|
||||
*/
|
||||
public int getCharacterId();
|
||||
|
||||
/**
|
||||
* Sets characterId.
|
||||
* @param characterId
|
||||
*/
|
||||
public void setCharacterId(int characterId);
|
||||
}
|
||||
|
||||
@@ -20,14 +20,26 @@ import com.jpexs.decompiler.flash.SWF;
|
||||
import com.jpexs.decompiler.flash.tags.Tag;
|
||||
|
||||
/**
|
||||
*
|
||||
* An item with SWF and tag.
|
||||
* @author JPEXS
|
||||
*/
|
||||
public interface HasSwfAndTag {
|
||||
|
||||
/**
|
||||
* Sets tag.
|
||||
* @param tag
|
||||
*/
|
||||
public void setSourceTag(Tag tag);
|
||||
|
||||
/**
|
||||
* Gets SWF.
|
||||
* @return
|
||||
*/
|
||||
public SWF getSwf();
|
||||
|
||||
/**
|
||||
* Gets tag.
|
||||
* @return
|
||||
*/
|
||||
public Tag getTag();
|
||||
}
|
||||
|
||||
@@ -21,19 +21,39 @@ import com.jpexs.helpers.ConcreteClasses;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
*
|
||||
* Interface for LINESTYLE and LINESTYLE2.
|
||||
* @author JPEXS
|
||||
*/
|
||||
@ConcreteClasses({LINESTYLE.class, LINESTYLE2.class})
|
||||
public interface ILINESTYLE extends NeedsCharacters, Serializable {
|
||||
|
||||
/**
|
||||
* Gets version of LINESTYLE.
|
||||
* @return
|
||||
*/
|
||||
public int getNum();
|
||||
|
||||
/**
|
||||
* Gets color.
|
||||
* @return
|
||||
*/
|
||||
public RGB getColor();
|
||||
|
||||
/**
|
||||
* Gets width.
|
||||
* @return
|
||||
*/
|
||||
public int getWidth();
|
||||
|
||||
/**
|
||||
* Sets color.
|
||||
* @param color
|
||||
*/
|
||||
public void setColor(RGB color);
|
||||
|
||||
/**
|
||||
* Sets width.
|
||||
* @param width
|
||||
*/
|
||||
public void setWidth(int width);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user