Interface IVerticalRulerInfo

    • Method Detail

      • getControl

        Control getControl()
        Returns the ruler's SWT control.
        Returns:
        the ruler's SWT control
      • getLineOfLastMouseButtonActivity

        int getLineOfLastMouseButtonActivity()
        Returns the line number of the last mouse button activity. Based on the input document of the connected text viewer.
        Returns:
        the line number of the last mouse button activity or -1 if the last mouse activity does not correspond to a valid document line
      • toDocumentLineNumber

        int toDocumentLineNumber​(int y_coordinate)
        Translates a y-coordinate of the ruler's SWT control into the according line number of the document of the connected text viewer.
        Parameters:
        y_coordinate - a y-coordinate of the ruler's SWT control
        Returns:
        the line number of that coordinate or -1 if that coordinate does not correspond to a valid document line
      • getWidth

        int getWidth()
        Returns the width of this ruler's control.
        Returns:
        the width of this ruler's control