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.
|
Abstract class implementation of com.spvessel.spacevil.Core.InterfaceBaseItem interface. More...
Inherits com.spvessel.spacevil.Core.InterfaceBaseItem.
Inherited by com.spvessel.spacevil.Primitive.
Public Member Functions | |
void | setHandler (CoreWindow handler) |
Setting the window to which the item will belong. More... | |
CoreWindow | getHandler () |
Getting the window to which the item belong. More... | |
Prototype | getParent () |
Getting the parent of the item. More... | |
void | setParent (Prototype parent) |
Setting the parent of the item. More... | |
void | initElements () |
Initializing children if this BaseItem is container (com.spvessel.spacevil.Prototype). More... | |
Indents | getMargin () |
Getting the indents of an item to offset itself relative to its container. More... | |
void | setMargin (Indents margin) |
Setting the indents of an item to offset itself relative to its container. More... | |
void | setMargin (int left, int top, int right, int bottom) |
Setting the indents of an item to offset itself relative to its container. More... | |
List< float[]> | getTriangles () |
Getting triangles of item's shape. More... | |
void | setTriangles (List< float[]> triangles) |
Setting triangles as item's shape. More... | |
void | makeShape () |
Making default item's shape. More... | |
void | setBackground (Color color) |
Setting background color 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 in byte RGBA format. More... | |
void | setBackground (float r, float g, float b) |
Setting background color of an item in float RGB format. More... | |
void | setBackground (float r, float g, float b, float a) |
Setting background color of an item in float RGBA format. More... | |
Color | getBackground () |
Getting background color of an item. More... | |
void | setItemName (String name) |
Setting the name of the item. More... | |
String | getItemName () |
Getting the name of the item. More... | |
boolean | isDrawable () |
Getting the drawable (visibility) status of an item. More... | |
void | setDrawable (boolean value) |
Setting the drawable (visibility) status of an item. More... | |
boolean | isVisible () |
Getting the visibility status of an item. More... | |
void | setVisible (boolean value) |
Setting the visibility status of an item. More... | |
void | setMinWidth (int width) |
Setting the minimum width limit. More... | |
void | setWidth (int width) |
Setting item width. More... | |
void | setMaxWidth (int width) |
Setting the maximum width limit. More... | |
int | getMinWidth () |
Getting the minimum width limit. More... | |
int | getWidth () |
Getting item width. More... | |
int | getMaxWidth () |
Getting the maximum width limit. More... | |
void | setMinHeight (int height) |
Setting the minimum height limit. More... | |
void | setHeight (int height) |
Setting item height. More... | |
void | setMaxHeight (int height) |
Setting the maximum height limit. More... | |
int | getMinHeight () |
Getting the minimum height limit. More... | |
int | getHeight () |
Getting item height. More... | |
int | getMaxHeight () |
Getting the maximum height limit. More... | |
void | setSize (int width, int height) |
Setting item size (width and height). More... | |
void | setMinSize (int width, int height) |
Setting minimum item size limit (width and height limits). More... | |
void | setMaxSize (int width, int height) |
Setting maximum item size limit (width and height limits). More... | |
Size | getSize () |
Getting current item size. More... | |
Size | getMinSize () |
Getting current item minimum size limit. More... | |
Size | getMaxSize () |
Getting current item maximum size limit. More... | |
void | setAlignment (ItemAlignment... alignment) |
Setting an alignment of an item's shape relative to its container. More... | |
void | setAlignment (List< ItemAlignment > alignment) |
Setting an alignment of an item's shape relative to its container. More... | |
List< ItemAlignment > | getAlignment () |
Getting an alignment of an item's shape relative to its container. More... | |
void | setSizePolicy (SizePolicy width, SizePolicy height) |
Setting the size policy of an item's shape. More... | |
void | setWidthPolicy (SizePolicy policy) |
Setting width policy of an item's shape. More... | |
SizePolicy | getWidthPolicy () |
Getting width policy of an item's shape.Can be FIXED (shape not changes its size) or EXPAND (shape is stretched to all available space). More... | |
void | setHeightPolicy (SizePolicy policy) |
Setting height policy of an item's shape. More... | |
SizePolicy | getHeightPolicy () |
Getting height policy of an item's shape.Can be FIXED (shape not changes its size) or EXPAND (shape is stretched to all available space). More... | |
void | setX (int x) |
Setting X coordinate of the left-top corner of a shape. More... | |
int | getX () |
Getting X coordinate of the left-top corner of a shape. More... | |
void | setY (int y) |
Setting Y coordinate of the left-top corner of a shape. More... | |
int | getY () |
Getting Y coordinate of the left-top corner of a shape. More... | |
void | update (GeometryEventType type, int value) |
Updating an item size or/and position. More... | |
void | setStyle (Style style) |
Setting a style that describes the appearance of an item. More... | |
abstract Style | getCoreStyle () |
Getting the core (only appearance properties without inner styles) style of an item. More... | |
boolean | isShadowDrop () |
Getting the shadow visibility status of an item. More... | |
void | setShadowDrop (boolean value) |
Setting the shadow visibility status of an item. More... | |
void | setShadowRadius (int radius) |
Setting the specified blur radius of the shadow. More... | |
int | getShadowRadius () |
Getting the shadow blur raduis. More... | |
Color | getShadowColor () |
Getting shadow color. More... | |
void | setShadowColor (Color color) |
Setting shadow color. More... | |
Position | getShadowPos () |
Getting the offset of the shadow relative to the position of the item. More... | |
int[] | getShadowExtension () |
Getting the values of shadow extensions in pixels. More... | |
void | setShadowExtension (int wExtension, int hExtension) |
Setting the values of shadow extensions in pixels. More... | |
void | setShadow (int radius, int x, int y, Color color) |
Setting the shadow with specified blur radius, axis shifts, shadow color. More... | |
void | setShadow (Shadow shadow) |
Setting the shadow of an item. More... | |
void | setConfines () |
Setting the confines of the item relative to its parent's size and position. More... | |
void | setConfines (int x0, int x1, int y0, int y1) |
Setting the confines of the item relative to specified bounds. More... | |
void | release () |
Method to describe disposing item's resources if the item was removed. More... | |
Public Attributes | |
ItemHoverRule | HoverRule = ItemHoverRule.LAZY |
Hovering rule propetry of this item. More... | |
Protected Member Functions | |
int[] | getConfines () |
Abstract class implementation of com.spvessel.spacevil.Core.InterfaceBaseItem interface.
com.spvessel.spacevil.Core.InterfaceBaseItem is the main interface of SpaceVIL environment.
Contains all the necessary methods for rendering objects and interacting with them.
List<ItemAlignment> com.spvessel.spacevil.BaseItem.getAlignment | ( | ) |
Getting an alignment of an item's shape relative to its container.
Implements com.spvessel.spacevil.Core.InterfaceBehavior.
Color com.spvessel.spacevil.BaseItem.getBackground | ( | ) |
Getting background color of an item.
Implements com.spvessel.spacevil.Core.InterfaceItem.
|
protected |
|
abstract |
Getting the core (only appearance properties without inner styles) style of an item.
Implements com.spvessel.spacevil.Core.InterfaceBaseItem.
Reimplemented in com.spvessel.spacevil.Primitive.
CoreWindow com.spvessel.spacevil.BaseItem.getHandler | ( | ) |
Getting the window to which the item belong.
Implements com.spvessel.spacevil.Core.InterfaceBaseItem.
int com.spvessel.spacevil.BaseItem.getHeight | ( | ) |
Getting item height.
Implements com.spvessel.spacevil.Core.InterfaceSize.
SizePolicy com.spvessel.spacevil.BaseItem.getHeightPolicy | ( | ) |
Getting height policy of an item's shape.Can be FIXED (shape not changes its size) or EXPAND (shape is stretched to all available space).
Implements com.spvessel.spacevil.Core.InterfaceBehavior.
String com.spvessel.spacevil.BaseItem.getItemName | ( | ) |
Getting the name of the item.
Implements com.spvessel.spacevil.Core.InterfaceItem.
Indents com.spvessel.spacevil.BaseItem.getMargin | ( | ) |
Getting the indents of an item to offset itself relative to its container.
Implements com.spvessel.spacevil.Core.InterfaceBaseItem.
int com.spvessel.spacevil.BaseItem.getMaxHeight | ( | ) |
Getting the maximum height limit.
Implements com.spvessel.spacevil.Core.InterfaceSize.
Size com.spvessel.spacevil.BaseItem.getMaxSize | ( | ) |
Getting current item maximum size limit.
int com.spvessel.spacevil.BaseItem.getMaxWidth | ( | ) |
Getting the maximum width limit.
Implements com.spvessel.spacevil.Core.InterfaceSize.
int com.spvessel.spacevil.BaseItem.getMinHeight | ( | ) |
Getting the minimum height limit.
Implements com.spvessel.spacevil.Core.InterfaceSize.
Size com.spvessel.spacevil.BaseItem.getMinSize | ( | ) |
Getting current item minimum size limit.
int com.spvessel.spacevil.BaseItem.getMinWidth | ( | ) |
Getting the minimum width limit.
Implements com.spvessel.spacevil.Core.InterfaceSize.
Prototype com.spvessel.spacevil.BaseItem.getParent | ( | ) |
Getting the parent of the item.
Implements com.spvessel.spacevil.Core.InterfaceBaseItem.
Color com.spvessel.spacevil.BaseItem.getShadowColor | ( | ) |
Getting shadow color.
Implements com.spvessel.spacevil.Core.InterfaceBaseItem.
int [] com.spvessel.spacevil.BaseItem.getShadowExtension | ( | ) |
Getting the values of shadow extensions in pixels.
Implements com.spvessel.spacevil.Core.InterfaceBaseItem.
Position com.spvessel.spacevil.BaseItem.getShadowPos | ( | ) |
Getting the offset of the shadow relative to the position of the item.
Implements com.spvessel.spacevil.Core.InterfaceBaseItem.
int com.spvessel.spacevil.BaseItem.getShadowRadius | ( | ) |
Getting the shadow blur raduis.
Implements com.spvessel.spacevil.Core.InterfaceBaseItem.
Size com.spvessel.spacevil.BaseItem.getSize | ( | ) |
Getting current item size.
Implements com.spvessel.spacevil.Core.InterfaceSize.
List<float[]> com.spvessel.spacevil.BaseItem.getTriangles | ( | ) |
Getting triangles of item's shape.
Implements com.spvessel.spacevil.Core.InterfaceItem.
int com.spvessel.spacevil.BaseItem.getWidth | ( | ) |
SizePolicy com.spvessel.spacevil.BaseItem.getWidthPolicy | ( | ) |
Getting width policy of an item's shape.Can be FIXED (shape not changes its size) or EXPAND (shape is stretched to all available space).
Implements com.spvessel.spacevil.Core.InterfaceBehavior.
int com.spvessel.spacevil.BaseItem.getX | ( | ) |
Getting X coordinate of the left-top corner of a shape.
Implements com.spvessel.spacevil.Core.InterfacePosition.
int com.spvessel.spacevil.BaseItem.getY | ( | ) |
Getting Y coordinate of the left-top corner of a shape.
Implements com.spvessel.spacevil.Core.InterfacePosition.
void com.spvessel.spacevil.BaseItem.initElements | ( | ) |
Initializing children if this BaseItem is container (com.spvessel.spacevil.Prototype).
Notice: This method is mainly for overriding only. SpaceVIL calls this method if necessary and no need to call it manually.
Implements com.spvessel.spacevil.Core.InterfaceBaseItem.
boolean com.spvessel.spacevil.BaseItem.isDrawable | ( | ) |
Getting the drawable (visibility) status of an item.
This property used in conjunction with the isVisible() property.
Explanation: an item can be visible and invisible, in some cases the item can be located outside the container (example: com.spvessel.spacevil.ListBox), and it must be invisible so as not to waste CPU / GPU resources, but in some cases you must control the visibility of elements that are inside container and should be invisible (example: com.spvessel.spacevil.TreeView).
Implements com.spvessel.spacevil.Core.InterfaceBaseItem.
boolean com.spvessel.spacevil.BaseItem.isShadowDrop | ( | ) |
Getting the shadow visibility status of an item.
Implements com.spvessel.spacevil.Core.InterfaceBaseItem.
boolean com.spvessel.spacevil.BaseItem.isVisible | ( | ) |
Getting the visibility status of an item.
This property may used in conjunction with the isDrawable() property.
Implements com.spvessel.spacevil.Core.InterfaceBaseItem.
void com.spvessel.spacevil.BaseItem.makeShape | ( | ) |
Making default item's shape.
Use in conjunction with getTriangles() and setTriangles() methods.
Notice: This method is mainly for overriding only. SpaceVIL calls this method if necessary and no need to call it manually.
Implements com.spvessel.spacevil.Core.InterfaceItem.
Reimplemented in com.spvessel.spacevil.PointsContainer, com.spvessel.spacevil.Rectangle, com.spvessel.spacevil.LinesContainer, com.spvessel.spacevil.CustomShape, com.spvessel.spacevil.Ellipse, and com.spvessel.spacevil.Triangle.
void com.spvessel.spacevil.BaseItem.release | ( | ) |
Method to describe disposing item's resources if the item was removed.
Implements com.spvessel.spacevil.Core.InterfaceBaseItem.
void com.spvessel.spacevil.BaseItem.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).
alignment | Alignment as com.spvessel.spacevil.Flags.ItemAlignment. |
Implements com.spvessel.spacevil.Core.InterfaceBehavior.
void com.spvessel.spacevil.BaseItem.setAlignment | ( | List< 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).
alignment | Alignment as List of com.spvessel.spacevil.Flags.ItemAlignment. |
void com.spvessel.spacevil.BaseItem.setBackground | ( | Color | color | ) |
Setting background color of an item's shape.
color | Background color as java.awt.Color. |
Implements com.spvessel.spacevil.Core.InterfaceItem.
void com.spvessel.spacevil.BaseItem.setBackground | ( | float | r, |
float | g, | ||
float | b | ||
) |
Setting background 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.BaseItem.setBackground | ( | float | r, |
float | g, | ||
float | b, | ||
float | a | ||
) |
Setting background 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.BaseItem.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.BaseItem.setBackground | ( | int | r, |
int | g, | ||
int | b, | ||
int | a | ||
) |
Setting background 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.BaseItem.setConfines | ( | ) |
Setting the confines of the item relative to its parent's size and position.
Example: items can be partially (or completely) outside the container (example: ListBox), in which case the part that is outside the container should not be visible and should not interact with the user.
Implements com.spvessel.spacevil.Core.InterfaceBaseItem.
void com.spvessel.spacevil.BaseItem.setConfines | ( | int | x0, |
int | x1, | ||
int | y0, | ||
int | y1 | ||
) |
Setting the confines of the item relative to specified bounds.
Example: items can be partially (or completely) outside the container (example: ListBox), in which case the part that is outside the container should not be visible and should not interact with the user.
x0 | Left X begin position. |
x1 | Right X end position. |
y0 | Top Y begin position. |
y1 | Bottom Y end position. |
Implements com.spvessel.spacevil.Core.InterfaceBaseItem.
void com.spvessel.spacevil.BaseItem.setDrawable | ( | boolean | value | ) |
Setting the drawable (visibility) status of an item.
This property used in conjunction with the isVisible() property.
Explanation: an item can be visible and invisible, in some cases the item can be located outside the container (example: com.spvessel.spacevil.ListBox), and it must be invisible so as not to waste CPU / GPU resources, but in some cases you must control the visibility of elements that are inside container and should be invisible (example: com.spvessel.spacevil.TreeView).
value | True: if item should be drawable (visible). False: if item should not be drawable (invisible). |
Implements com.spvessel.spacevil.Core.InterfaceBaseItem.
void com.spvessel.spacevil.BaseItem.setHandler | ( | CoreWindow | handler | ) |
Setting the window to which the item will belong.
handler | Window as com.spvessel.spacevil.CoreWindow. |
Implements com.spvessel.spacevil.Core.InterfaceBaseItem.
void com.spvessel.spacevil.BaseItem.setHeight | ( | int | height | ) |
Setting item height.
If the value is greater/less than the maximum/minimum value of the height, then the height becomes equal to the maximum/minimum value.
height | Height of the item. |
Implements com.spvessel.spacevil.Core.InterfaceSize.
void com.spvessel.spacevil.BaseItem.setHeightPolicy | ( | SizePolicy | policy | ) |
Setting height policy of an item's shape.
Can be FIXED (shape not changes its size) or EXPAND (shape is stretched to all available space).
policy | Height policy as com.spvessel.spacevil.Flags.SizePolicy. |
Implements com.spvessel.spacevil.Core.InterfaceBehavior.
void com.spvessel.spacevil.BaseItem.setItemName | ( | String | name | ) |
Setting the name of the item.
name | Item name as java.lang.String. |
Implements com.spvessel.spacevil.Core.InterfaceItem.
void com.spvessel.spacevil.BaseItem.setMargin | ( | Indents | margin | ) |
Setting the indents of an item to offset itself relative to its container.
margin | Margin as com.spvessel.spacevil.Decorations.Indents. |
Implements com.spvessel.spacevil.Core.InterfaceBaseItem.
void com.spvessel.spacevil.BaseItem.setMargin | ( | int | left, |
int | top, | ||
int | right, | ||
int | bottom | ||
) |
Setting the 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. |
Implements com.spvessel.spacevil.Core.InterfaceBaseItem.
void com.spvessel.spacevil.BaseItem.setMaxHeight | ( | int | height | ) |
Setting the maximum height limit.
Actual height cannot be greater than this limit.
height | Maximum height limit of the item. |
Implements com.spvessel.spacevil.Core.InterfaceSize.
void com.spvessel.spacevil.BaseItem.setMaxSize | ( | int | width, |
int | height | ||
) |
Setting maximum item size limit (width and height limits).
width | Maximum width limit of the item. |
height | Maximum height limit of the item. |
void com.spvessel.spacevil.BaseItem.setMaxWidth | ( | int | width | ) |
Setting the maximum width limit.
Actual width cannot be greater than this limit.
width | Maximum width limit of the item. |
Implements com.spvessel.spacevil.Core.InterfaceSize.
void com.spvessel.spacevil.BaseItem.setMinHeight | ( | int | height | ) |
Setting the minimum height limit.
Actual height cannot be less than this limit.
height | Minimum height limit of the item. |
Implements com.spvessel.spacevil.Core.InterfaceSize.
void com.spvessel.spacevil.BaseItem.setMinSize | ( | int | width, |
int | height | ||
) |
Setting minimum item size limit (width and height limits).
width | Minimum width limit of the item. |
height | Minimum height limit of the item. |
void com.spvessel.spacevil.BaseItem.setMinWidth | ( | int | width | ) |
Setting the minimum width limit.
Actual width cannot be less than this limit.
width | Minimum width limit of the item. |
Implements com.spvessel.spacevil.Core.InterfaceSize.
void com.spvessel.spacevil.BaseItem.setParent | ( | Prototype | parent | ) |
Setting the parent of the item.
parent | Parent as com.spvessel.spacevil.Prototype (Prototype is container and can contains children). |
Implements com.spvessel.spacevil.Core.InterfaceBaseItem.
void com.spvessel.spacevil.BaseItem.setShadow | ( | int | radius, |
int | x, | ||
int | y, | ||
Color | color | ||
) |
Setting the shadow with specified blur radius, axis shifts, shadow color.
radius | A blur radius of the shadow. |
x | X shift of the shadow. |
y | Y shift of the shadow. |
color | A shadow color as java.awt.Color. |
Implements com.spvessel.spacevil.Core.InterfaceBaseItem.
void com.spvessel.spacevil.BaseItem.setShadow | ( | Shadow | shadow | ) |
Setting the shadow of an item.
shadow | Shadow as com.spvessel.spacevil.Decorations.Shadow. |
void com.spvessel.spacevil.BaseItem.setShadowColor | ( | Color | color | ) |
Setting shadow color.
color | Shadow color as java.awt.Color. |
Implements com.spvessel.spacevil.Core.InterfaceBaseItem.
void com.spvessel.spacevil.BaseItem.setShadowDrop | ( | boolean | value | ) |
Setting the shadow visibility status of an item.
value | True: if shadow should be visible. False: if shadow should be invisible. |
Implements com.spvessel.spacevil.Core.InterfaceBaseItem.
void com.spvessel.spacevil.BaseItem.setShadowExtension | ( | int | wExtension, |
int | hExtension | ||
) |
Setting the values of shadow extensions in pixels.
wExtension | Extension by width. |
hExtension | Extension by height. |
void com.spvessel.spacevil.BaseItem.setShadowRadius | ( | int | radius | ) |
Setting the specified blur radius of the shadow.
Default: 0.
radius | The blur radius of the shadow. |
Implements com.spvessel.spacevil.Core.InterfaceBaseItem.
void com.spvessel.spacevil.BaseItem.setSize | ( | int | width, |
int | height | ||
) |
Setting item size (width and height).
width | Width of the item. |
height | Height of the item. |
Implements com.spvessel.spacevil.Core.InterfaceSize.
void com.spvessel.spacevil.BaseItem.setSizePolicy | ( | SizePolicy | width, |
SizePolicy | height | ||
) |
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).
width | Width policy of an item's shape as com.spvessel.spacevil.Flags.SizePolicy. |
height | Height policy of an item's shape as com.spvessel.spacevil.Flags.SizePolicy. |
void com.spvessel.spacevil.BaseItem.setStyle | ( | Style | style | ) |
Setting a style that describes the appearance of an item.
style | Style as com.spvessel.spacevil.Decorations.Style. |
Implements com.spvessel.spacevil.Core.InterfaceBaseItem.
Reimplemented in com.spvessel.spacevil.Primitive.
void com.spvessel.spacevil.BaseItem.setTriangles | ( | List< float[]> | triangles | ) |
Setting triangles as item's shape.
triangles | Points list of the shape as List of float[2] array (2D). |
Implements com.spvessel.spacevil.Core.InterfaceItem.
void com.spvessel.spacevil.BaseItem.setVisible | ( | boolean | value | ) |
Setting the visibility status of an item.
This property may used in conjunction with the isDrawable() property.
value | True: if item should be visible. False: if item should be invisible. |
Implements com.spvessel.spacevil.Core.InterfaceBaseItem.
void com.spvessel.spacevil.BaseItem.setWidth | ( | int | width | ) |
Setting item width.
If the value is greater/less than the maximum/minimum value of the width, then the width becomes equal to the maximum/minimum value.
width | Width of the item. |
Implements com.spvessel.spacevil.Core.InterfaceSize.
void com.spvessel.spacevil.BaseItem.setWidthPolicy | ( | SizePolicy | policy | ) |
Setting width policy of an item's shape.
Can be FIXED (shape not changes its size) or EXPAND (shape is stretched to all available space).
policy | Width policy as com.spvessel.spacevil.Flags.SizePolicy. |
Implements com.spvessel.spacevil.Core.InterfaceBehavior.
void com.spvessel.spacevil.BaseItem.setX | ( | int | x | ) |
Setting X coordinate of the left-top corner of a shape.
x | X position of the left-top corner. |
Implements com.spvessel.spacevil.Core.InterfacePosition.
void com.spvessel.spacevil.BaseItem.setY | ( | int | y | ) |
Setting Y coordinate of the left-top corner of a shape.
y | Y position of the left-top corner. |
Implements com.spvessel.spacevil.Core.InterfacePosition.
void com.spvessel.spacevil.BaseItem.update | ( | GeometryEventType | type, |
int | value | ||
) |
Updating an item size or/and position.
type | Type of event as com.spvessel.spacevil.Flags.GeometryEventType. |
value | Value of a property that was changed. |
Implements com.spvessel.spacevil.Core.InterfaceEventUpdate.
ItemHoverRule com.spvessel.spacevil.BaseItem.HoverRule = ItemHoverRule.LAZY |
Hovering rule propetry of this item.
Can be ItemHoverRule.LAZY or ItemHoverRule.STRICT (see com.spvessel.spacevil.Flags.ItemHoverRule).