📄 options.java
字号:
//------------------------------------------------------------------------- public final boolean getShowArguments() { return showArguments; } public final boolean getShowArgumentNames() { return showArgumentNames; } public final boolean getShowNestedName() { return showNestedName; } public final boolean getShowIconKeywords() { return showIconKeywords; } public final boolean getShowMiscMod() { return showMiscMod; } public final boolean getAlphaSort() { return alphaSort; } public final boolean getShowLineNum() { return showLineNum; } public final int getStyleIndex() { return styleIndex; } public final boolean getVisSymbols() { return visSymbols; } public final boolean getAbstractItalic() { return abstractItalic; } public final boolean getStaticUlined() { return staticUlined; } public final boolean getTypeIsSuffixed() { return typeIsSuffixed; } public final void setShowArguments(boolean flag) { showArguments = flag; } public final void setShowArgumentNames(boolean flag) { showArgumentNames = flag; } public final void setShowNestedName(boolean flag) { showNestedName = flag; } public final void setShowIconKeywords(boolean flag) { showIconKeywords = flag; } public final void setShowMiscMod(boolean flag) { showMiscMod = flag; } public final void setAlphaSort(boolean flag) { alphaSort = flag; } public final void setShowLineNum(boolean flag) { showLineNum = flag; } public final void setStyleIndex(int index) { styleIndex = index; } public final void setVisSymbols(boolean flag) { visSymbols = flag; } public final void setAbstractItalic(boolean flag) { abstractItalic = flag; } public final void setStaticUlined(boolean flag) { staticUlined = flag; } public final void setTypeIsSuffixed(boolean flag) { typeIsSuffixed = flag; } public final DisplayIro getInverseOptions() { Display inverseOpt = new Display(); inverseOpt.showArguments = !showArguments; inverseOpt.showArgumentNames = !showArgumentNames; inverseOpt.showNestedName = !showNestedName; inverseOpt.showIconKeywords = !showIconKeywords; inverseOpt.showMiscMod = !showMiscMod; inverseOpt.alphaSort = !alphaSort; inverseOpt.showLineNum = !showLineNum; inverseOpt.visSymbols = !visSymbols; inverseOpt.abstractItalic = !abstractItalic; inverseOpt.staticUlined = !staticUlined; inverseOpt.typeIsSuffixed = !typeIsSuffixed; if (styleIndex == STYLE_UML) { inverseOpt.styleIndex = STYLE_JAVA; } else if (styleIndex == STYLE_JAVA) { inverseOpt.styleIndex = STYLE_UML; } return inverseOpt; } public String toString() { return "How to display:" + "\n\tshowArguments = " + showArguments + "\n\tshowArgumentNames = " + showArgumentNames + "\n\tshowNestedName = " + showNestedName + "\n\tshowIconKeywords = " + showIconKeywords + "\n\tshowMiscMod = " + showMiscMod + "\n\talphaSort = " + alphaSort + "\n\tshowLineNum = " + showLineNum + "\n\tstyleIndex = " + styleIndex + "\n\tvisSymbols = " + visSymbols + "\n\tabstractItalic = " + abstractItalic + "\n\tstaticUlined = " + staticUlined + "\n\ttypeIsSuffixed = " + typeIsSuffixed; } // toString(): String } // class Options.Display implements Options.DisplayIro //========================================================================= /** * Options.DisplayIro - Interface for Accessing Display options for JBrowse */ public static interface DisplayIro { // Display Style options (HOW) // constants - for styleIndex static final int STYLE_FIRST = 0; static final int STYLE_UML = 0; static final int STYLE_JAVA = 1; static final int STYLE_CUSTOM = 2; static final int STYLE_LAST = 2; // Accessor methods //------------------------------------------------------------------------- public boolean getShowArguments(); public boolean getShowArgumentNames(); public boolean getShowNestedName(); public boolean getShowIconKeywords(); public boolean getShowMiscMod(); public boolean getAlphaSort(); public boolean getShowLineNum(); public int getStyleIndex(); public boolean getVisSymbols(); public boolean getAbstractItalic(); public boolean getStaticUlined(); public boolean getTypeIsSuffixed(); public DisplayIro getInverseOptions(); } // interface Options.DisplayIro //========================================================================= public static class Filter implements FilterIro { // Filter options (WHAT) private boolean showAttributes; private boolean showPrimitives; private boolean showGeneralizations; private boolean showThrows; private int topLevelVisIndex = 0; private int memberVisIndex = 0; // Accessor methods //------------------------------------------------------------------------- public final boolean getShowAttributes() { return showAttributes; } public final boolean getShowPrimitives() { return showPrimitives; } public final boolean getShowGeneralizations() { return showGeneralizations; } public final boolean getShowThrows() { return showThrows; } public final int getTopLevelVisIndex() { return topLevelVisIndex; } public final int getMemberVisIndex() { return memberVisIndex; } public final void setShowAttributes(boolean flag) { showAttributes = flag; } public final void setShowPrimitives(boolean flag) { showPrimitives = flag; } public final void setShowGeneralizations(boolean flag) { showGeneralizations = flag; } public final void setShowThrows(boolean flag) { showThrows = flag; } public final void setTopLevelVisIndex(int level) { topLevelVisIndex = level; } public final void setMemberVisIndex(int level) { memberVisIndex = level; } public String toString() { return "What to include:" + "\n\tshowAttributes = " + showAttributes + "\n\tshowPrimitives = " + showPrimitives + "\n\tshowGeneralizations = " + showGeneralizations + "\n\tshowThrows = " + showThrows + "\n\ttopLevelVisIndex = " + topLevelVisIndex + "\n\tmemberVisIndex = " + memberVisIndex; } // toString(): String } // class Options.Filter implements Options.FilterIro { //========================================================================= /** * FilterIro - Interface for Accessing Filter options for JBrowse */ public static interface FilterIro { // Filter options (WHAT) // Accessor methods //--------------------------------------------------------------------- public boolean getShowAttributes(); public boolean getShowPrimitives(); public boolean getShowGeneralizations(); public boolean getShowThrows(); public int getTopLevelVisIndex(); public int getMemberVisIndex(); } // interface Options.FilterIro} // public class Options
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -