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.
|
Style is a class that describes the appearance of an element. More...
Inherits Cloneable.
Public Member Functions | |
Style () | |
Constructs a default Style. More... | |
void | setStyle (InterfaceBaseItem... items) |
Setting this style for all items in sequence. More... | |
void | setSize (int width, int height) |
Setting size of an item's shape. More... | |
void | setMinSize (int width, int height) |
Setting minimum size of an item's shape (shape can not be smaller than specified width and height). More... | |
void | setMaxSize (int width, int height) |
Setting maximim size of an item's shape (shape can not be bigger than specified width and height). More... | |
void | setSizePolicy (SizePolicy widthPolicy, SizePolicy heightPolicy) |
Setting the size policy of an item's shape. More... | |
void | setBackground (int r, int g, int b) |
Setting background color of an item's shape in byte RGB format. More... | |
void | setBackground (int r, int g, int b, int a) |
Setting background color of an item's shape in byte RGBA format. More... | |
void | setBackground (float r, float g, float b) |
Setting background color of an item's shape in float RGB format. More... | |
void | setBackground (float r, float g, float b, float a) |
Setting background color of an item's shape in float RGBA format. More... | |
void | setForeground (int r, int g, int b) |
Setting text color of an item in byte RGB format. More... | |
void | setForeground (int r, int g, int b, int a) |
Setting text color of an item in byte RGBA format. More... | |
void | setForeground (float r, float g, float b) |
Setting text color of an item in float RGB format. More... | |
void | setForeground (float r, float g, float b, float a) |
Setting text color of an item in float RGBA format. More... | |
void | setPadding (Indents padding) |
Setting indents of an item to offset its children. More... | |
void | setPadding (int left, int top, int right, int bottom) |
Setting indents of an item to offset its children. More... | |
void | setMargin (Indents margin) |
Setting indents of an item to offset itself relative to its container. More... | |
void | setMargin (int left, int top, int right, int bottom) |
Setting indents of an item to offset itself relative to its container. More... | |
void | setSpacing (Spacing spacing) |
Setting indents between children of a container type item. More... | |
void | setSpacing (int horizontal, int vertical) |
Setting indents between children of a container type item. More... | |
void | setBorder (Border border) |
Setting border of an item's shape. More... | |
void | setBorder (Color fill, CornerRadius radius, int thickness) |
Setting border for an item's shape. More... | |
void | setShadow (Shadow shadow) |
Setting shadow for an item's shape. More... | |
void | setAlignment (ItemAlignment... alignment) |
Setting an Alignment of an item's shape relative to its container. More... | |
void | setTextAlignment (ItemAlignment... alignment) |
Alignment of an item's text. More... | |
void | addInnerShape (InterfaceBaseItem shape) |
Add inner primitives to the object (as decorations only). More... | |
void | addInnerStyle (String keyName, Style style) |
Assigning a style for an item's child by key name. More... | |
Style | getInnerStyle (String keyName) |
Getting a child’s style by key name. More... | |
void | removeInnerStyle (String keyName) |
Removing a child's style by its key name. More... | |
void | addItemState (ItemStateType type, ItemState state) |
Adding visual state for an item. More... | |
ItemState | getState (ItemStateType type) |
Getting visual state of an item by type. More... | |
Map< ItemStateType, ItemState > | getAllStates () |
Getting all presented in the current style visual states of an item. More... | |
void | removeItemState (ItemStateType type) |
Removing visual state of an item by type. More... | |
Style | clone () |
Cloning the current style and returning a new deep copy of Style. More... | |
Static Public Member Functions | |
static Style | getDefaultCommonStyle () |
Getting a default common style. More... | |
static Style | getButtonCoreStyle () |
Getting default style for a ButtonCore item. More... | |
static Style | getButtonToggleStyle () |
Getting default style for a ButtonToggle item. More... | |
static Style | getCheckBoxStyle () |
Getting default style for a CheckBox item. More... | |
static Style | getIndicatorStyle () |
Getting default style for a Indicator item. More... | |
static Style | getTextLineStyle () |
Getting default style for a text type item. More... | |
static Style | getComboBoxStyle () |
Getting default style for a ComboBox item. More... | |
static Style | getComboBoxDropDownStyle () |
Getting default style for a ComboBoxDropDown item. More... | |
static Style | getMenuItemStyle () |
Getting default style for a MenuItem item. More... | |
static Style | getContextMenuStyle () |
Getting default style for a ContextMenu item. More... | |
static Style | getFreeAreaStyle () |
Getting default style for a FreeArea item. More... | |
static Style | getFrameStyle () |
Getting default style for a Frame item. More... | |
static Style | getGridStyle () |
Getting default style for a Grid item. More... | |
static Style | getHorizontalScrollBarStyle () |
Getting default style for a HorizontalScrollBar item. More... | |
static Style | getSimpleHorizontalScrollBarStyle () |
Getting simplified style for a SimpleHorizontalScrollBar item. More... | |
static Style | getVerticalScrollBarStyle () |
Getting default style for a VerticalScrollBar item. More... | |
static Style | getSimpleVerticalScrollBarStyle () |
Getting simplified style for a SimpleVerticalScrollBar item. More... | |
static Style | getHorizontalSliderStyle () |
Getting default style for a HorizontalSlider item. More... | |
static Style | getVerticalSliderStyle () |
Getting default style for a VerticalSlider item. More... | |
static Style | getHorizontalStackStyle () |
Getting default style for a HorizontalStack item. More... | |
static Style | getVerticalStackStyle () |
Getting default style for a VerticalStack item. More... | |
static Style | getHorizontalSplitAreaStyle () |
Getting default style for a HorizontalSplitArea item. More... | |
static Style | getVerticalSplitAreaStyle () |
Getting default style for a VerticalSplitArea item. More... | |
static Style | getLabelStyle () |
Getting default style for a Label item. More... | |
static Style | getListAreaStyle () |
Getting default style for a ListArea item. More... | |
static Style | getListBoxStyle () |
Getting default style for a ListBox item. More... | |
static Style | getWContainerStyle () |
Note: not supported in current version. More... | |
static Style | getRadioButtonStyle () |
Getting default style for a RadioButton item. More... | |
static Style | getPasswordLineStyle () |
Getting default style for a PasswordLine item. More... | |
static Style | getTextEditStyle () |
Getting default style for a TextEdit item. More... | |
static Style | getTextBlockStyle () |
Getting default style for a sealed TextBlock item. More... | |
static Style | getTextAreaStyle () |
Getting default style for a TextArea item. More... | |
static Style | getTextViewStyle () |
Getting default style for a TextView item. More... | |
static Style | getPopUpMessageStyle () |
Getting default style for a PopUpMessage item. More... | |
static Style | getProgressBarStyle () |
Getting default style for a ProgressBar item. More... | |
static Style | getToolTipStyle () |
Getting default style for a ToolTip item. More... | |
static Style | getTitleBarStyle () |
Getting default style for a TitleBar item. More... | |
static Style | getTreeViewStyle () |
Getting default style for a TreeView item. More... | |
static Style | getTreeItemStyle () |
Getting default style for a TreeItem item. More... | |
static Style | getSpinItemStyle () |
Getting default style for a SpinItem item. More... | |
static Style | getDialogItemStyle () |
Getting default style for a DialogItem item. More... | |
static Style | getMessageItemStyle () |
Getting default style for a MessageItem item. More... | |
static Style | getWindowContainerStyle () |
Getting default style for a window itself. More... | |
static Style | getFileSystemEntryStyle () |
Getting default style for a FileSystemEntry item. More... | |
static Style | getOpenEntryDialogStyle () |
Getting default style for a OpenEntryDialog item. More... | |
static Style | getInputDialogStyle () |
Getting default style for a InputDialog item. More... | |
static Style | getSelectionItemStyle () |
Getting default style for a SelectionItem item. More... | |
static Style | getWrapAreaStyle () |
Getting default style for a WrapArea item. More... | |
static Style | getWrapGridStyle () |
Getting default style for a WrapGrid item. More... | |
static Style | getSideAreaStyle () |
Getting default style for a SideArea item. More... | |
static Style | getImageItemStyle () |
Getting default style for a ImageItem item. More... | |
static Style | getLoadingScreenStyle () |
Getting default style for a LoadingScreen item. More... | |
static Style | getTabStyle () |
Getting default style for a Tab item. More... | |
static Style | getTabBarStyle () |
Getting default style for a TabBar item. More... | |
static Style | getTabViewStyle () |
Getting default style for a *** item. More... | |
Public Attributes | |
Color | background |
Background color of an item's shape. More... | |
Color | foreground |
Color of an item's text. More... | |
Font | font = null |
Font of an item's text. More... | |
SizePolicy | widthPolicy |
Width policy of an item's shape. More... | |
SizePolicy | heightPolicy |
Height policy of an item's shape. More... | |
int | width |
Width of an item's shape. More... | |
int | minWidth |
Minimum width of an item's shape (shape cannot be smaller this value). More... | |
int | maxWidth |
Maximum width of an item's shape (shape cannot be bigger this value). More... | |
int | height |
Height of an item's shape. More... | |
int | minHeight |
Minimum height of an item's shape (shape cannot be smaller this value). More... | |
int | maxHeight |
Maximum height of an item's shape (shape cannot be bigget this value). More... | |
List< ItemAlignment > | alignment |
Alignment of an item's shape relative to its container. More... | |
List< ItemAlignment > | textAlignment |
Alignment of an item's text. More... | |
int | x |
X axis position of left-top cornet of an item's shape. More... | |
int | y |
Y axis position of left-top cornet of an item's shape. More... | |
Indents | padding = new Indents() |
Indents of an item to offset its children. More... | |
Spacing | spacing = new Spacing() |
Indents between children of a container type item. More... | |
Indents | margin = new Indents() |
Indents of an item to offset itself relative to its container. More... | |
CornerRadius | borderRadius = new CornerRadius() |
Radiuses to round the rectangular shape of the item. More... | |
int | borderThickness = 0 |
Thickness of an item's border. More... | |
Color | borderFill = new Color(0, 0, 0, 0) |
Color of an item's border. More... | |
List< float[]> | shape |
A form of an item's shape. More... | |
boolean | isFixedShape = false |
A flag that determines if the shape of an item can be changed or not. More... | |
List< InterfaceBaseItem > | innerShapes |
A storage of shapes for future use. More... | |
int | shadowRadius |
Blur radius of a shadow. More... | |
int | shadowXOffset |
X shift of a shadow. More... | |
int | shadowYOffset |
Y shift of a shadow. More... | |
boolean | isShadowDrop = false |
Drop shadow flag. More... | |
Color | shadowColor |
Color of a shadow. More... | |
boolean | isVisible |
A flag that determines if an item is visible or not. More... | |
Style is a class that describes the appearance of an element.
Can contains Styles for inner items.
com.spvessel.spacevil.Decorations.Style.Style | ( | ) |
Constructs a default Style.
void com.spvessel.spacevil.Decorations.Style.addInnerShape | ( | InterfaceBaseItem | shape | ) |
Add inner primitives to the object (as decorations only).
Note: not supported in the current version!
shape | Shape as com.spvessel.spacevil.Core.InterfaceBaseItem. |
void com.spvessel.spacevil.Decorations.Style.addInnerStyle | ( | String | keyName, |
Style | style | ||
) |
Assigning a style for an item's child by key name.
keyName | Key name of a child. |
style | Style as com.spvessel.spacevil.Decorations.Style. |
void com.spvessel.spacevil.Decorations.Style.addItemState | ( | ItemStateType | type, |
ItemState | state | ||
) |
Adding visual state for an item.
Type can be BASE, HOVERED, PRESSED, TOGGLED, FOCUSED, DISABLED.
type | Type as com.spvessel.spacevil.Flags.ItemStateType. |
state | Visual state as com.spvessel.spacevil.Decorations.ItemState. |
Style com.spvessel.spacevil.Decorations.Style.clone | ( | ) |
Cloning the current style and returning a new deep copy of Style.
Map<ItemStateType, ItemState> com.spvessel.spacevil.Decorations.Style.getAllStates | ( | ) |
Getting all presented in the current style visual states of an item.
|
static |
Getting default style for a ButtonCore item.
Properly filled in all the necessary properties.
|
static |
Getting default style for a ButtonToggle item.
Properly filled in all the necessary properties.
|
static |
Getting default style for a CheckBox item.
Properly filled in all the necessary properties.
Inner styles: "indicator", "text".
|
static |
Getting default style for a ComboBoxDropDown item.
Properly filled in all the necessary properties.
Inner styles: "itemlist".
Inner styles for "itemlist": "vscrollbar", "hscrollbar", "menu".
This is part of ComboBox item style.
|
static |
Getting default style for a ComboBox item.
Properly filled in all the necessary properties.
Inner styles: "selection", "dropdownbutton", "dropdownarea", "arrow".
|
static |
Getting default style for a ContextMenu item.
Properly filled in all the necessary properties.
Inner styles: "itemlist".
|
static |
Getting a default common style.
Properly filled in all the necessary properties.
Use this method to create instance of Style class instead of using pure constructor (new Style()).
|
static |
Getting default style for a DialogItem item.
Properly filled in all the necessary properties.
Inner styles: "window".
This is part of OpenEntryDialog item style.
|
static |
Getting default style for a FileSystemEntry item.
Properly filled in all the necessary properties.
Inner styles: "icon", "text".
|
static |
Getting default style for a Frame item.
Properly filled in all the necessary properties.
|
static |
Getting default style for a FreeArea item.
Properly filled in all the necessary properties.
|
static |
Getting default style for a Grid item.
Properly filled in all the necessary properties.
|
static |
Getting default style for a HorizontalScrollBar item.
Properly filled in all the necessary properties.
Inner styles: "uparrow", "downarrow", "slider".
Inner styles for "slider": "track", "handler".
This is part of many items style.
|
static |
Getting default style for a HorizontalSlider item.
Properly filled in all the necessary properties.
Inner styles: "track", "handler".
|
static |
Getting default style for a HorizontalSplitArea item.
Properly filled in all the necessary properties.
Inner styles: "splitholder".
|
static |
Getting default style for a HorizontalStack item.
Properly filled in all the necessary properties.
|
static |
Getting default style for a ImageItem item.
Properly filled in all the necessary properties.
|
static |
Getting default style for a Indicator item.
Properly filled in all the necessary properties.
Inner styles: "marker".
This is part of CheckBox item style.
Style com.spvessel.spacevil.Decorations.Style.getInnerStyle | ( | String | keyName | ) |
Getting a child’s style by key name.
keyName | Key name of a child. |
|
static |
Getting default style for a InputDialog item.
Properly filled in all the necessary properties.
Inner styles: "window", "button", "textedit", "layout", "toolbar".
|
static |
Getting default style for a Label item.
Properly filled in all the necessary properties.
|
static |
Getting default style for a ListArea item.
Properly filled in all the necessary properties.
Inner styles: "selection".
This is part of many items style.
|
static |
Getting default style for a ListBox item.
Properly filled in all the necessary properties.
Inner styles: "area", "vscrollbar", "hscrollbar", "menu".
|
static |
Getting default style for a LoadingScreen item.
Properly filled in all the necessary properties.
Inner styles: "text", "image".
|
static |
Getting default style for a MenuItem item.
Properly filled in all the necessary properties.
Inner styles: "text", "arrow".
|
static |
Getting default style for a MessageItem item.
Properly filled in all the necessary properties.
Inner styles: "window", "button", "toolbar", "userbar", "message", "layout".
|
static |
Getting default style for a OpenEntryDialog item.
Properly filled in all the necessary properties.
Inner styles: "window", "layout", "toolbar", "toolbarbutton", "addressline", "filenameline", "list", "controlpanel", "okbutton", "cancelbutton", "filter", "filtertext", "divider".
|
static |
Getting default style for a PasswordLine item.
Properly filled in all the necessary properties.
Inner styles: "showmarker", "textedit".
|
static |
Getting default style for a PopUpMessage item.
Properly filled in all the necessary properties.
Inner styles: "closebutton".
|
static |
Getting default style for a ProgressBar item.
Properly filled in all the necessary properties.
Inner styles: "progressbar".
|
static |
Getting default style for a RadioButton item.
Properly filled in all the necessary properties.
Inner styles: "indicator", "text".
Inner styles of "indicator": "marker".
|
static |
Getting default style for a SelectionItem item.
Properly filled in all the necessary properties.
|
static |
Getting default style for a SideArea item.
Properly filled in all the necessary properties.
Inner styles: "window", "closebutton".
|
static |
Getting simplified style for a SimpleHorizontalScrollBar item.
Properly filled in all the necessary properties.
Inner styles: "uparrow", "downarrow", "slider".
Inner styles for "slider": "track", "handler".
|
static |
Getting simplified style for a SimpleVerticalScrollBar item.
Properly filled in all the necessary properties.
Inner styles: "uparrow", "downarrow", "slider".
Inner styles for "slider": "track", "handler".
|
static |
Getting default style for a SpinItem item.
Properly filled in all the necessary properties.
Inner styles: "uparrow", "downarrow", "buttonsarea", "textedit".
ItemState com.spvessel.spacevil.Decorations.Style.getState | ( | ItemStateType | type | ) |
Getting visual state of an item by type.
Type can be BASE, HOVERED, PRESSED, TOGGLED, FOCUSED, DISABLED.
type | Type as com.spvessel.spacevil.Flags.ItemStateType. |
|
static |
Getting default style for a TabBar item.
Properly filled in all the necessary properties.
This is part of TabView item style.
|
static |
Getting default style for a Tab item.
Properly filled in all the necessary properties.
Inner styles: "text", "closebutton", "view".
This is part of TabView item style as "tab".
|
static |
Getting default style for a *** item.
Properly filled in all the necessary properties.
Inner styles: "tabbar", "tab", "viewarea".
Inner styles for "tab": see Style.GetTabStyle().
|
static |
Getting default style for a TextArea item.
Properly filled in all the necessary properties.
Inner styles: "textedit", "vscrollbar", "hscrollbar", "menu".
|
static |
Getting default style for a sealed TextBlock item.
Properly filled in all the necessary properties.
Inner styles: "cursor", "selection".
This is part of TextArea item style as "textedit".
|
static |
Getting default style for a TextEdit item.
Properly filled in all the necessary properties.
Inner styles: "text".
Inner styles for "text": "cursor", "selection", "substrate".
|
static |
Getting default style for a text type item.
Attention: not all the necessary properties properly filled.
|
static |
Getting default style for a TextView item.
Properly filled in all the necessary properties.
Inner styles: "selection".
|
static |
Getting default style for a TitleBar item.
Properly filled in all the necessary properties.
Inner styles: "closebutton", "minimizebutton", "maximizebutton", "title".
|
static |
Getting default style for a ToolTip item.
Properly filled in all the necessary properties.
Inner styles: "text".
|
static |
Getting default style for a TreeItem item.
Properly filled in all the necessary properties.
Inner styles: "indicator", "branchicon", "leaficon".
|
static |
Getting default style for a TreeView item.
Properly filled in all the necessary properties.
Inner styles: "area", "vscrollbar", "hscrollbar", "menu".
|
static |
Getting default style for a VerticalScrollBar item.
Properly filled in all the necessary properties.
Inner styles: "uparrow", "downarrow", "slider".
Inner styles for "slider": "track", "handler".
This is part of many items style.
|
static |
Getting default style for a VerticalSlider item.
Properly filled in all the necessary properties.
Inner styles: "track", "handler".
|
static |
Getting default style for a VerticalSplitArea item.
Properly filled in all the necessary properties.
Inner styles: "splitholder".
|
static |
Getting default style for a VerticalStack item.
Properly filled in all the necessary properties.
|
static |
Note: not supported in current version.
|
static |
Getting default style for a window itself.
Properly filled in all the necessary properties.
|
static |
Getting default style for a WrapArea item.
Properly filled in all the necessary properties.
Inner styles: "selection".
This is part of WrapGrid item style as "area".
|
static |
Getting default style for a WrapGrid item.
Properly filled in all the necessary properties.
Inner styles: "area", "vscrollbar", "hscrollbar".
Inner styles for "area": see Style.getWrapAreaStyle().
void com.spvessel.spacevil.Decorations.Style.removeInnerStyle | ( | String | keyName | ) |
Removing a child's style by its key name.
keyName | Key name of a child. |
void com.spvessel.spacevil.Decorations.Style.removeItemState | ( | ItemStateType | type | ) |
Removing visual state of an item by type.
Type can be BASE, HOVERED, PRESSED, TOGGLED, FOCUSED, DISABLED.
type | Type as com.spvessel.spacevil.Flags.ItemStateType. |
void com.spvessel.spacevil.Decorations.Style.setAlignment | ( | ItemAlignment... | alignment | ) |
Setting an Alignment of an item's shape relative to its container.
Combines with alignment by vertically (TOP, VCENTER, BOTTOM) and horizontally (LEFT, HCENTER, RIGHT). Attention: this property is required.
alignment | Alignment as com.spvessel.spacevil.Flags.ItemAlignment. |
void com.spvessel.spacevil.Decorations.Style.setBackground | ( | float | r, |
float | g, | ||
float | b | ||
) |
Setting background color of an item's shape in float RGB format.
r | Red color component. Range: (0.0f - 1.0f) |
g | Green color component. Range: (0.0f - 1.0f) |
b | Blue color component. Range: (0.0f - 1.0f) |
void com.spvessel.spacevil.Decorations.Style.setBackground | ( | float | r, |
float | g, | ||
float | b, | ||
float | a | ||
) |
Setting background color of an item's shape in float RGBA format.
r | Red color component. Range: (0.0f - 1.0f) |
g | Green color component. Range: (0.0f - 1.0f) |
b | Blue color component. Range: (0.0f - 1.0f) |
a | Alpha color component. Range: (0.0f - 1.0f) |
void com.spvessel.spacevil.Decorations.Style.setBackground | ( | int | r, |
int | g, | ||
int | b | ||
) |
Setting background color of an item's shape in byte RGB format.
r | Red color component. Range: (0 - 255) |
g | Green color component. Range: (0 - 255) |
b | Blue color component. Range: (0 - 255) |
void com.spvessel.spacevil.Decorations.Style.setBackground | ( | int | r, |
int | g, | ||
int | b, | ||
int | a | ||
) |
Setting background color of an item's shape in byte RGBA format.
r | Red color component. Range: (0 - 255) |
g | Green color component. Range: (0 - 255) |
b | Blue color component. Range: (0 - 255) |
a | Alpha color component. Range: (0 - 255) |
void com.spvessel.spacevil.Decorations.Style.setBorder | ( | Border | border | ) |
Setting border of an item's shape.
Border consist of corner radiuses, thickness and color.
border | Border as com.spvessel.spacevil.Decorations.Border. |
void com.spvessel.spacevil.Decorations.Style.setBorder | ( | Color | fill, |
CornerRadius | radius, | ||
int | thickness | ||
) |
Setting border for an item's shape.
Border consist of corner radiuses, thickness and color.
fill | Border color as java.awt.Color. |
radius | Radiuses of an border corners as com.spvessel.spacevil.Decorations.CornerRadius. |
thickness | Border thickness. |
void com.spvessel.spacevil.Decorations.Style.setForeground | ( | float | r, |
float | g, | ||
float | b | ||
) |
Setting text color of an item in float RGB format.
r | Red color component. Range: (0.0f - 1.0f) |
g | Green color component. Range: (0.0f - 1.0f) |
b | Blue color component. Range: (0.0f - 1.0f) |
void com.spvessel.spacevil.Decorations.Style.setForeground | ( | float | r, |
float | g, | ||
float | b, | ||
float | a | ||
) |
Setting text color of an item in float RGBA format.
r | Red color component. Range: (0.0f - 1.0f) |
g | Green color component. Range: (0.0f - 1.0f) |
b | Blue color component. Range: (0.0f - 1.0f) |
a | Alpha color component. Range: (0.0f - 1.0f) |
void com.spvessel.spacevil.Decorations.Style.setForeground | ( | int | r, |
int | g, | ||
int | b | ||
) |
Setting text color of an item in byte RGB format.
r | Red color component. Range: (0 - 255) |
g | Green color component. Range: (0 - 255) |
b | Blue color component. Range: (0 - 255) |
void com.spvessel.spacevil.Decorations.Style.setForeground | ( | int | r, |
int | g, | ||
int | b, | ||
int | a | ||
) |
Setting text color of an item in byte RGBA format.
r | Red color component. Range: (0 - 255) |
g | Green color component. Range: (0 - 255) |
b | Blue color component. Range: (0 - 255) |
a | Alpha color component. Range: (0 - 255) |
void com.spvessel.spacevil.Decorations.Style.setMargin | ( | Indents | margin | ) |
Setting indents of an item to offset itself relative to its container.
margin | Indents as com.spvessel.spacevil.Decorations.Indents. |
void com.spvessel.spacevil.Decorations.Style.setMargin | ( | int | left, |
int | top, | ||
int | right, | ||
int | bottom | ||
) |
Setting indents of an item to offset itself relative to its container.
left | Indent on the left. |
top | Indent on the top. |
right | Indent on the right. |
bottom | Indent on the bottom. |
void com.spvessel.spacevil.Decorations.Style.setMaxSize | ( | int | width, |
int | height | ||
) |
Setting maximim size of an item's shape (shape can not be bigger than specified width and height).
width | Maximim width of a shape. |
height | Maximim height of a shape. |
void com.spvessel.spacevil.Decorations.Style.setMinSize | ( | int | width, |
int | height | ||
) |
Setting minimum size of an item's shape (shape can not be smaller than specified width and height).
width | Minimum width of a shape. |
height | Minimum height of a shape. |
void com.spvessel.spacevil.Decorations.Style.setPadding | ( | Indents | padding | ) |
Setting indents of an item to offset its children.
padding | Padding indents as com.spvessel.spacevil.Decorations.Indents. |
void com.spvessel.spacevil.Decorations.Style.setPadding | ( | int | left, |
int | top, | ||
int | right, | ||
int | bottom | ||
) |
Setting indents of an item to offset its children.
left | Indent on the left. |
top | Indent on the top. |
right | Indent on the right. |
bottom | Indent on the bottom. |
void com.spvessel.spacevil.Decorations.Style.setShadow | ( | Shadow | shadow | ) |
Setting shadow for an item's shape.
shadow | Shadow as com.spvessel.spacevil.Decorations.Shadow. |
void com.spvessel.spacevil.Decorations.Style.setSize | ( | int | width, |
int | height | ||
) |
Setting size of an item's shape.
width | Width of a shape. |
height | Height of a shape. |
void com.spvessel.spacevil.Decorations.Style.setSizePolicy | ( | SizePolicy | widthPolicy, |
SizePolicy | heightPolicy | ||
) |
Setting the size policy of an item's shape.
Can be FIXED (shape not changes its size) or EXPAND (shape is stretched to all available space).
widthPolicy | Width policy of an item's shape. |
heightPolicy | Height policy of an item's shape. |
void com.spvessel.spacevil.Decorations.Style.setSpacing | ( | int | horizontal, |
int | vertical | ||
) |
Setting indents between children of a container type item.
horizontal | Horizontal indent. |
vertical | Vertical indent. |
void com.spvessel.spacevil.Decorations.Style.setSpacing | ( | Spacing | spacing | ) |
Setting indents between children of a container type item.
spacing | Spacing as com.spvessel.spacevil.Decorations.Spacing. |
void com.spvessel.spacevil.Decorations.Style.setStyle | ( | InterfaceBaseItem... | items | ) |
Setting this style for all items in sequence.
items | A sequence of items that are com.spvessel.spacevil.Core.InterfaceBaseItem. |
void com.spvessel.spacevil.Decorations.Style.setTextAlignment | ( | ItemAlignment... | alignment | ) |
Alignment of an item's text.
Combines with alignment by vertically (TOP, VCENTER, BOTTOM) and horizontally (LEFT, HCENTER, RIGHT). Can be used only if the item contains text and in this case this property is required.
alignment | Text alignment as com.spvessel.spacevil.Flags.ItemAlignment. |
List<ItemAlignment> com.spvessel.spacevil.Decorations.Style.alignment |
Alignment of an item's shape relative to its container.
Combines with alignment by vertically (TOP, VCENTER, BOTTOM) and horizontally (LEFT, HCENTER, RIGHT). Attention: this property is required.
This property is com.spvessel.spacevil.Flags.ItemAlignment.
Color com.spvessel.spacevil.Decorations.Style.background |
Background color of an item's shape.
Attention: this property is required.
This property is java.awt.Color.
Color com.spvessel.spacevil.Decorations.Style.borderFill = new Color(0, 0, 0, 0) |
Color of an item's border.
This property is java.awt.Color.
CornerRadius com.spvessel.spacevil.Decorations.Style.borderRadius = new CornerRadius() |
Radiuses to round the rectangular shape of the item.
int com.spvessel.spacevil.Decorations.Style.borderThickness = 0 |
Thickness of an item's border.
Default: 0.
Font com.spvessel.spacevil.Decorations.Style.font = null |
Font of an item's text.
Can be used only if the item contains text and in this case this property is required.
This property is java.awt.Font
Color com.spvessel.spacevil.Decorations.Style.foreground |
Color of an item's text.
Can be used only if the item contains text and in this case this property is required.
This property is java.awt.Color.
int com.spvessel.spacevil.Decorations.Style.height |
Height of an item's shape.
SizePolicy com.spvessel.spacevil.Decorations.Style.heightPolicy |
Height policy of an item's shape.
Can be Fixed (shape not changes its size) or Expand (shape is stretched to all available space). Attention: this property is required.
This property is com.spvessel.spacevil.Flags.SizePolicy.
List<InterfaceBaseItem> com.spvessel.spacevil.Decorations.Style.innerShapes |
A storage of shapes for future use.
Note: not supported in the current version!
Format: java.util.List<com.spvessel.spacevil.Core.InterfaceBaseItem>.
boolean com.spvessel.spacevil.Decorations.Style.isFixedShape = false |
A flag that determines if the shape of an item can be changed or not.
True: if shape can not be resized. False: if shape can be resised. Default: False.
boolean com.spvessel.spacevil.Decorations.Style.isShadowDrop = false |
Drop shadow flag.
True: allow shadow dropping. False: not allow shadow dropping.
Default: False.
boolean com.spvessel.spacevil.Decorations.Style.isVisible |
A flag that determines if an item is visible or not.
True: if visible. False: if not visible. Default: True.
Indents of an item to offset itself relative to its container.
Attention: this property is required.
This property is com.spvessel.spacevil.Decorations.Indents.
int com.spvessel.spacevil.Decorations.Style.maxHeight |
Maximum height of an item's shape (shape cannot be bigget this value).
Default: 32767.
int com.spvessel.spacevil.Decorations.Style.maxWidth |
Maximum width of an item's shape (shape cannot be bigger this value).
Default: 32767.
int com.spvessel.spacevil.Decorations.Style.minHeight |
Minimum height of an item's shape (shape cannot be smaller this value).
Default: 0.
int com.spvessel.spacevil.Decorations.Style.minWidth |
Minimum width of an item's shape (shape cannot be smaller this value).
Default: 0.
Indents of an item to offset its children.
Attention: this property is required.
This property is com.spvessel.spacevil.Decorations.Indents.
Color com.spvessel.spacevil.Decorations.Style.shadowColor |
Color of a shadow.
This property is java.awt.Color.
int com.spvessel.spacevil.Decorations.Style.shadowRadius |
Blur radius of a shadow.
Min value: 0. Max value: 10. Default: 0.
int com.spvessel.spacevil.Decorations.Style.shadowXOffset |
X shift of a shadow.
int com.spvessel.spacevil.Decorations.Style.shadowYOffset |
Y shift of a shadow.
List<float[]> com.spvessel.spacevil.Decorations.Style.shape |
A form of an item's shape.
If not assigned, the shape is rectangular.
Format: java.util.List<float[]>.
Indents between children of a container type item.
It is used mainly in containers.
This property is com.spvessel.spacevil.Decorations.Spacing.
List<ItemAlignment> com.spvessel.spacevil.Decorations.Style.textAlignment |
Alignment of an item's text.
Combines with alignment by vertically (TOP, VCENTER, BOTTOM) and horizontally (LEFT, HCENTER, RIGHT). Can be used only if the item contains text and in this case this property is required.
This property is com.spvessel.spacevil.Flags.ItemAlignment.
int com.spvessel.spacevil.Decorations.Style.width |
Width of an item's shape.
SizePolicy com.spvessel.spacevil.Decorations.Style.widthPolicy |
Width policy of an item's shape.
Can be Fixed (shape not changes its size) or Expand (shape is stretched to all available space). Attention: this property is required.
This property is com.spvessel.spacevil.Flags.SizePolicy.
int com.spvessel.spacevil.Decorations.Style.x |
X axis position of left-top cornet of an item's shape.
This property itself is mostly ignored. Used only when creating container-type items or with com.spvessel.spacevil.FreeArea.
int com.spvessel.spacevil.Decorations.Style.y |
Y axis position of left-top cornet of an item's shape.
This property itself is mostly ignored. Used only when creating container-type items or with com.spvessel.spacevil.FreeArea.