com.tensegrity.gui.swing.inplaceediting
Class InplaceEditComponent

java.lang.Object
  extended bycom.tensegrity.gui.inplaceediting.InplaceEditor
      extended bycom.tensegrity.gui.swing.inplaceediting.InplaceEditComponent

public abstract class InplaceEditComponent
extends InplaceEditor

Extending objects can be used as inplace editing components in the SwingGraphPanel. Extending classes should overwrite methods InplaceEditor.commitChanges() and InplaceEditor.editingCancelled() with a call to the super-method.

Version:
$Id: InplaceEditComponent.java,v 1.3 2006/01/26 16:25:10 MichaelKegel Exp $
Author:
AndreasEbbert, MKegel

Field Summary
 
Fields inherited from class com.tensegrity.gui.inplaceediting.InplaceEditor
bComp, gPanel, label
 
Constructor Summary
protected InplaceEditComponent(Label2D label, BaseComposite bComp, GraphPanel gp)
           
 
Method Summary
protected  int setFont()
          Mathches the font sizes of the given Label2D with the one of the JComponent used for inplace-editing.
 
Methods inherited from class com.tensegrity.gui.inplaceediting.InplaceEditor
abortEditing, addInplaceEditorListener, commitChanges, editingCancelled, getControl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InplaceEditComponent

protected InplaceEditComponent(Label2D label,
                               BaseComposite bComp,
                               GraphPanel gp)
Method Detail

setFont

protected int setFont()
Mathches the font sizes of the given Label2D with the one of the JComponent used for inplace-editing.

Returns:
the font-size of the Label2D matching the Swing font size.


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.