Java Code Examples for com.intellij.ui.SimpleTextAttributes#STYLE_UNDERLINE
The following examples show how to use
com.intellij.ui.SimpleTextAttributes#STYLE_UNDERLINE .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LineParser.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 5 votes |
private static Object toStyle(String str) { switch (str) { case "1": return SimpleTextAttributes.STYLE_BOLD; case "3": return SimpleTextAttributes.STYLE_ITALIC; case "4": return SimpleTextAttributes.STYLE_UNDERLINE; case "9": return SimpleTextAttributes.STYLE_STRIKEOUT; case "30": return JBColor.BLACK; case "31": return JBColor.RED; case "32": return JBColor.GREEN; case "33": return JBColor.YELLOW; case "34": return JBColor.BLUE; case "35": return JBColor.MAGENTA; case "36": return JBColor.CYAN; case "37": return JBColor.WHITE; case "38": return JBColor.GRAY; default: return null; } }
Example 2
Source File: LineParser.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 5 votes |
private static Object toStyle(String str) { switch (str) { case "1": return SimpleTextAttributes.STYLE_BOLD; case "3": return SimpleTextAttributes.STYLE_ITALIC; case "4": return SimpleTextAttributes.STYLE_UNDERLINE; case "9": return SimpleTextAttributes.STYLE_STRIKEOUT; case "30": return JBColor.BLACK; case "31": return JBColor.RED; case "32": return JBColor.GREEN; case "33": return JBColor.YELLOW; case "34": return JBColor.BLUE; case "35": return JBColor.MAGENTA; case "36": return JBColor.CYAN; case "37": return JBColor.WHITE; case "38": return JBColor.GRAY; default: return null; } }