< prev index next >

src/java.desktop/share/classes/javax/swing/text/html/NoFramesView.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1998, 2000, 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) 1998, 2017, 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
*** 57,67 **** * Otherwise it invokes the superclass. * * @param g the rendering surface to use * @param allocation the allocated region to render into * @see #isVisible ! * @see text.ParagraphView#paint */ public void paint(Graphics g, Shape allocation) { Container host = getContainer(); if (host != null && visible != ((JTextComponent)host).isEditable()) { --- 57,67 ---- * Otherwise it invokes the superclass. * * @param g the rendering surface to use * @param allocation the allocated region to render into * @see #isVisible ! * @see javax.swing.text.ParagraphView#paint */ public void paint(Graphics g, Shape allocation) { Container host = getContainer(); if (host != null && visible != ((JTextComponent)host).isEditable()) {
*** 124,134 **** * @param axis may be either View.X_AXIS or View.Y_AXIS * @return the span the view would like to be rendered into; * typically the view is told to render into the span * that is returned, although there is no guarantee; * the parent may choose to resize or break the view ! * @see text.ParagraphView#getPreferredSpan */ public float getPreferredSpan(int axis) { if (!visible) { return 0; } --- 124,134 ---- * @param axis may be either View.X_AXIS or View.Y_AXIS * @return the span the view would like to be rendered into; * typically the view is told to render into the span * that is returned, although there is no guarantee; * the parent may choose to resize or break the view ! * @see javax.swing.text.ParagraphView#getPreferredSpan */ public float getPreferredSpan(int axis) { if (!visible) { return 0; }
*** 141,151 **** * it calls the superclass method to get the minimum span. * * @param axis may be either <code>View.X_AXIS</code> or * <code>View.Y_AXIS</code> * @return the minimum span the view can be rendered into ! * @see text.ParagraphView#getMinimumSpan */ public float getMinimumSpan(int axis) { if (!visible) { return 0; } --- 141,151 ---- * it calls the superclass method to get the minimum span. * * @param axis may be either <code>View.X_AXIS</code> or * <code>View.Y_AXIS</code> * @return the minimum span the view can be rendered into ! * @see javax.swing.text.ParagraphView#getMinimumSpan */ public float getMinimumSpan(int axis) { if (!visible) { return 0; }
*** 158,168 **** * it calls the superclass method ot get the maximum span. * * @param axis may be either <code>View.X_AXIS</code> or * <code>View.Y_AXIS</code> * @return the maximum span the view can be rendered into ! * @see text.ParagraphView#getMaximumSpan */ public float getMaximumSpan(int axis) { if (!visible) { return 0; } --- 158,168 ---- * it calls the superclass method ot get the maximum span. * * @param axis may be either <code>View.X_AXIS</code> or * <code>View.Y_AXIS</code> * @return the maximum span the view can be rendered into ! * @see javax.swing.text.ParagraphView#getMaximumSpan */ public float getMaximumSpan(int axis) { if (!visible) { return 0; }
< prev index next >