# HG changeset patch # User psadhukhan # Date 1553669876 -19800 # Node ID 65030bbf5ac199130753addbd16a1995b46c3822 # Parent 6526e0a7dd996e9018bde6d96a1cf0449aa9473c 8220250: fix headings in java.desktop Reviewed-by: aivanov, jjg, serb diff -r 6526e0a7dd99 -r 65030bbf5ac1 src/java.desktop/share/classes/java/awt/AlphaComposite.java --- a/src/java.desktop/share/classes/java/awt/AlphaComposite.java Wed Mar 27 12:24:28 2019 +0530 +++ b/src/java.desktop/share/classes/java/awt/AlphaComposite.java Wed Mar 27 12:27:56 2019 +0530 @@ -163,7 +163,7 @@ * * * - *

Preparing Inputs

+ *

Preparing Inputs

* *

* The {@code AlphaComposite} class defines an additional alpha @@ -204,7 +204,7 @@ * Cd = Cdr * Ad (if destination is not premultiplied) * Cd = Cdr (if destination is premultiplied) * - *

Applying the Blending Equation

+ *

Applying the Blending Equation

* *

* The adjusted As, Ad, @@ -213,7 +213,7 @@ * Fs and Fd and then the resulting * premultiplied components Ar and Cr. * - *

Preparing Results

+ *

Preparing Results

* *

* The results only need to be adjusted if they are to be stored @@ -230,7 +230,7 @@ * by zero" and the color components are left as * all zeros. * - *

Performance Considerations

+ *

Performance Considerations

* *

* For performance reasons, it is preferable that @@ -243,7 +243,7 @@ * appropriate conversions are performed before and after the compositing * operation. * - *

Implementation Caveats

+ *

Implementation Caveats

* * * - *

Values

+ *

Values

* * - *

Summary of attributes

+ *

Summary of attributes

