ghm.follow.gui
Class LineTextUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.TextUI
          extended by javax.swing.plaf.basic.BasicTextUI
              extended by javax.swing.plaf.basic.BasicTextAreaUI
                  extended by ghm.follow.gui.LineTextUI
All Implemented Interfaces:
javax.swing.text.ViewFactory

public class LineTextUI
extends javax.swing.plaf.basic.BasicTextAreaUI

UI implementation that highlights the line where the caret is found.

Author:
Carl Hall

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTextUI
javax.swing.plaf.basic.BasicTextUI.BasicCaret, javax.swing.plaf.basic.BasicTextUI.BasicHighlighter
 
Constructor Summary
LineTextUI()
           
 
Method Summary
 javax.swing.text.View create(javax.swing.text.Element elem)
           
 int getSelectedIndex()
           
 void installUI(javax.swing.JComponent c)
           
 
Methods inherited from class javax.swing.plaf.basic.BasicTextAreaUI
createUI, getBaseline, getBaselineResizeBehavior, getMinimumSize, getPreferredSize, getPropertyPrefix, installDefaults, propertyChange
 
Methods inherited from class javax.swing.plaf.basic.BasicTextUI
create, createCaret, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getEditorKit, getKeymapName, getMaximumSize, getNextVisualPositionFrom, getRootView, getToolTipText, getVisibleEditorRect, installKeyboardActions, installListeners, modelChanged, modelToView, modelToView, paint, paintBackground, paintSafely, setView, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, update, viewToModel, viewToModel
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineTextUI

public LineTextUI()
Method Detail

create

public javax.swing.text.View create(javax.swing.text.Element elem)
Specified by:
create in interface javax.swing.text.ViewFactory
Overrides:
create in class javax.swing.plaf.basic.BasicTextAreaUI

installUI

public void installUI(javax.swing.JComponent c)
Overrides:
installUI in class javax.swing.plaf.basic.BasicTextUI

getSelectedIndex

public int getSelectedIndex()


Copyright © 2008. All Rights Reserved.