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.Triangle Class Reference

Triangle is a subclass that extends from com.spvessel.spacevil.Primitive for rendering an triangle shape. More...

Inherits com.spvessel.spacevil.Primitive.

Public Member Functions

 Triangle ()
 Default Triangle constructor. More...
 
 Triangle (int angle)
 Constructs an Triangle with specified rotation angle of an triangle shape. More...
 
void makeShape ()
 Overridden method for stretching the triangle shape relative to the current size. More...
 
- Public Member Functions inherited from com.spvessel.spacevil.Primitive
 Primitive ()
 Default constructor of Primitive class. More...
 
 Primitive (String name)
 Constructs a Primitive with the specified name. More...
 
void setPosition (int x, int y)
 Setting item position. More...
 
void setStyle (Style style)
 Setting a style that describes the appearance of an item. More...
 
Style getCoreStyle ()
 Getting the core (only appearance properties without inner styles) style of an item. More...
 
- Public Member Functions inherited from com.spvessel.spacevil.BaseItem
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 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< ItemAlignmentgetAlignment ()
 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...
 
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

int rotationAngle = 0
 Rotation angle in degrees of an triangle shape. More...
 
- Public Attributes inherited from com.spvessel.spacevil.BaseItem
ItemHoverRule HoverRule = ItemHoverRule.LAZY
 Hovering rule propetry of this item. More...
 

Additional Inherited Members

- Protected Member Functions inherited from com.spvessel.spacevil.BaseItem
int[] getConfines ()
 

Detailed Description

Triangle is a subclass that extends from com.spvessel.spacevil.Primitive for rendering an triangle shape.

Constructor & Destructor Documentation

◆ Triangle() [1/2]

com.spvessel.spacevil.Triangle.Triangle ( )

Default Triangle constructor.

◆ Triangle() [2/2]

com.spvessel.spacevil.Triangle.Triangle ( int  angle)

Constructs an Triangle with specified rotation angle of an triangle shape.

Parameters
angleRotation angle of an triangle shape.

Member Function Documentation

◆ makeShape()

void com.spvessel.spacevil.Triangle.makeShape ( )

Overridden method for stretching the triangle shape relative to the current size.

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.

Reimplemented from com.spvessel.spacevil.BaseItem.

Member Data Documentation

◆ rotationAngle

int com.spvessel.spacevil.Triangle.rotationAngle = 0

Rotation angle in degrees of an triangle shape.

Default: 0.


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