Advertisement
xlrnxnlx

editconfig -min

Jul 4th, 2014
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.59 KB | None | 0 0
  1. // são somente umas configurações que variam de acordo com o estilo escolhido na UI
  2. // depende do ' tema ' que o cara escolher. rlx ja ta funcionando
  3. // * ta com um separador criado pela biafoox, ela deixou usar ITSSSSSSSSSS FREEE uahuahuahuah
  4. // upa no git depois
  5. package formatter.model;public class EditConfig{private final int MAIN_FONT_SIZE=5,FONT_SIZE=2;private final String defaultSeparator="[IMG]http://i.imgur.com/Js7mU3w.png[/IMG]";private String style,mainColor,color;private String mainFontName,fontName;private String mainFontColor,fontColor;private String userSeparator;private String downloadImage,scanImage;public EditConfig(){}
  6. public EditConfig(String style,String mainColor,String color){this.style=style;this.mainColor=mainColor;this.color=color;apply();}
  7. private void apply(){setStyle();setMainColor();setColor();}
  8. private void setStyle(){switch(this.style){case"basic":mainFontName="Impact";fontName="Arial Narrow";break;case"minimal":mainFontName="Century Gothic";fontName="Franklin Gothic Book";break;case"flat":mainFontName="Century Gothic";fontName="Century Gothic";break;case"stylish":mainFontName="Impact";fontName="Cambria";break;}}
  9. private void setMainColor(){switch(this.mainColor){case"red":if(this.style.equals("minimal")||(this.style.equals("flat")))
  10. mainFontColor="#D92D2D";else mainFontColor="#FF0000";break;case"green":if(this.style.equals("minimal")||(this.style.equals("flat")))
  11. mainFontColor="#5ECA6B";else mainFontColor="#00B300";break;case"blue":if(this.style.equals("minimal")||(this.style.equals("flat")))
  12. mainFontColor="#1395C6";else mainFontColor="#0000DD";break;default:mainFontColor="#000000";break;}}
  13. private void setColor(){switch(this.color){case"dark":fontColor="#3C3C3C";break;case"light":fontColor="#9B9B9B";break;default:fontColor="#000000";break;}}
  14. public String getSeparator(){if(this.userSeparator==null||this.userSeparator.isEmpty())
  15. return defaultSeparator;return userSeparator;}
  16. public void setSeparator(String s){userSeparator=s;}
  17. public int getMAIN_FONT_SIZE(){return MAIN_FONT_SIZE;}
  18. public int getFONT_SIZE(){return FONT_SIZE;}
  19. public String getMainFontName(){return mainFontName;}
  20. public String getFontName(){return fontName;}
  21. public String getMainFontColor(){return mainFontColor;}
  22. public String getFontColor(){return fontColor;}
  23. public String getUserSeparator(){return userSeparator;}
  24. public String getDownloadImage(){return this.downloadImage;}
  25. public void setDownloadImage(String downloadImage){this.downloadImage=downloadImage;}
  26. public String getScanImage(){return scanImage;}
  27. public void setScanImage(String scanImage){this.scanImage=scanImage;}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement