< prev index next >

src/java.desktop/share/classes/javax/swing/text/DefaultHighlighter.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 334,348 **** --- 334,353 ---- * the Views will call into <code>paintLayeredHighlight</code> which * will result in a rectangle being drawn before the text is drawn * (if the offsets are in a highlighted region that is). For this to * work the painter supplied must be an instance of * LayeredHighlightPainter. + * @param newValue the new value */ public void setDrawsLayeredHighlights(boolean newValue) { drawsLayeredHighlights = newValue; } + /** + * Return the draw layered highlights. + * @return the draw layered highlights + */ public boolean getDrawsLayeredHighlights() { return drawsLayeredHighlights; } // ---- member variables --------------------------------------------
< prev index next >