public class DefaultTreeCellEditor.EditorContainer extends Container
Container responsible for placing the editingComponent
.
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
public EditorContainer()
Constructs an EditorContainer
object.
public void EditorContainer()
public void paint(Graphics g)
Overrides Container.paint
to paint the node's icon and use the selection color for the background.
paint
in class Container
g
- the specified Graphics windowComponent.update(Graphics)
public void doLayout()
Lays out this Container
. If editing, the editor will be placed at offset
in the x direction and 0 for y.
doLayout
in class Container
LayoutManager.layoutContainer(java.awt.Container)
, Container.setLayout(java.awt.LayoutManager)
, Container.validate()
public Dimension getPreferredSize()
Returns the preferred size for the Container
. This will be at least preferred size of the editor plus offset
.
getPreferredSize
in class Container
Dimension
containing the preferred size for the Container
; if editingComponent
is null
the Dimension
returned is 0, 0Container.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.