Package views

Examples of views.SkyMap.repaint()


    double longitude = Math.toRadians((Double) userInterface.getSpnLongitude().getValue());
    double latitude = Math.toRadians((Double) userInterface.getSpnLatitude().getValue());
    GregorianDate gd = new GregorianDate(date);
    UserCoordinates uc = new UserCoordinates(longitude, latitude, Time.gregorianToJulian(gd));
    sm.setUserCoordinates(uc);
    sm.repaint();
  }
 
  public static void repaintSkyMap() {
    ((SkyMap) userInterface.getSkyMap()).repaint();
  }
View Full Code Here


  public static void updatePosition(final EarthCoordinates coordinates) {
    SkyMap sm = (SkyMap) userInterface.getSkyMap();
    sm.clearToolTips();
    sm.getUserCoordinates().setLongitude(coordinates.getLongitude());
    sm.getUserCoordinates().setLatitude(coordinates.getLatitude());
    sm.repaint();
  }
 
  protected static StarSelector getStarSelector() {
    final double maxMagnitude = ((SkyMap) userInterface.getSkyMap()).getMaxMagnitude();
    return new StarSelector() {
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.