Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
GObject
org.gnu.gtk.TextTag
public class TextTag
extends GObject
TextBuffer
description for an overview of these classes.
TextTags should be created using the TextBuffer.createTag(String)
method.
Constructor Summary | |
|
Method Summary | |
String |
|
int |
|
static Type |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void | |
void |
|
void |
|
void |
|
void |
|
void | |
void | |
void |
|
void |
|
void | |
void |
|
public TextTag(String name)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Construct a new TextTag
- Parameters:
name
-
public String getName()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns the name of the tag
public int getPriority()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns the priority of the tag.
- See Also:
setPriority(int)
public static Type getType()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Retrieve the runtime type used by the GLib library.
public void setBackground(String background)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets the background color as a string.
- Parameters:
background
-
public void setBackgroundFullHeight(boolean fullHeight)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Whether the background color fills the entire line height or only the height of the tagged characters.
- Parameters:
fullHeight
-
public void setBackgroundStipple(Pixmap stipple)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Bitmap to use as a mask when drawing the text background.
- Parameters:
stipple
-
public void setDirection(TextDirection direction)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Text direction, for example right-to-left or left-to-right.
- Parameters:
direction
-
public void setEditable(boolean editable)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Whether the text can be modified by the user.
- Parameters:
editable
-
public void setFamily(String family)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Name of the font family, e.g. Sans, Helvetica, Times, Monospace.
- Parameters:
family
-
public void setFont(String font)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Font description as a string, e.g. "Sans Italic 12".
- Parameters:
font
-
public void setFontDescription(FontDescription fontDesc)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Font description as a FontDescription.
- Parameters:
fontDesc
-
public void setForeground(String foreground)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Foreground color as a string
- Parameters:
foreground
-
public void setForegroundStipple(Pixmap stipple)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Bitmap to use as a mask when drawing the text foreground.
- Parameters:
stipple
-
public void setIndent(int indent)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Amount to indent the paragraph, in pixels.
- Parameters:
indent
-
public void setJustification(Justification justification)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Left, right, or center justification.
- Parameters:
justification
-
public void setLanguage(String language)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
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.
- Parameters:
language
-
public void setLeftMargin(int margin)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Width of the left margin in pixels.
- Parameters:
margin
-
public void setPixelsAboveLines(int setting)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Pixels of blank space above paragraphs.
- Parameters:
setting
-
public void setPixelsBelowLines(int setting)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Pixels of blank space below paragraphs.
- Parameters:
setting
-
public void setPixelsInsideWrap(int setting)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Pixels of blank space between wrapped lines in a paragraph.
- Parameters:
setting
-
public void setPriority(int priority)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets the priority of the Tag. Valid priorities are start at 0 and go to one less thanTextTagTable.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 withTextBuffer.createTag(String)
, which adds the tag to the buffer's table automatically.
public void setRightMargin(int margin)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Width of the right margin in pixels.
- Parameters:
margin
-
public void setRise(int rise)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Offset of text above the baseline (below the baseline if rise is negative) in pixels.
- Parameters:
rise
-
public void setScale(Scale scale)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Font size as a scale factor relative to the default font size. This properly adapts to theme changes etc. so is recommended.
- Parameters:
scale
-
public void setSize(int size)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Font size in Pango units.
- Parameters:
size
-
public void setSizePoints(double points)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Font size in points.
- Parameters:
points
-
public void setStretch(Stretch stretch)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Font stretch as a Stretch.
- Parameters:
stretch
-
public void setStrikethrough(boolean strikethrough)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Whether to strike through the text.
- Parameters:
strikethrough
-
public void setStyle(Style style)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Font Style
- Parameters:
style
-
public void setTabs(TabArray tabs)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Custom tabs for this text.
- Parameters:
tabs
-
public void setUnderline(Underline underline)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Style of underline for this text.
- Parameters:
underline
-
public void setVariant(Variant variant)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Font variant as a Variant.
- Parameters:
variant
-
public void setWeight(Weight weight)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Font weight as an integer, see predefined values in Weight
- Parameters:
weight
-
public void setWrapMode(WrapMode mode)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Whether to wrap lines never, at word boundaries, or at character boundaries.
- Parameters:
mode
-