The Meta-Environment API

nl.cwi.sen1.gui.plugin.editor
Class StyleRegistrar

java.lang.Object
  extended by nl.cwi.sen1.gui.plugin.editor.StyleRegistrar

public class StyleRegistrar
extends java.lang.Object


Field Summary
private static java.lang.String FOCUS_STYLE_NAME
           
private static java.lang.String SELECTION_STYLE_NAME
           
 
Constructor Summary
StyleRegistrar()
           
 
Method Summary
private static java.awt.Color convertColor(nl.cwi.sen1.configapi.types.Color color)
           
private static javax.swing.text.Style registerAttributes(EditorPane editor, java.lang.String name, nl.cwi.sen1.configapi.types.TextAttributeMap attrs)
           
static void registerTextCategories(EditorPane editor, nl.cwi.sen1.configapi.types.PropertyList categories)
           
private static void registerTextCategory(EditorPane editor, nl.cwi.sen1.configapi.types.property.TextCategory category)
           
private static void setStyleAttributes(EditorPane editor, nl.cwi.sen1.configapi.types.TextAttributeMap attrs, javax.swing.text.Style style)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FOCUS_STYLE_NAME

private static final java.lang.String FOCUS_STYLE_NAME
See Also:
Constant Field Values

SELECTION_STYLE_NAME

private static final java.lang.String SELECTION_STYLE_NAME
See Also:
Constant Field Values
Constructor Detail

StyleRegistrar

public StyleRegistrar()
Method Detail

registerTextCategories

public static void registerTextCategories(EditorPane editor,
                                          nl.cwi.sen1.configapi.types.PropertyList categories)

registerTextCategory

private static void registerTextCategory(EditorPane editor,
                                         nl.cwi.sen1.configapi.types.property.TextCategory category)

registerAttributes

private static javax.swing.text.Style registerAttributes(EditorPane editor,
                                                         java.lang.String name,
                                                         nl.cwi.sen1.configapi.types.TextAttributeMap attrs)

setStyleAttributes

private static void setStyleAttributes(EditorPane editor,
                                       nl.cwi.sen1.configapi.types.TextAttributeMap attrs,
                                       javax.swing.text.Style style)

convertColor

private static java.awt.Color convertColor(nl.cwi.sen1.configapi.types.Color color)

The Meta-Environment API