public class

Anchor

extends Object
implements IAnchor
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.output.text.impl.Anchor

Class Overview

A simple implementation of an anchor.

Summary

Public Constructors
Anchor(long id, int lineindex)
Create an anchor.
Public Methods
long getIdentifier()
Get the anchor identifier.
int getLineIndex()
Get the line index, within the document part, of the first line (the anchor line) of the anchored chunk.
void setIdentifier(long id)
void setLineIndex(int index)
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.pnfsoftware.jeb.core.output.text.IAnchor

Public Constructors

public Anchor (long id, int lineindex)

Create an anchor.

Parameters
id anchor identifier, positive or null
lineindex the index of the first line (relative to the document part this anchor belongs to)

Public Methods

public long getIdentifier ()

Get the anchor identifier. The identifier is a zero+ index number.

Returns
  • the identifier

public int getLineIndex ()

Get the line index, within the document part, of the first line (the anchor line) of the anchored chunk.

Returns
  • the identifier

public void setIdentifier (long id)

public void setLineIndex (int index)

public String toString ()