W3cubDocs

/OpenJDK 8 GUI

Class DefaultTreeCellEditor.EditorContainer

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable
Enclosing class:
DefaultTreeCellEditor
public class DefaultTreeCellEditor.EditorContainer
extends Container

Container responsible for placing the editingComponent.

Nested Classes

Nested classes/interfaces inherited from class java.awt.Container

Container.AccessibleAWTContainer

Nested classes/interfaces inherited from class java.awt.Component

Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy

Fields

Fields inherited from class java.awt.Component

accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT

Fields inherited from interface java.awt.image.ImageObserver

ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH

Constructors

EditorContainer

public EditorContainer()

Constructs an EditorContainer object.

Methods

EditorContainer

public void EditorContainer()

paint

public void paint(Graphics g)

Overrides Container.paint to paint the node's icon and use the selection color for the background.

Overrides:
paint in class Container
Parameters:
g - the specified Graphics window
See Also:
Component.update(Graphics)

doLayout

public void doLayout()

Lays out this Container. If editing, the editor will be placed at offset in the x direction and 0 for y.

Overrides:
doLayout in class Container
See Also:
LayoutManager.layoutContainer(java.awt.Container), Container.setLayout(java.awt.LayoutManager), Container.validate()

getPreferredSize

public Dimension getPreferredSize()

Returns the preferred size for the Container. This will be at least preferred size of the editor plus offset.

Overrides:
getPreferredSize in class Container
Returns:
a Dimension containing the preferred size for the Container; if editingComponent is null the Dimension returned is 0, 0
See Also:
Container.getMinimumSize(), Container.getMaximumSize(), Container.getLayout(), LayoutManager.preferredLayoutSize(Container), Component.getPreferredSize()

© 1993–2017, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.