Class Coordinates
java.lang.Object
com.pnfsoftware.jeb.core.output.text.impl.Coordinates
- All Implemented Interfaces:
ICoordinates
A simple implementation of the
ICoordinates
interface.
Plugins may use this class to minimize code duplication.
-
Constructor Summary
ConstructorsConstructorDescriptionCoordinates
(long anchorId) Coordinates
(long anchorId, int lineDelta) Coordinates
(long anchorId, int lineDelta, int columnOffset) -
Method Summary
Modifier and TypeMethodDescriptionboolean
long
Get the anchor id.int
Get the column offset within the line identified by the (anchorId, lineDelta) couple.int
Get the line index within the anchored chunk.int
hashCode()
void
setAnchorId
(int anchorId) void
setColumnOffset
(int columnOffset) void
setLineDelta
(int lineDelta) toString()
-
Constructor Details
-
Coordinates
public Coordinates(long anchorId, int lineDelta, int columnOffset) -
Coordinates
public Coordinates(long anchorId, int lineDelta) -
Coordinates
public Coordinates(long anchorId)
-
-
Method Details
-
setAnchorId
public void setAnchorId(int anchorId) -
getAnchorId
public long getAnchorId()Description copied from interface:ICoordinates
Get the anchor id.- Specified by:
getAnchorId
in interfaceICoordinates
- Returns:
- the anchor id
-
setLineDelta
public void setLineDelta(int lineDelta) -
getLineDelta
public int getLineDelta()Description copied from interface:ICoordinates
Get the line index within the anchored chunk.- Specified by:
getLineDelta
in interfaceICoordinates
- Returns:
- the line index
-
setColumnOffset
public void setColumnOffset(int columnOffset) -
getColumnOffset
public int getColumnOffset()Description copied from interface:ICoordinates
Get the column offset within the line identified by the (anchorId, lineDelta) couple.- Specified by:
getColumnOffset
in interfaceICoordinates
- Returns:
- the column offset
-
hashCode
public int hashCode() -
equals
-
toString
-