Class TLspAltitudeExaggerationControl

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.luciad.view.lightspeed.swing.navigationcontrols.TLspAltitudeExaggerationControl
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class TLspAltitudeExaggerationControl extends JPanel
This class implements the altitude exaggeration control for an ILspView.
Since:
2012.0
See Also:
  • Constructor Details

    • TLspAltitudeExaggerationControl

      public TLspAltitudeExaggerationControl(ILspView aView, double aMinimum, double aMaximum) throws IOException
      A constructor for the altitude exaggeration control for an ILspView. The constructor also loads the necessary images and will initialize all the subcomponents of the component.
      Parameters:
      aView - The view to interact with
      aMinimum - The minimum altitude exaggeration factor
      aMaximum - The maximum altitude exaggeration factor
      Throws:
      IOException - when one of the necessary images is missing
      Since:
      2019.0.05
    • TLspAltitudeExaggerationControl

      public TLspAltitudeExaggerationControl(String aImagePath, ILspView aView, double aMinimum, double aMaximum) throws IOException
      A constructor for the altitude exaggeration control for an ILspView using the given image path and view. The constructor also loads the necessary images and will initialize all the subcomponents of the component.
      Parameters:
      aImagePath - The (relative or absolute) path to the directory where the images are stored.
      aView - The view to interact with
      aMinimum - The minimum altitude exaggeration factor
      aMaximum - The maximum altitude exaggeration factor
      Throws:
      IOException - when one of the necessary images is missing
  • Method Details

    • getPreferredSize

      public Dimension getPreferredSize()
      Overrides:
      getPreferredSize in class JComponent
    • setEnabled

      public void setEnabled(boolean enabled)
      Overrides:
      setEnabled in class JComponent
    • getSliderPosition

      protected double getSliderPosition()
      This method returns a double that represents the vertical position of the slider. It corresponds with the y-coordinate of the mouse relative to the center of the component, but scaled using the Dimension of the panel, so the resulting values is between 1 and -1.
      Returns:
      a point representing the relative position of the slider with respect to the center of the panel.