Protégé-OWL 3.4.1

edu.stanford.smi.protegex.owl.ui.code
Class OWLTextFormatter

java.lang.Object
  extended by edu.stanford.smi.protegex.owl.ui.code.OWLTextFormatter

public class OWLTextFormatter
extends Object

A static utility class for JTextComponents with specific features to edit OWL expressions in the compact syntax.

Author:
Holger Knublauch

Constructor Summary
OWLTextFormatter()
           
 
Method Summary
static String getDisplayString(String str)
           
static String getParseableString(String str)
          Deprecated. Moved to CompactParserUtil - this method is no longer needed as it will be called by the parser on the fly
static void initKeymap(JTextComponent textComponent)
           
static void updateDisplay(OWLClassDisplay display)
           
static void updateSyntax(JTextComponent textComponent)
          Replaces all occurences of special symbols with the corresponding unicode symbols.
static void updateSyntax(JTextComponent textComponent, OWLModel owlModel)
          Replaces all occurences of special symbols with the corresponding unicode symbols.
static void updateSyntax(JTextComponent textComponent, OWLModel owlModel, Map smap)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OWLTextFormatter

public OWLTextFormatter()
Method Detail

updateDisplay

public static void updateDisplay(OWLClassDisplay display)

getDisplayString

public static String getDisplayString(String str)

getParseableString

public static String getParseableString(String str)
Deprecated. Moved to CompactParserUtil - this method is no longer needed as it will be called by the parser on the fly


initKeymap

public static void initKeymap(JTextComponent textComponent)

updateSyntax

public static void updateSyntax(JTextComponent textComponent)
Replaces all occurences of special symbols with the corresponding unicode symbols.


updateSyntax

public static void updateSyntax(JTextComponent textComponent,
                                OWLModel owlModel)
Replaces all occurences of special symbols with the corresponding unicode symbols.


updateSyntax

public static void updateSyntax(JTextComponent textComponent,
                                OWLModel owlModel,
                                Map smap)

Protégé-OWL 3.4.1

Submit a bug report or feature request
Copyright (c) 1998-2009 Stanford University.