multivalent

Interface ContextListener

public interface ContextListener

Implemented by everything that can affect appearance through the graphics context, especially structural behaviors, lenses, spans. Defines base constants used to set self-reported priority in getPriority.

Version: $Revision: 1.3 $ $Date: 2003/06/02 05:02:06 $

See Also: for stylesheet-specific priorities.

Field Summary
intLITTLE
Delta constant used to set self-reported priority.
intLOT
Delta constant used to set self-reported priority.
intPRIORITY_LENS
intPRIORITY_MAX
intPRIORITY_MIN
intPRIORITY_SELECTION
intPRIORITY_SPAN
intPRIORITY_STRUCT
intSOME
Delta constant used to set self-reported priority.
Method Summary
booleanappearance(Context cx, boolean all)
Resets the graphics context every time the object is added to or dropped from the set active over the portion of the document being drawn.
intgetPriority()
Self-reported priority relative to others of the same class, e.g., other spans.

Field Detail

LITTLE

public int LITTLE
Delta constant used to set self-reported priority.

LOT

public int LOT
Delta constant used to set self-reported priority.

PRIORITY_LENS

public int PRIORITY_LENS

PRIORITY_MAX

public int PRIORITY_MAX

PRIORITY_MIN

public int PRIORITY_MIN

PRIORITY_SELECTION

public int PRIORITY_SELECTION

PRIORITY_SPAN

public int PRIORITY_SPAN

PRIORITY_STRUCT

public int PRIORITY_STRUCT

SOME

public int SOME
Delta constant used to set self-reported priority.

Method Detail

appearance

public boolean appearance(Context cx, boolean all)
Resets the graphics context every time the object is added to or dropped from the set active over the portion of the document being drawn. These behaviors can come from the style sheet, be ad hoc spans, be lenses, or come from elsewhere. Should be fast.

Parameters: all all attributes or exclude those that are not inherited

getPriority

public int getPriority()
Self-reported priority relative to others of the same class, e.g., other spans. Use the constants defined here, such as PRIORITY_LENS, modified by LITTLE/SOME/{#link LOT}.