Class BoxTextElement.SimpleBoxProvider
- java.lang.Object
-
- org.openstreetmap.josm.gui.mappaint.styleelement.BoxTextElement.SimpleBoxProvider
-
- All Implemented Interfaces:
BoxTextElement.BoxProvider
- Enclosing class:
- BoxTextElement
public static class BoxTextElement.SimpleBoxProvider extends Object implements BoxTextElement.BoxProvider
ABoxTextElement.BoxProvider
that always returns the same non-temporary rectangle
-
-
Constructor Summary
Constructors Constructor Description SimpleBoxProvider(Rectangle box)
Constructs a newSimpleBoxProvider
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
BoxTextElement.BoxProviderResult
get()
Compute and get theBoxTextElement.BoxProviderResult
.int
hashCode()
-
-
-
Constructor Detail
-
SimpleBoxProvider
public SimpleBoxProvider(Rectangle box)
Constructs a newSimpleBoxProvider
.- Parameters:
box
- the box
-
-
Method Detail
-
get
public BoxTextElement.BoxProviderResult get()
Description copied from interface:BoxTextElement.BoxProvider
Compute and get theBoxTextElement.BoxProviderResult
. The temporary flag is set if the result of the computation may change in the future.- Specified by:
get
in interfaceBoxTextElement.BoxProvider
- Returns:
- The result of the computation.
-
-