com.japisoft.xmlpad.bookmark
Class DefaultBookmarkContext
java.lang.Object
com.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultBookmarkContext
public DefaultBookmarkContext(javax.swing.Icon icon,
java.awt.Color lineColor)
- Parameters:
icon
- A small icon for each bookmark
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.