Package com.luciad.view.swing
Class TLcdBalloonGUIFactory
java.lang.Object
com.luciad.view.swing.TLcdBalloonGUIFactory
This is the main GUI factory for balloons. Protected class methods can be overridden to customize the generic content of balloons.
- Since:
- 11.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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.
-
Constructor Details
-
TLcdBalloonGUIFactory
public TLcdBalloonGUIFactory()Creates aTLcdBalloonGUIFactory
.
-
-
Method Details
-
createCloseComponent
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
. Returnnull
to avoid having it.- Parameters:
aBalloonManager
- The balloon manager, provided as contextual information. Nevernull
.aBalloonContent
- The balloon content, provided as contextual information. Nevernull
.- Returns:
- A close component, can be
null
.
-
createResizeComponent
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
. Returnnull
to avoid having it.- Parameters:
aBalloonManager
- The balloon manager, provided as contextual information. Nevernull
.aBalloonContent
- The balloon content, provided as contextual information. Nevernull
.- Returns:
- A resize component, can be
null
.
-
createBorder
Creates a border for the balloon, given the balloon content. Returnnull
to avoid having a border.- Parameters:
aBalloonManager
- The balloon manager, provided as contextual information. Nevernull
.aBalloonContent
- The balloon content, provided as contextual information. Nevernull
.- Returns:
- A
Border
, can benull
.
-