org.jgraph.graph

Class DefaultGraphCellEditor.EditorContainer

public class DefaultGraphCellEditor.EditorContainer extends Container

Container responsible for placing the editingComponent.
Constructor Summary
EditorContainer()
Constructs an EditorContainer object.
Method Summary
voiddoLayout()
Lays out this Container.
DimensiongetPreferredSize()
Returns the preferred size for the Container.
voidpaint(Graphics g)
Overrides Container.paint to paint the node's icon and use the selection color for the background.

Constructor Detail

EditorContainer

public EditorContainer()
Constructs an EditorContainer object.

Method Detail

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.

getPreferredSize

public Dimension getPreferredSize()
Returns the preferred size for the Container. This will be the preferred size of the editor offset by offset.

paint

public void paint(Graphics g)
Overrides Container.paint to paint the node's icon and use the selection color for the background.
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.