public class TLcdBalloonGUIFactory extends Object
This is the main GUI factory for balloons. Protected class methods can be overridden to customize the generic content of balloons.
Constructor and Description |
---|
TLcdBalloonGUIFactory()
Creates a
TLcdBalloonGUIFactory . |
Modifier and Type | Method and Description |
---|---|
protected Border |
createBorder(ALcdBalloonManager aBalloonManager,
JComponent aBalloonContent)
Creates a border for the balloon, given the balloon content.
|
protected JComponent |
createCloseComponent(ALcdBalloonManager aBalloonManager,
JComponent aBalloonContent)
Creates a component that represents the close component of a balloon.
|
protected JComponent |
createResizeComponent(ALcdBalloonManager aBalloonManager,
JComponent aBalloonContent)
Creates a resize component that can be dragged to change the balloon size.
|
public TLcdBalloonGUIFactory()
TLcdBalloonGUIFactory
.protected JComponent createCloseComponent(ALcdBalloonManager aBalloonManager, JComponent aBalloonContent)
Creates a component that represents the close component of a balloon. It doesn't need to perform
any action when clicked. It could for example return a JLabel
. Return
null
to avoid having it.
aBalloonManager
- The balloon manager, provided as contextual information. Never
null
.aBalloonContent
- The balloon content, provided as contextual information. Never
null
.null
.protected JComponent createResizeComponent(ALcdBalloonManager aBalloonManager, JComponent aBalloonContent)
Creates a resize component that can be dragged to change the balloon size. It doesn't need
to perform any operations when dragged. It could for example return a JLabel
.
Return null
to avoid having it.
aBalloonManager
- The balloon manager, provided as contextual information. Never
null
.aBalloonContent
- The balloon content, provided as contextual information. Never
null
.null
.protected Border createBorder(ALcdBalloonManager aBalloonManager, JComponent aBalloonContent)
null
to avoid
having a border.aBalloonManager
- The balloon manager, provided as contextual information. Never
null
.aBalloonContent
- The balloon content, provided as contextual information. Never
null
.Border
, can be null
.