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.StringfontAntialiasingprotected java.lang.StringfontFamilyprotected java.lang.StringfontHintingprotected java.lang.IntegerfontSizeprotected java.lang.StringfontStyleprotected java.lang.StringfontWeightprotected java.lang.StringletterSpacingprotected java.lang.IntegerlineSpacingprotected java.lang.StringresourceTypeprotected java.lang.Stringstrokeprotected java.lang.Stringtextprotected java.lang.StringtextAlignprotected java.lang.StringtextDecorationprotected java.lang.ObjecttextStyle -
Constructor Summary
Constructors Constructor Description TextLayer() -
Method Summary
Modifier and Type Method Description TextLayerfontAntialiasing(java.lang.String fontAntialiasing)TextLayerfontFamily(java.lang.String fontFamily)TextLayerfontHinting(java.lang.String fontHinting)TextLayerfontSize(int fontSize)TextLayerfontStyle(java.lang.String fontStyle)TextLayerfontWeight(java.lang.String fontWeight)TextLayerformat(java.lang.String format)TextLayerletterSpacing(int letterSpacing)TextLayerletterSpacing(java.lang.String letterSpacing)TextLayerlineSpacing(java.lang.Integer lineSpacing)TextLayerresourceType(java.lang.String resourceType)TextLayerstroke(java.lang.String stroke)TextLayertext(java.lang.String text)TextLayertextAlign(java.lang.String textAlign)TextLayertextDecoration(java.lang.String textDecoration)TextLayertextStyle(Expression textStyleIdentifier)Sets a text style identifier using an expression.TextLayertextStyle(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.StringtextStyleIdentifier()java.lang.StringtoString()TextLayertype(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:
resourceTypein classAbstractLayer<TextLayer>
-
type
- Overrides:
typein classAbstractLayer<TextLayer>
-
format
- Overrides:
formatin 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:
toStringin classAbstractLayer<TextLayer>
-
textStyleIdentifier
protected java.lang.String textStyleIdentifier()
-