java.awt

Enum Component.BaselineResizeBehavior

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Component.BaselineResizeBehavior>
    Enclosing class:
    Component
    public static enum Component.BaselineResizeBehavior extends java.lang.Enum<Component.BaselineResizeBehavior>
    Enumeration of the common ways the baseline of a component can change as the size changes. The baseline resize behavior is primarily for layout managers that need to know how the position of the baseline changes as the component size changes. In general the baseline resize behavior will be valid for sizes greater than or equal to the minimum size (the actual minimum size; not a developer specified minimum size). For sizes smaller than the minimum size the baseline may change in a way other than the baseline resize behavior indicates. Similarly, as the size approaches Integer.MAX_VALUE and/or Short.MAX_VALUE the baseline may change in a way other than the baseline resize behavior indicates.
    Since:
    1.6
    See Also:
    Component.getBaselineResizeBehavior(), Component.getBaseline(int,int)
    • Enum Constants 
      Enum Constant and Description
      Ordinary member indicator CENTER_OFFSET Reveal DetailHide Detail
      Indicates the baseline remains a fixed distance from the center of the component.
      Ordinary member indicator CONSTANT_ASCENT Reveal DetailHide Detail
      Indicates the baseline remains fixed relative to the y-origin.
      Ordinary member indicator CONSTANT_DESCENT Reveal DetailHide Detail
      Indicates the baseline remains fixed relative to the height and does not change as the width is varied.
      Ordinary member indicator OTHER Reveal DetailHide Detail
      Indicates the baseline resize behavior can not be expressed using any of the other constants.
    • Static Methods 
      Modifier and Type Static Method and Description
      Ordinary member indicator valueOf Reveal DetailHide Detail
      Returns the enum constant of this type with the specified name.
      Ordinary member indicator values Reveal DetailHide Detail
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Static methods inherited from class java.lang.Enum

        valueOf
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
This document was created by Dulcet from the OpenJDK sources. Copyright © 1993, 2012 Oracle and/or its affiliates. All rights reserved.

SourceForge