public interface

ICoordinates

com.pnfsoftware.jeb.core.output.text.ICoordinates
Known Indirect Subclasses

Class Overview

This interface defines a coordinates system to locate characters within ITextDocument objects.

Text coordinates allow the addressing of character within a line.

Note that different addresses may point to the same character. The canonical address of a character is defined as the one whose anchorId is the id of the anchored chunk containing this character.

Summary

Public Methods
abstract long getAnchorId()
Get the anchor id.
abstract int getColumnOffset()
Get the column offset within the line identified by the (anchorId, lineDelta) couple.
abstract int getLineDelta()
Get the line index within the anchored chunk.

Public Methods

public abstract long getAnchorId ()

Get the anchor id.

Returns
  • the anchor id

public abstract int getColumnOffset ()

Get the column offset within the line identified by the (anchorId, lineDelta) couple.

Returns
  • the column offset

public abstract int getLineDelta ()

Get the line index within the anchored chunk.

Returns
  • the line index