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 TypeMethodDescriptionbooleanlongGet the anchor id.intGet the column offset within the line identified by the (anchorId, lineDelta) couple.intGet the line index within the anchored chunk.inthashCode()voidsetAnchorId(int anchorId) voidsetColumnOffset(int columnOffset) voidsetLineDelta(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:ICoordinatesGet the anchor id.- Specified by:
getAnchorIdin interfaceICoordinates- Returns:
- the anchor id
-
setLineDelta
public void setLineDelta(int lineDelta) -
getLineDelta
public int getLineDelta()Description copied from interface:ICoordinatesGet the line index within the anchored chunk.- Specified by:
getLineDeltain interfaceICoordinates- Returns:
- the line index
-
setColumnOffset
public void setColumnOffset(int columnOffset) -
getColumnOffset
public int getColumnOffset()Description copied from interface:ICoordinatesGet the column offset within the line identified by the (anchorId, lineDelta) couple.- Specified by:
getColumnOffsetin interfaceICoordinates- Returns:
- the column offset
-
hashCode
public int hashCode() -
equals
-
toString
-