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
fModelEventSupportFields inherited from interface com.luciad.format.magneticnorth.ILcdMagneticNorthModel
FEATURE_COUNT, FEATURE_NAMES, ID, NAMEFields inherited from interface com.luciad.model.ILcdModel
FIRE_LATER, FIRE_NOW, NO_EVENT -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newTLcdMagneticNorthModelwith the full world as its bounds.TLcdMagneticNorthModel(ILcdBounds aBounds) Constructs a newTLcdMagneticNorthModelwith the given bounds. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanSetFeature(int aIndex) Checks whether the specified feature is editable.getFeature(int aIndex) Returns the featureObjectat the given index.intReturns the number of features.getID()The unique identifier of this object.getName()Returns the name of this chart.voidsetFeature(int aIndex, Object aFeature) Sets the featureObjectat 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, sizeMethods 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, setTraceOnMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.luciad.model.ILcd2DBoundsIndexedModel
queryMethods inherited from interface com.luciad.util.ILcdDisposable
closeMethods 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 newTLcdMagneticNorthModelwith the full world as its bounds. -
TLcdMagneticNorthModel
Constructs a newTLcdMagneticNorthModelwith the given bounds.- Parameters:
aBounds- The bounds for this model
-
-
Method Details
-
getID
Description copied from interface:ILcdMagneticNorthModelThe unique identifier of this object.- Specified by:
getIDin interfaceILcdMagneticNorthModel- Returns:
- a String representing the ID
-
getName
Description copied from interface:ILcdMagneticNorthModelReturns the name of this chart.- Specified by:
getNamein interfaceILcdMagneticNorthModel- Returns:
- a String representing the name
-
getFeature
Description copied from interface:ILcdFeaturedReturns the featureObjectat the given index.- Specified by:
getFeaturein interfaceILcdFeatured- Parameters:
aIndex- a valid feature index.- Returns:
- the feature
Objectat the given index. - Throws:
IndexOutOfBoundsException- when an index is chosen greater than the result of getFeatureCount.- See Also:
-
setFeature
Description copied from interface:ILcdFeaturedSets the featureObjectat the given index.- Specified by:
setFeaturein 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:ILcdFeaturedReturns the number of features.- Specified by:
getFeatureCountin interfaceILcdFeatured- Returns:
- the number of features.
-
canSetFeature
public boolean canSetFeature(int aIndex) Description copied from interface:ILcdFeaturedChecks whether the specified feature is editable.- Specified by:
canSetFeaturein interfaceILcdFeatured- Parameters:
aIndex- a valid feature index.- Returns:
- true if the feature can be set, false otherwise.
-