public class TLcdVVJPanel extends JPanel
JPanel
allows to display one vertical profile (for example
a 3D polyline of lon/lat/height points) and a number of sub-profiles
that are associated to the main profile. A sub-profile is divided
into sub-profile steps. The number of steps of each sub-profile is equal
to the number of points it contains minus one.
A sub-profile step has a ratio, that is the
percentage on the x-axis it represents, relatively to the main-profile (e.g.
the sum of all the ratios for one sub-profile is exactly 1).JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
static String |
BOTTOM_OFFSET |
static String |
LEFT_OFFSET |
static String |
LEFT_RIGHT_INDEX |
static String |
MODEL
This property change will be thrown
When a new
ILcdVVModel is set to this TLcdVVJPanel
When the ILcdVVModel throws a change event
|
static String |
RIGHT_OFFSET |
static String |
TOP_OFFSET |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
TLcdVVJPanel()
Default constructor, no
ILcdVVModel is set. |
Modifier and Type | Method and Description |
---|---|
void |
addCursorChangeListener(ILcdVVCursorChangeEventListener aListener)
Adds a listener that should be notified if the vertical cursor has moved.
|
TLcdAltitudeUnit |
getAltitudeUnit()
Returns the unit to use when displaying altitudes.
|
double |
getBottomOffset()
Returns the lowest altitude (in meters) to take into account when calculating the altitude range to be painted.
|
int |
getEndingPointIndex() |
double |
getLeftOffset() |
int |
getLeftScalingIndex()
Deprecated.
|
double |
getMaximumViewAltitude()
Returns the highest altitude in model coordinates which is painted in the panel.
|
double |
getMinimumViewAltitude()
Returns the lowest altitude in model coordinates which is painted in the panel.
|
double |
getRightOffset() |
int |
getRightScalingIndex()
Deprecated.
use #getEndingPointIndex
|
int |
getSensitivity()
Returns the sensitivity when interacting with altitude points and the vertical cursor.
|
int |
getStartingPointIndex()
Returns the index of the point in the model at which drawing begins.
|
double |
getTopOffset()
Returns the highest altitude (in meters) to take into account when calculating the altitude range to be displayed.
|
int |
getVerticalCursorLeftPointIndex()
Returns the index of the main profile point, that, together with the point to the right of it,
defines the X-axis positions between which the vertical cursor is positioned.
|
double |
getVerticalCursorPercentage()
Returns the cursor's relative distance between the getVerticalCursorPosition()
and the profile point to the right of the position.
|
ILcdPoint |
getVerticalCursorPosition()
Returns the main profile point, that, together with the point to the right of it,
defines the X-axis positions between which the vertical cursor is positioned.
|
ILcdVVGridCoordinates |
getVVGridCoordinates() |
ILcdVVGridLineOrdinateProvider |
getVVGridLineOrdinateProvider()
Returns the grid-line ordinate provider used for the vertical view grid.
|
ILcdVVGridRenderer |
getVVGridRenderer() |
ILcdVVModel |
getVVModel() |
ILcdVVRenderer |
getVVRenderer() |
ILcdVVXAxisRenderer |
getVVXAxisRenderer() |
boolean |
isAdjustBottomGridLineWhenEqual()
Returns whether an extra grid-line is painted if
the min value is equal to the bottom grid-line.
|
boolean |
isAdjustTopGridLineWhenEqual()
Returns whether an extra grid-line is painted if
the max value is equal to the top grid-line.
|
boolean |
isBuffered()
Returns whether caching of the profiles and grid-lines is on or off.
|
static boolean |
isClassTraceOn()
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
boolean |
isPaintAllLabels()
Returns whether all labels should painted or only the label of the point on which the mouse is located.
|
boolean |
isPaintEditedLabel()
Should the label of the point being edited be painted.
|
boolean |
isSnapViewToGrid()
Returns whether the vertical view should snap to the grid or not.
|
boolean |
isSubProfileScaled() |
boolean |
isTraceOn()
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
boolean |
isVerticalCursorVisible() |
boolean |
isXAxisLabeled() |
void |
paintComponent(Graphics g)
The main entry point for this class.
|
void |
removeCursorChangeListener(ILcdVVCursorChangeEventListener aListener)
No longer notifies a listener of changes to the vertical cursor.
|
double |
retrieveMaximumAltitude(boolean aUseSubProfiles)
Retrieves the minimum altitude of the model points in the vertical view.
|
double |
retrieveMinimumAltitude(boolean aUseSubProfiles)
Retrieves the minimum altitude of the points in the vertical view.
|
void |
setAdjustBottomGridLineWhenEqual(boolean aBoolean) |
void |
setAdjustTopGridLineWhenEqual(boolean aBoolean) |
void |
setAltitudeUnit(TLcdAltitudeUnit aAltitudeUnit)
Sets the unit to use when displaying altitudes.
|
void |
setBuffered(boolean aBuffered)
Turns caching of the profiles and grid-lines on or off.
|
static void |
setClassTraceOn(boolean aClassTraceOn)
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
void |
setCursor(Cursor aCursor) |
void |
setEndingPointIndex(int aEndingPointIndex)
Sets the index of the last point of the mode which should be painted.
|
void |
setLeftOffset(double aLeftOffset) |
void |
setPaintAllLabels(boolean aBoolean)
Sets whether a label should be painted for the point touched by the mouse or for all points in the main profile.
|
void |
setPaintEditedLabel(boolean aPaintEditedLabel)
Sets whether the point which is being edited should be labeled while editing.
|
void |
setRightOffset(double aRightOffset) |
void |
setSensitivity(int aSensitivity)
Configures the sensitivity when interacting with altitude points and the vertical cursor.
|
void |
setSnapViewToGrid(boolean aSnapToGrid)
Sets whether the vertical view should snap to the grid or not.
|
void |
setStartingPointIndex(int aStartingPointIndex)
Sets the index of the first point of the model which should be rendered.
|
void |
setSubProfileScaled(boolean aBoolean)
When the ordinate is constructed, should the values of the sub-profiles
be taken into account?
|
void |
setTopBottomOffsets(double aTopOffset,
double aBottomOffset,
boolean aRepaint)
Sets the top and bottom offset in meters.
|
void |
setTraceOn(boolean aTraceOn)
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
void |
setVerticalCursorLeftPointIndex(int aMainProfileIndex)
Moves the vertical cursor to the location of the main profile point at the given index in the view.
|
void |
setVerticalCursorPercentage(double aPercentage)
Moves the vertical cursor to a location between getVerticalCursorPosition()
and the profile point to the right of the position.
|
void |
setVerticalCursorPosition(ILcdPoint aPoint)
Moves the vertical cursor to the location of the given main profile point in the view.
|
void |
setVerticalCursorVisible(boolean aBoolean) |
void |
setVVGridLineOrdinateProvider(ILcdVVGridLineOrdinateProvider aVVGridLineOrdinateProvider)
Sets the grid-line ordinate provider used for the vertical view grid.
|
void |
setVVGridRenderer(ILcdVVGridRenderer aGridRenderer)
Sets a new
ILcdVVGridRenderer |
void |
setVVModel(ILcdVVModel aNewVVModel) |
void |
setVVRenderer(ILcdVVRenderer aNewVVRenderer) |
void |
setVVXAxisRenderer(ILcdVVXAxisRenderer aXAxisRenderer)
Set the
ILcdVVXAxisRenderer responsible for decorating the X-axis. |
void |
setXAxisLabeled(boolean aBoolean) |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final String BOTTOM_OFFSET
public static final String TOP_OFFSET
public static final String LEFT_OFFSET
public static final String RIGHT_OFFSET
public static final String LEFT_RIGHT_INDEX
public static final String MODEL
ILcdVVModel
is set to this TLcdVVJPanel
ILcdVVModel
throws a change eventpublic TLcdVVJPanel()
ILcdVVModel
is set. The default renderer is used.public static void setClassTraceOn(boolean aClassTraceOn)
true
then all log messages are recorded, otherwise only
the informative, warning and error messages are recorded.aClassTraceOn
- if true then all log messages are recorded,
otherwise only the informative, warning and error messages are recorded.public static boolean isClassTraceOn()
true
if tracing is enabled for this class.public void setTraceOn(boolean aTraceOn)
true
or false
as argument automatically turns
off tracing for all other class instances for which
setTraceOn
has not been called.
If the argument is false
then only the informative, warning
and error log messages are recorded.aTraceOn
- if true then all log messages are recorded for this
instance. If false, then only the informative, warning and
error log messages are recorded.public boolean isTraceOn()
true
if tracing is enabled for this class.public TLcdAltitudeUnit getAltitudeUnit()
public void setAltitudeUnit(TLcdAltitudeUnit aAltitudeUnit)
Note: To have a coherent view of the data, the altitude unit should be the same on the view as on the grid renderer. As long as the grid renderer on the view is not changed, the altitude unit is passed on directly to the grid renderer.
aAltitudeUnit
- the unit to use when displaying altitudes.public void setAdjustTopGridLineWhenEqual(boolean aBoolean)
aBoolean
- to indicate if you want to see an extra grid-line if
the max value is equal to the top grid-line.public boolean isAdjustTopGridLineWhenEqual()
public void setAdjustBottomGridLineWhenEqual(boolean aBoolean)
aBoolean
- to indicate if you want to see an extra grid-line if
the min value is equal to the bottom grid-line.public boolean isAdjustBottomGridLineWhenEqual()
public void setPaintAllLabels(boolean aBoolean)
aBoolean
- indicates whether all the point-icons should be labeled
or just the point that the mouse is overisPaintAllLabels()
public boolean isPaintAllLabels()
setPaintAllLabels(boolean)
public boolean isPaintEditedLabel()
setPaintEditedLabel(boolean)
public void setPaintEditedLabel(boolean aPaintEditedLabel)
aPaintEditedLabel
- true to display the label of the point being edited.isPaintEditedLabel()
public void addCursorChangeListener(ILcdVVCursorChangeEventListener aListener)
aListener
- to be notified when the vertical cursor has moved.removeCursorChangeListener(com.luciad.view.vertical.ILcdVVCursorChangeEventListener)
public void removeCursorChangeListener(ILcdVVCursorChangeEventListener aListener)
aListener
- the listener that should no longer be notified of changes to the vertical cursor.addCursorChangeListener(com.luciad.view.vertical.ILcdVVCursorChangeEventListener)
public void setStartingPointIndex(int aStartingPointIndex)
aStartingPointIndex
- the first point of the underlying ILcdVVModel
to take into account when
rendering.
ILcdVVGridRenderer
when painting the labels,
but not when painting the points, i.e.
ILcdVVRenderer.paintPointIcon(java.awt.Graphics, TLcdVVJPanel, int, int, java.awt.Rectangle)
is not called with absolute model index of the point, but with the index relative to the starting point index.
ILcdVVRenderer.paintPointLabel(java.awt.Graphics, TLcdVVJPanel, int, int, int)
is called with the absolute
model index.ILcdVVRenderer.paintPointIcon(java.awt.Graphics, TLcdVVJPanel, int, int, java.awt.Rectangle)
,
ILcdVVRenderer.paintPointLabel(java.awt.Graphics, TLcdVVJPanel, int, int, int)
public void setEndingPointIndex(int aEndingPointIndex)
aEndingPointIndex
- the last point of the underlying ILcdVVModel
to take into account when
drawing.getEndingPointIndex()
,
setStartingPointIndex(int)
public int getLeftScalingIndex()
getStartingPointIndex()
.public int getStartingPointIndex()
setStartingPointIndex(int)
public int getRightScalingIndex()
public int getEndingPointIndex()
ILcdVVModel
point to stop rendering at. Default value is -1, meaning that
all points starting from the starting point index should be taken into account for rendering.
When a model change occurs, this parameter is reset.public void setLeftOffset(double aLeftOffset)
aLeftOffset
- a fraction [0-1[ of the ILcdVVModel
data "width" to be hidden on the left side
of this TLcdVVJPanel
.public double getLeftOffset()
setLeftOffset(double)
public void setRightOffset(double aRightOffset)
aRightOffset
- a ratio [0,1[ of the ILcdVVModel
data "width" to be hidden on the right side of this
TLcdVVJPanel
.public double getRightOffset()
setRightOffset(double)
public final void setSubProfileScaled(boolean aBoolean)
aBoolean
- False => only the points of the main-profile are used
to construct the ordinate.public final boolean isSubProfileScaled()
setSubProfileScaled(boolean)
public void setTopBottomOffsets(double aTopOffset, double aBottomOffset, boolean aRepaint)
aTopOffset
- the top altitude to be painted. Setting this value to Double.MAX_VALUE will blank this property,
returning the maximum value of the model whenever it is required.aBottomOffset
- the bottom altitude to be painted. Setting this value to -Double.MAX_VALUE will blank this property,
returning the maximum value of the model whenever it is required.aRepaint
- whether or not the view should be repainted.public double getBottomOffset()
lowest displayed altitude
.
If the property is set to -Double.MAX_VALUE
, the minimum altitude
of the current model is returned.setTopBottomOffsets(double, double, boolean)
public double getTopOffset()
highest displayed altitude
.
If the property is set to -Double.MAX_VALUE
, the maximum altitude
of the current model is returned.setTopBottomOffsets(double, double, boolean)
public double getMinimumViewAltitude()
setAdjustBottomGridLineWhenEqual(boolean)
,
getBottomOffset()
public double getMaximumViewAltitude()
setAdjustTopGridLineWhenEqual(boolean)
,
getTopOffset()
public void setVVModel(ILcdVVModel aNewVVModel)
aNewVVModel
- The underlying ILcdVVModel
that contains
all the information for displaying profile on that TLcdVVJPanel
.ILcdVVModel
,
ALcdVVModel
public ILcdVVModel getVVModel()
public void setVVRenderer(ILcdVVRenderer aNewVVRenderer)
aNewVVRenderer
- the new renderer to use for displaying profile data.public ILcdVVRenderer getVVRenderer()
public void setVVGridRenderer(ILcdVVGridRenderer aGridRenderer)
ILcdVVGridRenderer
public ILcdVVGridRenderer getVVGridRenderer()
public void setVVGridLineOrdinateProvider(ILcdVVGridLineOrdinateProvider aVVGridLineOrdinateProvider)
aVVGridLineOrdinateProvider
- The new grid-line ordinate provider.getVVGridLineOrdinateProvider()
public ILcdVVGridLineOrdinateProvider getVVGridLineOrdinateProvider()
setVVGridLineOrdinateProvider(ILcdVVGridLineOrdinateProvider)
public ILcdVVGridCoordinates getVVGridCoordinates()
public void setVVXAxisRenderer(ILcdVVXAxisRenderer aXAxisRenderer)
ILcdVVXAxisRenderer
responsible for decorating the X-axis.public ILcdVVXAxisRenderer getVVXAxisRenderer()
ILcdVVXAxisRenderer
responsible for decorating the X-axis,
null if no ILcdVVXAxisRenderer is set.public boolean isVerticalCursorVisible()
public boolean isXAxisLabeled()
public void setXAxisLabeled(boolean aBoolean)
isXAxisLabeled()
public void setVerticalCursorVisible(boolean aBoolean)
aBoolean
- indicating whether the Vertical Cursor should be shown.public void setVerticalCursorPosition(ILcdPoint aPoint)
This method resets the vertical cursor's percentage.
aPoint
- a point of the main profile, so one of the points returned by
getVVModel.getPoint(int aIndex)
.getVerticalCursorPosition()
,
setVerticalCursorPercentage(double)
public ILcdPoint getVerticalCursorPosition()
getVerticalCursorPercentage()
public void setVerticalCursorLeftPointIndex(int aMainProfileIndex)
aMainProfileIndex
- index of a point of the main profilegetVerticalCursorPosition()
,
setVerticalCursorPercentage(double)
public int getVerticalCursorLeftPointIndex()
getVerticalCursorPercentage()
public int getSensitivity()
setSensitivity(int)
public void setSensitivity(int aSensitivity)
aSensitivity
- the new sensitivity to be used when interacting with altitude points and the vertical cursorgetSensitivity()
public void setVerticalCursorPercentage(double aPercentage)
aPercentage
- a real value between 0 and 1 defining the cursor's relative distance
between getVerticalCursorPosition() and the point to its rightsetVerticalCursorPosition(com.luciad.shape.ILcdPoint)
,
getVerticalCursorPercentage()
public double getVerticalCursorPercentage()
getVerticalCursorPosition()
public boolean isBuffered()
setBuffered(boolean)
public void setBuffered(boolean aBuffered)
aBuffered
- true to cache the grid-lines, the main profile and the sub profile in an image, thus
improving performance.isBuffered()
public void setSnapViewToGrid(boolean aSnapToGrid)
Sets whether the vertical view should snap to the grid or not.
If this property is set to true
, the vertical view will not display
the bottom offset as a minimum and the top offset as a maximum, but instead it will
use the method ILcdVVGridLineOrdinateProvider.getSnappedRange(double, com.luciad.util.ILcdInterval, com.luciad.util.TLcdAltitudeUnit)
to determine
the interval to show.
The default value of this property is true
for backward compatibility
reasons.
aSnapToGrid
- the flag indicating if the vertical view snaps to the grid or not.isSnapViewToGrid()
,
setTopBottomOffsets(double, double, boolean)
,
getMinimumViewAltitude()
,
getMaximumViewAltitude()
public boolean isSnapViewToGrid()
setSnapViewToGrid(boolean)
public void paintComponent(Graphics g)
paintComponent
in class JComponent
g
- the Graphics the component should be painted on.public double retrieveMinimumAltitude(boolean aUseSubProfiles)
getBottomOffset()
).aUseSubProfiles
- whether or not to take the sub profiles into account.public double retrieveMaximumAltitude(boolean aUseSubProfiles)
getTopOffset()
).aUseSubProfiles
- whether or not to take the sub profiles into account.