public interface IVisibilityTestable
IVisualCreator,
CanvasControl,
ICanvasObjectDescriptor,
ICanvasObject,
VisibilityTestables| Modifier and Type | Field and Description |
|---|---|
static IVisibilityTestable |
ALWAYS
An implementation of a
IVisibilityTestable that always yields true. |
static IVisibilityTestable |
NEVER
An implementation of a
IVisibilityTestable that always yields false. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isVisible(ICanvasContext context,
RectD rectangle)
Determines whether an element might intersect the visible region for a given context.
|
static final IVisibilityTestable ALWAYS
IVisibilityTestable that always yields true.static final IVisibilityTestable NEVER
IVisibilityTestable that always yields false.boolean isVisible(ICanvasContext context, RectD rectangle)
Conservative implementations can always return true.
context - The context to determine the visibility for.rectangle - The visible region clip.false if and only if it is safe not to paint the element because it would not affect the given clipping region.