org.thdl.tib.text
Class TibetanRTFViewFactory

java.lang.Object
  |
  +--org.thdl.tib.text.TibetanRTFViewFactory
All Implemented Interfaces:
ViewFactory

class TibetanRTFViewFactory
extends Object
implements ViewFactory

A ViewFactory that is cognizant of the line-wrapping rules for Tibetan text. That is, this class knows about the tsheg and other Tibetan punctuation.

Author:
David Chandler

Field Summary
private static boolean debugLog
          true iff the Tibetan-aware views that we create should include copious debugging output
private static boolean debugLogInitialized
          true if we've already inquired about the preference and stored it in debugLog
private  ViewFactory delegatee
          the delegatee
 
Constructor Summary
private TibetanRTFViewFactory()
          Do not call this.
  TibetanRTFViewFactory(ViewFactory d)
          Creates a new TibetanRTFViewFactory that delegates to vf when unknown elements are encountered.
 
Method Summary
 View create(Element el)
          Returns a View that will break correctly at Tibetan punctuation.
private static boolean getDebugLog()
          Returns true iff the Tibetan-aware views that we create should include copious debugging output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegatee

private ViewFactory delegatee
the delegatee


debugLog

private static boolean debugLog
true iff the Tibetan-aware views that we create should include copious debugging output


debugLogInitialized

private static boolean debugLogInitialized
true if we've already inquired about the preference and stored it in debugLog

Constructor Detail

TibetanRTFViewFactory

private TibetanRTFViewFactory()
Do not call this.


TibetanRTFViewFactory

public TibetanRTFViewFactory(ViewFactory d)
                      throws NullPointerException
Creates a new TibetanRTFViewFactory that delegates to vf when unknown elements are encountered.

Throws:
NullPointerException - if d is null
Method Detail

getDebugLog

private static boolean getDebugLog()
Returns true iff the Tibetan-aware views that we create should include copious debugging output.


create

public View create(Element el)
Returns a View that will break correctly at Tibetan punctuation.

Specified by:
create in interface ViewFactory


These API docs were created 02/02/2003 08:20 PM.
Copyright © 2001-2002 Tibetan and Himalayan Digital Library. All Rights Reserved.
Hosted by SourceForge_Logo