Interface GuiComponent
-
- All Known Subinterfaces:
InputCommandView
,OutputView
,PromptView
- All Known Implementing Classes:
BufferedOutputViewImpl
,Console
,ConsoleTextPane
,InputCommandViewImpl
,OutputViewImpl
,PromptViewImpl
public interface GuiComponent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
setBackground(java.awt.Color bgColor)
Sets the background of the componentvoid
setFont(java.awt.Font font)
Sets the font of the componentvoid
setForeground(java.awt.Color fgColor)
Sets the foreground of the componentvoid
setVisible(boolean status)
Sets the visibility status of the component
-
-
-
Method Detail
-
setBackground
void setBackground(java.awt.Color bgColor)
Sets the background of the component- Parameters:
bgColor
- the background Color
-
setForeground
void setForeground(java.awt.Color fgColor)
Sets the foreground of the component- Parameters:
fgColor
- the foreground Color
-
setVisible
void setVisible(boolean status)
Sets the visibility status of the component- Parameters:
status
- is true to set the component visible and false else
-
setFont
void setFont(java.awt.Font font)
Sets the font of the component- Parameters:
font
- the font
-
-