Class BookmarkList.Bookmark

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Bounds area  
      private javax.swing.ImageIcon icon  
      private java.lang.String name  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
        Bookmark()
      Constructs a new empty Bookmark.
      protected Bookmark​(java.lang.String name, Bounds area)
      Constructs a new Bookmark for the given name and area.
        Bookmark​(java.util.Collection<java.lang.String> list)
      Constructs a new Bookmark with the given contents.
        Bookmark​(Bounds area)
      Constructs a new unnamed Bookmark for the given area.
    • Field Detail

      • name

        private java.lang.String name
      • icon

        private javax.swing.ImageIcon icon
    • Constructor Detail

      • Bookmark

        public Bookmark​(java.util.Collection<java.lang.String> list)
        Constructs a new Bookmark with the given contents.
        Parameters:
        list - Bookmark contents as a list of 5 elements. First item is the name, then come bounds arguments (minlat, minlon, maxlat, maxlon)
        Throws:
        java.lang.NumberFormatException - if the bounds arguments are not numbers
        java.lang.IllegalArgumentException - if list contain less than 5 elements
      • Bookmark

        public Bookmark()
        Constructs a new empty Bookmark.
      • Bookmark

        public Bookmark​(Bounds area)
        Constructs a new unnamed Bookmark for the given area.
        Parameters:
        area - The bookmark area
      • Bookmark

        protected Bookmark​(java.lang.String name,
                           Bounds area)
        Constructs a new Bookmark for the given name and area.
        Parameters:
        name - The bookmark name
        area - The bookmark area
        Since:
        12495
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • getArea

        public Bounds getArea()
        Returns the bookmark area
        Returns:
        The bookmark area
      • getName

        public java.lang.String getName()
        Returns the bookmark name
        Returns:
        The bookmark name
      • setName

        public void setName​(java.lang.String name)
        Sets the bookmark name
        Parameters:
        name - The bookmark name
      • setArea

        public void setArea​(Bounds area)
        Sets the bookmark area
        Parameters:
        area - The bookmark area
      • getIcon

        public javax.swing.ImageIcon getIcon()
        Returns the bookmark icon.
        Returns:
        the bookmark icon
        Since:
        12495
      • setIcon

        public void setIcon​(javax.swing.ImageIcon icon)
        Sets the bookmark icon.
        Parameters:
        icon - the bookmark icon
        Since:
        12495