Package org.eclipse.draw2d

Examples of org.eclipse.draw2d.Label


  /**
   * @generated
   */
  protected IFigure createSelectionFeedbackFigure() {
    if (getHostFigure() instanceof Label) {
      Label feedbackFigure = new Label();
      feedbackFigure.setOpaque(true);
      feedbackFigure
          .setBackgroundColor(ColorConstants.menuBackgroundSelected);
      feedbackFigure
          .setForegroundColor(ColorConstants.menuForegroundSelected);
      return feedbackFigure;
    } else {
      RectangleFigure feedbackFigure = new RectangleFigure();
      feedbackFigure.setFill(false);
      return feedbackFigure;
    }
  }
View Full Code Here


  /**
   * @generated
   */
  protected void updateLabel(Label target) {
    Label source = (Label) getHostFigure();
    target.setText(source.getText());
    target.setTextAlignment(source.getTextAlignment());
    target.setFont(source.getFont());
  }
View Full Code Here

      this.setLineWidth(0);
      this.setPreferredSize(new Dimension(getMapMode().DPtoLP(3),
          getMapMode().DPtoLP(3)));

      this.setBackgroundColor(setColor());
      this.setToolTip(new Label(setToolTip()));

    }
View Full Code Here

  /**
   * @generated
   */
  protected IFigure createSelectionFeedbackFigure() {
    if (getHostFigure() instanceof Label) {
      Label feedbackFigure = new Label();
      feedbackFigure.setOpaque(true);
      feedbackFigure
          .setBackgroundColor(ColorConstants.menuBackgroundSelected);
      feedbackFigure
          .setForegroundColor(ColorConstants.menuForegroundSelected);
      return feedbackFigure;
    } else {
      RectangleFigure feedbackFigure = new RectangleFigure();
      feedbackFigure.setFill(false);
      return feedbackFigure;
    }
  }
View Full Code Here

  /**
   * @generated
   */
  protected void updateLabel(Label target) {
    Label source = (Label) getHostFigure();
    target.setText(source.getText());
    target.setTextAlignment(source.getTextAlignment());
    target.setFont(source.getFont());
  }
View Full Code Here

                clientArea.shrink(ShapeConstants.CLIENT_AREA_INSETS);
                return clientArea;
            }
        };

        label = new Label();
        label.setText((String) getPropertyValue(ShapeConstants.NAME));
        label.setIcon(getIcon());
       
        figure.setSize(150, 40);
        GridLayout layout = new GridLayout();
View Full Code Here

                clientArea.shrink(ShapeConstants.CLIENT_AREA_INSETS);
                return clientArea;
            }
        };

        label = new Label();
        label.setText((String) getPropertyValue(ShapeConstants.NAME));
        label.setIcon(getIcon());
       
        figure.setSize(150, 40);
        GridLayout layout = new GridLayout();
View Full Code Here

                clientArea.shrink(ShapeConstants.CLIENT_AREA_INSETS);
                return clientArea;
            }
        };

        label = new Label();
        label.setText((String) getPropertyValue(ShapeConstants.NAME));
        label.setIcon(getIcon());
       
        figure.setSize(150, 40);
        GridLayout layout = new GridLayout();
View Full Code Here

       
        label.setTextAlignment(PositionConstants.LEFT);
        figure.add(label);
       
        for (COLUMN col : columns) {
            Label lbl = new Label(col.name + ": " + col.type);
            figure.add(lbl);
        }
       
        return figure;
    }
View Full Code Here

    Image image = getImage(marker);
    String text = getText(marker);
    if (image != null) {
      ImageFigure imageFigure = new ImageFigure(image);
      if (text != null) {
        imageFigure.setToolTip(new Label(text));
      }
      return imageFigure;
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.draw2d.Label

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.