Package HAL.Gui
Class UILabel
- java.lang.Object
-
- HAL.Gui.UILabel
-
-
Field Summary
Fields Modifier and Type Field Description javax.swing.JLabellabel
-
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 labelintcompX()gets the xDim component of the labelintcompY()gets the yDim component of the labeljava.lang.StringGetText()booleanIsActive()voidSetActive(boolean isActive)UILabelSetColor(int foregroundColor, int backgroundColor)UILabelSetColor(java.awt.Color foregroundColor, java.awt.Color backgroundColor)sets the foreground and background of the UILabelvoidSetText(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)
-
-