javadoc for non-obvious things

This commit is contained in:
yugecin 2017-01-17 22:02:40 +01:00
parent 14c8fba9cb
commit b270015c14
3 changed files with 7 additions and 1 deletions

View File

@ -189,6 +189,9 @@ public class BubbleNotificationState implements EventListener<BubbleNotification
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) {
timeShown += delta;
processAnimations(isMouseHovered(mouseX, mouseY), delta);

View File

@ -58,6 +58,9 @@ public class FpsRenderState implements EventListener<ResolutionChangedEvent> {
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) {
int width = Fonts.SMALL.getWidth(text) + 10;
g.setColor(color);