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 java.lang.Object implements BoxTextElement.BoxProvider
ABoxTextElement.BoxProviderthat always returns the same non-temporary rectangle
-
-
Field Summary
Fields Modifier and Type Field Description private java.awt.Rectanglebox
-
Constructor Summary
Constructors Constructor Description SimpleBoxProvider(java.awt.Rectangle box)Constructs a newSimpleBoxProvider.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)BoxTextElement.BoxProviderResultget()Compute and get theBoxTextElement.BoxProviderResult.inthashCode()
-
-
-
Field Detail
-
box
private final java.awt.Rectangle box
-
-
Constructor Detail
-
SimpleBoxProvider
public SimpleBoxProvider(java.awt.Rectangle box)
Constructs a newSimpleBoxProvider.- Parameters:
box- the box
-
-
Method Detail
-
get
public BoxTextElement.BoxProviderResult get()
Description copied from interface:BoxTextElement.BoxProviderCompute and get theBoxTextElement.BoxProviderResult. The temporary flag is set if the result of the computation may change in the future.- Specified by:
getin interfaceBoxTextElement.BoxProvider- Returns:
- The result of the computation.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-