< prev index next >

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

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1999, 2006, 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) 1999, 2014, 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
*** 216,225 **** --- 216,226 ---- SegmentCache.releaseSharedSegment(s); int p1 = p0 + index; return p1; } + @SuppressWarnings("deprecation") void sync(GlyphView v) { Font f = v.getFont(); if ((metrics == null) || (! f.equals(metrics.getFont()))) { // fetch a new FontMetrics Container c = v.getContainer();
< prev index next >