@Override public void decorateTaskToNextTaskFigure(PolylineConnection figure, TaskToNextTaskFigureContext context) { figure.setTargetDecoration(new PolylineDecoration()); }
public void setSpacing(int spacing) { this.spacing = spacing; if (figure != null) { ((ToolbarLayout)figure.getLayoutManager()).setSpacing(spacing); } }
protected IFigure createFigure() { Figure fig = new Figure(); fig.setLayoutManager(new ToolbarLayout()); return fig; }
protected IFigure createFigure() { Figure figure = new Figure(); ToolbarLayout layout = new ToolbarLayout(isHorizontal); if (minorAlignment != -1) { layout.setMinorAlignment(minorAlignment); } layout.setStretchMinorAxis(false); layout.setSpacing(spacing); figure.setLayoutManager(layout); return 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); }
protected IFigure createFigure() { panel = new Panel(); ToolbarLayout layout = new ToolbarLayout(true); layout.setStretchMinorAxis(false); layout.setSpacing(100); panel.setLayoutManager(layout); return panel; }
protected void fillShape(Graphics g) { try { g.pushState(); g.setBackgroundColor(ColorConstants.white); super.fillShape(g); } finally { g.popState(); } }
protected Point getPointerLocation(Point origPointerLocation) { Point compensatedLocation = origPointerLocation; FigureCanvas figureCanvas = (FigureCanvas) viewer.getControl(); int yOffset = figureCanvas.getViewport().getVerticalRangeModel().getValue(); int xOffset = figureCanvas.getViewport().getHorizontalRangeModel().getValue(); compensatedLocation.y = compensatedLocation.y + yOffset; compensatedLocation.x = compensatedLocation.x + xOffset; return compensatedLocation; } }
protected IFigure createFigure() { Figure fig = new Figure(); fig.setLayoutManager(new ToolbarLayout()); return fig; }
@Override public void decorateOfficeSectionOutputToOfficeSectionInput( PolylineConnection figure, OfficeSectionOutputToOfficeSectionInputFigureContext context) { // Provide arrow figure.setTargetDecoration(new PolylineDecoration()); }
@Override public void decorateTaskToNextExternalFlowFigure(PolylineConnection figure, TaskToNextExternalFlowFigureContext context) { figure.setTargetDecoration(new PolylineDecoration()); }
@Override public void decorateDeskManagedObjectSourceFlowToTaskFigure( PolylineConnection figure, DeskManagedObjectSourceFlowToTaskFigureContext context) { figure.setTargetDecoration(new PolylineDecoration()); }
@Override public void decorateTaskEscalationToTaskFigure(PolylineConnection figure, TaskEscalationToTaskFigureContext context) { figure.setTargetDecoration(new PolylineDecoration()); }
@Override public void decorateDeskManagedObjectSourceFlowToExternalFlowFigure( PolylineConnection figure, DeskManagedObjectSourceFlowToExternalFlowFigureContext context) { figure.setTargetDecoration(new PolylineDecoration()); }
@Override public void decorateSubSectionOutputToSubSectionInput( PolylineConnection figure, SubSectionOutputToSubSectionInputFigureContext context) { // Provide arrow figure.setTargetDecoration(new PolylineDecoration()); }
@Override public void decorateSubSectionOutputToExternalFlowFigure( PolylineConnection figure, SubSectionOutputToExternalFlowFigureContext context) { // Provide arrow figure.setTargetDecoration(new PolylineDecoration()); }
@Override public void decorateOfficeFloorManagedObjectSourceFlowToDeployedOfficeInputFigure( PolylineConnection figure, OfficeFloorManagedObjectSourceFlowToDeployedOfficeInputFigureContext context) { // Provide arrow figure.setTargetDecoration(new PolylineDecoration()); }
@Override public void decorateTaskEscalationToExternalFlowFigure( PolylineConnection figure, TaskEscalationToExternalFlowFigureContext context) { figure.setTargetDecoration(new PolylineDecoration()); }
@Override public void decorateSectionManagedObjectSourceFlowToExternalFlowFigure( PolylineConnection figure, SectionManagedObjectSourceFlowToExternalFlowFigureContext context) { // Provide arrow figure.setTargetDecoration(new PolylineDecoration()); }
@Override public void decorateSectionManagedObjectSourceFlowToSubSectionInputFigure( PolylineConnection figure, SectionManagedObjectSourceFlowToSubSectionInputFigureContext context) { // Provide arrow figure.setTargetDecoration(new PolylineDecoration()); }