public class DmdCoordinate
extends org.jdesktop.beans.AbstractSerializableBean
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
COORDINATE_PATTERN |
static String |
COORDINATE_STRING_PATTERN |
protected Integer |
decimal |
protected Integer |
degree |
protected Integer |
minute |
static String |
PROPERTY_DECIMAL |
static String |
PROPERTY_DEGREE |
static String |
PROPERTY_MINUTE |
static String |
PROPERTY_SIGN |
protected boolean |
sign |
| Constructor and Description |
|---|
DmdCoordinate() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTrailingZero() |
static DmdCoordinate |
empty() |
void |
fromDecimal(Float decimalValue)
Mets a jour les composants de la position a partir d'une valeur decimal.
|
Integer |
getDecimal() |
Integer |
getDegree() |
Integer |
getMinute() |
int |
getNotNullDecimal() |
int |
getNotNullDegree() |
int |
getNotNullMinute() |
Integer |
getSignedDegree() |
boolean |
isDecimalNull() |
boolean |
isDecimalValid() |
boolean |
isDegreeNull() |
protected boolean |
isDegreeValid(boolean longitude) |
boolean |
isLatitudeDegreeValid() |
boolean |
isLongitudeDegreeValid() |
boolean |
isMinuteNull() |
boolean |
isMinuteValid() |
boolean |
isNull() |
boolean |
isSign() |
void |
removeTrailingZero() |
void |
reset() |
void |
setDecimal(Integer decimal) |
void |
setDegree(Integer degree) |
void |
setMinute(Integer minute) |
void |
setSign(boolean sign) |
Float |
toDecimal() |
String |
toString() |
static DmdCoordinate |
valueOf(boolean sign,
Integer d,
Integer m,
Integer dc)
Methode statique de fabrique de position a partir d'une valeur du format
degre décimale minute.
|
static DmdCoordinate |
valueOf(DmdCoordinate decimal)
Methode statique de fabrique de position a partir d'un autre
DmdCoordinate. |
static DmdCoordinate |
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_DECIMAL
protected boolean sign
protected Integer degree
protected Integer minute
protected Integer decimal
public static DmdCoordinate empty()
public static DmdCoordinate valueOf(DmdCoordinate decimal)
DmdCoordinate.
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 DmdCoordinate 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 DmdCoordinate valueOf(boolean sign, Integer d, Integer m, Integer dc)
d - la valeur des degresm - la valeur des minutesdc - la valeur des décimales de minutespublic boolean isSign()
public Integer getDegree()
public Integer getMinute()
public Integer getDecimal()
public void setSign(boolean sign)
public void setDegree(Integer degree)
public void setMinute(Integer minute)
public void setDecimal(Integer decimal)
public boolean isNull()
true si aucune composante n'est renseignée,
false autrement.public boolean isDegreeNull()
public boolean isMinuteNull()
public boolean isDecimalNull()
public void fromDecimal(Float decimalValue)
null, alors on
reinitialise les composants de la position a null et la
methode isNull() vaudra alors true.decimalValue - la valeur decimale a convertir (qui peut etre nulle).public Float toDecimal()
public void addTrailingZero()
public void removeTrailingZero()
public Integer getSignedDegree()
public int getNotNullDegree()
public int getNotNullMinute()
public int getNotNullDecimal()
public boolean isLatitudeDegreeValid()
public boolean isLongitudeDegreeValid()
public boolean isMinuteValid()
public boolean isDecimalValid()
public void reset()
protected boolean isDegreeValid(boolean longitude)
Copyright © 2008–2020 Ultreia.io. All rights reserved.