private static class AbstractGuiDriver.ParagraphKey<F> extends AbstractGuiDriver.TextKey<F>
Modifier and Type | Field and Description |
---|---|
private int |
maxWidth
The width in which to fit the paragraph.
|
Constructor and Description |
---|
ParagraphKey(java.lang.String text,
F font,
int maxWidth)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Check if this key is equal with the specified object.
|
int |
hashCode()
Compute an unique hash key for this paragraph and font combination.
|
public ParagraphKey(java.lang.String text, F font, int maxWidth)
text
- The text.font
- The font with which the metrics were computed.maxWidth
- The width in which to fit the paragraph.public int hashCode()
hashCode
in class AbstractGuiDriver.TextKey<F>
public boolean equals(java.lang.Object obj)
equals
in class AbstractGuiDriver.TextKey<F>
obj
- The object to check.