com.japisoft.xmlpad.bookmark
Class DefaultBookmarkContext

java.lang.Object
  extended bycom.japisoft.xmlpad.bookmark.DefaultBookmarkContext
All Implemented Interfaces:
BookmarkContext

public class DefaultBookmarkContext
extends java.lang.Object
implements BookmarkContext

Default context for the bookmark manager

Version:
1.0
Author:
(c) 2004 JAPISoft / http://www.japisoft.com
See Also:
BookmarkContext

Constructor Summary
DefaultBookmarkContext(javax.swing.Icon icon, java.awt.Color lineColor)
           
 
Method Summary
 javax.swing.text.Highlighter.HighlightPainter getHighlightPainter()
           
 javax.swing.Icon getIcon()
          This icon is required by the editor
 BookmarkModel getModel()
           
 boolean matchLine(int line, XMLContainer container)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBookmarkContext

public DefaultBookmarkContext(javax.swing.Icon icon,
                              java.awt.Color lineColor)
Parameters:
icon - A small icon for each bookmark
Method Detail

getIcon

public javax.swing.Icon getIcon()
Description copied from interface: BookmarkContext
This icon is required by the editor

Specified by:
getIcon in interface BookmarkContext
Returns:
a small icon for each bookmark

getModel

public BookmarkModel getModel()
Specified by:
getModel in interface BookmarkContext
Returns:
a model containing all bookmarks

matchLine

public boolean matchLine(int line,
                         XMLContainer container)
Returns:
true if this line (starting from 0) match one bookmark

getHighlightPainter

public javax.swing.text.Highlighter.HighlightPainter getHighlightPainter()
Specified by:
getHighlightPainter in interface BookmarkContext
Returns:
a renderer for each bookmarked line


Copyright © 2006 JAPISoft. All Rights Reserved.