jdk/src/java.desktop/share/classes/javax/swing/plaf/SplitPaneUI.java
changeset 26037 508779ce6619
parent 26013 83b99f14245f
parent 25859 3317bb8137f4
equal deleted inserted replaced
25992:e9b05e933ddd 26037:508779ce6619
     1 /*
     1 /*
     2  * Copyright (c) 1997, 1998, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    36 public abstract class SplitPaneUI extends ComponentUI
    36 public abstract class SplitPaneUI extends ComponentUI
    37 {
    37 {
    38     /**
    38     /**
    39      * Messaged to relayout the JSplitPane based on the preferred size
    39      * Messaged to relayout the JSplitPane based on the preferred size
    40      * of the children components.
    40      * of the children components.
       
    41      *
       
    42      * @param jc a {@code JSplitPane}
    41      */
    43      */
    42     public abstract void resetToPreferredSizes(JSplitPane jc);
    44     public abstract void resetToPreferredSizes(JSplitPane jc);
    43 
    45 
    44     /**
    46     /**
    45      * Sets the location of the divider to location.
    47      * Sets the location of the divider to location.
       
    48      *
       
    49      * @param jc a {@code JSplitPane}
       
    50      * @param location an integer specifying the location of the divider
    46      */
    51      */
    47     public abstract void setDividerLocation(JSplitPane jc, int location);
    52     public abstract void setDividerLocation(JSplitPane jc, int location);
    48 
    53 
    49     /**
    54     /**
    50      * Returns the location of the divider.
    55      * Returns the location of the divider.
       
    56      *
       
    57      * @param jc a {@code JSplitPane}
       
    58      * @return an integer specifying the location of the divider
    51      */
    59      */
    52     public abstract int getDividerLocation(JSplitPane jc);
    60     public abstract int getDividerLocation(JSplitPane jc);
    53 
    61 
    54     /**
    62     /**
    55      * Returns the minimum possible location of the divider.
    63      * Returns the minimum possible location of the divider.
       
    64      *
       
    65      * @param jc a {@code JSplitPane}
       
    66      * @return and integer specifying the minimum location of the divider
    56      */
    67      */
    57     public abstract int getMinimumDividerLocation(JSplitPane jc);
    68     public abstract int getMinimumDividerLocation(JSplitPane jc);
    58 
    69 
    59     /**
    70     /**
    60      * Returns the maximum possible location of the divider.
    71      * Returns the maximum possible location of the divider.
       
    72      *
       
    73      * @param jc a {@code JSplitPane}
       
    74      * @return an integer specifying the maximum location of the divider
    61      */
    75      */
    62     public abstract int getMaximumDividerLocation(JSplitPane jc);
    76     public abstract int getMaximumDividerLocation(JSplitPane jc);
    63 
    77 
    64     /**
    78     /**
    65      * Messaged after the JSplitPane the receiver is providing the look
    79      * Messaged after the JSplitPane the receiver is providing the look
    66      * and feel for paints its children.
    80      * and feel for paints its children.
       
    81      *
       
    82      * @param jc a {@code JSplitPane}
       
    83      * @param g the {@code Graphics} context
    67      */
    84      */
    68     public abstract void finishedPaintingChildren(JSplitPane jc, Graphics g);
    85     public abstract void finishedPaintingChildren(JSplitPane jc, Graphics g);
    69 }
    86 }