org.gnu.pango

Class AttrIterator

public class AttrIterator extends MemStruct

Deprecated: This class is part of the java-gnome 2.x family of libraries, which, due to their inefficiency and complexity, are no longer being maintained and have been abandoned by the java-gnome project. This class may exist in java-gnome 4.0; look out for org.gnome.pango.AttrIterator. As this package was never fully implemented in java-gnome 2.x, however, any new code written will have a considerably different public API.

The AttrIterator object is used to represent an iterator through a List. A new iterator is created with pango_attr_list_get_iterator(). Once the iterator is created, it can be advanced through the style changes in the text using pango_attr_iterator_next(). At each style change, the range of the current style segment and the attributes currently in effect can be queried. todo: is this needed?
Constructor Summary
AttrIterator(Handle handle)
AttrIterator(AttrIterator iter)
Create a copy of the provided iterator.
Method Summary
Attributeget(AttrType type)
Find the current attribute of a particular type at the iterator location.
intgetRangeEnd()
Return the end of the current segment range.
intgetRangeStart()
Return the beginning of the current segment range.
booleannext()
Advance the iterator until the next change of style.

Constructor Detail

AttrIterator

public AttrIterator(Handle handle)

AttrIterator

public AttrIterator(AttrIterator iter)

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Create a copy of the provided iterator.

Parameters: iter

Method Detail

get

public Attribute get(AttrType type)

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Find the current attribute of a particular type at the iterator location. When multiple attributes of the same type overlap, the attribute whose range starts closest to the current location is used.

getRangeEnd

public int getRangeEnd()

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Return the end of the current segment range.

getRangeStart

public int getRangeStart()

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Return the beginning of the current segment range.

next

public boolean next()

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Advance the iterator until the next change of style.

Returns: false if the iterator is at the end of the list.