public static class BoxTextElement.SimpleBoxProvider extends java.lang.Object implements BoxTextElement.BoxProvider
BoxTextElement.BoxProvider that always returns the same non-temporary rectangle| Modifier 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.BoxProviderBoxTextElement.BoxProviderResult. The temporary flag is set if the result of the computation may change in the future.get in interface BoxTextElement.BoxProviderpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object