Class GUIMapDirections

All Implemented Interfaces:
GUIElement, ImageObserver, MenuContainer, Serializable

public class GUIMapDirections extends AbstractGUIElement
Displays the pending movements on a map view.
See Also:
  • Constructor Details

    • GUIMapDirections

      public GUIMapDirections(@NotNull @NotNull TooltipManager tooltipManager, @NotNull @NotNull GUIElementListener elementListener, @NotNull @NotNull String name, @NotNull @NotNull FacesProvider facesProvider, @NotNull @NotNull PendingDirections pendingDirections, @NotNull @NotNull GuiFactory guiFactory)
      Creates a new instance.
      Parameters:
      tooltipManager - the tooltip manager to update
      elementListener - the element listener to notify
      name - the name of this element
      facesProvider - the faces provider for looking up faces
      pendingDirections - the pending directions instance to visualize
      guiFactory - the global GUI factory instance
  • Method Details

    • paintComponent

      protected void paintComponent(@NotNull @NotNull Graphics g)
      Overrides:
      paintComponent in class JComponent
    • getTooltip

      @Nullable public @Nullable TooltipText getTooltip()
      Description copied from class: AbstractGUIElement
      Returns the current tooltip text.
      Specified by:
      getTooltip in class AbstractGUIElement
      Returns:
      the tooltip text or null to not show a tooltip
    • notifyOpen

      public void notifyOpen()
      Description copied from interface: GUIElement
      Called each time the enclosing dialog is opened (or raised).