org.jgraph.graph

Class DefaultGraphCellEditor.EditorContainer

Enclosing Class:
DefaultGraphCellEditor

public class DefaultGraphCellEditor.EditorContainer
extends Container

Container responsible for placing the editingComponent.

Constructor Summary

EditorContainer()
Constructs an EditorContainer object.

Method Summary

void
doLayout()
Lays out this Container.
Dimension
getPreferredSize()
Returns the preferred size for the Container.
void
paint(Graphics g)
Overrides Container.paint to paint the node's icon and use the selection color for the background.

Constructor Details

EditorContainer

public EditorContainer()
Constructs an EditorContainer object.

Method Details

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-2006 Gaudenz Alder. All rights reserved.