ZenScript main repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DDimensionPreferences.java 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package org.openzen.drawablegui;
  7. /**
  8. *
  9. * @author Hoofdgebruiker
  10. */
  11. public class DDimensionPreferences {
  12. public static final DDimensionPreferences EMPTY = new DDimensionPreferences(0, 0);
  13. public final int minimumWidth;
  14. public final int minimumHeight;
  15. public final int preferredWidth;
  16. public final int preferredHeight;
  17. public final int maximumWidth;
  18. public final int maximumHeight;
  19. public DDimensionPreferences(int preferredWidth, int preferredHeight) {
  20. this.minimumWidth = 0;
  21. this.minimumHeight = 0;
  22. this.preferredWidth = preferredWidth;
  23. this.preferredHeight = preferredHeight;
  24. this.maximumWidth = 1000000;
  25. this.maximumHeight = 1000000;
  26. }
  27. public DDimensionPreferences(int minimumWidth, int minimumHeight, int preferredWidth, int preferredHeight, int maximumWidth, int maximumHeight) {
  28. this.minimumWidth = minimumWidth;
  29. this.minimumHeight = minimumHeight;
  30. this.preferredWidth = preferredWidth;
  31. this.preferredHeight = preferredHeight;
  32. this.maximumWidth = maximumWidth;
  33. this.maximumHeight = maximumHeight;
  34. }
  35. }