Package hec.map

Class JLayerSelection

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Observer, Accessible
Direct Known Subclasses:
AiDemLayerSelection, AiShapeLayerSelection, ColorListJLayerSelection, DefaultJLayerSelection, DefaultLayerSelection, DemLayerSelection, DlgLayerSelection, DxfLayerSelection, ImageLayerSelection, InundationGroupSelection, ManagerGlyphSelection, MrSidLayerSelection, NetTinLayerSelection, RasterLayerSelection, TinLayerSelection, TmsLayerSelection

public abstract class JLayerSelection extends JPanel implements Observer, ActionListener
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • requestFocus

      public void requestFocus()
      Overrides:
      requestFocus in class JComponent
    • update

      public void update(Observable o, Object arg)
      Specified by:
      update in interface Observer
    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Specified by:
      actionPerformed in interface ActionListener
    • displayLegend

      protected void displayLegend(boolean tf)
    • canAddLayer

      public boolean canAddLayer()
    • addLayer

      public Object addLayer()
    • allowScaleAdjustment

      protected boolean allowScaleAdjustment()
      Returns true if this Layer Selection allows the user to adjust the scale via the popup menu.
      Returns:
      true if adjustments are allows, otherwise false.
    • hasLegend

      public boolean hasLegend()
    • hasChangableLabel

      protected boolean hasChangableLabel()
    • showLabelEditor

      protected void showLabelEditor()
    • addOptionsPopupMenu

      protected void addOptionsPopupMenu()
    • cleanUp

      public void cleanUp()
    • addActionsToPopup

      protected void addActionsToPopup(JPopupMenu popupMenu)
      Parameters:
      popupMenu -
    • addActionForClass

      public static void addActionForClass(Class cls, LayerSelectionAction action)
    • createPropertiesMenu

      protected void createPropertiesMenu(JPopupMenu menu)
    • getLegendPanel

      public JPanel getLegendPanel()
    • hasOptionDialog

      public abstract boolean hasOptionDialog()
    • showOptionDialog

      public abstract void showOptionDialog()
    • closeOptionDialog

      public abstract void closeOptionDialog()
    • updateGlyph

      public void updateGlyph()
    • getGlyph

      public MapGlyph getGlyph()
    • setGlyph

      public void setGlyph(MapGlyph g)
    • getDataRecord

      public GlyphDataRecord getDataRecord()
    • setDataRecord

      public void setDataRecord(GlyphDataRecord data)
    • setSelected

      public void setSelected(boolean tf)
    • refresh

      public void refresh()
    • setVisible

      public void setVisible(boolean tf)
      Overrides:
      setVisible in class JComponent
    • setName

      public void setName(String name)
      Overrides:
      setName in class Component
    • getName

      public String getName()
      Overrides:
      getName in class Component
    • setLayerShown

      public void setLayerShown(boolean tf)
    • getLayerShown

      public boolean getLayerShown()
    • getLayerMaximumScale

      public int getLayerMaximumScale()
    • getLayerMinimumScale

      public int getLayerMinimumScale()
    • getTreeNode

    • setTreeNode

      public void setTreeNode(JLayerSelectorTreePanel.JLayerSelectionNode node)
    • mouseClicked

      public void mouseClicked(MouseEvent e)
    • attributeMouseClicked

      public void attributeMouseClicked(MouseEvent e, ModelDrawingAttributeSet as, String attribute)
    • setCanMoveUpMenuEnabledRule

      public void setCanMoveUpMenuEnabledRule(Predicate<JLayerSelection> rule)
    • setCanMoveDownMenuEnabledRule

      public void setCanMoveDownMenuEnabledRule(Predicate<JLayerSelection> rule)
    • layerShownItemStateChanged

      public void layerShownItemStateChanged(ItemEvent event)
    • toString

      public String toString()
      Overrides:
      toString in class Component
    • setIsMovableInList

      public void setIsMovableInList(boolean isMovable)
    • isMovableInList

      public boolean isMovableInList()
    • isRemovable

      public boolean isRemovable()
    • updatePopupMenu

      protected void updatePopupMenu()