Package HAL.Gui
Class UILabel
- java.lang.Object
-
- HAL.Gui.UILabel
-
-
Field Summary
Fields Modifier and Type Field Description javax.swing.JLabel
label
-
Method Summary
Modifier and Type Method Description void
_GetComps(java.util.ArrayList<java.awt.Component> putHere, java.util.ArrayList<java.lang.Integer> putCoordsHere, java.util.ArrayList<java.lang.Integer> compSizesHere)
called by the UIWindow class to place the labelint
compX()
gets the xDim component of the labelint
compY()
gets the yDim component of the labeljava.lang.String
GetText()
boolean
IsActive()
void
SetActive(boolean isActive)
UILabel
SetColor(int foregroundColor, int backgroundColor)
UILabel
SetColor(java.awt.Color foregroundColor, java.awt.Color backgroundColor)
sets the foreground and background of the UILabelvoid
SetText(java.lang.String text)
-
-
-
Constructor Detail
-
UILabel
public UILabel(java.lang.String text, int compX, int compY, boolean active)
- Parameters:
text
- label textcompX
- width on the gui GridBagLayout GridBagLayoutcompY
- height on the gui GridBagLayout GridBagLayout
-
UILabel
public UILabel(java.lang.String text, int compX, int compY)
-
UILabel
public UILabel(java.lang.String text, boolean active)
- Parameters:
text
- label text
-
UILabel
public UILabel(java.lang.String text)
-
-
Method Detail
-
compX
public int compX()
gets the xDim component of the label
-
compY
public int compY()
gets the yDim component of the label
-
GetText
public java.lang.String GetText()
-
SetText
public void SetText(java.lang.String text)
-
SetColor
public UILabel SetColor(java.awt.Color foregroundColor, java.awt.Color backgroundColor)
sets the foreground and background of the UILabel- Parameters:
foregroundColor
- color of the text if null the UIWindow color will be usedbackgroundColor
- color of the background, if null the UIWindow color will be used
-
SetColor
public UILabel SetColor(int foregroundColor, int backgroundColor)
-
-