public class DdCoordinate
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 |
static String |
PROPERTY_DECIMAL |
static String |
PROPERTY_DEGREE |
static String |
PROPERTY_SIGN |
protected boolean |
sign |
| Constructor and Description |
|---|
DdCoordinate() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTrailingZero() |
static DdCoordinate |
empty() |
void |
fromDecimal(Float decimalValue)
Mets a jour les composants de la position a partir d'une valeur decimal.
|
Integer |
getDecimal() |
Integer |
getDegree() |
int |
getNotNullDecimal() |
int |
getNotNullDegree() |
Integer |
getSignedDegree() |
boolean |
isDecimalNull() |
boolean |
isDecimalValid() |
boolean |
isDegreeNull() |
protected boolean |
isDegreeValid(boolean longitude) |
boolean |
isLatitudeDegreeValid() |
boolean |
isLongitudeDegreeValid() |
boolean |
isNull() |
boolean |
isSign() |
void |
removeTrailingZero() |
void |
reset() |
void |
setDecimal(Integer decimal) |
void |
setDegree(Integer degree) |
void |
setSign(boolean sign) |
Float |
toDecimal() |
String |
toString() |
static DdCoordinate |
valueOf(boolean sign,
Integer d,
Integer dc)
Methode statique de fabrique de position a partir d'une valeur du format
degre décimale.
|
static DdCoordinate |
valueOf(DdCoordinate decimal)
Methode statique de fabrique de position a partir d'un autre
DdCoordinate. |
static DdCoordinate |
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_DECIMAL
protected boolean sign
protected Integer degree
protected Integer decimal
public static DdCoordinate empty()
public static DdCoordinate valueOf(DdCoordinate decimal)
DdCoordinate.
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 DdCoordinate 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 DdCoordinate valueOf(boolean sign, Integer d, Integer dc)
d - la valeur des degresdc - la valeur des décimales de minutespublic boolean isSign()
public Integer getDegree()
public Integer getDecimal()
public void setSign(boolean sign)
public void setDegree(Integer degree)
public void setDecimal(Integer decimal)
public boolean isNull()
true si aucune composante n'est renseignée,
false autrement.public boolean isDegreeNull()
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 getNotNullDecimal()
public boolean isLatitudeDegreeValid()
public boolean isLongitudeDegreeValid()
public boolean isDecimalValid()
public void reset()
protected boolean isDegreeValid(boolean longitude)
Copyright © 2008–2017 Ultreia.io. All rights reserved.