X-Git-Url: https://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=tim%2Fprune%2Fdata%2FLongitude.java;h=b4c04139d5046db1b218b1b52e6019cd2035126c;hp=6af58894aad3d4ba791f1588e9519ea8df16b6cd;hb=da0b1f449260a0b4a94318006382a9039726ef3e;hpb=5625a1abadb5f2ca5f017fe7dbda1d5141cb637b diff --git a/tim/prune/data/Longitude.java b/tim/prune/data/Longitude.java index 6af5889..b4c0413 100644 --- a/tim/prune/data/Longitude.java +++ b/tim/prune/data/Longitude.java @@ -33,8 +33,8 @@ public class Longitude extends Coordinate protected int getCardinal(char inChar) { // Longitude recognises E, W and - - // default is East - int cardinal = EAST; + // default is no cardinal + int cardinal = NO_CARDINAL; switch (inChar) { case 'E': @@ -51,6 +51,16 @@ public class Longitude extends Coordinate } + /** + * @return default cardinal (East) + * @see tim.prune.data.Coordinate#getDefaultCardinal() + */ + protected int getDefaultCardinal() + { + return EAST; + } + + /** * Make a new Longitude object * @see tim.prune.data.Coordinate#makeNew(double, int) @@ -60,4 +70,11 @@ public class Longitude extends Coordinate return new Longitude(inValue, inFormat); } + /** + * @return the maximum degree range for this coordinate + */ + protected int getMaxDegrees() + { + return 180; + } }