Class Coordinates

java.lang.Object
com.pnfsoftware.jeb.core.output.text.impl.Coordinates
All Implemented Interfaces:
ICoordinates

@Ser public class Coordinates extends Object implements ICoordinates
A simple implementation of the ICoordinates interface.

Plugins may use this class to minimize code duplication.

  • 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 interface ICoordinates
      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 interface ICoordinates
      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 interface ICoordinates
      Returns:
      the column offset
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object