Package hec.map

Class MapScaleEditorPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class MapScaleEditorPanel extends JPanel

Title: Hec Java Development

Description:

Copyright: Copyright (c) 2002

Company: Resource Management Associates

See Also:
  • Constructor Details

    • MapScaleEditorPanel

      public MapScaleEditorPanel()
  • Method Details

    • setEnabled

      public void setEnabled(boolean enable)
      Overrides:
      setEnabled in class JComponent
    • setScale

      public void setScale(int minimumScale, int maximumScale)
      Sets the minimum and maximum scale factors that are edited in this panel. If either one or both of the min/max scale factors are valid integers, then the range radio button is selected and the text fields enabled. If both values are undefined i.e. min=Integer.MIN_VALUE and max=Integer.MAX_VALUE, then blanks are inserted into the text fields, and the "Always On" radio button is selected
      Parameters:
      minimumScale - the minimum scale factor to use
      maximumScale - the maximum scale factor to use.
    • setMapPanel

      public void setMapPanel(MapPanel mPanel)
    • getMaximumScale

      public int getMaximumScale()
      Returns the maximum scale value entered by the user or Integer.MAX_VALUE if no value is entered or the "Always show layer" radio button is selected
      Returns:
      int value representing the maximum scale factor
    • getMinimumScale

      public int getMinimumScale()
      Returns the maximum scale value entered by the user or Integer.MIN_VALUE if no value is entered or the "Always show layer" radio button is selected
      Returns:
      int value representing the minimum scale factor
    • main

      public static void main(String[] args)
    • setVisible

      public void setVisible(boolean b)
      Overrides:
      setVisible in class JComponent