Advertisement
Guest User

Untitled

a guest
Jun 26th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. public static abstract class Post extends RenderTooltipEvent
  2. {
  3. private final int width;
  4. private final int height;
  5.  
  6. public Post(List<String> textLines, int x, int y, int width, int height)
  7. {
  8. super(textLines, x, y);
  9. this.width = width;
  10. this.height = height;
  11. }
  12.  
  13. public int getWidth()
  14. {
  15. return width;
  16. }
  17.  
  18. public int getHeight()
  19. {
  20. return height;
  21. }
  22.  
  23. public static class Background extends Post
  24. {
  25. public Background(List<String> textLines, int x, int y, int width, int height) { super(textLines, x, y, width, height); }
  26. }
  27.  
  28. public static class Text extends Post
  29. {
  30. public Text(List<String> textLines, int x, int y, int width, int height) { super(textLines, x, y, width, height); }
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement