sk.uniba.euromath.editor.xmlEditor
Class XMLEditPartFactory

java.lang.Object
  extended by sk.uniba.euromath.editor.xmlEditor.XMLEditPartFactory
All Implemented Interfaces:
org.eclipse.gef.EditPartFactory
Direct Known Subclasses:
TextEditPartFactory

public class XMLEditPartFactory
extends Object
implements org.eclipse.gef.EditPartFactory

Author:
Tomáš Studva 31.7.2005

Constructor Summary
XMLEditPartFactory()
          Constructor.
 
Method Summary
 org.eclipse.gef.EditPart createEditPart(org.eclipse.gef.EditPart context, Object model)
          Creates EditPart for model of type IEMFigure.
 IdVisualInfo getVisualInfo()
          Returns IdVisualInfo object.
protected  void updateVisualInfo(IEMFigure figure, XMLEditPart editPart)
          Updates IdVisualInfo to valid state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLEditPartFactory

public XMLEditPartFactory()
Constructor.

Method Detail

updateVisualInfo

protected void updateVisualInfo(IEMFigure figure,
                                XMLEditPart editPart)
Updates IdVisualInfo to valid state.

Parameters:
figure - associated with editpart
editPart - new created editpart, yet not affected IdVisualInfo

createEditPart

public org.eclipse.gef.EditPart createEditPart(org.eclipse.gef.EditPart context,
                                               Object model)
Creates EditPart for model of type IEMFigure. In other model types returns null. Be very careful when overriding. Updates VisualInfo.

Specified by:
createEditPart in interface org.eclipse.gef.EditPartFactory
Parameters:
context - is parent editPart
model - figure for which editPart should be created

getVisualInfo

public IdVisualInfo getVisualInfo()
Returns IdVisualInfo object. Holds which ids have been visualized and by which XMLEditPart

Returns:
IdVisualInfo


Copyright © 2003-2006 null. All Rights Reserved.