getName
public String getName()
Returns the name of the tag
getPriority
public int getPriority()
Returns the priority of the tag.
getType
public static Type getType()
Retrieve the runtime type used by the GLib library.
setBackground
public void setBackground(String background)
Sets the background color as a string.
setBackgroundFullHeight
public void setBackgroundFullHeight(boolean fullHeight)
Whether the background color fills the entire line height or only the
height of the tagged characters.
setBackgroundStipple
public void setBackgroundStipple(Pixmap stipple)
Bitmap to use as a mask when drawing the text background.
setDirection
public void setDirection(TextDirection direction)
Text direction, for example right-to-left or left-to-right.
setEditable
public void setEditable(boolean editable)
Whether the text can be modified by the user.
setFamily
public void setFamily(String family)
Name of the font family, e.g. Sans, Helvetica, Times, Monospace.
setFont
public void setFont(String font)
Font description as a string, e.g. "Sans Italic 12".
setFontDescription
public void setFontDescription(FontDescription fontDesc)
Font description as a FontDescription.
setForeground
public void setForeground(String foreground)
Foreground color as a string
setForegroundStipple
public void setForegroundStipple(Pixmap stipple)
Bitmap to use as a mask when drawing the text foreground.
setIndent
public void setIndent(int indent)
Amount to indent the paragraph, in pixels.
setJustification
public void setJustification(Justification justification)
Left, right, or center justification.
setLanguage
public void setLanguage(String language)
The language this text is in, as an ISO code. Pango can use this as a
hint when rendering the text. If not set, an appropriate default will be
used.
setLeftMargin
public void setLeftMargin(int margin)
Width of the left margin in pixels.
setPixelsAboveLines
public void setPixelsAboveLines(int setting)
Pixels of blank space above paragraphs.
setPixelsBelowLines
public void setPixelsBelowLines(int setting)
Pixels of blank space below paragraphs.
setPixelsInsideWrap
public void setPixelsInsideWrap(int setting)
Pixels of blank space between wrapped lines in a paragraph.
setPriority
public void setPriority(int priority)
Sets the priority of the Tag. Valid priorities are start at 0 and go to
one less than
TextTagTable.getSize()
. Each tag in a table has a
unique priority; setting the priority of one tag shifts the priorities of
all the other tags in the table to maintain a unique priority for each
tag. Higher priority tags "win" if two tags both set the same text
attribute. When adding a tag to a tag table, it will be assigned the
highest priority in the table by default; so normally the precedence of a
set of tags is the order in which they were added to the table, or
created with
TextBuffer.createTag(String)
, which adds the tag to
the buffer's table automatically.
setRightMargin
public void setRightMargin(int margin)
Width of the right margin in pixels.
setRise
public void setRise(int rise)
Offset of text above the baseline (below the baseline if rise is
negative) in pixels.
setScale
public void setScale(Scale scale)
Font size as a scale factor relative to the default font size. This
properly adapts to theme changes etc. so is recommended.
setSize
public void setSize(int size)
Font size in Pango units.
setSizePoints
public void setSizePoints(double points)
Font size in points.
setStretch
public void setStretch(Stretch stretch)
Font stretch as a Stretch.
setStrikethrough
public void setStrikethrough(boolean strikethrough)
Whether to strike through the text.
setStyle
public void setStyle(Style style)
Font Style
setTabs
public void setTabs(TabArray tabs)
Custom tabs for this text.
setUnderline
public void setUnderline(Underline underline)
Style of underline for this text.
setVariant
public void setVariant(Variant variant)
Font variant as a Variant.
setWeight
public void setWeight(Weight weight)
Font weight as an integer, see predefined values in Weight
setWrapMode
public void setWrapMode(WrapMode mode)
Whether to wrap lines never, at word boundaries, or at character
boundaries.