Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-871

Add a line number / character count ruler for use with scrolling text areas

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0.2
    • Fix Version/s: 2.1
    • Component/s: wtk, wtk-terra
    • Labels:
    • Environment:
      All

      Description

      The idea is to take the Ruler class that is already implemented in two of the tutorials and beef it up so that it can act as either a line number ruler (vertical orientation) or a character count ruler (horizontal orientation) for use with TextArea or TextPane inside a ScrollPane. It would be attached either as the "rowHeader" or "columnHeader" of a ScrollPane with the appropriate orientation.
      By selecting the same font into the ruler as is used in the TextArea or TextPane, presumably it would be in sync with the text. Alternatively, we could add row height and column width styles that would override the font metrics if there was a sizing problem. Will have to see once I get it implemented.
      There could be other possible useful styles – again, I will have to see once I get it implemented what might make sense.

        Attachments

          Activity

            People

            • Assignee:
              rwhitcomb Roger Lee Whitcomb
              Reporter:
              rwhitcomb Roger Lee Whitcomb
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 72h
                72h
                Remaining:
                Remaining Estimate - 72h
                72h
                Logged:
                Time Spent - Not Specified
                Not Specified