Class Anchor
java.lang.Object
com.pnfsoftware.jeb.core.output.text.impl.Anchor
- All Implemented Interfaces:
IAnchor
A simple implementation of an anchor.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongGet the anchor identifier.intGet the line index, within the document part, of the first line (the anchor line) of the anchored chunk.voidsetIdentifier(long id) voidsetLineIndex(int index) toString()
-
Constructor Details
-
Anchor
public Anchor(long id, int lineindex) Create an anchor.- Parameters:
id- anchor identifier, positive or nulllineindex- the index of the first line (relative to the document part this anchor belongs to)
-
-
Method Details
-
getIdentifier
public long getIdentifier()Description copied from interface:IAnchorGet the anchor identifier. The identifier is a zero+ index number.- Specified by:
getIdentifierin interfaceIAnchor- Returns:
- the identifier
-
setIdentifier
public void setIdentifier(long id) -
getLineIndex
public int getLineIndex()Description copied from interface:IAnchorGet the line index, within the document part, of the first line (the anchor line) of the anchored chunk.- Specified by:
getLineIndexin interfaceIAnchor- Returns:
- the identifier
-
setLineIndex
public void setLineIndex(int index) -
toString
-