More documentation.

This commit is contained in:
Jindra Petřík
2024-08-08 19:27:14 +02:00
parent ca5857a91f
commit 68954e714d
8 changed files with 70 additions and 8 deletions
@@ -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 {
@@ -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);
}