Drools Planner distribution 6.0.0.Alpha9

org.drools.planner.examples.common.swingui.latitudelongitude
Class LatitudeLongitudeTranslator

java.lang.Object
  extended by org.drools.planner.examples.common.swingui.latitudelongitude.LatitudeLongitudeTranslator

public class LatitudeLongitudeTranslator
extends Object


Field Summary
static double MARGIN_RATIO
           
 
Constructor Summary
LatitudeLongitudeTranslator()
           
 
Method Summary
 void addCoordinates(double latitude, double longitude)
           
 int getImageHeight()
           
 int getImageWidth()
           
 void prepareFor(double width, double height)
           
 int translateLatitudeToY(double latitude)
           
 int translateLongitudeToX(double longitude)
           
 double translateXToLongitude(int x)
           
 double translateYToLatitude(double y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MARGIN_RATIO

public static final double MARGIN_RATIO
See Also:
Constant Field Values
Constructor Detail

LatitudeLongitudeTranslator

public LatitudeLongitudeTranslator()
Method Detail

addCoordinates

public void addCoordinates(double latitude,
                           double longitude)

prepareFor

public void prepareFor(double width,
                       double height)

translateLongitudeToX

public int translateLongitudeToX(double longitude)

translateLatitudeToY

public int translateLatitudeToY(double latitude)

translateXToLongitude

public double translateXToLongitude(int x)

translateYToLatitude

public double translateYToLatitude(double y)

getImageWidth

public int getImageWidth()

getImageHeight

public int getImageHeight()

Drools Planner distribution 6.0.0.Alpha9

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.