Package com.uc4.communication
Class FontSettings
- java.lang.Object
-
- com.uc4.communication.FontSettings
-
public class FontSettings extends java.lang.Object
This class represents the Font settings. These settings can be found in the User Interface - Options - Settings - Font settings
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FontSettings.Size
Font size.static class
FontSettings.Style
Font style.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FontSettings.Size
getFontSize()
Returns the size in which the caption should be displayed in the UserInterface.int
getScriptFontSize()
Returns the font size used in scripts, reports and activation logs.FontSettings.Style
getScriptFontStyle()
Returns the font style used in scripts, reports and activation logs.java.lang.String
getScriptFontType()
Returns the font type used in scripts, reports and activation logs.void
setFontSize(FontSettings.Size fontSize)
Sets the size in which the caption should be displayed in the UserInterface.void
setScriptFontSize(int size)
Sets the font size used in scripts, reports and activation logs.void
setScriptFontStyle(FontSettings.Style style)
Sets the font style used in scripts, reports and activation logs.void
setScriptFontType(java.lang.String type)
Sets the font type used in scripts, reports and activation logs.
-
-
-
Method Detail
-
getFontSize
public FontSettings.Size getFontSize()
Returns the size in which the caption should be displayed in the UserInterface.- Returns:
- Font size
-
setFontSize
public void setFontSize(FontSettings.Size fontSize)
Sets the size in which the caption should be displayed in the UserInterface. This setting affects all connections to clients or other UC4 systems opened within this UserInterface. The selected size is stored in the connection that has been used for the first login. The effect is that if you start the UserInterface again at a later point in time using the same first connection, the stored font size is used for displaying the captions.- Parameters:
fontSize
- Font size
-
getScriptFontType
public java.lang.String getScriptFontType()
Returns the font type used in scripts, reports and activation logs. Type "Courier New" is used by default. The UserInterface immediately assumes modifications, open windows must be closed and re-opened.- Returns:
- Font for Script and Reports
-
setScriptFontType
public void setScriptFontType(java.lang.String type)
Sets the font type used in scripts, reports and activation logs. Type "Courier New" is used by default. The UserInterface immediately assumes modifications, open windows must be closed and re-opened.- Parameters:
type
- Font for Script and Reports
-
getScriptFontStyle
public FontSettings.Style getScriptFontStyle()
Returns the font style used in scripts, reports and activation logs.- Returns:
- Plain or Bold
-
setScriptFontStyle
public void setScriptFontStyle(FontSettings.Style style)
Sets the font style used in scripts, reports and activation logs.- Parameters:
style
- Plain or Bold
-
getScriptFontSize
public int getScriptFontSize()
Returns the font size used in scripts, reports and activation logs. Size 14 is used by default.- Returns:
- Font size
-
setScriptFontSize
public void setScriptFontSize(int size)
Sets the font size used in scripts, reports and activation logs.- Parameters:
size
- Font size
-
-