Package com.cloudinary.transformation
Class TextLayer
java.lang.Object
- 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
-
Constructor Summary
Constructors Constructor Description TextLayer()
-
Method Summary
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 Details
-
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
-
-
Constructor Details
-
TextLayer
public TextLayer()
-
-
Method Details
-
resourceType
- Overrides:
resourceType
in classAbstractLayer<TextLayer>
-
type
- Overrides:
type
in classAbstractLayer<TextLayer>
-
format
- Overrides:
format
in classAbstractLayer<TextLayer>
-
fontFamily
-
fontAntialiasing
-
fontHinting
-
fontSize
-
fontWeight
-
fontStyle
-
textDecoration
-
textAlign
-
stroke
-
letterSpacing
-
letterSpacing
-
lineSpacing
-
text
-
textStyle
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
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()
-