javadoc for non-obvious things
This commit is contained in:
parent
14c8fba9cb
commit
b270015c14
|
@ -189,6 +189,9 @@ public class BubbleNotificationState implements EventListener<BubbleNotification
|
||||||
this.height = (int) (Fonts.SMALLBOLD.getLineHeight() * (lines.size() + 0.5f));
|
this.height = (int) (Fonts.SMALLBOLD.getLineHeight() * (lines.size() + 0.5f));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return true if this notification expired
|
||||||
|
*/
|
||||||
private boolean render(Graphics g, int mouseX, int mouseY, int delta) {
|
private boolean render(Graphics g, int mouseX, int mouseY, int delta) {
|
||||||
timeShown += delta;
|
timeShown += delta;
|
||||||
processAnimations(isMouseHovered(mouseX, mouseY), delta);
|
processAnimations(isMouseHovered(mouseX, mouseY), delta);
|
||||||
|
|
|
@ -58,6 +58,9 @@ public class FpsRenderState implements EventListener<ResolutionChangedEvent> {
|
||||||
return DARKORANGE;
|
return DARKORANGE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return x position where the next block can be drawn (right aligned)
|
||||||
|
*/
|
||||||
private int drawText(Graphics g, Color color, String text, int x, int y) {
|
private int drawText(Graphics g, Color color, String text, int x, int y) {
|
||||||
int width = Fonts.SMALL.getWidth(text) + 10;
|
int width = Fonts.SMALL.getWidth(text) + 10;
|
||||||
g.setColor(color);
|
g.setColor(color);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user