Multivalent API

Uses of Interface
multivalent.ContextListener

Packages that use ContextListener
multivalent Core system classes. 
multivalent.devel.lens Document inspection lenses: bbox bounds, character numbers, ruler for layout measuring. 
multivalent.std.adaptor Media adaptors guaranteed to be available locally: HTML, UNIX manual page, directory, FTP directory, ... 
multivalent.std.adaptor.pdf PDF manipulation: read, render, modify, write.
multivalent.std.lens Lens superclass and standard lenses, such as Magnify and Rot-13. 
multivalent.std.span A collection of general-use spans: hyperlink, highlight, font, color. 
 

Uses of ContextListener in multivalent
 

Classes in multivalent that implement ContextListener
 class CLGeneral
          Generic context modifier, for runtime creation of new spans and structure, as by style sheets.
 class Span
          A Span (aka Range aka Tk tag), such as a hyperlink or executable copy editor mark, is a linear range of content that can control appearance and receives events.
 

Methods in multivalent that return ContextListener
 ContextListener StyleSheet.get(java.lang.Object key)
          Low level: hash on object itself.
 ContextListener StyleSheet.get(java.lang.Object key, Node context)
           
 ContextListener StyleSheet.remove(java.lang.Object key)
           
 ContextListener StyleSheet.remove(java.lang.String selector)
           
 

Methods in multivalent with parameters of type ContextListener
 void StyleSheet.put(java.lang.Object key, ContextListener cl)
          Low level: hash on object itself.
 void StyleSheet.put(java.lang.String selector, ContextListener cl)
          More sophisticated style sheet implementation can parse selector.
 void Context.addBase(ContextListener cl)
           
 void Context.deleteBase(ContextListener cl)
           
static int Context.priorityInsert(ContextListener r, java.util.List<ContextListener> v)
          Order by priority, low to high so high wins; within equal priority, latest set added last so it wins.
 void Context.add(ContextListener r)
          Add ContextListener to active set, bring Context values up to date.
 void Context.remove(ContextListener r)
          Remove ContextListener to active set, bring Context values up to date.
 void Context.addq(ContextListener r)
          Add ContextListener, leave Context in need of reset().
 void Context.removeq(ContextListener r)
          Remove ContextListener, leave Context in need of reset().
 

Uses of ContextListener in multivalent.devel.lens
 

Classes in multivalent.devel.lens that implement ContextListener
 class Bounds
          Show bounds of tree nodes.
 class CharNum
          CharNum lens (RFC ref).
 class Ruler
          Screen ruler, used to measure layouts.
 

Uses of ContextListener in multivalent.std.adaptor
 

Classes in multivalent.std.adaptor that implement ContextListener
 class CSSGeneral
          Adds CSS-specific attributes to CLGeneral.
 

Uses of ContextListener in multivalent.std.adaptor.pdf
 

Classes in multivalent.std.adaptor.pdf that implement ContextListener
 class SpanPDF
          A span that can set any PDF graphic state attribute: stroke color, fill color, font, Tr.
 

Uses of ContextListener in multivalent.std.lens
 

Classes in multivalent.std.lens that implement ContextListener
 class BitMagnify
          Enlarge contexts by doubling pixel width and height as opposed to drawing at larger size (scaling with ATM).
 class Blur
          Image blur lens, as in "Programmer’s Guide to the Java 2D™ API".
 class Brighten
          Edge detection lens, as in "Programmer’s Guide to the Java 2D™ API".
 class Cypher
          (De)Greek/Cyrillic lens: translate Greek characters to Latin equivalents.
 class Darken
          Edge detection lens, as in "Programmer’s Guide to the Java 2D™ API".
 class EdgeDetect
          Edge detection lens, as in "Programmer’s Guide to the Java 2D™ API".
 class Lens
          VWindows that transform their content and compose with one another.
 class LensOp
          Superclass for lenses that set operation for Graphics2D.drawImage(BufferedImage, BufferedImageOp, int, int).
 class Magnify
          Enlarge content by scaling Graphics2D.
 class Mirror
          Like Cypher could be useful for reading coded messages, I guess, but mostly just a demonstration.
 class PlainView
          Try to make things as readable as possible: undo affine transformations, no signals, black text on white background, non-bold non-italic 12-point Times Roman font, no blink, ....
 class Rescale
          Rescale lens.
 class Rotate
          Doesn't work Rotate landscape into portrait, say.
 class Sharpen
          Image sharpen lens, as in "Programmer’s Guide to the Java 2D™ API".
 class SignalLens
          Scriptable lens for effects that just need a signal set.
 

Uses of ContextListener in multivalent.std.span
 

Classes in multivalent.std.span that implement ContextListener
 class ActionSpan
          When click on span, execute ActionSpan.action().
 class AnchorSpan
          Intra-document destination of a hyperlink: a named, robustly located point in document.
 class AwkSpan
          Underline a span and show a message at the start.
 class BackgroundSpan
          Background span with editable color.
 class BIUSpan
          A copy editor mark: bold/italics/under suggestion.
 class BlinkSpan
          Because you asked for it!
 class BoldSpan
          Convenience span for setting boldface.
 class BoxSpan
          Box the word covered by the span (later, intelligently box arbitrarily long spans).
 class CapSpan
          Change case of region by clicking anywhere in span.
 class DeleteSpan
          Executable copy editor mark to suggest span should be deleted.
 class ElideSpan
          Convenience span for setting elided (aka hidden) spans.
 class FamilySpan
          Convenience span for setting font family.
 class FontSpan
          Convenience span for setting font properties: family, size, style.
 class ForegroundSpan
          Convenience span for setting foreground color.
 class HyperlinkSpan
          This is the familiar point-to-point link.
 class InsertSpan
          Copy editor markup: insert text at point.
 class InvisibleSpan
          Span for setting invisible text (foreground==background).
 class ItalicSpan
          Convenience span for setting italics.
 class LabelSpan
          Helper span for copy editor marks that draws message above content text.
 class MonospacedSpan
          Same as FamilySpan(..., "Monospaced").
 class MoveTextSpan
          Executable copy editor markup that will move marked text to another point in the document.
 class Notemark
          out of date Many functions taken over by elide attribute in style sheet.
 class OutlineSpan
          Assumes LeafImage as first node, which shows open or closed arrow.
 class OverstrikeSpan
          Convenience span for setting overstrike.
 class PlainSpan
          Convenience span for setting plain text.
 class PointSpan
          Point size span editable by user.
 class RelPointSpan
          Common convenience span for changing the font size relative to the current size by n steps.
 class ReplaceWithSpan
          A combination of InsertSpan and DeleteSpan.
 class ScriptSpan
          When click on span, execute script in VScript.
 class SelectionSpan
          Default selection behavior.
 class SidebarSpan
          UNDER DEVELOPMENT.
 class SignalSpan
          Convenience span for setting some signal, as given by SIGNAL and VALUE attributes.
 class StrokeSpan
          Set attributes of line: width, cap style, join style, miter limit, dash.
 class SubSupSpan
          Convenience span for subscripts and superscripts.
 class UnderlineSpan
          Convenience span for setting underline.
 


Multivalent API