public static class BoxTextElement.SimpleBoxProvider extends java.lang.Object implements BoxTextElement.BoxProvider
BoxTextElement.BoxProvider
that always returns the same non-temporary rectangleModifier and Type | Field and Description |
---|---|
private java.awt.Rectangle |
box |
Constructor and Description |
---|
SimpleBoxProvider(java.awt.Rectangle box)
Constructs a new
SimpleBoxProvider . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
BoxTextElement.BoxProviderResult |
get()
Compute and get the
BoxTextElement.BoxProviderResult . |
int |
hashCode() |
private final java.awt.Rectangle box
public SimpleBoxProvider(java.awt.Rectangle box)
SimpleBoxProvider
.box
- the boxpublic BoxTextElement.BoxProviderResult get()
BoxTextElement.BoxProvider
BoxTextElement.BoxProviderResult
. The temporary flag is set if the result of the computation may change in the future.get
in interface BoxTextElement.BoxProvider
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object