Class ReplaceAsset


  • public class ReplaceAsset
    extends java.lang.Object
    高级替换素材 高级文字替换素材示例: 前缀查找文字替换 { text: "你好", type: 1, d_key_prefix: "dtext" } 默认前缀(dtext)查找文字替换 { text: "你好", type: 1 } 精确查找文字替换 { text: "你好", type: 1, d_key: "title" } 高级图片替换素材示例: 前缀查找图片替换 { file: "/path/to/file.png", type: 2, d_key_prefix: "dtext" } 默认前缀(dtext)查找替换 { file: "/path/to/file.png", type: 2 } 精确查找替换 { file: "/path/to/file.png", type: 2, d_key: "title" }
    • Constructor Detail

      • ReplaceAsset

        public ReplaceAsset()
      • ReplaceAsset

        public ReplaceAsset​(int type)
      • ReplaceAsset

        public ReplaceAsset​(int type,
                            java.lang.String text)
    • Method Detail

      • getdKey

        public java.lang.String getdKey()
      • setdKey

        public void setdKey​(java.lang.String dKey)
      • getdKeyPrefix

        public java.lang.String getdKeyPrefix()
      • setdKeyPrefix

        public void setdKeyPrefix​(java.lang.String dKeyPrefix)
      • getText

        public java.lang.String getText()
      • setText

        public void setText​(java.lang.String text)
      • getType

        public int getType()
      • setType

        public void setType​(int type)
      • getFile

        public java.lang.String getFile()
      • setFile

        public void setFile​(java.lang.String file)
      • getFontFile

        public java.lang.String getFontFile()
      • setFontFile

        public void setFontFile​(java.lang.String fontFile)
      • getFill

        public java.lang.String getFill()
      • setFill

        public void setFill​(java.lang.String fill)
      • getStroke

        public java.lang.String getStroke()
      • setStroke

        public void setStroke​(java.lang.String stroke)