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

EstimatedSpanView (Editor Library) - NetBeans API Javadoc (Current Development Version)

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

org.netbeans.editor.view.spi
Interface EstimatedSpanView

All Known Implementing Classes:
DrawEngineFakeDocView, GapBoxView, GapDocumentView, GapLineView, GapMultiLineView

public interface EstimatedSpanView

Views that implement this interface signal that they work in a mode when they just estimate their size instead of exact measurements that are likely more expensive for computation.
By default the view should be in non-estimated mode i.e. the exact measurements should be used unless the estimated span flag is set.

If a particular view does not implement this interface then it is assumed that the view uses exact measurements.


Method Summary
 boolean isEstimatedSpan()
          Check whether this view is currently in a mode when it just estimates its span.
 void setEstimatedSpan(boolean estimatedSpan)
          Set whether this view uses estimated span computation instead of exact measurements.
 

Method Detail

isEstimatedSpan

boolean isEstimatedSpan()
Check whether this view is currently in a mode when it just estimates its span.

Returns:
true if the view estimates its preferred horizontal and vertical preferred, maximum and minimum spans. Returns false if the view measurements are exact.

setEstimatedSpan

void setEstimatedSpan(boolean estimatedSpan)
Set whether this view uses estimated span computation instead of exact measurements.

Parameters:
estimatedSpan - whether view will estimate the spans or use exact measurements.

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.