Class CodeAreaScrollPosition


  • @ParametersAreNonnullByDefault
    public class CodeAreaScrollPosition
    extends java.lang.Object
    Code area scrolling position.
    • Constructor Detail

      • CodeAreaScrollPosition

        public CodeAreaScrollPosition()
      • CodeAreaScrollPosition

        public CodeAreaScrollPosition​(long rowPosition,
                                      int rowOffset,
                                      int charPosition,
                                      int charOffset)
    • Method Detail

      • getRowPosition

        public long getRowPosition()
      • getRowOffset

        public int getRowOffset()
      • getCharPosition

        public int getCharPosition()
      • getCharOffset

        public int getCharOffset()
      • setRowPosition

        public void setRowPosition​(long rowPosition)
      • setRowOffset

        public void setRowOffset​(int rowOffset)
      • setCharPosition

        public void setCharPosition​(int charPosition)
      • setCharOffset

        public void setCharOffset​(int charOffset)
      • reset

        public void reset()
        Resets scrolling position to top left corner.
      • hashCode

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

        public boolean equals​(@Nullable
                              java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • isCharPositionGreaterThan

        public boolean isCharPositionGreaterThan​(CodeAreaScrollPosition compPosition)