Examples of TextFigure


Examples of org.eclipse.sapphire.ui.swt.gef.figures.TextFigure

 
  private void performDirectEdit(TextPart textPart)
  {
    if (textPart.isEditable())
    {
      TextFigure textFigure = (TextFigure)getPartFigure(textPart);
      if (textFigure != null)
      {
        DirectEditManager manager = DirectEditorManagerFactory.createDirectEditorManager(this, textPart,
            new NodeCellEditorLocator(getConfigurationManager(), textFigure), textFigure);
        manager.show();
View Full Code Here

Examples of org.eclipse.sapphire.ui.swt.gef.figures.TextFigure

  {
    Point realLocation = this.getConfigurationManager().getDiagramEditor().calculateRealMouseLocation(mouseLocation);
    List<TextPart> textParts = getContainedTextParts();
    for (TextPart textPart : textParts)
    {
      TextFigure textFigure = (TextFigure)getPartFigure(textPart);
      if (textFigure != null && textFigure.getBounds().contains(realLocation))
      {
        return textPart;
      }
    }
    return null;
View Full Code Here

Examples of org.eclipse.sapphire.ui.swt.gef.figures.TextFigure

  public void refreshVisuals()
  {
    super.refreshVisuals();
    if (this.getFigure() != null)
    {
      TextFigure textFigure = (TextFigure)getFigure();
      textFigure.setText(part().getContent());
    }
  }
View Full Code Here

Examples of org.eclipse.sapphire.ui.swt.gef.figures.TextFigure

    public void render()
    {
    IFigure figure = null;
    if (visible())
    {
      figure = new TextFigure(getResourceCache(), this);
    }
    setFigure(figure);
    }  
View Full Code Here

Examples of org.eclipse.sapphire.ui.swt.gef.figures.TextFigure

  {
    part().detach(this.textChangeListener);
  }

  private void refresh() {
    TextFigure textFigure = (TextFigure)getFigure();
    textFigure.setText(getContent());
    // TODO necessary? DiagramNodeEditPart.refreshNodeBounds()
  }
View Full Code Here

Examples of org.eclipse.sapphire.ui.swt.gef.figures.TextFigure

 
  private void performDirectEdit(TextPart textPart)
  {
    if (textPart.isEditable())
    {
      TextFigure textFigure = (TextFigure)getPartFigure(textPart);
      if (textFigure != null)
      {
        DirectEditManager manager = DirectEditorManagerFactory.createDirectEditorManager(this, textPart,
            new NodeCellEditorLocator(getConfigurationManager(), textFigure), textFigure);
        manager.show();
View Full Code Here

Examples of org.eclipse.sapphire.ui.swt.gef.figures.TextFigure

  {
    TextModel textModel = (TextModel)getModel();
    TextPart textPart = (TextPart)textModel.getSapphirePart();   
    if (textPart.isEditable())
    {
      TextFigure textFigure = (TextFigure)getFigure();
      if (textFigure != null)
      {
        DirectEditManager manager = DirectEditorManagerFactory.createDirectEditorManager(this, textPart,
            new NodeCellEditorLocator(getConfigurationManager(), textFigure), textFigure);
        manager.show();
View Full Code Here

Examples of research.figure.TextFigure

     **/

    protected Undoable createUndoActivity(DrawingView newView) {

        if (owner() instanceof TextFigure) {
            TextFigure textOwner = (TextFigure) owner();
            return new UndoActivity(newView, textOwner.getFont());
        }

        if (owner() instanceof TextFigure0) {
            TextFigure0 textOwner = (TextFigure0) owner();
            return new UndoActivity(newView, textOwner.getFont());
        }

        if (owner() instanceof TextAreaFigure) {
            TextAreaFigure textOwner = (TextAreaFigure) owner();
            return new UndoActivity(newView, textOwner.getFont());
        }

        return null;
    }
View Full Code Here

Examples of research.figure.TextFigure

        while (iterator.hasNext()) {
            Integer integer = (Integer) iterator.next();
            Interaction ita = (Interaction) interactionMap.get(integer);
            Figure fig = (Figure) figureList.get(integer.intValue());

            TextFigure title = new TextFigure();
            title.setText(ita.getType() + ":" + ita.getName());
            title.setAttribute("id", ita.getID());
            title.setAttribute("type", "interactionTitle");
            title.setAttribute("isALink", Boolean.TRUE);

            //����id��figure��ӳ���
            if (idToFigureMap != null) {
                idToFigureMap.add(ita.getID(), title);
            }

            drawingView.add(title);
            title.connect(fig);
        }

        drawingView.repairDamage();

    }
View Full Code Here

Examples of research.figure.TextFigure

                    Interaction interaction = interactionModelEditor.addInteraction("type", "name", sID, eID);

                    getConnection().setAttribute("id", interaction.getID());
                    getConnection().setAttribute("type", "interaction");

                    TextFigure title = new TextFigure();
                    title.setText(interaction.getType() + ":" + interaction.getName());
                    title.setAttribute("id", interaction.getID());
                    title.setAttribute("type", "interactionTitle");
                    title.setAttribute("isALink", Boolean.TRUE);

                    drawingView.add(title);
                    title.connect(getConnection());

                    //����id��figure��ӳ���
                    if (idToFigureMap != null) {
                        idToFigureMap.add(interaction.getID(), getConnection());
                        idToFigureMap.add(interaction.getID(), title);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.