multivalent.std.lens

Class Cypher

public class Cypher extends Lens

(De)Greek/Cyrillic lens: translate Greek characters to Latin equivalents. (De)Cypher lens: Rot-13, Caesar, reverse, Pig Latin, alpha shift left/right, keyboard shift (McIntee cypher).
Semantic EventInDescription
rot13 this (lens handle)Rot-13
Caesar this (lens handle)letter+3, e.g., a=>d ("Rot-3")
reverse Reverse sequence of letters in word
Pig Latinthis (lens handle)Pig Latin decoding
alpha1 shift alphabet over one letter
alpha-1 shift alphabet left one letter
keyboard1key = key to right on keyboard (Mike McIntee cypher)

Version: $Revision: 1.5 $ $Date: 2003/06/02 05:50:42 $

Method Summary
booleanpaintAfter(Context cx, Node node)
Restores Graphics2D passed in paintBefore.
booleanpaintBefore(Context cx, Node node)
Wraps Graphics2D with GraphicsCypher.
booleansemanticEventAfter(SemanticEvent se, String msg)
booleansemanticEventBefore(SemanticEvent se, String msg)

Method Detail

paintAfter

public boolean paintAfter(Context cx, Node node)
Restores Graphics2D passed in paintBefore.

paintBefore

public boolean paintBefore(Context cx, Node node)
Wraps Graphics2D with GraphicsCypher.

semanticEventAfter

public boolean semanticEventAfter(SemanticEvent se, String msg)

semanticEventBefore

public boolean semanticEventBefore(SemanticEvent se, String msg)