Package org.opentrafficsim.swing.gui
Class GhostText
java.lang.Object
org.opentrafficsim.swing.gui.GhostText
- All Implemented Interfaces:
FocusListener,PropertyChangeListener,EventListener,DocumentListener
public class GhostText
extends Object
implements FocusListener, DocumentListener, PropertyChangeListener
Code taken from stack overflow.
Copyright (c) 2024-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Wouter Schakel
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddelete()Delete ghost text.voidvoidGet ghost color.voidvoidvoidvoidsetGhostColor(Color ghostColor) Set ghost color.
-
Constructor Details
-
GhostText
Constructor.- Parameters:
textComp- text component to receive ghost text.ghostText- ghost text.
-
-
Method Details
-
delete
public void delete()Delete ghost text. -
getGhostColor
Get ghost color.- Returns:
- ghost color.
-
setGhostColor
Set ghost color.- Parameters:
ghostColor- ghost color.
-
focusGained
- Specified by:
focusGainedin interfaceFocusListener
-
focusLost
- Specified by:
focusLostin interfaceFocusListener
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-
changedUpdate
- Specified by:
changedUpdatein interfaceDocumentListener
-
insertUpdate
- Specified by:
insertUpdatein interfaceDocumentListener
-
removeUpdate
- Specified by:
removeUpdatein interfaceDocumentListener
-