Package net.sf.latexdraw.glib.views.Java2D.interfaces

Examples of net.sf.latexdraw.glib.views.Java2D.interfaces.ToolTipable


  protected class TooltipDisplayer implements MouseMotionListener{

        @Override
    public void mouseMoved(final MouseEvent e) {
      boolean again = true;
      ToolTipable tooltipable;
      final IPoint pt = LCanvas.this.convertToOrigin(ShapeFactory.createPoint(e.getX(), e.getY()));
      final Point2D pos = LCanvas.this.getZoomedPoint(pt.getX(), pt.getY());
      final double x = pos.getX();
      final double y = pos.getY();

      for(int i=0, size=tooltipableView.size(); i<size && again; i++) {
        tooltipable = tooltipableView.get(i);

        if(tooltipable.isToolTipVisible(x, y)) {
          final String text = tooltipable.getToolTip();
          setToolTipText(text==null || text.isEmpty() ? null : text);
          again = false;
        }
      }
View Full Code Here

TOP

Related Classes of net.sf.latexdraw.glib.views.Java2D.interfaces.ToolTipable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.