Class BoxTextElement.BoxProviderResult
- java.lang.Object
-
- org.openstreetmap.josm.gui.mappaint.styleelement.BoxTextElement.BoxProviderResult
-
- Enclosing class:
- BoxTextElement
public static class BoxTextElement.BoxProviderResult extends java.lang.Object
A box rectangle with a flag if it is temporary.
-
-
Constructor Summary
Constructors Constructor Description BoxProviderResult(java.awt.Rectangle box, boolean temporary)
Create a new box provider result
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.Rectangle
getBox()
Returns the box.boolean
isTemporary()
Determines if the box can change in future calls of theBoxTextElement.BoxProvider.get()
method
-
-
-
Constructor Detail
-
BoxProviderResult
public BoxProviderResult(java.awt.Rectangle box, boolean temporary)
Create a new box provider result- Parameters:
box
- The boxtemporary
- The temporary flag, will be returned byisTemporary()
-
-
Method Detail
-
getBox
public java.awt.Rectangle getBox()
Returns the box.- Returns:
- the box
-
isTemporary
public boolean isTemporary()
Determines if the box can change in future calls of theBoxTextElement.BoxProvider.get()
method- Returns:
true
if the box can change in future calls of theBoxProvider#get()
method
-
-