Examples of drawToolTip()


Examples of views.SkyMap.drawToolTip()

      String line1 = nearestStar.getName();
      String line2 = nearestStar.getCoodinates().toString();
      String line3 = "Magnitude : " + nearestStar.getMagnitude();
      String line4 = "Type spectral : " + nearestStar.getSpectralType();
 
      sm.drawToolTip(ttPos,
              PanelsFactory.createToolTip("<html>" + line1 + "<br/>" + line2 + "<br/>" + line3 + "<br/>" + line4 + "<br/></html>",
                            nearestStar.getColor().brighter().brighter()));
    }
  }
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.