@Override public IFigure getFigure () { return new Label ( "" ); } };
@Override public IFigure getFigure () { return new Label ( "" ); } };
/** * Initiate. * * @param label * Text of connector {@link Label}. * @param direction * {@link ConnectorDirection}. * @param colour * Colour of connector. */ public LabelConnectorFigure(String label, ConnectorDirection direction, Color colour) { this(new Label(label), direction, colour); }
public void setException ( final Throwable e ) { setText ( String.format ( "%s", e ) ); setToolTip ( new Label ( formatException ( e ) ) ); }
public void setException ( final Throwable e ) { setText ( String.format ( "%s", e ) ); setToolTip ( new Label ( formatException ( e ) ) ); }
public void setToolTip ( final String string ) { if ( string == null || string.isEmpty () ) { getPropertyFigure ().setToolTip ( null ); } else { getPropertyFigure ().setToolTip ( new Label ( string ) ); } }
public void setToolTip ( final String string ) { if ( string == null || string.isEmpty () ) { getPropertyFigure ().setToolTip ( null ); } else { getPropertyFigure ().setToolTip ( new Label ( string ) ); } }
public CenteredIconFigure() { super(); setFill(true); toolTipLabel = new Label(); setCornerDimensions(new Dimension(5,5)); }
protected IFigure createFigure() { space = new Label(""); //$NON-NLS-1$ space.setIcon(XSDEditorPlugin.getXSDImage("icons/Dot.gif")); //$NON-NLS-1$ space.setBorder(new MarginBorder(3, 0, 3, 0)); return space; }
@Override public IFigure getFigure() { // Ensure a figure available if (this.figure == null) { // Provide no figure (if one not configured) Label noFigure = new Label("ERROR: no figure provided"); noFigure.setBackgroundColor(StandardOfficeFloorColours.ERROR()); noFigure.setOpaque(true); noFigure.setLayoutManager(new FlowLayout()); this.figure = noFigure; } // Return the figure return this.figure; }
public HeadingFigure() { label = new Label(); label.setBorder(new MarginBorder(2)); ToolbarLayout toolbarLayout = new ToolbarLayout(false); toolbarLayout.setMinorAlignment(ToolbarLayout.ALIGN_CENTER); setLayoutManager(toolbarLayout); add(label); }
/** * Initiate. * * @param name * Name. * @param colour * {@link Color} of the {@link Figure}. */ public EllipseFigure(String name, Color colour) { // Ellipse this.setBackgroundColor(colour); this.setOpaque(true); this.setLayoutManager(new FlowLayout()); // Provide name this.name = new Label(name); this.name.setLayoutManager(new FlowLayout()); this.name.setBorder(new MarginBorder(5)); this.add(this.name); }
this.itemName = new Label(itemName); this.itemName.setLayoutManager(new NoSpacingToolbarLayout(true)); this.itemName.setForegroundColor(colour);
nameLabel = new Label(); nameLabel.setBorder(new MarginBorder(3, 5, 3, 5)); nameLabel.setLabelAlignment(PositionConstants.LEFT); rowFigure.add(nameLabel); nameAnnotationLabel = new Label(); nameAnnotationLabel.setBorder(new MarginBorder(3, 5, 3, 5)); nameAnnotationLabel.setLabelAlignment(PositionConstants.LEFT); rowFigure.add(nameAnnotationLabel); toolTipLabel = new Label(); typeLabel = new Label();
/** * Initiate. * * @param context * {@link OfficeTaskFigureContext}. */ public StandardOfficeTaskFigure(OfficeTaskFigureContext context) { // Create the figure Figure figure = new Figure(); NoSpacingGridLayout figureLayout = new NoSpacingGridLayout(2); figure.setLayoutManager(figureLayout); // Create the task name this.taskName = new Label(context.getOfficeTaskName()); figure.add(this.taskName); // Create the container for child connectors Figure contentPane = new Figure(); NoSpacingGridLayout contentPaneLayout = new NoSpacingGridLayout(1); contentPaneLayout.verticalSpacing = 2; contentPane.setLayoutManager(contentPaneLayout); figure.add(contentPane); // Specify the figure this.setFigure(figure); this.setContentPane(contentPane); }
this.flowName = new Label(); this.flowName.setLayoutManager(new NoSpacingToolbarLayout(true)); this.flowName.setForegroundColor(StandardOfficeFloorColours.BLACK());
Label dropHintLabel = new Label(); dropHintLabel.setOpaque(true); dropHintLabel.setBackgroundColor(ColorConstants.tooltipBackground);
this.containerName = new Label(containerName); this.containerName.setLayoutManager(new NoSpacingToolbarLayout(true)); header.add(this.containerName);
this.workName = new Label(context.getWorkName()); this.workName.setBorder(new MarginBorder(2, 5, 2, 2)); workFigure.add(this.workName);
this.containerName = new Label(containerName); this.containerName.setLayoutManager(new NoSpacingToolbarLayout(true)); header.add(this.containerName);