jmri.jmrit.display
Class ToolTip

java.lang.Object
  extended by jmri.jmrit.display.ToolTip

public class ToolTip
extends Object

Implements Tooltips for Positionable objects.

Author:
Pete Cressman Copyright (c) 2010

Constructor Summary
ToolTip(String text, int x, int y)
           
ToolTip(String text, int x, int y, Font font, Color fontColor, Color backgroundColor, Color borderColor)
           
ToolTip(ToolTip tooltip, Positionable pos)
           
 
Method Summary
 Color getBackgroundColor()
           
 Color getBorderColor()
           
 Color getFontColor()
           
 int getFontSize()
           
 String getText()
           
 void paint(Graphics2D g2d, double scale)
           
 void setBackgroundColor(Color backgroundColor)
           
 void setBoderColor(Color borderColor)
           
 void setFontColor(Color fontColor)
           
 void setfontSize(int size)
           
 void setLocation(int x, int y)
           
 void setLocation(Positionable pos)
           
 void setText(String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToolTip

public ToolTip(String text,
               int x,
               int y)
Parameters:
text - tooltip text
x - - x coord of Positionable's screen location
y - - y coord of Positionable's screen location

ToolTip

public ToolTip(ToolTip tooltip,
               Positionable pos)
Parameters:
tooltip - - toolTip to clone
pos - - Positionable of this Tooltip

ToolTip

public ToolTip(String text,
               int x,
               int y,
               Font font,
               Color fontColor,
               Color backgroundColor,
               Color borderColor)
Parameters:
text - - tooltip text
font - - tooltip font
fontColor - - tooltip font color
backgroundColor - = tooltip background color
borderColor - - tooltip border color
Method Detail

setText

public final void setText(String text)

getText

public final String getText()

setLocation

public final void setLocation(int x,
                              int y)

setLocation

public void setLocation(Positionable pos)

setfontSize

public final void setfontSize(int size)

getFontSize

public final int getFontSize()

setFontColor

public final void setFontColor(Color fontColor)

getFontColor

public final Color getFontColor()

setBackgroundColor

public final void setBackgroundColor(Color backgroundColor)

getBackgroundColor

public final Color getBackgroundColor()

setBoderColor

public final void setBoderColor(Color borderColor)

getBorderColor

public final Color getBorderColor()

paint

public void paint(Graphics2D g2d,
                  double scale)


Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads