/** * This file is protected by Copyright. * Please refer to the COPYRIGHT file distributed with this source distribution. * * This file is part of REDHAWK IDE. * * All rights reserved. This program and the accompanying materials are made available under * the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html. * */ package mil.jpeojtrs.sca.diagram.figures; import org.eclipse.draw2d.FlowLayout; import org.eclipse.draw2d.OrderedLayout; import org.eclipse.draw2d.RectangleFigure; import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel; public class DomainFinderFigure extends RectangleFigure { private WrappingLabel fFigureDomainFinderNameLabel; private WrappingLabel fFigureDomainFinderTypeLabel; public DomainFinderFigure() { final FlowLayout layoutThis = new FlowLayout(); layoutThis.setStretchMinorAxis(false); layoutThis.setMinorAlignment(OrderedLayout.ALIGN_TOPLEFT); layoutThis.setMajorAlignment(OrderedLayout.ALIGN_TOPLEFT); layoutThis.setMajorSpacing(5); layoutThis.setMinorSpacing(5); layoutThis.setHorizontal(true); this.setLayoutManager(layoutThis); createContents(); } private void createContents() { this.fFigureDomainFinderNameLabel = new WrappingLabel(); this.fFigureDomainFinderNameLabel.setText("<...>"); this.add(this.fFigureDomainFinderNameLabel); this.fFigureDomainFinderTypeLabel = new WrappingLabel(); this.fFigureDomainFinderTypeLabel.setText("<...>"); this.add(this.fFigureDomainFinderTypeLabel); } public WrappingLabel getFigureDomainFinderNameLabel() { return this.fFigureDomainFinderNameLabel; } public WrappingLabel getFigureDomainFinderTypeLabel() { return this.fFigureDomainFinderTypeLabel; } }