本文整理了Java中javax.swing.text.StyledDocument.removeStyle()
方法的一些代码示例,展示了StyledDocument.removeStyle()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。StyledDocument.removeStyle()
方法的具体详情如下:
包路径:javax.swing.text.StyledDocument
类名称:StyledDocument
方法名:removeStyle
暂无
代码示例来源:origin: org.codehaus.jtstand/jtstand-desktop
/**
* {@inheritDoc}
*/
public void removeStyle(String nm) {
((StyledDocument) delegate).removeStyle(nm);
}
代码示例来源:origin: tmyroadctfig/swingx
/**
* {@inheritDoc}
*/
@Override
public void removeStyle(String nm) {
((StyledDocument) delegate).removeStyle(nm);
}
代码示例来源:origin: org.swinglabs.swingx/swingx-all
/**
* {@inheritDoc}
*/
@Override
public void removeStyle(String nm) {
((StyledDocument) delegate).removeStyle(nm);
}
代码示例来源:origin: net.sf.jt400/jt400
/**
Removes a style from the logical style hierarchy.
@param name The name of the style.
**/
public synchronized void removeStyle (String name)
{
document_.removeStyle (name);
}
代码示例来源:origin: org.netbeans.api/org-openide-text
public void removeStyle(String nm) {
((StyledDocument) original).removeStyle(nm);
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
public void removeStyle(String nm) {
((StyledDocument)original).removeStyle (nm);
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
public void removeStyle(String nm) {
((StyledDocument)original).removeStyle (nm);
}
代码示例来源:origin: bbuck/DragonConsole
/**
* This method will remove any and all Styles in the StyledDocument that
* contain it as a foreground or background.
* @param documentToUpdate The document the color should be removed from.
* @param remove The Color that need to be removed.
* @param colors The list of Colors that have been added to the StyledDocument.
* @return The StyledDocument after the colors have been removed.
*/
public static StyledDocument removeColor(StyledDocument documentToUpdate,
TextColor remove, ArrayList<TextColor> colors) {
// Remove this here since this will be called after it's been removed from the list
documentToUpdate.removeStyle("" + remove.getCharCode() + remove.getCharCode());
for (int i = 0; i < colors.size(); i++) {
TextColor temp = colors.get(i);
String s1 = "" + temp.getCharCode() + remove.getCharCode();
String s2 = "" + remove.getCharCode() + temp.getCharCode();
documentToUpdate.removeStyle(s1);
documentToUpdate.removeStyle(s2);
}
return documentToUpdate;
}
}
代码示例来源:origin: org.integratedmodelling/klab-common
/**
* This method will remove any and all Styles in the StyledDocument that
* contain it as a foreground or background.
* @param documentToUpdate The document the color should be removed from.
* @param remove The Color that need to be removed.
* @param colors The list of Colors that have been added to the StyledDocument.
* @return The StyledDocument after the colors have been removed.
*/
public static StyledDocument removeColor(StyledDocument documentToUpdate,
TextColor remove, ArrayList<TextColor> colors) {
// Remove this here since this will be called after it's been removed from the list
documentToUpdate.removeStyle("" + remove.getCharCode() + remove.getCharCode());
for (int i = 0; i < colors.size(); i++) {
TextColor temp = colors.get(i);
String s1 = "" + temp.getCharCode() + remove.getCharCode();
String s2 = "" + remove.getCharCode() + temp.getCharCode();
documentToUpdate.removeStyle(s1);
documentToUpdate.removeStyle(s2);
}
return documentToUpdate;
}
}
内容来源于网络,如有侵权,请联系作者删除!