Package org.eclipse.sapphire.ui.swt.gef.figures

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


  {
    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

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

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

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

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

 
  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

  {
    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

TOP

Related Classes of org.eclipse.sapphire.ui.swt.gef.figures.TextFigure

Copyright © 2018 www.massapicom. 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.