Reference for JVM version of SpaceVIL  0.3.5.8
SpaceVIL (Space of Visual Items Layout) is a cross-platform and multilingual framework for creating GUI client applications for .NET Standard, .NET Core and JVM. SpaceVIL is based on OpenGL graphic technology and GLFW. Using this framework in conjunction with .Net Core or with a JVM, you can work and create graphical client applications on Linux, Mac OS X and Windows.
com.spvessel.spacevil.Common.DefaultsService Class Reference

DefaultsService is static class providing methods to getting SpaceVIL default common values such as font, mouse cursor, icon images. More...

Static Public Member Functions

static void setDefaultCursor (CursorImage cursor)
 Setting default cursor image the current application. More...
 
static CursorImage getDefaultCursor ()
 Getting the current default mouse cursor image. More...
 
static ThemeStyle getDefaultTheme ()
 Getting the default theme. More...
 
static void setDefaultTheme (ThemeStyle theme)
 Setting the default theme for the current application. More...
 
static Style getDefaultStyle (Class<?> type)
 Getting the default item style from the current default theme by its type. More...
 
static Font getDefaultFont ()
 Getting the current default font for the current application. More...
 
static Font getDefaultFont (int size)
 Getting the current default font with the specified font size for the current application. More...
 
static Font getDefaultFont (int style, int size)
 Getting the current default font with the specified font size and font style for the current application. More...
 
static void setDefaultFont (Font font)
 Setting the default font for the current application. More...
 
static BufferedImage getDefaultImage (EmbeddedImage image, EmbeddedImageSize size)
 Getting the specified image by the type and size of the image, which is stored in the SpaceVIL framework. More...
 

Detailed Description

DefaultsService is static class providing methods to getting SpaceVIL default common values such as font, mouse cursor, icon images.

Member Function Documentation

◆ getDefaultCursor()

static CursorImage com.spvessel.spacevil.Common.DefaultsService.getDefaultCursor ( )
static

Getting the current default mouse cursor image.

Returns
The mouse cursor image as com.spvessel.spacevil.CursorImage

◆ getDefaultFont() [1/3]

static Font com.spvessel.spacevil.Common.DefaultsService.getDefaultFont ( )
static

Getting the current default font for the current application.

Returns
The current default font as java.awt.Font

◆ getDefaultFont() [2/3]

static Font com.spvessel.spacevil.Common.DefaultsService.getDefaultFont ( int  size)
static

Getting the current default font with the specified font size for the current application.

Parameters
sizeA font size as integer value
Returns
The current default font with changed font size as java.awt.Font

◆ getDefaultFont() [3/3]

static Font com.spvessel.spacevil.Common.DefaultsService.getDefaultFont ( int  style,
int  size 
)
static

Getting the current default font with the specified font size and font style for the current application.

Parameters
styleA font style as integer value
sizeA font size as integer value
Returns
The current default font with changed font size and font style as java.awt.Font

◆ getDefaultImage()

static BufferedImage com.spvessel.spacevil.Common.DefaultsService.getDefaultImage ( EmbeddedImage  image,
EmbeddedImageSize  size 
)
static

Getting the specified image by the type and size of the image, which is stored in the SpaceVIL framework.

Parameters
imageAn image type as com.spvessel.spacevil.Flags.EmbeddedImage

Example: com.spvessel.spacevil.Flags.EmbeddedImage.GEAR (to get gear icon)

Parameters
sizeAn image size as com.spvessel.spacevil.Flags.EmbeddedImageSize (only 32x32 or 64x64)

Example: com.spvessel.spacevil.Flags.EmbeddedImageSize.SIZE_32X32 (to get an image in 32x32 pixels)

Returns
Copy of image icon as java.awt.image.BufferedImage

◆ getDefaultStyle()

static Style com.spvessel.spacevil.Common.DefaultsService.getDefaultStyle ( Class<?>  type)
static

Getting the default item style from the current default theme by its type.

Parameters
typeItem type as java.lang.Class<?>.

Example: typeof(com.spvessel.spacevil.ButtonCore)

Returns
Style as com.spvessel.spacevil.Decorations.Style.

◆ getDefaultTheme()

static ThemeStyle com.spvessel.spacevil.Common.DefaultsService.getDefaultTheme ( )
static

Getting the default theme.

Returns
The theme as The theme as com.spvessel.spacevil.Decorations.ThemeStyle

◆ setDefaultCursor()

static void com.spvessel.spacevil.Common.DefaultsService.setDefaultCursor ( CursorImage  cursor)
static

Setting default cursor image the current application.

Parameters
cursorThe mouse cursor image as com.spvessel.spacevil.CursorImage

◆ setDefaultFont()

static void com.spvessel.spacevil.Common.DefaultsService.setDefaultFont ( Font  font)
static

Setting the default font for the current application.

Parameters
fontA font as java.awt.Font

◆ setDefaultTheme()

static void com.spvessel.spacevil.Common.DefaultsService.setDefaultTheme ( ThemeStyle  theme)
static

Setting the default theme for the current application.

Parameters
themeThe theme as com.spvessel.spacevil.Decorations.ThemeStyle

The documentation for this class was generated from the following file: