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

PaasswordLine is designed to hide the input of text information. More...

Inherits com.spvessel.spacevil.HorizontalStack.

Public Member Functions

 PasswordLine ()
 Default PasswordLine constructor. More...
 
void setFocused (boolean value)
 Setting focus on this PasswordLine if it is focusable. More...
 
void setTextAlignment (ItemAlignment... alignment)
 Setting alignment of a PasswordLine text. More...
 
void setTextAlignment (List< ItemAlignment > alignment)
 Setting alignment of a PasswordLine text. More...
 
void setTextMargin (Indents margin)
 Setting indents for the text to offset text relative to PasswordLine. More...
 
void setTextMargin (int left, int top, int right, int bottom)
 Setting indents for the text to offset text relative to PasswordLine. More...
 
Indents getTextMargin ()
 Getting indents of the text. More...
 
void setFont (Font font)
 Setting font of the text. More...
 
void setFontSize (int size)
 Setting font size of the text. More...
 
void setFontStyle (int style)
 Setting font style of the text. More...
 
void setFontFamily (String fontFamily)
 Setting new font family of the text. More...
 
Font getFont ()
 Getting the current font of the text. More...
 
String getPassword ()
 Getting entered hidden text data. More...
 
void setForeground (Color color)
 Setting text color of a PasswordLine. More...
 
void setForeground (int r, int g, int b)
 Setting text color of a PasswordLine 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 a PasswordLine in float RGB format. More...
 
void setForeground (float r, float g, float b, float a)
 Setting text color of a PasswordLine in float RGBA format. More...
 
Color getForeground ()
 Getting current text color. More...
 
boolean isEditable ()
 Returns True if PasswordLine is editable otherwise returns False. More...
 
void setEditable (boolean value)
 Setting PasswordLine text field be editable or be non-editable. More...
 
void initElements ()
 Initializing all elements in the PasswordLine. More...
 
int getTextWidth ()
 Getting the text width (useful when you need resize PasswordLine by text width). More...
 
int getTextHeight ()
 Getting the text height (useful when you need resize PasswordLine by text height). More...
 
void clear ()
 Remove all text from the PasswordLine. More...
 
void setStyle (Style style)
 Setting style of the PasswordLine. More...
 
void setSubstrateText (String substrateText)
 Setting the substrate text (hint under main text, when you start typing substrate becomes invisible). More...
 
void setSubstrateFontSize (int size)
 Setting font size of the substrate text (hint under main text, when you start typing substrate becomes invisible). More...
 
void setSubstrateFontStyle (int style)
 Setting font style of the substrate text (hint under main text, when you start typing substrate becomes invisible). More...
 
void setSubstrateForeground (Color foreground)
 Setting substrate text (hint under main text, when you start typing substrate becomes invisible) color of a PasswordLine. More...
 
void setSubstrateForeground (int r, int g, int b)
 Setting substrate text (hint under main text, when you start typing substrate becomes invisible) color of a PasswordLine in byte RGB format. More...
 
void setSubstratetForeground (int r, int g, int b, int a)
 Setting substrate text (hint under main text, when you start typing substrate becomes invisible) color of a PasswordLine in byte RGBA format. More...
 
void setSubstrateForeground (float r, float g, float b)
 Setting substrate text (hint under main text, when you start typing substrate becomes invisible)color of a PasswordLine in float RGB format. More...
 
void setSubstrateForeground (float r, float g, float b, float a)
 Setting substrate text (hint under main text, when you start typing substrate becomes invisible)color of a PasswordLine in float RGBA format. More...
 
Color getSubstrateForeground ()
 Getting current substrate text (hint under main text, when you start typing substrate becomes invisible) color. More...
 
String getSubstrateText ()
 Getting substrate text (hint under main text, when you start typing substrate becomes invisible). More...
 
- Public Member Functions inherited from com.spvessel.spacevil.HorizontalStack
void setContentAlignment (ItemAlignment alignment)
 Setting content alignment within HorizontalStack area. More...
 
ItemAlignment getContentAlignment ()
 Getting current content alignment. More...
 
 HorizontalStack ()
 Default HorizontalStack constructor. More...
 
void addItem (InterfaceBaseItem item)
 Adding item to the HorizontalStack. More...
 
void insertItem (InterfaceBaseItem item, int index)
 Inserting item to the HorizontalStack container. More...
 
boolean removeItem (InterfaceBaseItem item)
 Removing the specified item from the HorizontalStack container. More...
 
void setWidth (int width)
 Setting HorizontalStack width. More...
 
void setX (int x)
 Setting X coordinate of the left-top corner of the HorizontalStack. More...
 
void updateLayout ()
 Updating all children positions (implementation of com.spvessel.spacevil.Core.InterfaceHLayout). More...
 
- Public Member Functions inherited from com.spvessel.spacevil.Prototype
 Prototype ()
 Default constructor of Prototype class. More...
 
void release ()
 Method to describe disposing item's resources if the item was removed. More...
 
void setHandler (CoreWindow handler)
 Setting the window to which the item will belong. More...
 
CoreWindow getHandler ()
 Getting the window to which the item belongs. More...
 
String getToolTip ()
 Getting tooltip text of the item. More...
 
void setToolTip (String text)
 Setting tooltip text of the item. More...
 
Prototype getParent ()
 Getting the parent of the item. More...
 
void setParent (Prototype parent)
 Setting the parent of the item. More...
 
Spacing getSpacing ()
 Getting indents between children of a container type item. 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...
 
Indents getPadding ()
 Getting indents of an item for offset its children. 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...
 
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...
 
void setBorder (Border border)
 Setting border of an item's shape. More...
 
void setBorderFill (Color fill)
 Setting the border color of an item's shape. More...
 
Color getBorderFill ()
 Getting the border color oa an item's shape. More...
 
void setBorderFill (int r, int g, int b)
 Setting the border color of an item's shape in byte RGB format. More...
 
void setBorderFill (int r, int g, int b, int a)
 Setting the border color of an item's shape in byte RGB format. More...
 
void setBorderFill (float r, float g, float b)
 Setting the border color of an item's shape in float RGB format. More...
 
void setBorderFill (float r, float g, float b, float a)
 Setting the border color of an item's shape in float RGBA format. More...
 
void setBorderRadius (CornerRadius radius)
 Setting radius of the border's corners. More...
 
void setBorderRadius (int radius)
 Setting border radius with the same values for each corner of the rectangle object. More...
 
CornerRadius getBorderRadius ()
 Getting border radiuses. More...
 
void setBorderThickness (int thickness)
 Setting border thickness of an item's shape. More...
 
int getBorderThickness ()
 Getting border thickness of an item's shape. 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...
 
void setMinWidth (int width)
 Setting the minimum width limit. More...
 
int getMinWidth ()
 Getting the minimum width limit. More...
 
int getWidth ()
 Getting item width. More...
 
void setMaxWidth (int width)
 Setting the maximum width limit. More...
 
int getMaxWidth ()
 Getting the maximum width limit. More...
 
void setMinHeight (int height)
 Setting the minimum height limit. More...
 
int getMinHeight ()
 Getting the minimum height limit. More...
 
void setHeight (int height)
 Setting item height. More...
 
int getHeight ()
 Getting item height. More...
 
void setMaxHeight (int height)
 Setting the maximum height limit. More...
 
int getMaxHeight ()
 Getting the maximum height limit. More...
 
void setSize (int width, int height)
 Setting item size (width and height). More...
 
Size getSize ()
 Getting current item size. More...
 
void setMinSize (int width, int height)
 Setting minimum item size limit (width and height limits). More...
 
Size getMinSize ()
 Getting current item minimum size limit. More...
 
void setMaxSize (int width, int height)
 Setting maximum item size limit (width and height limits). More...
 
Size getMaxSize ()
 Getting current item maximum size limit. More...
 
void setAlignment (List< ItemAlignment > alignment)
 Setting an alignment of an item's shape relative to its container. More...
 
void setAlignment (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 setPosition (int x, int y)
 Setting item position. 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 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 its parent's size and position. More...
 
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 addItemState (ItemStateType type, ItemState state)
 Adding visual state for an item. More...
 
void removeItemState (ItemStateType type)
 Removing visual state of an item by type. More...
 
void removeAllItemStates ()
 Removing all item visual states. More...
 
ItemState getState (ItemStateType type)
 Getting item visual state by its type. More...
 
List< InterfaceBaseItemgetItems ()
 Getting list of the Prototype's inner items (children). More...
 
void addItems (InterfaceBaseItem... items)
 Adding sequence of items into the container (this). More...
 
void update (GeometryEventType type, int value)
 Updating an item size or/and position. 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 ()
 Setting the visibility status of an item. More...
 
void setVisible (boolean value)
 Setting the visibility status of an item. More...
 
boolean isPassEvents ()
 Getting boolean value to know if this item can pass further any input events (mouse, keyboard and etc.). More...
 
boolean isPassEvents (InputEventType e)
 Getting boolean value to know if this item can pass further the specified type of input events (mouse, keyboard and etc.). More...
 
List< InputEventTypegetPassEvents ()
 Getting all allowed input events. More...
 
List< InputEventTypeGetBlockedEvents ()
 Getting all blocked input events. More...
 
void setPassEvents (boolean value)
 Setting on or off so that this item can pass further any input events (mouse, keyboard and etc.). More...
 
void setPassEvents (boolean value, InputEventType e)
 Setting on or off so that this item can pass further the specified type of input events (mouse, keyboard and etc.). More...
 
void setPassEvents (boolean value, List< InputEventType > events)
 Setting on or off so that this item can pass further the specified types of input events (mouse, keyboard and etc.). More...
 
void setPassEvents (boolean value, InputEventType... events)
 Setting on or off so that this item can pass further the specified types of input events (mouse, keyboard and etc.). More...
 
boolean isDisabled ()
 Returns True if this item is disabled (non-interactive) otherwise returns False. More...
 
void setDisabled (boolean value)
 Setting this item disabled (become non-interactive) or enabled. More...
 
boolean isMouseHover ()
 Returns True if this item is hovered otherwise returns False. More...
 
void setMouseHover (boolean value)
 Setting this item hovered (mouse cursor located within item's shape). More...
 
boolean isMousePressed ()
 Returns True if mouse is pressed on this item (mouse cursor located within item's shape and any of the mouse button is pressed) otherwise False. More...
 
void setMousePressed (boolean value)
 Setting True if you want that mouse is pressed on this item (mouse cursor located within item's shape and any of the mouse button is pressed) otherwise False. More...
 
boolean isFocused ()
 Returns True if this item gets focus otherwise False. More...
 
void setFocus ()
 Setting focus on this item if it is focusable. More...
 
void setContent (List< InterfaceBaseItem > content)
 Setting content for this item. More...
 
Figure isCustomFigure ()
 Getting the custom shape if it is set. More...
 
void setCustomFigure (Figure figure)
 Setting the custom shape to replace the default rectangle shape. More...
 
ItemHoverRule getHoverRule ()
 Getting the hovering rule of this item. More...
 
void setHoverRule (ItemHoverRule rule)
 Setting the hovering rule for this item. More...
 
CursorImage getCursor ()
 Getting the mouse cursor image of this item. More...
 
void setCursor (EmbeddedCursor cursor)
 Setting mouse cursor image for this item from embedded cursors. More...
 
void setCursor (CursorImage cursor)
 Setting mouse cursor image for this item. More...
 
void setCursor (BufferedImage bitmap)
 Creating and setting mouse cursor image for this item from specified bitmap image. More...
 
void setCursor (BufferedImage bitmap, int width, int height)
 Creating and setting mouse cursor image for this item from specified scaled bitmap image. More...
 

Additional Inherited Members

- Public Attributes inherited from com.spvessel.spacevil.Prototype
EventCommonMethodState eventResize = new EventCommonMethodState()
 Event that is invoked when an item is resizing. More...
 
EventCommonMethodState eventDestroy = new EventCommonMethodState()
 Event that is invoked when an item is destroyed (removed). More...
 
EventMouseMethodState eventMouseHover = new EventMouseMethodState()
 Event that is invoked when mouse cursor enters inside an item area. More...
 
EventMouseMethodState eventMouseLeave = new EventMouseMethodState()
 Event that is invoked when mouse cursor leaves inside an item area. More...
 
EventMouseMethodState eventMouseClick = new EventMouseMethodState()
 Event that is invoked when mouse click (release) on an item. More...
 
EventMouseMethodState eventMouseDoubleClick = new EventMouseMethodState()
 Event that is invoked when mouse double click on an item. More...
 
EventMouseMethodState eventMousePress = new EventMouseMethodState()
 Event that is invoked when mouse press on an item. More...
 
EventMouseMethodState eventMouseDrag = new EventMouseMethodState()
 Event that is invoked when mouse drag on an item. More...
 
EventMouseMethodState eventMouseDrop = new EventMouseMethodState()
 Event that is invoked when mouse drop on an item. More...
 
EventMouseMethodState eventScrollUp = new EventMouseMethodState()
 Event that is invoked when mouse wheel scrolls up on an item. More...
 
EventMouseMethodState eventScrollDown = new EventMouseMethodState()
 Event that is invoked when mouse wheel scrolls down on an item. More...
 
EventKeyMethodState eventKeyPress = new EventKeyMethodState()
 Event that is invoked when key of keyboard is pressed. More...
 
EventKeyMethodState eventKeyRelease = new EventKeyMethodState()
 Event that is invoked when key of keyboard is released. More...
 
EventInputTextMethodState eventTextInput = new EventInputTextMethodState()
 Event that is invoked when typing text on the keyboard. More...
 
boolean isFocusable = true
 Item's focusable property. More...
 
- Protected Member Functions inherited from com.spvessel.spacevil.HorizontalStack
boolean getHoverVerification (float xpos, float ypos)
 
- Protected Member Functions inherited from com.spvessel.spacevil.Prototype
void updateState ()
 Updating Prototype's state according to its ItemStateType. More...
 
int[] getConfines ()
 
void setState (ItemStateType state)
 

Detailed Description

PaasswordLine is designed to hide the input of text information.

Contains text field, unhide button.

Supports all events except drag and drop.

Constructor & Destructor Documentation

◆ PasswordLine()

com.spvessel.spacevil.PasswordLine.PasswordLine ( )

Default PasswordLine constructor.

Member Function Documentation

◆ clear()

void com.spvessel.spacevil.PasswordLine.clear ( )

Remove all text from the PasswordLine.

Reimplemented from com.spvessel.spacevil.Prototype.

◆ getFont()

Font com.spvessel.spacevil.PasswordLine.getFont ( )

Getting the current font of the text.

Returns
Font as java.awt.Font.

◆ getForeground()

Color com.spvessel.spacevil.PasswordLine.getForeground ( )

Getting current text color.

Returns
Text color as as java.awt.Color.

◆ getPassword()

String com.spvessel.spacevil.PasswordLine.getPassword ( )

Getting entered hidden text data.

Returns
Text data.

◆ getSubstrateForeground()

Color com.spvessel.spacevil.PasswordLine.getSubstrateForeground ( )

Getting current substrate text (hint under main text, when you start typing substrate becomes invisible) color.

Returns
Text color as java.awt.Color.

◆ getSubstrateText()

String com.spvessel.spacevil.PasswordLine.getSubstrateText ( )

Getting substrate text (hint under main text, when you start typing substrate becomes invisible).

Returns
Substrate text.

◆ getTextHeight()

int com.spvessel.spacevil.PasswordLine.getTextHeight ( )

Getting the text height (useful when you need resize PasswordLine by text height).

Returns
Text height.

◆ getTextMargin()

Indents com.spvessel.spacevil.PasswordLine.getTextMargin ( )

Getting indents of the text.

Returns
Indents as com.spvessel.spacevil.Decorations.Indents.

◆ getTextWidth()

int com.spvessel.spacevil.PasswordLine.getTextWidth ( )

Getting the text width (useful when you need resize PasswordLine by text width).

Returns
Text width.

◆ initElements()

void com.spvessel.spacevil.PasswordLine.initElements ( )

Initializing all elements in the PasswordLine.

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.Prototype.

◆ isEditable()

boolean com.spvessel.spacevil.PasswordLine.isEditable ( )

Returns True if PasswordLine is editable otherwise returns False.

Returns
True: if PasswordLine is editable. True: if PasswordLine is not editable.

◆ setEditable()

void com.spvessel.spacevil.PasswordLine.setEditable ( boolean  value)

Setting PasswordLine text field be editable or be non-editable.

Parameters
valueTrue: if you want PasswordLine be editable. True: if you want PasswordLine be non-editable.

◆ setFocused()

void com.spvessel.spacevil.PasswordLine.setFocused ( boolean  value)

Setting focus on this PasswordLine if it is focusable.

Reimplemented from com.spvessel.spacevil.Prototype.

◆ setFont()

void com.spvessel.spacevil.PasswordLine.setFont ( Font  font)

Setting font of the text.

Parameters
fontFont as java.awt.Font.

◆ setFontFamily()

void com.spvessel.spacevil.PasswordLine.setFontFamily ( String  fontFamily)

Setting new font family of the text.

Parameters
fontFamilyNew font family name.

◆ setFontSize()

void com.spvessel.spacevil.PasswordLine.setFontSize ( int  size)

Setting font size of the text.

Parameters
sizeNew size of the font.

◆ setFontStyle()

void com.spvessel.spacevil.PasswordLine.setFontStyle ( int  style)

Setting font style of the text.

Parameters
styleNew font style (from java.awt.Font package).

◆ setForeground() [1/5]

void com.spvessel.spacevil.PasswordLine.setForeground ( Color  color)

Setting text color of a PasswordLine.

Parameters
colorText color as java.awt.Color.

◆ setForeground() [2/5]

void com.spvessel.spacevil.PasswordLine.setForeground ( float  r,
float  g,
float  b 
)

Setting text color of a PasswordLine in float RGB format.

Parameters
rRed color component. Range: (0.0f - 1.0f)
gGreen color component. Range: (0.0f - 1.0f)
bBlue color component. Range: (0.0f - 1.0f)

◆ setForeground() [3/5]

void com.spvessel.spacevil.PasswordLine.setForeground ( float  r,
float  g,
float  b,
float  a 
)

Setting text color of a PasswordLine in float RGBA format.

Parameters
rRed color component. Range: (0.0f - 1.0f)
gGreen color component. Range: (0.0f - 1.0f)
bBlue color component. Range: (0.0f - 1.0f)
aAlpha color component. Range: (0.0f - 1.0f)

◆ setForeground() [4/5]

void com.spvessel.spacevil.PasswordLine.setForeground ( int  r,
int  g,
int  b 
)

Setting text color of a PasswordLine in byte RGB format.

Parameters
rRed color component. Range: (0 - 255)
gGreen color component. Range: (0 - 255)
bBlue color component. Range: (0 - 255)

◆ setForeground() [5/5]

void com.spvessel.spacevil.PasswordLine.setForeground ( int  r,
int  g,
int  b,
int  a 
)

Setting text color of an item in byte RGBA format.

Parameters
rRed color component. Range: (0 - 255)
gGreen color component. Range: (0 - 255)
bBlue color component. Range: (0 - 255)
aAlpha color component. Range: (0 - 255)

◆ setStyle()

void com.spvessel.spacevil.PasswordLine.setStyle ( Style  style)

Setting style of the PasswordLine.

Inner styles: "showmarker", "textedit".

Parameters
styleStyle as com.spvessel.spacevil.Decorations.Style.

Reimplemented from com.spvessel.spacevil.Prototype.

◆ setSubstrateFontSize()

void com.spvessel.spacevil.PasswordLine.setSubstrateFontSize ( int  size)

Setting font size of the substrate text (hint under main text, when you start typing substrate becomes invisible).

Font family of substrate text is the same as main font.

Parameters
sizeNew size of the font.

◆ setSubstrateFontStyle()

void com.spvessel.spacevil.PasswordLine.setSubstrateFontStyle ( int  style)

Setting font style of the substrate text (hint under main text, when you start typing substrate becomes invisible).

Font family of substrate text is the same as main font.

Parameters
styleNew font style (from java.awt.Font package).

◆ setSubstrateForeground() [1/4]

void com.spvessel.spacevil.PasswordLine.setSubstrateForeground ( Color  foreground)

Setting substrate text (hint under main text, when you start typing substrate becomes invisible) color of a PasswordLine.

Parameters
foregroundSubstrate text color as java.awt.Color.

◆ setSubstrateForeground() [2/4]

void com.spvessel.spacevil.PasswordLine.setSubstrateForeground ( float  r,
float  g,
float  b 
)

Setting substrate text (hint under main text, when you start typing substrate becomes invisible)color of a PasswordLine in float RGB format.

Parameters
rRed color component. Range: (0.0f - 1.0f)
gGreen color component. Range: (0.0f - 1.0f)
bBlue color component. Range: (0.0f - 1.0f)

◆ setSubstrateForeground() [3/4]

void com.spvessel.spacevil.PasswordLine.setSubstrateForeground ( float  r,
float  g,
float  b,
float  a 
)

Setting substrate text (hint under main text, when you start typing substrate becomes invisible)color of a PasswordLine in float RGBA format.

Parameters
rRed color component. Range: (0.0f - 1.0f)
gGreen color component. Range: (0.0f - 1.0f)
bBlue color component. Range: (0.0f - 1.0f)
aAlpha color component. Range: (0.0f - 1.0f)

◆ setSubstrateForeground() [4/4]

void com.spvessel.spacevil.PasswordLine.setSubstrateForeground ( int  r,
int  g,
int  b 
)

Setting substrate text (hint under main text, when you start typing substrate becomes invisible) color of a PasswordLine in byte RGB format.

Parameters
rRed color component. Range: (0 - 255)
gGreen color component. Range: (0 - 255)
bBlue color component. Range: (0 - 255)

◆ setSubstrateText()

void com.spvessel.spacevil.PasswordLine.setSubstrateText ( String  substrateText)

Setting the substrate text (hint under main text, when you start typing substrate becomes invisible).

Parameters
substrateTextSubstrate text.

◆ setSubstratetForeground()

void com.spvessel.spacevil.PasswordLine.setSubstratetForeground ( int  r,
int  g,
int  b,
int  a 
)

Setting substrate text (hint under main text, when you start typing substrate becomes invisible) color of a PasswordLine in byte RGBA format.

Parameters
rRed color component. Range: (0 - 255)
gGreen color component. Range: (0 - 255)
bBlue color component. Range: (0 - 255)
aAlpha color component. Range: (0 - 255)

◆ setTextAlignment() [1/2]

void com.spvessel.spacevil.PasswordLine.setTextAlignment ( ItemAlignment...  alignment)

Setting alignment of a PasswordLine text.

Combines with alignment by vertically (TOP, VCENTER, BOTTOM) and horizontally (LEFT, HCENTER, RIGHT).

Parameters
alignmentText alignment as com.spvessel.spacevil.Flags.ItemAlignment.

◆ setTextAlignment() [2/2]

void com.spvessel.spacevil.PasswordLine.setTextAlignment ( List< ItemAlignment alignment)

Setting alignment of a PasswordLine text.

Combines with alignment by vertically (TOP, VCENTER, BOTTOM) and horizontally (LEFT, HCENTER, RIGHT).

Parameters
alignmentText alignment as List of com.spvessel.spacevil.Flags.ItemAlignment.

◆ setTextMargin() [1/2]

void com.spvessel.spacevil.PasswordLine.setTextMargin ( Indents  margin)

Setting indents for the text to offset text relative to PasswordLine.

Parameters
marginIndents as com.spvessel.spacevil.Decorations.Indents.

◆ setTextMargin() [2/2]

void com.spvessel.spacevil.PasswordLine.setTextMargin ( int  left,
int  top,
int  right,
int  bottom 
)

Setting indents for the text to offset text relative to PasswordLine.

Parameters
leftIndent on the left.
topIndent on the top.
rightIndent on the right.
bottomIndent on the bottom.

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