* * *
Key, value type, principal constants, and default value behavior of diff -r 6526e0a7dd99 -r 65030bbf5ac1 src/java.desktop/share/classes/java/awt/geom/AffineTransform.java --- a/src/java.desktop/share/classes/java/awt/geom/AffineTransform.java Wed Mar 27 12:24:28 2019 +0530 +++ b/src/java.desktop/share/classes/java/awt/geom/AffineTransform.java Wed Mar 27 12:27:56 2019 +0530 @@ -46,7 +46,7 @@ * [ y'] = [ m10 m11 m12 ] [ y ] = [ m10x + m11y + m12 ] * [ 1 ] [ 0 0 1 ] [ 1 ] [ 1 ] * - *

Handling 90-Degree Rotations

+ *

Handling 90-Degree Rotations

*

* In some variations of the {@code rotate} methods in the * {@code AffineTransform} class, a double-precision argument diff -r 6526e0a7dd99 -r 65030bbf5ac1 src/java.desktop/share/classes/javax/accessibility/package-info.java --- a/src/java.desktop/share/classes/javax/accessibility/package-info.java Wed Mar 27 12:24:28 2019 +0530 +++ b/src/java.desktop/share/classes/javax/accessibility/package-info.java Wed Mar 27 12:27:56 2019 +0530 @@ -37,8 +37,8 @@ * interfaces, and 6 Java programming language classes. These are described * below. * - *

Interface - * Accessible

+ *

Interface + * Accessible

* Interface Accessible is the main interface of * the Java Accessibility API. All components that support the Java * Accessibility API must implement this interface. It contains a single method, @@ -48,8 +48,8 @@ * object that is part of the user interface of a Java application, if that * program is to be compatible with assistive technologies. * - *

Class - * AccessibleContext

+ *

Class + * AccessibleContext

* AccessibleContext represents the minimum * information all accessible objects return and is obtained by calling the * {@code getAccessibleContext} method on an object that implements the @@ -108,8 +108,8 @@ * called on an AccessibleContext. * * - *

Class - * AccessibleRole

+ *

Class + * AccessibleRole

* This class encapsulates the Accessible object's role in the user interface * and is obtained by calling the {@code getAccessibleRole} method on an * AccessibleContext. Accessible roles include @@ -123,8 +123,8 @@ * programmer-defined roles can be added in the future without needing to modify * the base class. * - *

Class - * AccessibleState

+ *

Class + * AccessibleState

* This class encapsulates a particular state of the Accessible object. * Accessible states include things like "Armed", "Busy", "Checked", "Focused", * etc. These roles are identified by the constants in this class such as @@ -142,8 +142,8 @@ * additional, programmer-defined roles can be added in the future without * needing to modify the base class. * - *

Class - * AccessibleStateSet

+ *

Class + * AccessibleStateSet

* This class encapsulates a collection of states of the Accessible object and * is obtained by calling the {@code getAccessibleStateSet} method on an * AccessibleContext. Since an object might @@ -152,8 +152,8 @@ * class provide for retrieving the individual * AccessibleStates on the state set. * - *

Class - * AccessibleBundle

+ *

Class + * AccessibleBundle

* This class is used to maintain a strongly typed enumeration. It is the super * class of both the AccessibleRole and * AccessibleState classes. Programmers normally @@ -161,8 +161,8 @@ * AccessibleRole and * AccessibleState classes. * - *

Interface - * AccessibleAction

+ *

Interface + * AccessibleAction

* The AccessibleAction interface should be * supported by any object that can perform one or more actions. This interface * provides the standard mechanism for an assistive technology to determine what @@ -177,8 +177,8 @@ * AccessibleContext. If the return value is * not {@code null}, the object supports this interface. * - *

- * Interface AccessibleComponent

+ *

+ * Interface AccessibleComponent

* The AccessibleComponent interface * should be supported by any object that is rendered on the screen. This * interface provides the standard mechanism for an assistive technology to @@ -190,8 +190,8 @@ * AccessibleContext. If the return value is * not {@code null}, the object supports this interface. * - *

- * Interface AccessibleSelection

+ *

+ * Interface AccessibleSelection

* The AccessibleSelection interface * provides the standard mechanism for an assistive technology to determine what * the current selected children are, as well as modify the selection set. Any @@ -206,8 +206,8 @@ * AccessibleContext. If the return value is * not {@code null}, the object supports this interface. * - *

Interface - * AccessibleText

+ *

Interface + * AccessibleText

* Interface AccessibleText is the contract * for making rich, editable text Accessible. Not all text displayed on the * screen is rich and editable (e.g. text contained in buttons, labels, menus, @@ -230,8 +230,8 @@ * AccessibleContext. If the return value is * not {@code null}, the object supports this interface. * - *

- * Interface AccessibleHypertext

+ *

+ * Interface AccessibleHypertext

* The AccessibleHypertext interface * should be supported by any object that presents hypertext information on the * display. This interface provides the standard mechanism for an assistive @@ -246,16 +246,16 @@ * class which extends AccessibleHypertext, then that object supports * AccessibleHypertext. * - *

- * Interface AccessibleHyperlink

+ *

+ * Interface AccessibleHyperlink

* An object that is a hyperlink should support the * AccessibleHyperlink interface.  * An object that implements this interface will be returned by calling the * getLink method on an AccessibleHypertext * object. * - *

Interface - * AccessibleValue

+ *

Interface + * AccessibleValue

* The AccessibleValue interface should be * supported by any object that supports a numerical value (e.g., a scroll bar). * This interface provides the standard mechanism for an assistive technology to diff -r 6526e0a7dd99 -r 65030bbf5ac1 src/java.desktop/share/classes/javax/print/DocFlavor.java --- a/src/java.desktop/share/classes/javax/print/DocFlavor.java Wed Mar 27 12:24:28 2019 +0530 +++ b/src/java.desktop/share/classes/javax/print/DocFlavor.java Wed Mar 27 12:27:56 2019 +0530 @@ -60,7 +60,7 @@ * class, from which the {@code DocPrintJob} then obtains the actual print data. * *
- *

Client Formatted Print Data

+ *

Client Formatted Print Data

* There are two broad categories of print data, client formatted print data and * service formatted print data. *

@@ -120,7 +120,7 @@ * * *


- *

Default and Platform Encodings

+ *

Default and Platform Encodings

* For byte print data where the doc flavor's MIME type does not include a * {@code charset} parameter, the Java Print Service instance assumes the * US-ASCII character set by default. This is in accordance with @@ -161,7 +161,7 @@ * the Java platform. * *
- *

Recommended DocFlavors

+ *

Recommended DocFlavors

* The Java Print Service API does not define any mandatorily supported * {@code DocFlavors}. However, here are some examples of MIME types that a Java * Print Service instance might support for client formatted print data. Nested @@ -261,7 +261,7 @@ * * *
- *

Service Formatted Print Data

+ *

Service Formatted Print Data

* For service formatted print data, the Java Print Service instance * determines the print data format. The doc flavor's representation class * denotes an interface whose methods the {@code DocPrintJob} invokes to @@ -296,7 +296,7 @@ * * *
- *

Pre-defined Doc Flavors

+ *

Pre-defined Doc Flavors

* A Java Print Service instance is not required to support the * following print data formats and print data representation classes. In fact, * a developer using this class should never assume that a particular @@ -342,7 +342,7 @@ * The client must itself perform all plain text print data formatting not * addressed by the above requirements. * - *

Design Rationale

+ *

Design Rationale

* Class {@code DocFlavor} in package {@code javax.print} is similar to class * {@link java.awt.datatransfer.DataFlavor}. Class {@code DataFlavor} is not * used in the Java Print Service (JPS) API for three reasons which are all diff -r 6526e0a7dd99 -r 65030bbf5ac1 src/java.desktop/share/classes/javax/print/attribute/package-info.java --- a/src/java.desktop/share/classes/javax/print/attribute/package-info.java Wed Mar 27 12:24:28 2019 +0530 +++ b/src/java.desktop/share/classes/javax/print/attribute/package-info.java Wed Mar 27 12:27:56 2019 +0530 @@ -27,7 +27,7 @@ * Provides classes and interfaces that describe the types of Java™ Print * Service attributes and how they can be collected into attribute sets. * - *

What is an Attribute?

+ *

What is an Attribute?

* When setting up a print job, a client specifies two things: print data * and processing instructions. The print data is the actual content to * be printed. The processing instructions tell the printer how to print the @@ -60,7 +60,7 @@ * instructions as descriptive items provides more flexibility for implementing * print jobs. * - *

Attribute Categories and Values

+ *

Attribute Categories and Values

* Each printer has a set of capabilities, such as the ability to print on * different paper sizes or the ability to print more than one copy. Each of the * capabilities has a range of values. For example, a printer's orientation @@ -80,7 +80,7 @@ * attribute category, and the {@code Copies} instance represents the attribute * value. * - *

Attribute Roles

+ *

Attribute Roles

* When submitting a print job to a printer, the client provides the attributes * describing the characteristics of the print data, such as the document name, * and how the print data should be printed, such as double-sided, five copies. @@ -128,7 +128,7 @@ * conceptually separate from the generic apparatus defined in package * {@code javax.print.attribute}. * - *

Attribute Sets

+ *

Attribute Sets

* A client usually needs to provide more than one processing instruction when * submitting a print job. For example, the client might need to specify a media * size of A4 and a landscape orientation. To send more than one processing @@ -201,7 +201,7 @@ * restriction that the attribute set is only allowed to contain the * corresponding kind of attribute. * - *

Attribute Class Design

+ *

Attribute Class Design

* An attribute value is a small, atomic data item, such as an integer or an * enumerated value. The Java Print Service API does not use primitive data * types, such as int, to represent attribute values for these reasons: @@ -295,7 +295,7 @@ * references can be passed around freely. To get a different attribute value, * construct a different attribute object. * - *

Attribute Vendors

+ *

Attribute Vendors

* The Java Print Service API is designed so that vendors can: * * - *

Print Service Discovery

+ *

Print Service Discovery

* An application invokes the static methods of the abstract class * {@link javax.print.PrintServiceLookup PrintServiceLookup} to locate print * services that have the capabilities to satisfy the application's print @@ -48,7 +48,7 @@ * dynamically install these {@code PrintServiceLookup} implementations using * the {@link java.util.ServiceLoader} facility. * - *

Attribute Definitions

+ *

Attribute Definitions

* The {@link javax.print.attribute} and {@link javax.print.attribute.standard} * packages define print attributes, which describe the capabilities of a print * service, specify the requirements of a print job, and track the progress of a @@ -65,7 +65,7 @@ * capabilities, such as: resolution, copies, media sizes, job priority, and * page ranges. * - *

Document Type Specification

+ *

Document Type Specification

* The {@link javax.print.DocFlavor DocFlavor} class represents the print data * format, such as JPEG or PostScript. A {@code DocFlavor} object consists of a * MIME type, which describes the format, and a document representation class @@ -74,7 +74,7 @@ * find printers that can print the document type specified by the * {@code DocFlavor} and have the capabilities specified by the attribute set. * - *

Using the API

+ *

Using the API

* A typical application using the Java Print Service API performs these steps * to process a print request: *
    diff -r 6526e0a7dd99 -r 65030bbf5ac1 src/java.desktop/share/classes/javax/swing/Action.java --- a/src/java.desktop/share/classes/javax/swing/Action.java Wed Mar 27 12:24:28 2019 +0530 +++ b/src/java.desktop/share/classes/javax/swing/Action.java Wed Mar 27 12:27:56 2019 +0530 @@ -69,7 +69,7 @@ * are desired, and use simple ActionListeners elsewhere. *
    * - *

    Swing Components Supporting Action

    + *

    Swing Components Supporting Action

    *

    * Many of Swing's components have an Action property. When * an Action is set on a component, the following things diff -r 6526e0a7dd99 -r 65030bbf5ac1 src/java.desktop/share/classes/javax/swing/GroupLayout.java --- a/src/java.desktop/share/classes/javax/swing/GroupLayout.java Wed Mar 27 12:24:28 2019 +0530 +++ b/src/java.desktop/share/classes/javax/swing/GroupLayout.java Wed Mar 27 12:27:56 2019 +0530 @@ -2377,7 +2377,7 @@ * {@code ParallelGroup} aligns its children in * four possible ways: along the baseline, centered, anchored to the * leading edge, or anchored to the trailing edge. - *

    Baseline

    + *

    Baseline

    * A {@code ParallelGroup} that aligns its children along the * baseline must first decide where the baseline is * anchored. The baseline can either be anchored to the top, or @@ -2427,7 +2427,7 @@ * ways: centered, anchored to the leading edge, or anchored to the * trailing edge. * - *

    Non-baseline {@code ParallelGroup}

    + *

    Non-baseline {@code ParallelGroup}

    * {@code ParallelGroup}s created with an alignment other than * {@code BASELINE} align elements that are smaller than the size * of the group in one of three ways: centered, anchored to the diff -r 6526e0a7dd99 -r 65030bbf5ac1 src/java.desktop/share/classes/javax/swing/JTable.java --- a/src/java.desktop/share/classes/javax/swing/JTable.java Wed Mar 27 12:24:28 2019 +0530 +++ b/src/java.desktop/share/classes/javax/swing/JTable.java Wed Mar 27 12:27:56 2019 +0530 @@ -3050,9 +3050,9 @@ * of elements with a size, preferred size, maximum size and minimum size * to have its elements manipulated by the algorithm. * - *

    Distributing the delta

    - * - *

    Overview

    + *

    Distributing the delta

    + * + *
    Overview
    *

    * Call "DELTA" the difference between the target size and the * sum of the preferred sizes of the elements in r. The individual @@ -3061,7 +3061,7 @@ * how far each preferred size is from its limiting bound (minimum or * maximum). * - *

    Definition

    + *
    Definition
    *

    * Call the individual constraints min[i], max[i], and pref[i]. *

    @@ -3093,7 +3093,7 @@ * k, towards the total minimum or maximum and that percentage guarantees * accommodation of the required space, DELTA. * - *

    Details

    + *
    Details
    *

    * Naive evaluation of the formulae presented here would be subject to * the aggregated rounding errors caused by doing this operation in finite @@ -3104,7 +3104,7 @@ * targetSize, and does so by spreading the rounding * errors evenly over the given elements. * - *

    When the MAX and MIN bounds are hit

    + *
    When the MAX and MIN bounds are hit
    *

    * When targetSize is outside the [MIN, MAX] range, * the algorithm sets all sizes to their appropriate limiting value diff -r 6526e0a7dd99 -r 65030bbf5ac1 src/java.desktop/share/classes/javax/swing/SizeSequence.java --- a/src/java.desktop/share/classes/javax/swing/SizeSequence.java Wed Mar 27 12:24:28 2019 +0530 +++ b/src/java.desktop/share/classes/javax/swing/SizeSequence.java Wed Mar 27 12:27:56 2019 +0530 @@ -76,7 +76,7 @@ * could be just as valid. * * - *

    Implementation Notes

    + *

    Implementation Notes

    * * Normally when storing the size and position of entries, * one would choose between diff -r 6526e0a7dd99 -r 65030bbf5ac1 src/java.desktop/share/classes/javax/swing/SpringLayout.java --- a/src/java.desktop/share/classes/javax/swing/SpringLayout.java Wed Mar 27 12:24:28 2019 +0530 +++ b/src/java.desktop/share/classes/javax/swing/SpringLayout.java Wed Mar 27 12:27:56 2019 +0530 @@ -128,9 +128,9 @@ * the edges of components from different containers (either internal or * external) is undefined. * - *

    + *

    * SpringLayout vs. Other Layout Managers - *

    + * * *
    *
    diff -r 6526e0a7dd99 -r 65030bbf5ac1 src/java.desktop/share/classes/javax/swing/UIManager.java --- a/src/java.desktop/share/classes/javax/swing/UIManager.java Wed Mar 27 12:24:28 2019 +0530 +++ b/src/java.desktop/share/classes/javax/swing/UIManager.java Wed Mar 27 12:27:56 2019 +0530 @@ -70,7 +70,7 @@ * are notified when the look and feel changes, look and feel defaults, and * convenience methods for obtaining various default values. * - *

    Specifying the look and feel

    + *

    Specifying the look and feel

    * * The look and feel can be specified in two distinct ways: by * specifying the fully qualified name of the class for the look and @@ -94,7 +94,7 @@ * unspecified. It is very possible to receive unexpected exceptions, * painting problems, or worse. * - *

    Default look and feel

    + *

    Default look and feel

    * * The class used for the default look and feel is chosen in the following * manner: @@ -114,7 +114,7 @@ *
  1. Otherwise use the cross platform look and feel. *
* - *

Defaults

+ *

Defaults

* * {@code UIManager} manages three sets of {@code UIDefaults}. In order, they * are: diff -r 6526e0a7dd99 -r 65030bbf5ac1 src/java.desktop/share/classes/javax/swing/plaf/metal/DefaultMetalTheme.java --- a/src/java.desktop/share/classes/javax/swing/plaf/metal/DefaultMetalTheme.java Wed Mar 27 12:24:28 2019 +0530 +++ b/src/java.desktop/share/classes/javax/swing/plaf/metal/DefaultMetalTheme.java Wed Mar 27 12:27:56 2019 +0530 @@ -42,7 +42,7 @@ * All colors returned by {@code DefaultMetalTheme} are completely * opaque. * - *

Font Style

+ *

Font Style

* * {@code DefaultMetalTheme} uses bold fonts for many controls. To make all * controls (with the exception of the internal frame title bars and