当前位置: 首页>>代码示例>>Java>>正文


Java Gutter.getLineNumberColor方法代码示例

本文整理汇总了Java中org.fife.ui.rtextarea.Gutter.getLineNumberColor方法的典型用法代码示例。如果您正苦于以下问题:Java Gutter.getLineNumberColor方法的具体用法?Java Gutter.getLineNumberColor怎么用?Java Gutter.getLineNumberColor使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.fife.ui.rtextarea.Gutter的用法示例。


在下文中一共展示了Gutter.getLineNumberColor方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: Theme

import org.fife.ui.rtextarea.Gutter; //导入方法依赖的package包/类
/**
 * Creates a theme from an RSyntaxTextArea.  It should be contained in
 * an <code>RTextScrollPane</code> to get all gutter color information.
 *
 * @param textArea The text area.
 */
public Theme(RSyntaxTextArea textArea) {

	baseFont = textArea.getFont();
	bgColor = textArea.getBackground();
	caretColor = textArea.getCaretColor();
	useSelctionFG = textArea.getUseSelectedTextColor();
	selectionFG = textArea.getSelectedTextColor();
	selectionBG = textArea.getSelectionColor();
	selectionRoundedEdges = textArea.getRoundedSelectionEdges();
	currentLineHighlight = textArea.getCurrentLineHighlightColor();
	fadeCurrentLineHighlight = textArea.getFadeCurrentLineHighlight();
	marginLineColor = textArea.getMarginLineColor();
	markAllHighlightColor = textArea.getMarkAllHighlightColor();
	markOccurrencesColor = textArea.getMarkOccurrencesColor();
	markOccurrencesBorder = textArea.getPaintMarkOccurrencesBorder();
	matchedBracketBG = textArea.getMatchedBracketBGColor();
	matchedBracketFG = textArea.getMatchedBracketBorderColor();
	matchedBracketHighlightBoth = textArea.getPaintMatchedBracketPair();
	matchedBracketAnimate = textArea.getAnimateBracketMatching();
	hyperlinkFG = textArea.getHyperlinkForeground();

	int count = textArea.getSecondaryLanguageCount();
	secondaryLanguages = new Color[count];
	for (int i=0; i<count; i++) {
		secondaryLanguages[i]= textArea.getSecondaryLanguageBackground(i+1);
	}

	scheme = textArea.getSyntaxScheme();

	Gutter gutter = RSyntaxUtilities.getGutter(textArea);
	if (gutter!=null) {
		bgColor = gutter.getBackground();
		gutterBorderColor = gutter.getBorderColor();
		activeLineRangeColor = gutter.getActiveLineRangeColor();
		iconRowHeaderInheritsGutterBG = gutter.getIconRowHeaderInheritsGutterBackground();
		lineNumberColor = gutter.getLineNumberColor();
		lineNumberFont = gutter.getLineNumberFont().getFamily();
		lineNumberFontSize = gutter.getLineNumberFont().getSize();
		foldIndicatorFG = gutter.getFoldIndicatorForeground();
		foldBG = gutter.getFoldBackground();
	}

}
 
开发者ID:curiosag,项目名称:ftc,代码行数:50,代码来源:Theme.java

示例2: Theme

import org.fife.ui.rtextarea.Gutter; //导入方法依赖的package包/类
/**
 * Creates a theme from an RSyntaxTextArea.  It should be contained in
 * an <code>RTextScrollPane</code> to get all gutter color information.
 *
 * @param textArea The text area.
 */
public Theme(RSyntaxTextArea textArea) {

	baseFont = textArea.getFont();
	bgColor = textArea.getBackground();
	caretColor = textArea.getCaretColor();
	useSelctionFG = textArea.getUseSelectedTextColor();
	selectionFG = textArea.getSelectedTextColor();
	selectionBG = textArea.getSelectionColor();
	selectionRoundedEdges = textArea.getRoundedSelectionEdges();
	currentLineHighlight = textArea.getCurrentLineHighlightColor();
	fadeCurrentLineHighlight = textArea.getFadeCurrentLineHighlight();
	marginLineColor = textArea.getMarginLineColor();
	markAllHighlightColor = textArea.getMarkAllHighlightColor();
	markOccurrencesColor = textArea.getMarkOccurrencesColor();
	markOccurrencesBorder = textArea.getPaintMarkOccurrencesBorder();
	matchedBracketBG = textArea.getMatchedBracketBGColor();
	matchedBracketFG = textArea.getMatchedBracketBorderColor();
	matchedBracketHighlightBoth = textArea.getPaintMatchedBracketPair();
	matchedBracketAnimate = textArea.getAnimateBracketMatching();
	hyperlinkFG = textArea.getHyperlinkForeground();

	int count = textArea.getSecondaryLanguageCount();
	secondaryLanguages = new Color[count];
	for (int i=0; i<count; i++) {
		secondaryLanguages[i]= textArea.getSecondaryLanguageBackground(i+1);
	}

	scheme = textArea.getSyntaxScheme();

	Gutter gutter = RSyntaxUtilities.getGutter(textArea);
	if (gutter!=null) {
		bgColor = gutter.getBackground();
		gutterBorderColor = gutter.getBorderColor();
		lineNumberColor = gutter.getLineNumberColor();
		lineNumberFont = gutter.getLineNumberFont().getFamily();
		lineNumberFontSize = gutter.getLineNumberFont().getSize();
		foldIndicatorFG = gutter.getFoldIndicatorForeground();
		foldBG = gutter.getFoldBackground();
	}

}
 
开发者ID:Nanonid,项目名称:RSyntaxTextArea,代码行数:48,代码来源:Theme.java


注:本文中的org.fife.ui.rtextarea.Gutter.getLineNumberColor方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。