Examples of XYLayout


Examples of org.eclipse.draw2d.XYLayout

    /**
     * @generated
     */
    public NeuralInputTypeFigure() {
      this.setLayoutManager(new XYLayout());
      this.setLineWidth(3);
      this.setForegroundColor(THIS_FORE);
      this.setBackgroundColor(THIS_BACK);
      this.setPreferredSize(new Dimension(getMapMode().DPtoLP(100),
          getMapMode().DPtoLP(100)));
View Full Code Here

Examples of org.eclipse.draw2d.XYLayout

    /**
     * @generated
     */
    public NeuralOutputTypeFigure() {
      this.setLayoutManager(new XYLayout());
      this.setLineWidth(3);
      this.setForegroundColor(THIS_FORE);
      this.setBackgroundColor(THIS_BACK);
      this.setPreferredSize(new Dimension(getMapMode().DPtoLP(100),
          getMapMode().DPtoLP(100)));
View Full Code Here

Examples of org.eclipse.draw2d.XYLayout

    /**
     * @generated
     */
    public NeuralOutputsTypeFigure() {
      this.setLayoutManager(new XYLayout());
      this.setCornerDimensions(new Dimension(getMapMode().DPtoLP(0),
          getMapMode().DPtoLP(0)));
      this.setOutline(false);
      this.setLineWidth(0);
      this.setBackgroundColor(THIS_BACK);
View Full Code Here

Examples of org.eclipse.draw2d.XYLayout

    outputPorts = new LinkedHashMap<String, Label>();

    // necessary for adjustSize
    setFont(font);

    setLayoutManager(new XYLayout());
    initLabels();
    initShape(shape, color, dimension);
  }
View Full Code Here

Examples of org.eclipse.draw2d.XYLayout

    /**
     * @generated
     */
    public NeuralLayerTypeFigure() {
      this.setLayoutManager(new XYLayout());
      this.setCornerDimensions(new Dimension(getMapMode().DPtoLP(0),
          getMapMode().DPtoLP(0)));
      this.setOutline(false);
      this.setLineWidth(0);
      this.setBackgroundColor(THIS_BACK);
View Full Code Here

Examples of org.eclipse.draw2d.XYLayout

public class GraphFigure extends Figure {
  private XYLayout layout;

  public GraphFigure(Sequence sequence) {
    this.layout = new XYLayout();
    setLayoutManager(this.layout);

    long startTime = sequence.getStartTime();
    long endTime = sequence.getEndTime();
    long during = endTime - startTime;
View Full Code Here

Examples of org.eclipse.draw2d.XYLayout

   
//    private GraphLayoutManager graphLayoutManager;

    protected IFigure createFigure() {
        Figure f = new Figure();
        f.setLayoutManager(new XYLayout());
//        graphLayoutManager = new GraphLayoutManager(this);
//        f.setLayoutManager(graphLayoutManager);
//        graphLayoutManager.layout(f);
        return f;
    }
View Full Code Here

Examples of org.eclipse.draw2d.XYLayout

   * context button pad at the correct location.
   */
  private void createContextButtons() {
    List<PositionedContextButton> positionedButtons = getDeclaration().getPositionedContextButtons();

    setLayoutManager(new XYLayout());

    for (PositionedContextButton positionedButton : positionedButtons) {
      Rectangle position = transformGenericRectangle(positionedButton.getPosition(), 0);
      // translate position relative to bounds (after the bounds are set!)
      position.translate(-getBounds().getTopLeft().x, -getBounds().getTopLeft().y);
View Full Code Here

Examples of org.eclipse.draw2d.XYLayout

  public NodeFigure(boolean hasImage, DiagramResourceCache resourceCache) {
    this.hasImage = hasImage;
    this.resourceCache = resourceCache;
   
    this.setForegroundColor(resourceCache.getColor(DEFAULT_NODE_FOREGROUND));
    setLayoutManager(new XYLayout());

    labelFigure = new Label();
    labelFigure.setForegroundColor(resourceCache.getColor(DEFAULT_TEXT_FOREGROUND));
    labelFigure.setLabelAlignment(PositionConstants.CENTER);
    labelFigure.setFont(resourceCache.getDefaultFont());
View Full Code Here

Examples of org.eclipse.draw2d.XYLayout

 
  @Override
  protected IFigure createFigure() {
    Figure panel = new ScalableFreeformLayeredPane();
    panel.setBackgroundColor(ColorConstants.listBackground);
    panel.setLayoutManager(new XYLayout());
    panel.setBorder(new MarginBorder(MARGIN_SIZE));
    
    ConnectionLayer cLayer = (ConnectionLayer) getLayer(CONNECTION_LAYER);
        cLayer.setAntialias(SWT.ON);
   
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.