no message
This commit is contained in:
32
src/_VisualDVM/ProjectData/Files/LanguageStyle.java
Normal file
32
src/_VisualDVM/ProjectData/Files/LanguageStyle.java
Normal file
@@ -0,0 +1,32 @@
|
||||
package _VisualDVM.ProjectData.Files;
|
||||
public enum LanguageStyle {
|
||||
none,
|
||||
fixed,
|
||||
extended,
|
||||
free;
|
||||
public String getDescription() {
|
||||
switch (this) {
|
||||
case fixed:
|
||||
return "Фиксированный";
|
||||
case extended:
|
||||
return "Расширенный";
|
||||
case free:
|
||||
return "Свободный";
|
||||
case none:
|
||||
return "нет";
|
||||
}
|
||||
return "";
|
||||
}
|
||||
public int getMargin() {
|
||||
switch (this) {
|
||||
case fixed:
|
||||
return 72;
|
||||
case extended:
|
||||
return 132;
|
||||
case free:
|
||||
return 160;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user