/** * {@inheritDoc} */ public void removeStyle(String nm) { ((StyledDocument) delegate).removeStyle(nm); }
/** * {@inheritDoc} */ @Override public void removeStyle(String nm) { ((StyledDocument) delegate).removeStyle(nm); }
/** * {@inheritDoc} */ @Override public void removeStyle(String nm) { ((StyledDocument) delegate).removeStyle(nm); }
/** Removes a style from the logical style hierarchy. @param name The name of the style. **/ public synchronized void removeStyle (String name) { document_.removeStyle (name); }
public void removeStyle(String nm) { ((StyledDocument) original).removeStyle(nm); }
public void removeStyle(String nm) { ((StyledDocument)original).removeStyle (nm); }
public void removeStyle(String nm) { ((StyledDocument)original).removeStyle (nm); }
/** * 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; } }
/** * 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; } }