public class DmsCoordinate
extends org.jdesktop.beans.AbstractSerializableBean
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
COORDINATE_PATTERN |
static String |
COORDINATE_STRING_PATTERN |
protected Integer |
degree |
protected Integer |
minute |
static String |
PROPERTY_DEGREE |
static String |
PROPERTY_MINUTE |
static String |
PROPERTY_SECOND |
static String |
PROPERTY_SIGN |
protected Integer |
second |
protected boolean |
sign |
| Constructor and Description |
|---|
DmsCoordinate() |
| Modifier and Type | Method and Description |
|---|---|
DmsCoordinate |
addTrailingZero() |
static DmsCoordinate |
empty() |
void |
fromDecimal(Float decimal)
Mets a jour les composants de la position a partir d'une valeur decimal.
|
Integer |
getDegree() |
Integer |
getMinute() |
int |
getNotNullDegree() |
int |
getNotNullMinute() |
int |
getNotNullSecond() |
Integer |
getSecond() |
Integer |
getSignedDegree() |
boolean |
isDegreeNull() |
protected boolean |
isDegreeValid(boolean longitude) |
boolean |
isLatitudeDegreeValid() |
boolean |
isLongitudeDegreeValid() |
boolean |
isMinuteNull() |
boolean |
isMinuteValid() |
boolean |
isNull() |
boolean |
isSecondNull() |
boolean |
isSecondValid() |
boolean |
isSign() |
DmsCoordinate |
removeTrailingZero() |
void |
reset() |
void |
setDegree(Integer degree) |
void |
setMinute(Integer minute) |
void |
setSecond(Integer second) |
void |
setSign(boolean sign) |
Float |
toDecimal() |
String |
toString() |
static DmsCoordinate |
valueOf(boolean sign,
Integer d,
Integer m,
Integer s)
Methode statique de fabrique de position a partir d'une valeur du format
degre-minute-seconde.
|
static DmsCoordinate |
valueOf(DmsCoordinate decimal)
Methode statique de fabrique de position a partir d'un autre
DmsCoordinate. |
static DmsCoordinate |
valueOf(Float decimal)
Methode statique de fabrique de position a partir d'une valeur du format
decimal.
|
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListenerpublic static final String COORDINATE_STRING_PATTERN
public static final Pattern COORDINATE_PATTERN
public static final String PROPERTY_SIGN
public static final String PROPERTY_DEGREE
public static final String PROPERTY_MINUTE
public static final String PROPERTY_SECOND
protected boolean sign
protected Integer degree
protected Integer minute
protected Integer second
public static DmsCoordinate empty()
public static DmsCoordinate valueOf(DmsCoordinate decimal)
DmsCoordinate.
Note : Si la valeur vaut null, alors on
reinitialise les composants de la position a null et la
methode isNull() vaudra alors true.decimal - la valeur au format decimalpublic static DmsCoordinate valueOf(Float decimal)
null, alors on
reinitialise les composants de la position a null et la
methode isNull() vaudra alors true.decimal - la valeur au format decimalpublic static DmsCoordinate valueOf(boolean sign, Integer d, Integer m, Integer s)
d - la valeur des degresm - la valeur des minutess - la valeur des secondespublic boolean isSign()
public Integer getDegree()
public Integer getMinute()
public Integer getSecond()
public void setSign(boolean sign)
public void setDegree(Integer degree)
public void setMinute(Integer minute)
public void setSecond(Integer second)
public boolean isDegreeNull()
public boolean isMinuteNull()
public boolean isSecondNull()
public boolean isNull()
true si aucune composante n'est renseignée,
false autrement.public void fromDecimal(Float decimal)
null, alors on
reinitialise les composants de la position a null et la
methode isNull() vaudra alors true.decimal - la valeur decimale a convertir (qui peut etre nulle).public Float toDecimal()
public DmsCoordinate addTrailingZero()
public DmsCoordinate removeTrailingZero()
public Integer getSignedDegree()
public int getNotNullDegree()
public int getNotNullMinute()
public int getNotNullSecond()
public boolean isLatitudeDegreeValid()
public boolean isLongitudeDegreeValid()
public boolean isMinuteValid()
public boolean isSecondValid()
protected boolean isDegreeValid(boolean longitude)
public void reset()
Copyright © 2008–2020 Ultreia.io. All rights reserved.