net.sf.latexdraw.glib.views.Java2D.interfaces
Interface ToolTipable

All Known Subinterfaces:
IViewText
All Known Implementing Classes:
LTextView

public interface ToolTipable

Defines a type corresponding to shapes that support tooltips.

This file is part of LaTeXDraw.
Copyright (c) 2005-2012 Arnaud BLOUIN

LaTeXDraw is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
LaTeXDraw is distributed without any warranty; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

01/19/2012

Since:
3.0
Author:
Arnaud BLOUIN

Method Summary
 java.lang.String getToolTip()
           
 boolean isToolTipVisible(double x, double y)
          Tests if a tooltip can be displayed.
 

Method Detail

isToolTipVisible

boolean isToolTipVisible(double x,
                         double y)
Tests if a tooltip can be displayed. The coordinates can be used to test if the current pointer position points onto the tooltipable object.

Parameters:
x - The X-coordinate to test.
y - The Y-coordinate to test.
Returns:
True if a tooltip can be displayed.
Since:
3.0

getToolTip

java.lang.String getToolTip()
Returns:
The tooltip to display.
Since:
3.0