Package com.luciad.format.magneticnorth
Class TLcdMagneticNorthModel
java.lang.Object
com.luciad.model.ALcdModel
com.luciad.model.TLcd2DBoundsIndexedModel
com.luciad.format.magneticnorth.TLcdMagneticNorthModel
- All Implemented Interfaces:
ILcdMagneticNorthModel
,ILcd2DBoundsIndexedModel
,ILcd2DBoundsInteractable
,ILcdIntegerIndexedModel
,ILcdModel
,ILcdBounded
,ILcdDisposable
,ILcdFeatured
,Serializable
,AutoCloseable
public class TLcdMagneticNorthModel
extends TLcd2DBoundsIndexedModel
implements ILcdMagneticNorthModel
This class is an
ILcdModel
for the lines of constant declination
of the magnetic field with respect to the true North.
This model is thread-safe for accessing its elements.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.luciad.model.ILcdModel
ILcdModel.Query
-
Field Summary
Fields inherited from class com.luciad.model.ALcdModel
fModelEventSupport
Fields inherited from interface com.luciad.format.magneticnorth.ILcdMagneticNorthModel
FEATURE_COUNT, FEATURE_NAMES, ID, NAME
Fields inherited from interface com.luciad.model.ILcdModel
FIRE_LATER, FIRE_NOW, NO_EVENT
-
Constructor Summary
ConstructorDescriptionConstructs a newTLcdMagneticNorthModel
with the full world as its bounds.TLcdMagneticNorthModel
(ILcdBounds aBounds) Constructs a newTLcdMagneticNorthModel
with the given bounds. -
Method Summary
Modifier and TypeMethodDescriptionboolean
canSetFeature
(int aIndex) Checks whether the specified feature is editable.getFeature
(int aIndex) Returns the featureObject
at the given index.int
Returns the number of features.getID()
The unique identifier of this object.getName()
Returns the name of this chart.void
setFeature
(int aIndex, Object aFeature) Sets the featureObject
at the given index.Methods inherited from class com.luciad.model.TLcd2DBoundsIndexedModel
addElement, allElementsChanged, applyOnInteract2DBounds, applyOnInteract2DBounds, canAddElement, canRemoveElement, contains, elementAt, elementChanged, elements, elementsChanged, getAddElementFilter, getBounds, getRemoveElementFilter, indexOf, isSynchronized, removeAllElements, removeElement, setAddElementFilter, setRemoveElementFilter, setSynchronized, size
Methods inherited from class com.luciad.model.ALcdModel
addElements, addModelListener, allElementsRemoved, dispose, elementAdded, elementRemoved, elementsAdded, elementsRemoved, fireCollectedModelChanges, getModelDescriptor, getModelEncoder, getModelMetadata, getModelReference, initializeTransientValues, isClassTraceOn, isTraceOn, removeElements, removeModelListener, setClassTraceOn, setModelDescriptor, setModelDisposer, setModelEncoder, setModelMetadataFunction, setModelReference, setTraceOn
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.model.ILcd2DBoundsIndexedModel
query
Methods inherited from interface com.luciad.util.ILcdDisposable
close
Methods inherited from interface com.luciad.model.ILcdModel
addElement, addElements, addModelListener, canAddElement, canRemoveElement, dispose, elementChanged, elements, elementsChanged, fireCollectedModelChanges, getModelDescriptor, getModelEncoder, getModelMetadata, getModelReference, removeAllElements, removeElement, removeElements, removeModelListener
-
Constructor Details
-
TLcdMagneticNorthModel
public TLcdMagneticNorthModel()Constructs a newTLcdMagneticNorthModel
with the full world as its bounds. -
TLcdMagneticNorthModel
Constructs a newTLcdMagneticNorthModel
with the given bounds.- Parameters:
aBounds
- The bounds for this model
-
-
Method Details
-
getID
Description copied from interface:ILcdMagneticNorthModel
The unique identifier of this object.- Specified by:
getID
in interfaceILcdMagneticNorthModel
- Returns:
- a String representing the ID
-
getName
Description copied from interface:ILcdMagneticNorthModel
Returns the name of this chart.- Specified by:
getName
in interfaceILcdMagneticNorthModel
- Returns:
- a String representing the name
-
getFeature
Description copied from interface:ILcdFeatured
Returns the featureObject
at the given index.- Specified by:
getFeature
in interfaceILcdFeatured
- Parameters:
aIndex
- a valid feature index.- Returns:
- the feature
Object
at the given index. - Throws:
IndexOutOfBoundsException
- when an index is chosen greater than the result of getFeatureCount.- See Also:
-
setFeature
Description copied from interface:ILcdFeatured
Sets the featureObject
at the given index.- Specified by:
setFeature
in interfaceILcdFeatured
- Parameters:
aIndex
- a valid feature index.aFeature
- the new featureObject
.- Throws:
IllegalArgumentException
- if the feature can't be set.- See Also:
-
getFeatureCount
public int getFeatureCount()Description copied from interface:ILcdFeatured
Returns the number of features.- Specified by:
getFeatureCount
in interfaceILcdFeatured
- Returns:
- the number of features.
-
canSetFeature
public boolean canSetFeature(int aIndex) Description copied from interface:ILcdFeatured
Checks whether the specified feature is editable.- Specified by:
canSetFeature
in interfaceILcdFeatured
- Parameters:
aIndex
- a valid feature index.- Returns:
- true if the feature can be set, false otherwise.
-