Package jmri.jmrit.display
Class ToolTip
java.lang.Object
jmri.jmrit.display.ToolTip
Implements Tooltips for Positionable objects.
-
Constructor Summary
ConstructorsConstructorDescriptionToolTip(String text, int x, int y, Font font, Color fontColor, Color backgroundColor, Color borderColor, Positionable pos) ToolTip(String text, int x, int y, Positionable pos) ToolTip(ToolTip tooltip, Positionable pos) -
Method Summary
Modifier and TypeMethodDescriptionfinal Colorfinal Colorfinal Colorfinal intfinal Positionablefinal booleanfinal StringgetText()voidpaint(Graphics2D g2d, double scale) final voidsetBackgroundColor(Color backgroundColor) final voidsetBoderColor(Color borderColor) final voidsetFontColor(Color fontColor) final voidsetFontSize(int size) final voidsetLocation(int x, int y) final voidfinal voidsetPrependToolTipWithDisplayName(boolean value) final void
-
Constructor Details
-
ToolTip
- Parameters:
text- tooltip textx- x coord of Positionable's screen locationy- y coord of Positionable's screen locationpos- Positionable of this Tooltip
-
ToolTip
- Parameters:
tooltip- toolTip to clonepos- Positionable of this Tooltip
-
ToolTip
public ToolTip(String text, int x, int y, Font font, Color fontColor, Color backgroundColor, Color borderColor, Positionable pos) - Parameters:
text- tooltip textx- x coord of Positionable's screen locationy- y coord of Positionable's screen locationfont- tooltip fontfontColor- tooltip font colorbackgroundColor- tooltip background colorborderColor- tooltip border colorpos- Positionable of this Tooltip
-
-
Method Details
-
setPositionable
-
getPositionable
-
setText
-
getText
-
setPrependToolTipWithDisplayName
-
getPrependToolTipWithDisplayName
-
setLocation
-
setFontSize
-
getFontSize
-
setFontColor
-
getFontColor
-
setBackgroundColor
-
getBackgroundColor
-
setBoderColor
-
getBorderColor
-
getTextToDisplay
-
paint
-