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.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-
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 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 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:
resourceTypein classAbstractLayer<TextLayer>
-
type
public TextLayer type(java.lang.String type)
- Overrides:
typein classAbstractLayer<TextLayer>
-
format
public TextLayer format(java.lang.String format)
- Overrides:
formatin 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:
toStringin classAbstractLayer<TextLayer>
-
textStyleIdentifier
protected java.lang.String textStyleIdentifier()
-
-