Class TagTableModel

    • Method Detail

      • getKeyAt

        public String getKeyAt​(int row)
        Get the key for the given row.
        Parameters:
        row - The row
        Returns:
        The key in that row.
        Since:
        10637
      • hasTag

        public boolean hasTag​(String key)
        Determines if a tag exists for the given key.
        Parameters:
        key - tag key
        Returns:
        true if a tag exists for the given key
      • getValue

        public String getValue​(String key)
        Returns the tag value for the given key.
        Parameters:
        key - tag key
        Returns:
        tag value, or null
      • getWhichChangedTag

        public HistoryOsmPrimitive getWhichChangedTag​(String key)
        Returns the history primitive which changed the given key.
        Parameters:
        key - the OSM key
        Returns:
        the history primitive which changed the given key
      • getVersionString

        public String getVersionString​(HistoryOsmPrimitive primitive)
        Returns a version string for the given primitive, "*" if it is is latest.
        Parameters:
        primitive - the history primitive
        Returns:
        a version string for the given primitive
      • getVersionColor

        public Color getVersionColor​(HistoryOsmPrimitive primitive)
        Returns the color for the given primitive timestamp
        Parameters:
        primitive - the history primitive
        Returns:
        the color for the given primitive timestamp
      • oppositeHasTag

        public boolean oppositeHasTag​(String key)
        Determines if a tag exists in the opposite point in time for the given key.
        Parameters:
        key - tag key
        Returns:
        true if a tag exists for the given key
      • getOppositeValue

        public String getOppositeValue​(String key)
        Returns the tag value in the opposite point in time for the given key.
        Parameters:
        key - tag key
        Returns:
        tag value, or null
      • hasSameValueAsOpposite

        public boolean hasSameValueAsOpposite​(String key)
        Determines if the tag value is the same in the opposite point in time for the given key.
        Parameters:
        key - tag key
        Returns:
        true if the tag value is the same in the opposite point in time for the given key
      • isCurrentPointInTime

        public boolean isCurrentPointInTime()
        Determines if this is the current point in time.
        Returns:
        true if this is the current point in time
      • isReferencePointInTime

        public boolean isReferencePointInTime()
        Determines if this is the reference point in time.
        Returns:
        true if this is the reference point in time