public class TLcdMagneticNorthModel extends TLcd2DBoundsIndexedModel implements ILcdMagneticNorthModel
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.
ILcdModel.Query
fModelEventSupport
FEATURE_COUNT, FEATURE_NAMES, ID, NAME
FIRE_LATER, FIRE_NOW, NO_EVENT
Constructor and Description |
---|
TLcdMagneticNorthModel()
Constructs a new
TLcdMagneticNorthModel with the full world as its bounds. |
TLcdMagneticNorthModel(ILcdBounds aBounds)
Constructs a new
TLcdMagneticNorthModel with the given bounds. |
Modifier and Type | Method and Description |
---|---|
boolean |
canSetFeature(int aIndex)
Checks whether the specified feature is editable.
|
Object |
getFeature(int aIndex)
Returns the feature
Object at the given index. |
int |
getFeatureCount()
Returns the number of features.
|
String |
getID()
The unique identifier of this object.
|
String |
getName()
Returns the name of this chart.
|
void |
setFeature(int aIndex,
Object aFeature)
Sets the feature
Object at the given index. |
addElement, allElementsChanged, applyOnInteract2DBounds, applyOnInteract2DBounds, canAddElement, canRemoveElement, contains, elementAt, elementChanged, elements, elementsChanged, getAddElementFilter, getBounds, getRemoveElementFilter, indexOf, isSynchronized, removeAllElements, removeElement, setAddElementFilter, setRemoveElementFilter, setSynchronized, size
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addElement, addElements, addModelListener, all, canAddElement, canRemoveElement, dispose, elementChanged, elements, elementsChanged, filter, fireCollectedModelChanges, getModelDescriptor, getModelEncoder, getModelMetadata, getModelReference, query, removeAllElements, removeElement, removeElements, removeModelListener
close
query
public TLcdMagneticNorthModel()
TLcdMagneticNorthModel
with the full world as its bounds.public TLcdMagneticNorthModel(ILcdBounds aBounds)
TLcdMagneticNorthModel
with the given bounds.aBounds
- The bounds for this modelpublic String getID()
ILcdMagneticNorthModel
getID
in interface ILcdMagneticNorthModel
public String getName()
ILcdMagneticNorthModel
getName
in interface ILcdMagneticNorthModel
public Object getFeature(int aIndex) throws IndexOutOfBoundsException
ILcdFeatured
Object
at the given index.getFeature
in interface ILcdFeatured
aIndex
- a valid feature index.Object
at the given index.IndexOutOfBoundsException
- when an index is chosen greater than the result of getFeatureCount.ILcdFeatured.setFeature(int, java.lang.Object)
public void setFeature(int aIndex, Object aFeature) throws IllegalArgumentException
ILcdFeatured
Object
at the given index.setFeature
in interface ILcdFeatured
aIndex
- a valid feature index.aFeature
- the new feature Object
.IllegalArgumentException
- if the feature can't be set.ILcdFeatured.getFeature(int)
,
ILcdFeatured.canSetFeature(int)
public int getFeatureCount()
ILcdFeatured
getFeatureCount
in interface ILcdFeatured
public boolean canSetFeature(int aIndex)
ILcdFeatured
canSetFeature
in interface ILcdFeatured
aIndex
- a valid feature index.