站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

DrawLayerFactory.IncSearchLayer (Editor Library) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.editor.lib/1 1.14.0 3

org.netbeans.editor
Class DrawLayerFactory.IncSearchLayer

java.lang.Object
  extended by org.netbeans.editor.DrawLayer.AbstractLayer
      extended by org.netbeans.editor.DrawLayerFactory.IncSearchLayer
All Implemented Interfaces:
EventListener, DrawLayer, SettingsChangeListener
Enclosing class:
DrawLayerFactory

Deprecated. Please use Highlighting SPI instead, for details see Editor Library 2.

public static class DrawLayerFactory.IncSearchLayer
extends DrawLayer.AbstractLayer
implements SettingsChangeListener

Layer covering incremental search. There are just two positions begining and end of the searched string


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.netbeans.editor.DrawLayer
DrawLayer.AbstractLayer
 
Field Summary
 
Fields inherited from interface org.netbeans.editor.DrawLayer
TEXT_FRAME_END_POSITION_COMPONENT_PROPERTY, TEXT_FRAME_START_POSITION_COMPONENT_PROPERTY
 
Constructor Summary
DrawLayerFactory.IncSearchLayer()
          Deprecated.  
 
Method Summary
 int getLength()
          Deprecated.  
 int getOffset()
          Deprecated.  
 void init(DrawContext ctx)
          Deprecated. Called each time the paint begins for all layers in the layer chain regardless whether they are currently active or not.
 boolean isActive(DrawContext ctx, MarkFactory.DrawMark mark)
          Deprecated. Return whether the layer is active or not.
 boolean isEnabled()
          Deprecated.  
 void setEnabled(boolean enabled)
          Deprecated.  
 void settingsChange(SettingsChangeEvent evt)
          Deprecated.  
 void updateContext(DrawContext ctx)
          Deprecated. Update draw context by setting colors, fonts and possibly other draw properties.
 
Methods inherited from class org.netbeans.editor.DrawLayer.AbstractLayer
extendsEmptyLine, extendsEOL, getName, getNextActivityChangeOffset, setNextActivityChangeOffset, toString, updateLineNumberContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DrawLayerFactory.IncSearchLayer

public DrawLayerFactory.IncSearchLayer()
Deprecated. 
Method Detail

isEnabled

public boolean isEnabled()
Deprecated. 

setEnabled

public void setEnabled(boolean enabled)
Deprecated. 

getOffset

public int getOffset()
Deprecated. 

getLength

public int getLength()
Deprecated. 

init

public void init(DrawContext ctx)
Deprecated. 
Description copied from interface: DrawLayer
Called each time the paint begins for all layers in the layer chain regardless whether they are currently active or not. It is intended to prepare the layer. It doesn't need to set the next-activity-change-offset because isActive() will be called at the begining of the drawing when this method finishes.

Specified by:
init in interface DrawLayer
Overrides:
init in class DrawLayer.AbstractLayer

isActive

public boolean isActive(DrawContext ctx,
                        MarkFactory.DrawMark mark)
Deprecated. 
Description copied from interface: DrawLayer
Return whether the layer is active or not. This method is called at the begining of the drawing, then each time when the draw-mark is found at the current fragment offset or when drawing reaches the next-activity-change-offset of this layer (mark parameter is null in this case). The layer must return whether it wants to be active for the next drawing or not. The layer should also consider changing the next-activity-change-offset because the draw-engine will ask for it after this method finishes. If the mark is found at the same position like next-activity-change-offset is, then this method is called only once with the valid mark parameter.

Specified by:
isActive in interface DrawLayer
Parameters:
ctx - current context with the information about the drawing
mark - draw-mark at the fragment-offset or null if called because of the next-activity-change-offset.

updateContext

public void updateContext(DrawContext ctx)
Deprecated. 
Description copied from interface: DrawLayer
Update draw context by setting colors, fonts and possibly other draw properties. The method can use information from the context to find where the painting process is currently located. It is called only if the layer is active.

Specified by:
updateContext in interface DrawLayer

settingsChange

public void settingsChange(SettingsChangeEvent evt)
Deprecated. 
Specified by:
settingsChange in interface SettingsChangeListener

org.netbeans.modules.editor.lib/1 1.14.0 3

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.