Class BoxTextElement.BoxProviderResult

java.lang.Object
org.openstreetmap.josm.gui.mappaint.styleelement.BoxTextElement.BoxProviderResult
Enclosing class:
BoxTextElement

public static class BoxTextElement.BoxProviderResult extends Object
A box rectangle with a flag if it is temporary.
  • Field Details

  • Constructor Details

    • BoxProviderResult

      public BoxProviderResult(Rectangle box, boolean temporary)
      Create a new box provider result
      Parameters:
      box - The box
      temporary - The temporary flag, will be returned by isTemporary()
  • Method Details

    • getBox

      public Rectangle getBox()
      Returns the box.
      Returns:
      the box
    • isTemporary

      public boolean isTemporary()
      Determines if the box can change in future calls of the BoxTextElement.BoxProvider.get() method
      Returns:
      true if the box can change in future calls of the BoxProvider#get() method