Package com.cloudinary.transformation
Class TextLayer
- java.lang.Object
-
- com.cloudinary.transformation.AbstractLayer<TextLayer>
-
- com.cloudinary.transformation.TextLayer
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
SubtitlesLayer
,TextLayerBuilder
public class TextLayer extends AbstractLayer<TextLayer>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
fontAntialiasing
protected java.lang.String
fontFamily
protected java.lang.String
fontHinting
protected java.lang.Integer
fontSize
protected java.lang.String
fontStyle
protected java.lang.String
fontWeight
protected java.lang.String
letterSpacing
protected java.lang.Integer
lineSpacing
protected java.lang.String
resourceType
protected java.lang.String
stroke
protected java.lang.String
text
protected java.lang.String
textAlign
protected java.lang.String
textDecoration
protected java.lang.Object
textStyle
-
Fields inherited from class com.cloudinary.transformation.AbstractLayer
format, publicId, type
-
-
Constructor Summary
Constructors Constructor Description TextLayer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextLayer
fontAntialiasing(java.lang.String fontAntialiasing)
TextLayer
fontFamily(java.lang.String fontFamily)
TextLayer
fontHinting(java.lang.String fontHinting)
TextLayer
fontSize(int fontSize)
TextLayer
fontStyle(java.lang.String fontStyle)
TextLayer
fontWeight(java.lang.String fontWeight)
TextLayer
format(java.lang.String format)
TextLayer
letterSpacing(int letterSpacing)
TextLayer
letterSpacing(java.lang.String letterSpacing)
TextLayer
lineSpacing(java.lang.Integer lineSpacing)
TextLayer
resourceType(java.lang.String resourceType)
TextLayer
stroke(java.lang.String stroke)
TextLayer
text(java.lang.String text)
TextLayer
textAlign(java.lang.String textAlign)
TextLayer
textDecoration(java.lang.String textDecoration)
TextLayer
textStyle(Expression textStyleIdentifier)
Sets a text style identifier using an expression.TextLayer
textStyle(java.lang.String textStyleIdentifier)
Sets a text style identifier, Note: If this is used, all other style attributes are ignored in favor of this identifierprotected java.lang.String
textStyleIdentifier()
java.lang.String
toString()
TextLayer
type(java.lang.String type)
-
Methods inherited from class com.cloudinary.transformation.AbstractLayer
formattedPublicId, publicId
-
-
-
-
Field Detail
-
resourceType
protected java.lang.String resourceType
-
fontFamily
protected java.lang.String fontFamily
-
fontSize
protected java.lang.Integer fontSize
-
fontWeight
protected java.lang.String fontWeight
-
fontStyle
protected java.lang.String fontStyle
-
fontAntialiasing
protected java.lang.String fontAntialiasing
-
fontHinting
protected java.lang.String fontHinting
-
textDecoration
protected java.lang.String textDecoration
-
textAlign
protected java.lang.String textAlign
-
stroke
protected java.lang.String stroke
-
letterSpacing
protected java.lang.String letterSpacing
-
lineSpacing
protected java.lang.Integer lineSpacing
-
text
protected java.lang.String text
-
textStyle
protected java.lang.Object textStyle
-
-
Method Detail
-
resourceType
public TextLayer resourceType(java.lang.String resourceType)
- Overrides:
resourceType
in classAbstractLayer<TextLayer>
-
type
public TextLayer type(java.lang.String type)
- Overrides:
type
in classAbstractLayer<TextLayer>
-
format
public TextLayer format(java.lang.String format)
- Overrides:
format
in classAbstractLayer<TextLayer>
-
fontFamily
public TextLayer fontFamily(java.lang.String fontFamily)
-
fontAntialiasing
public TextLayer fontAntialiasing(java.lang.String fontAntialiasing)
-
fontHinting
public TextLayer fontHinting(java.lang.String fontHinting)
-
fontSize
public TextLayer fontSize(int fontSize)
-
fontWeight
public TextLayer fontWeight(java.lang.String fontWeight)
-
fontStyle
public TextLayer fontStyle(java.lang.String fontStyle)
-
textDecoration
public TextLayer textDecoration(java.lang.String textDecoration)
-
textAlign
public TextLayer textAlign(java.lang.String textAlign)
-
stroke
public TextLayer stroke(java.lang.String stroke)
-
letterSpacing
public TextLayer letterSpacing(java.lang.String letterSpacing)
-
letterSpacing
public TextLayer letterSpacing(int letterSpacing)
-
lineSpacing
public TextLayer lineSpacing(java.lang.Integer lineSpacing)
-
text
public TextLayer text(java.lang.String text)
-
textStyle
public TextLayer textStyle(java.lang.String textStyleIdentifier)
Sets a text style identifier, Note: If this is used, all other style attributes are ignored in favor of this identifier- Parameters:
textStyleIdentifier
- A variable string or an explicit style (e.g. "Arial_17_bold_antialias_best")- Returns:
- Itself for chaining
-
textStyle
public TextLayer textStyle(Expression textStyleIdentifier)
Sets a text style identifier using an expression. Note: If this is used, all other style attributes are ignored in favor of this identifier- Parameters:
textStyleIdentifier
- An expression instance referencing the style.- Returns:
- Itself for chaining
-
toString
public java.lang.String toString()
- Overrides:
toString
in classAbstractLayer<TextLayer>
-
textStyleIdentifier
protected java.lang.String textStyleIdentifier()
-
-