API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.text. DefaultHighlighter View Source
Author(s)
Timothy Prinzing
Since
Version
1.40 11/17/05
Serial
Hierarchy
 Object
      LayeredHighlighter
          DefaultHighlighter
Implements
Subclasses
Description
public class DefaultHighlighter
  Implements the Highlighter interfaces.
See also:    Highlighter
Constructors
public DefaultHighlighter ()
Creates a new DefaultHighlighther object.
Methods
Hide/Show inherited methods
public Object addHighlight (int p0, int p1, HighlightPainter p) throws BadLocationException
  Adds a highlight to the view.
public void changeHighlight (Object tag, int p0, int p1) throws BadLocationException
  Changes a highlight.
public void deinstall (JTextComponent c)
  Called when the UI is being removed from the interface of a JTextComponent.
public boolean getDrawsLayeredHighlights ()
public Highlight getHighlights ()
  Makes a copy of the highlights.
public void install (JTextComponent c)
  Called when the UI is being installed into the interface of a JTextComponent.
public void paint (Graphics g)
  Renders the highlights.
public void paintLayeredHighlights (Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view) [Specified in LayeredHighlighter]
  When leaf Views (such as LabelView) are rendering they should call into this method.
public void removeAllHighlights ()
Removes all highlights.
public void removeHighlight (Object tag)
  Removes a highlight from the view.
public void setDrawsLayeredHighlights (boolean newValue)
  If true, highlights are drawn as the Views draw the text.
Fields
Hide/Show inherited fields
publicfinalstatic LayerPainter DefaultPainter
  Default implementation of LayeredHighlighter.LayerPainter that can be used for painting highlights.
Nested Classes
  DefaultHighlighter.DefaultHighlightPainter
Simple highlight painter that fills a highlighted area with a solid color.
  DefaultHighlighter.HighlightInfo
  DefaultHighlighter.LayeredHighlightInfo
LayeredHighlightPainter is used when a drawsLayeredHighlights is true.
  DefaultHighlighter.SafeDamager
This class invokes mapper.damageRange in EventDispatchThread.
  LayeredHighlighter.LayerPainter
Layered highlight renderer.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar