Package com.aspose.barcode.component
Class CaptionUI
- java.lang.Object
-
- com.aspose.barcode.component.CaptionUI
-
public class CaptionUI extends java.lang.Object
UI wrapper for com.aspose.barcode.generation.CaptionParameters class.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextAlignment
getAlignment()
Gets the textalignment of the caption.int
getColor()
Gets theforecolor of thecaption .android.text.TextPaint
getFont()
Gets thefont of thecaption .Padding
getPadding()
Gets caption paddings. java.lang.String
getText()
Gets the content of the caption.boolean
getVisible()
Gets a value indicates whether thecaption is visible.void
setAlignment(TextAlignment value)
Sets the textalignment of the caption.void
setColor(int value)
Sets theforecolor of thecaption .void
setFont(android.text.TextPaint value)
Specify the displaying CodeText's font.void
setText(java.lang.String value)
Sets the content of the caption.void
setVisible(boolean value)
Sets a value indicates whether thecaption is visible.java.lang.String
toString()
Returns a human-readable string representation of this.
-
-
-
Method Detail
-
getVisible
public boolean getVisible()
Gets a value indicates whether thecaption is visible.- Returns:
-
setVisible
public void setVisible(boolean value)
Sets a value indicates whether thecaption is visible.- Parameters:
value
-
-
getColor
public int getColor()
Gets theforecolor of thecaption .- Returns:
-
setColor
public void setColor(int value)
Sets theforecolor of thecaption .- Parameters:
value
-
-
getFont
public android.text.TextPaint getFont()
Gets thefont of thecaption .
-
setFont
public void setFont(android.text.TextPaint value)
Specify the displaying CodeText's font. Default value: Arial 5pt regular. Ignored if FontMode is set to FontMode.AUTO.
-
getPadding
public Padding getPadding()
Gets caption paddings.
-
getAlignment
public TextAlignment getAlignment()
Gets the textalignment of the caption.
-
setAlignment
public void setAlignment(TextAlignment value)
Sets the textalignment of the caption.
-
getText
public java.lang.String getText()
Gets the content of the caption.
-
setText
public void setText(java.lang.String value)
Sets the content of the caption.
-
toString
public java.lang.String toString()
Returns a human-readable string representation of this. - Overrides:
toString
in classjava.lang.Object
- Returns:
- A string that represents this
.
-
-