public final class HighlightsLayer extends Object
There can be multiple highlight layers participating in rendering one document. Each highlight layer provides its z-order, which defines an order in which the layers are used. The higher the z-order the more 'visible' the layer is. In other word highlights provided by a layer with higher z-order can hide highlights provided by a layer with lower z-order for the same part of a document.
The highlights provided by a
define any attributes affecting text rendering including attributes that affect the
size of the view containing the rendered text. The layers that use those attributes
have to participate in the view layout and therefore need to be treated in a
special way. The
isFixedSize attribute can be
if and only if layer's highlights will never contain attributes that influence the
layout of a view (e.g. font size).
|Modifier and Type||Method and Description|
Creates a new
public static HighlightsLayer create(String layerTypeId, ZOrder zOrder, boolean fixedSize, HighlightsContainer container)
HighlightsLayerwith contents defined by
layerTypeId- The unique identifier of the new layer. This id is used for identifying this layer among other layers that may be created for the same
Documentand it is used for example for the purpose of z-order.
zOrder- The layer's z-order.
fixedSize- Whether this layer defines any attributes affecting text rendering; including attributes that affect the size of the view containing the rendered text. Pass in
trueif and only if the layer does not change metrics of rendered text.
HighlightsContainerthat should be used as a contents of this layer.
Built on July 22 2014. | Portions Copyright 1997-2014 Oracle. All rights reserved.