IZSkinFile.java 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. * Copyright (C) 2015 iZc
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 3 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. package de.nplusc.izc.tools.UiToolz;
  18. import java.util.ArrayList;
  19. import java.util.HashMap;
  20. /**
  21. *
  22. * @author LH
  23. */
  24. public class IZSkinFile
  25. {
  26. public IZSkinFile(String uprogram)
  27. {
  28. usingProgram=uprogram;
  29. elementPositions = new HashMap<>();
  30. elementData = new HashMap<>();
  31. }
  32. public IZSkinFile(){
  33. elementPositions = new HashMap<>();
  34. elementData = new HashMap<>();
  35. }//serialisierer....
  36. private String usingProgram;
  37. // private HashMap<String,String> elementDefinitions;//name>typ (Grafik/text/Schriftart)
  38. private HashMap<String,ArrayList<Integer>> elementPositions; //basisposition des elements
  39. private HashMap<String,String> elementData;//pfade der dateien,verwendete schriftart...
  40. public String getUsingProgram()
  41. {
  42. return usingProgram;
  43. }
  44. public void setUsingProgram(String usingProgram)
  45. {
  46. this.usingProgram = usingProgram;
  47. }
  48. public HashMap<String, ArrayList<Integer>> getElementPositions()
  49. {
  50. return elementPositions;
  51. }
  52. public void setElementPositions(HashMap<String, ArrayList<Integer>> elementPositions)
  53. {
  54. this.elementPositions = elementPositions;
  55. }
  56. public HashMap<String, String> getElementData()
  57. {
  58. return elementData;
  59. }
  60. public void setElementData(HashMap<String, String> elementData)
  61. {
  62. this.elementData = elementData;
  63. }
  64. }