VTT Java
2010 Version

gov.nih.nlm.nls.vtt.Operations
Class TextDisplayOperations

java.lang.Object
  extended by gov.nih.nlm.nls.vtt.Operations.TextDisplayOperations

public class TextDisplayOperations
extends java.lang.Object

This class provides text display related operations.

History:

Version:
V-2010
Author:
NLM NLS Development Team, clu

Field Summary
static int MARKUPS
           
static int TEXT_MARKUPS
           
 
Method Summary
static void SetHighlightBackgroundColor(VttObj vttObj)
          Set the color of highlight background.
static void SetHighlightColors(VttObj vttObj)
          Set the color of highlight.
static void SetHighlightColors(VttObj vttObj, MainFrame mainFrame)
          Set the color of highlight.
static void SetHighlightTextColor(VttObj vttObj)
          Set the color of highlight text.
static void SetTextToDefault(VttObj vttObj)
          Set text style to default (reserved tag).
static void SetupFontSize(javax.swing.JFrame owner, VttObj vttObj)
          Set font size to default.
static void ToggleBold(VttObj vttObj)
          Toggle bold.
static void ToggleItalic(VttObj vttObj)
          Toggle italic.
static void ToggleUnderline(VttObj vttObj)
          Toggle underline.
static void UpdateFontFamily(java.lang.String fontFamily, VttObj vttObj)
          Update font family.
static boolean UpdateStyle(int mode, VttObj vttObj)
          Update style of text, highlight, & markups (display or not).
static boolean UpdateStyle(int mode, VttObj vttObj, MainFrame mainFrame)
          Update style of text, highlight, & markups (display or not).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MARKUPS

public static final int MARKUPS
See Also:
Constant Field Values

TEXT_MARKUPS

public static final int TEXT_MARKUPS
See Also:
Constant Field Values
Method Detail

UpdateStyle

public static boolean UpdateStyle(int mode,
                                  VttObj vttObj)
Update style of text, highlight, & markups (display or not).

Parameters:
vttObj - the vttObj Java object
mode - MARKUPS for update markups only; TEXT_MARKUPS for update both text and markups
Returns:
a boolean flag if the update style operation successful

UpdateStyle

public static boolean UpdateStyle(int mode,
                                  VttObj vttObj,
                                  MainFrame mainFrame)
Update style of text, highlight, & markups (display or not).

Parameters:
mode - MARKUPS for update markups only; TEXT_MARKUPS for update both text and markups
vttObj - the vttObj Java object
mainFrame - the main frame of VTT application
Returns:
a boolean flag if the update style operation successful

ToggleBold

public static void ToggleBold(VttObj vttObj)
Toggle bold.

Parameters:
vttObj - the vttObj Java object

ToggleItalic

public static void ToggleItalic(VttObj vttObj)
Toggle italic.

Parameters:
vttObj - the vttObj Java object

ToggleUnderline

public static void ToggleUnderline(VttObj vttObj)
Toggle underline.

Parameters:
vttObj - the vttObj Java object

UpdateFontFamily

public static void UpdateFontFamily(java.lang.String fontFamily,
                                    VttObj vttObj)
Update font family.

Parameters:
fontFamily - the font family in String
vttObj - the vttObj Java object

SetupFontSize

public static void SetupFontSize(javax.swing.JFrame owner,
                                 VttObj vttObj)
Set font size to default.

Parameters:
owner - the owner of this dialog
vttObj - the vttObj Java object

SetTextToDefault

public static void SetTextToDefault(VttObj vttObj)
Set text style to default (reserved tag).

Parameters:
vttObj - the vttObj Java object

SetHighlightColors

public static void SetHighlightColors(VttObj vttObj)
Set the color of highlight.

Parameters:
vttObj - the vttObj Java object

SetHighlightColors

public static void SetHighlightColors(VttObj vttObj,
                                      MainFrame mainFrame)
Set the color of highlight.

Parameters:
vttObj - the vttObj Java object
mainFrame - the VTT main frame

SetHighlightTextColor

public static void SetHighlightTextColor(VttObj vttObj)
Set the color of highlight text.

Parameters:
vttObj - the vttObj Java object

SetHighlightBackgroundColor

public static void SetHighlightBackgroundColor(VttObj vttObj)
Set the color of highlight background.

Parameters:
vttObj - the vttObj Java object

VTT Java
2010 Version

Submit a bug or feature

Copyright © 2010 National Library of Medicine