Class ClangTextField

    • Method Detail

      • getToken

        public ClangToken getToken​(FieldLocation loc)
        Gets the C language token at the indicated location.
        Parameters:
        loc - the field location
        Returns:
        the token
      • paint

        public void paint​(javax.swing.JComponent c,
                          java.awt.Graphics g,
                          PaintContext context,
                          java.awt.Rectangle clip,
                          FieldBackgroundColorManager selectionMap,
                          RowColLocation cursorLoc,
                          int rowHeight)
        Description copied from interface: Field
        Paints this field
        Specified by:
        paint in interface Field
        Overrides:
        paint in class VerticalLayoutTextField
        Parameters:
        c - the component to paint onto
        g - the graphics context
        context - common paint parameters
        clip - the clipping region to paint into
        selectionMap - contains background color information for the field
        cursorLoc - the row,column cursor location within the field or null if the field does not contain the cursor
        rowHeight - the number of pixels in each row of text in the field
      • getLineNumberWidth

        public int getLineNumberWidth()
      • getLineNumber

        public int getLineNumber()