| File | 
Line | 
| pl/edu/agh/cast/schema/figure/SinglePolylineConnection.java | 
45 | 
| pl/edu/agh/cast/schema/figure/VariableThicknessPolylineConnection.java | 
60 | 
        setTargetDecoration(null);
        setSourceDecoration(null);
        add(_firstLabel);
        refresh();
    }
    @Override
    public void setPoints(PointList points) {
        float angle = getAngle(points);
        setLabelsBounds(points, angle);
    }
    private float getAngle(PointList points) {
        float dx = points.getLastPoint().x - points.getFirstPoint().x;
        float dy = points.getLastPoint().y - points.getFirstPoint().y;
        return (float)Math.atan2(dx, dy);
    }
    private Point getMiddlePoint(PointList points) {
        int x = (points.getLastPoint().x + points.getFirstPoint().x) / 2;
        int y = (points.getLastPoint().y + points.getFirstPoint().y) / 2;
        return new Point(x, y);
    }
    private void setLabelsBounds(PointList firstLinePoints, float angle) {
        Point firstLabelPoint = getMiddlePoint(firstLinePoints);
        Dimension firstLabelSize = _firstLabel.getPreferredSize();
        _firstLabel.setBounds(new Rectangle(firstLabelPoint, firstLabelSize));
    }
    @Override
    public void refresh() {
        _firstLabel.setText((String)_connectionGroup.getAttributeValue(ConnectionGroup.SINGLE_CONNECTION_LABEL)
                .getValue());
        HexColor hexColor = (HexColor)_connectionGroup.getAttributeValue(ConnectionGroup.LINE_COLOR).getValue();
        this.setForegroundColor(new Color(null, hexColor.getRed(), hexColor.getGreen(), hexColor.getBlue()));
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/editpart/ConnectionGroupEditPart.java | 
77 | 
| pl/edu/agh/cast/schema/editpart/SchemaNodeEditPart.java | 
240 | 
    }
    @SuppressWarnings("unchecked")
    @Override
    public Command getCommand(Request request) {
        if (RequestConstants.REQ_DELETE.equals(request.getType()) && request instanceof GroupRequest) {
            GroupRequest groupReq = (GroupRequest)request;
            DeleteModelElementsCommand cmd = null;
            if (groupReq.getExtendedData().containsKey(DeleteModelElementsCommand.ID)) {
                cmd = (DeleteModelElementsCommand)groupReq.getExtendedData().get(DeleteModelElementsCommand.ID);
            } else {
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/layout/algorithm/CircleLayoutAlgorithm.java | 
47 | 
| pl/edu/agh/cast/schema/layout/algorithm/NewPeacockLayoutAlgorithm.java | 
79 | 
        double angle = angleRange / (orderedList.size() * 1.0);
        int counter = 0;
        int figureRadius = 0;
        for (Node node : orderedList) {
            int currentFigureRadius = CIRCLE_MINIMUM_DISTANCE
                    + (int)Math.max(node.getDimensions().width / 2, node.getDimensions().height / 2);
            figureRadius = Math.max(figureRadius, currentFigureRadius);
            figureRadius = Math.min(figureRadius, MAXIMUM_FIGURE_RADIUS);
        }
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/editor/SchemaActionBarContributor.java | 
39 | 
| pl/edu/agh/cast/schema/editor/SchemaEditorContextMenuProvider.java | 
85 | 
		menu.appendToGroup(GEFActionConstants.GROUP_EDIT, getAction(InvertSelectionAction.ID));
		MenuManager connectionSettingsSubMenu = new MenuManager(Messages.SchemaEditorContextMenuProvider_0);
		GEFActionConstants.addStandardActionGroups(connectionSettingsSubMenu);
		connectionSettingsSubMenu.appendToGroup(GEFActionConstants.GROUP_VIEW, getAction(SingleConnectionAction.ID));
		connectionSettingsSubMenu.appendToGroup(GEFActionConstants.GROUP_VIEW, getAction(DoubleConnectionAction.ID));
		connectionSettingsSubMenu.appendToGroup(GEFActionConstants.GROUP_VIEW, getAction(VariableThicknessAction.ID));
		connectionSettingsSubMenu.appendToGroup(GEFActionConstants.GROUP_REST, getAction(ResetThicknessAction.ID)); 
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/layout/algorithm/GroupLayoutAlgorithm.java | 
259 | 
| pl/edu/agh/cast/schema/layout/algorithm/NewPeacockLayoutAlgorithm.java | 
110 | 
    private int radius(int r, int n) {
        int circleRadius = (int)(Math.max(((10 * r) / Math.PI), ((n * r) / Math.PI)));
        return Math.min(circleRadius, MAXIMUM_CIRCLE_RADIUS);
    }
    @Override
    protected int getWorkUnits(int nodesCount) {
        return nodesCount;
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/figure/SinglePolylineConnection.java | 
33 | 
| pl/edu/agh/cast/schema/figure/VariableThicknessPolylineConnection.java | 
35 | 
    public VariableThicknessPolylineConnection(ConnectionGroup connectionGroup) {
        _firstLabel = new Label((String)connectionGroup.getAttributeValue(ConnectionGroup.SINGLE_CONNECTION_LABEL)
                .getValue());
        _firstLabel.setBackgroundColor(Display.getCurrent().getSystemColor(SWT.COLOR_LIST_BACKGROUND));
        _firstLabel.setOpaque(true);
        _connectionGroup = connectionGroup;
        setTargetDecoration(new PolygonDecoration());
        setLineStyle(Graphics.LINE_SOLID);
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/figure/DoublePolylineConnection.java | 
128 | 
| pl/edu/agh/cast/schema/figure/SinglePolylineConnection.java | 
62 | 
        return (float)Math.atan2(dx, dy);
    }
    private Point getMiddlePoint(PointList points) {
        int x = (points.getLastPoint().x + points.getFirstPoint().x) / 2;
        int y = (points.getLastPoint().y + points.getFirstPoint().y) / 2;
        return new Point(x, y);
    }
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/layout/algorithm/Peacock3LayoutAlgorithm.java | 
279 | 
| pl/edu/agh/cast/schema/layout/algorithm/Peacock3LayoutAlgorithm.java | 
311 | 
                double sqrt = Math.sqrt(a * a + b * b);
                double w = getWeight(e.n1, e.n2);
                w *= DISTANCE_FACTOR;
                result += -(2 * a * w * (w * sqrt - 1)) / sqrt;
            }
        }
        return result;
    }
    /**
     * This method is just a trial, it calculates potential for changed arrangement of nodes using gradient multiplied
     * by multiplier
     *
     * @param gradient
     *            vector of derivatives for all nodes, defines the directions for nodes to move
     * @param multiplier
     *            number that says how big the jump of nodes has to be
     * @param edges
     *            list of all edges between nodes
     * @return value of calculated potential
     */
    private double potentialForGradient(double[] gradient, int multiplier, List<Edge> edges) {
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/layout/algorithm/CircleLayoutAlgorithm.java | 
77 | 
| pl/edu/agh/cast/schema/layout/algorithm/NewPeacockLayoutAlgorithm.java | 
108 | 
    }
    private int radius(int r, int n) {
        int circleRadius = (int)(Math.max(((10 * r) / Math.PI), ((n * r) / Math.PI)));
        return Math.min(circleRadius, MAXIMUM_CIRCLE_RADIUS);
    }
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/figure/VariableThicknessPolylineConnection.java | 
48 | 
| pl/edu/agh/cast/schema/figure/VariableThicknessPolylineConnection.java | 
103 | 
            AttributeValue property = _connectionGroup.getAttributeValue(ConnectionGroup.LINE_THICKNESS);
            Object value = property.getValue();
            if (value instanceof String) {
                setLineWidth(Integer.parseInt((String)value));
            } else {
                setLineWidth((Integer)value);
            }
        } catch (NumberFormatException ex) {
            setLineWidth(1);
        }
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/layout/algorithm/CircleLayoutAlgorithm.java | 
79 | 
| pl/edu/agh/cast/schema/layout/algorithm/GroupLayoutAlgorithm.java | 
259 | 
    public static int radius(int r, int n) {
        int circleRadius = (int)(Math.max(((10 * r) / Math.PI), ((n * r) / Math.PI)));
        return Math.min(circleRadius, MAXIMUM_CIRCLE_RADIUS);
    }
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/action/ChangeConnectionTypeAction.java | 
51 | 
| pl/edu/agh/cast/schema/action/ResetThicknessAction.java | 
49 | 
    public void dispose() {
        IWorkbenchPart part = getWorkbenchPart().getSite().getPart();
        if (null != getCommandStack() && part instanceof SchemaEditor) {
            SchemaEditor schemaEditor = (SchemaEditor)part;
            SchemaDiagram model = (SchemaDiagram)((DiagramEditorInput)schemaEditor.getEditorInput()).getDiagram();
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/action/ResetThicknessAction.java | 
71 | 
| pl/edu/agh/cast/schema/action/ResetThicknessAction.java | 
89 | 
    protected boolean calculateEnabled() {
        IWorkbenchPart part = getWorkbenchPart().getSite().getPart();
        if (null != getCommandStack() && part instanceof SchemaEditor) {
            SchemaEditor schemaEditor = (SchemaEditor)part;
            IDiagram model = ((DiagramEditorInput)schemaEditor.getEditorInput()).getDiagram();
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/figure/DoublePolylineConnection.java | 
220 | 
| pl/edu/agh/cast/schema/figure/SinglePolylineConnection.java | 
80 | 
        _firstLabel.setText((String)_connectionGroup.getAttributeValue(ConnectionGroup.SINGLE_CONNECTION_LABEL)
                .getValue());
        HexColor hexColor = (HexColor)_connectionGroup.getAttributeValue(ConnectionGroup.LINE_COLOR).getValue();
        this.setForegroundColor(new Color(null, hexColor.getRed(), hexColor.getGreen(), hexColor.getBlue()));
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/action/ResetThicknessAction.java | 
37 | 
| pl/edu/agh/cast/schema/action/ResetThicknessAction.java | 
50 | 
        IWorkbenchPart part = getWorkbenchPart().getSite().getPart();
        if (null != getCommandStack() && part instanceof SchemaEditor) {
            SchemaEditor schemaEditor = (SchemaEditor)part;
            SchemaDiagram model = (SchemaDiagram)((DiagramEditorInput)schemaEditor.getEditorInput()).getDiagram();
            model.getSettings().removePropertyChangeListener(this);
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/layout/algorithm/Peacock3LayoutAlgorithm.java | 
268 | 
| pl/edu/agh/cast/schema/layout/algorithm/Peacock3LayoutAlgorithm.java | 
300 | 
        double x2 = 0;
        for (Edge e : edges) {
            if (e.n1 == n || e.n2 == n) {
                if (e.n1 == n) {
                    x2 = e.n2.getLocation().y;
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/action/InvertSelectionAction.java | 
126 | 
| pl/edu/agh/cast/schema/action/SelectLeafNodesAction.java | 
94 | 
	public void run() {
		if (getWorkbenchPart() instanceof SchemaEditor) {
			SchemaEditor schemaEditor = (SchemaEditor)getWorkbenchPart();
			SchemaDiagram schemaDiagram = (SchemaDiagram)(
					(DiagramEditorInput)schemaEditor.getEditorInput()).getDiagram();
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/action/InvertSelectionAction.java | 
60 | 
| pl/edu/agh/cast/schema/action/SelectLeafNodesAction.java | 
54 | 
	public SelectLeafNodesAction(IWorkbenchPart part) {
		super(part);
	}
	/**
	 * {@inheritDoc}
	 * 
	 * @see org.eclipse.jface.action.Action#getId()
	 */
	@Override
	public String getId() {
		return ID;
	}
	/**
	 * {@inheritDoc}
	 * 
	 * @see org.eclipse.jface.action.Action#getText()
	 */
	@Override
	public String getText() {
		return MENU_TEXT;
	}
	/**
	 * (@inheritDoc)
	 * 
	 * @see org.eclipse.gef.ui.actions.WorkbenchPartAction#calculateEnabled()
	 */
	@Override
	protected boolean calculateEnabled() {
		return true;
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/action/ChangeConnectionTypeAction.java | 
53 | 
| pl/edu/agh/cast/schema/action/ResetThicknessAction.java | 
37 | 
        super(part);
        if (null != getCommandStack() && part instanceof SchemaEditor) {
            SchemaEditor schemaEditor = (SchemaEditor)part;
            SchemaDiagram model = (SchemaDiagram)((DiagramEditorInput)schemaEditor.getEditorInput()).getDiagram();
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/action/ChangeConnectionTypeAction.java | 
51 | 
| pl/edu/agh/cast/schema/action/ResetThicknessAction.java | 
71 | 
    public void runWithEvent(Event event) {
        IWorkbenchPart part = getWorkbenchPart().getSite().getPart();
        if (null != getCommandStack() && part instanceof SchemaEditor) {
            SchemaEditor schemaEditor = (SchemaEditor)part;
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/action/CopyAction.java | 
35 | 
| pl/edu/agh/cast/schema/action/layout/SetLayoutAction.java | 
63 | 
                for (Object item : structuredSelection.toList()) {
                    if (item instanceof SchemaNodeEditPart) {
                        SchemaNodeEditPart ep = (SchemaNodeEditPart)item;
                        _selectedNodes.add(ep.getModelCasted());
                    }
                }
            }
        }
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/action/ChangeConnectionTypeAction.java | 
37 | 
| pl/edu/agh/cast/schema/action/ResetThicknessAction.java | 
51 | 
        if (null != getCommandStack() && part instanceof SchemaEditor) {
            SchemaEditor schemaEditor = (SchemaEditor)part;
            SchemaDiagram model = (SchemaDiagram)((DiagramEditorInput)schemaEditor.getEditorInput()).getDiagram();
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/editpart/ConnectionGroupEditPart.java | 
90 | 
| pl/edu/agh/cast/schema/editpart/SchemaNodeEditPart.java | 
252 | 
                cmd = new DeleteModelElementsCommand((SchemaDiagram)getParent().getModel());
                groupReq.getExtendedData().put(DeleteModelElementsCommand.ID, cmd);
            }
            cmd.add(getModelCasted());
            return cmd;
        }
        return super.getCommand(request);
    }
}
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/action/ResetThicknessAction.java | 
49 | 
| pl/edu/agh/cast/schema/action/ResetThicknessAction.java | 
89 | 
    protected boolean calculateEnabled() {
        IWorkbenchPart part = getWorkbenchPart().getSite().getPart();
        if (null != getCommandStack() && part instanceof SchemaEditor) {
            SchemaEditor schemaEditor = (SchemaEditor)part;
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/layout/algorithm/CircleLayoutAlgorithm.java | 
62 | 
| pl/edu/agh/cast/schema/layout/algorithm/NewPeacockLayoutAlgorithm.java | 
95 | 
        for (Node node : orderedList) {
            Point location = node.getLocation();
            // lay out in circle only these figures which don't have
            // preferred location set
            location = new Point((int)(xCenter - circleRadius * Math.sin(angle * counter + startingAngle) - node
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/action/ChangeConnectionTypeAction.java | 
51 | 
| pl/edu/agh/cast/schema/action/ResetThicknessAction.java | 
89 | 
    protected boolean calculateEnabled() {
        IWorkbenchPart part = getWorkbenchPart().getSite().getPart();
        if (null != getCommandStack() && part instanceof SchemaEditor) {
            SchemaEditor schemaEditor = (SchemaEditor)part;
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/action/ShowPropertiesAction.java | 
43 | 
| pl/edu/agh/cast/schema/action/ToggleMainEntityAction.java | 
40 | 
    @Override
    public String getId() {
        return ID;
    }
    @Override
    public String getText() {
        return MENU_TEXT;
    }
    @Override
    protected boolean calculateEnabled() {
        return _enabled;
    }
    @SuppressWarnings("unchecked")
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/editor/SchemaEditor.java | 
203 | 
| pl/edu/agh/cast/schema/model/SchemaDiagram.java | 
170 | 
    }
    /**
     * {@inheritDoc}
     * 
     * @see pl.edu.agh.cast.model.visual.backward.Diagram#propertyChange(java.beans.PropertyChangeEvent)
     */
    @Override
    public void propertyChange(PropertyChangeEvent evt) {
        super.propertyChange(evt);
        if (SchemaDiagramSettings.CONNECTION_TYPE.equals(evt.getPropertyName())) {
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/action/ShowPropertiesAction.java | 
85 | 
| pl/edu/agh/cast/schema/action/ToggleMainEntityAction.java | 
85 | 
    public void runWithEvent(Event event) {
        ISelection selObj = getWorkbenchPart().getSite().getSelectionProvider().getSelection();
        if (!(selObj instanceof IStructuredSelection)) {
            return;
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/action/InvertSelectionAction.java | 
69 | 
| pl/edu/agh/cast/schema/action/ShowPropertiesAction.java | 
43 | 
    @Override
    public String getId() {
        return ID;
    }
    @Override
    public String getText() {
        return MENU_TEXT;
    }
    @Override
    protected boolean calculateEnabled() {
        return _enabled;
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/editpart/ConnectionGroupEditPart.java | 
65 | 
| pl/edu/agh/cast/schema/editpart/SchemaEditPart.java | 
103 | 
        return (SchemaDiagram)getModel();
    }
    @Override
    public void deactivate() {
        super.deactivate();
        getModelCasted().removePropertyChangeListener(this);
    }
    /*
     * (non-Javadoc)
     *
     * @seejava.beans.PropertyChangeListener#propertyChange(java.beans. PropertyChangeEvent)
     */
    public void propertyChange(PropertyChangeEvent event) {
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/command/SetLayoutCommand.java | 
70 | 
| pl/edu/agh/cast/schema/editor/SchemaEditor.java | 
225 | 
				}
			}, new IExceptionHandler() {
				public void handleException(Exception e) {
					Activator.getLogger().error(Messages.SchemaEditor_1, e);
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/layout/algorithm/Peacock3LayoutAlgorithm.java | 
740 | 
| pl/edu/agh/cast/schema/layout/algorithm/Peacock3LayoutAlgorithm.java | 
744 | 
            } else {
                this.setNode(n, deepLevel + 1, this.countChildren(n), angle, this.ANGLE_RANGE_FACTOR * temp,
                        this.radiusScaleFactor);
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/layout/algorithm/Peacock3LayoutAlgorithm.java | 
341 | 
| pl/edu/agh/cast/schema/layout/algorithm/Peacock3LayoutAlgorithm.java | 
395 | 
            n.setLocation(new Point(x + gradient[i++] / multiplier, y + gradient[i++] / multiplier));
        }
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/layout/algorithm/Peacock3LayoutAlgorithm.java | 
501 | 
| pl/edu/agh/cast/schema/layout/algorithm/Peacock3LayoutAlgorithm.java | 
505 | 
                            } else {
                                this.distancesTable.get(neighbourID).put(nodeID, distancesFromNode.get(nodeID) + 1);
                                wasChange = true;
                            }
                        }
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/layout/algorithm/Peacock3LayoutAlgorithm.java | 
336 | 
| pl/edu/agh/cast/schema/layout/algorithm/Peacock3LayoutAlgorithm.java | 
392 | 
        for (Node n : nodes) {
            int x = n.getLocation().x;
            int y = n.getLocation().y;
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/layout/algorithm/CircleLayoutAlgorithm.java | 
68 | 
| pl/edu/agh/cast/schema/layout/algorithm/NewPeacockLayoutAlgorithm.java | 
100 | 
            location = new Point((int)(xCenter - circleRadius * Math.sin(angle * counter + startingAngle) - node
                    .getDimensions().width / 2), (int)(yCenter - circleRadius
                    * Math.cos(angle * counter + startingAngle) - node.getDimensions().height / 2));
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/layout/algorithm/AbstractLayoutAlgorithm.java | 
74 | 
| pl/edu/agh/cast/schema/layout/algorithm/AbstractLayoutAlgorithm.java | 
86 | 
        if (upperLeftCorner.x != 0 || upperLeftCorner.y != 0) {
            for (Node node : nodes) {
                Point loc = new Point(node.getLocation().x - upperLeftCorner.x, node.getLocation().y
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/figure/DoublePolylineConnection.java | 
224 | 
| pl/edu/agh/cast/schema/figure/DoublePolylineConnection.java | 
225 | 
        _secondPolyline.setForegroundColor(new Color(null, hexColor.getRed(), hexColor.getGreen(), hexColor.getBlue())); 
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/layout/algorithm/CircleLayoutAlgorithm.java | 
68 | 
| pl/edu/agh/cast/schema/layout/algorithm/GroupLayoutAlgorithm.java | 
76 | 
            location = new Point((int)(xCenter - circleRadius * Math.sin(counter) - node.getDimensions().width / 2),
                    (int)(yCenter - circleRadius * Math.cos(counter) - node.getDimensions().height / 2));
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/editpart/SchemaNodeEditPart.java | 
164 | 
| pl/edu/agh/cast/schema/editpart/SchemaNodeEditPart.java | 
175 | 
        List<ConnectionGroup> targetConns = new LinkedList<ConnectionGroup>();
        for (ConnectionGroup group : getModelCasted().getConnectionGroups()) {
            if (group.getTarget().equals(getModelCasted())) {
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/action/layout/SetLayoutAction.java | 
63 | 
| pl/edu/agh/cast/ui/wizards/GetSelectMediatorsParametersWizard.java | 
71 | 
        for (Object item : structuredSelection.toList()) {
            if (item instanceof SchemaNodeEditPart) {
                SchemaNodeEditPart ep = (SchemaNodeEditPart)item;
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/action/InvertSelectionAction.java | 
61 | 
| pl/edu/agh/cast/schema/action/ResetThicknessAction.java | 
57 | 
        super.dispose();
    }
    @Override
    public String getId() {
        return ID;
    }
    @Override
    public String getText() {
        return MENU_TEXT;
    }
    @Override
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/action/CopyAction.java | 
35 | 
| pl/edu/agh/cast/ui/wizards/GetSelectMediatorsParametersWizard.java | 
71 | 
        for (Object item : structuredSelection.toList()) {
            if (item instanceof SchemaNodeEditPart) {
                SchemaNodeEditPart ep = (SchemaNodeEditPart)item;
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/layout/algorithm/GroupLayoutAlgorithm.java | 
76 | 
| pl/edu/agh/cast/schema/layout/algorithm/NewPeacockLayoutAlgorithm.java | 
100 | 
            location = new Point((int)(xCenter - circleRadius * Math.sin(angle * counter + startingAngle) - node
                    .getDimensions().width / 2), (int)(yCenter - circleRadius
                    * Math.cos(angle * counter + startingAngle) - node.getDimensions().height / 2));
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/layout/algorithm/EnhancedCircleLayout.java | 
85 | 
| pl/edu/agh/cast/schema/layout/algorithm/EnhancedCircleLayout.java | 
186 | 
            for (Node n : list) {
                for (ConnectionGroup e : n.getConnectionGroups()) {
                    if (e.getAllConnections().size() > maxno) {
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/layout/algorithm/AbstractGroupingLayoutAlgorithm.java | 
52 | 
| pl/edu/agh/cast/schema/layout/algorithm/AbstractGroupingLayoutAlgorithm.java | 
69 | 
    protected List<Node> getNotConnected(Collection<Node> nodes) {
        List<Node> result = new LinkedList<Node>();
        for (Node node : nodes) {
            if (node.getConnectionGroups().size() == 0) {
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/command/SelectMediatorsCommand.java | 
41 | 
| pl/edu/agh/cast/schema/command/SelectMediatorsCommand.java | 
56 | 
        for (Node node : _changedNodes) {
            node.setAttributeValue(NodeAttributeManager.PERMANENT_ISMAIN, Boolean.TRUE);
        }
    }
    @Override
    public String getLabel() {
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/action/DoubleConnectionAction.java | 
26 | 
| pl/edu/agh/cast/schema/action/VariableThicknessAction.java | 
26 | 
        super(part, ConnectionType.VARIABLE_THICKNESS_CONNECTION);
    }
    @Override
    public String getId() {
        return ID;
    }
    @Override
    public String getText() {
        return MENU_TEXT;
    }
}
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/layout/algorithm/Peacock3LayoutAlgorithm.java | 
265 | 
| pl/edu/agh/cast/schema/layout/algorithm/Peacock3LayoutAlgorithm.java | 
297 | 
    private double derivativeY(List<Edge> edges, Node n) {
        double result = 0;
        double x1 = n.getLocation().y;
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/figure/DoublePolylineConnection.java | 
54 | 
| pl/edu/agh/cast/schema/figure/SinglePolylineConnection.java | 
35 | 
                .getValue());
        _firstLabel.setBackgroundColor(Display.getCurrent().getSystemColor(SWT.COLOR_LIST_BACKGROUND));
        _firstLabel.setOpaque(true);
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/action/SelectLeafNodesAction.java | 
55 | 
| pl/edu/agh/cast/schema/action/VariableThicknessAction.java | 
26 | 
        super(part, ConnectionType.SINGLE_CONNECTION);
    }
    @Override
    public String getId() {
        return ID;
    }
    @Override
    public String getText() {
        return MENU_TEXT;
    }
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/action/ResetThicknessAction.java | 
60 | 
| pl/edu/agh/cast/schema/action/ToggleMainEntityAction.java | 
40 | 
    @Override
    public String getId() {
        return ID;
    }
    @Override
    public String getText() {
        return MENU_TEXT;
    }
    @Override
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/action/DoubleConnectionAction.java | 
26 | 
| pl/edu/agh/cast/schema/action/ResetThicknessAction.java | 
57 | 
		super(part);
	}
	/**
	 * {@inheritDoc}
	 * 
	 * @see org.eclipse.jface.action.Action#getId()
	 */
	@Override
	public String getId() {
		return ID;
	}
	/**
	 * {@inheritDoc}
	 * 
	 * @see org.eclipse.jface.action.Action#getText()
	 */
	@Override
	public String getText() {
		return MENU_TEXT;
	}
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/action/ChangeConnectionTypeAction.java | 
62 | 
| pl/edu/agh/cast/schema/action/ResetThicknessAction.java | 
82 | 
    public void propertyChange(PropertyChangeEvent evt) {
        if (SchemaDiagramSettings.CONNECTION_TYPE.equals(evt.getPropertyName())) {
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/model/SchemaDiagram.java | 
117 | 
| pl/edu/agh/cast/schema/model/SchemaDiagram.java | 
145 | 
        for (Node node : getNodes()) {
            for (ConnectionGroup group : node.getConnectionGroups()) {
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/layout/algorithm/PeacockLayoutAlgorithm.java | 
155 | 
| pl/edu/agh/cast/schema/layout/algorithm/PeacockLayoutAlgorithm.java | 
188 | 
                double elementRadius = (margin + localRadius * (counter % circleNo + 1));
                // lay out in circle only these figures which don't have
                // preferred location set
                location = new Point((int)(xTailCenter - elementRadius * elementXangle),
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/layout/algorithm/Peacock3LayoutAlgorithm.java | 
703 | 
| pl/edu/agh/cast/schema/layout/algorithm/Peacock3LayoutAlgorithm.java | 
707 | 
            } else {
                this.setNode(treeRoot, 2, countChildren(treeRoot), alfa, this.ANGLE_RANGE_FACTOR * temp,
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/layout/algorithm/GroupLayoutAlgorithm.java | 
56 | 
| pl/edu/agh/cast/schema/layout/algorithm/NewPeacockLayoutAlgorithm.java | 
85 | 
                    + (int)Math.max(node.getDimensions().width / 2, node.getDimensions().height / 2);
            figureRadius = Math.max(figureRadius, currentFigureRadius);
            figureRadius = Math.min(figureRadius, MAXIMUM_FIGURE_RADIUS);
        }
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/layout/algorithm/EnhancedCircleLayout.java | 
62 | 
| pl/edu/agh/cast/schema/layout/algorithm/Peacock3LayoutAlgorithm.java | 
99 | 
    @Override
    /*
     * This method sets nodes positions on board.
     *
     * @param positionNodes collection of nodes to position.
     */
    protected void setNodesPositions(Collection<Node> positionNodes, IProgressMonitor monitor) {
        monitor.subTask(Messages.Peacock3LayoutAlgorithm_0);
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/layout/algorithm/CircleLayoutAlgorithm.java | 
53 | 
| pl/edu/agh/cast/schema/layout/algorithm/GroupLayoutAlgorithm.java | 
56 | 
                    + (int)Math.max(figure.getDimensions().width /* / 2 */, figure.getDimensions().height /* / 2 */);
            figureRadius = Math.max(figureRadius, currentFigureRadius);
            figureRadius = Math.min(figureRadius, MAXIMUM_FIGURE_RADIUS);
        }
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/figure/DoublePolylineConnection.java | 
214 | 
| pl/edu/agh/cast/schema/figure/VariableThicknessPolylineConnection.java | 
91 | 
    }
    @Override
    public void refresh() {
        _firstLabel.setText((String)_connectionGroup.getAttributeValue(ConnectionGroup.SINGLE_CONNECTION_LABEL)
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/figure/DoublePolylineConnection.java | 
121 | 
| pl/edu/agh/cast/schema/figure/DoublePolylineConnection.java | 
127 | 
        int newY = (int)(original.y + LinesDistance * Math.sin(angle) / 2);
        return new Point(newX, newY);
    }
    private Point getMiddlePoint(PointList points) {
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/figure/DoublePolylineConnection.java | 
72 | 
| pl/edu/agh/cast/schema/figure/SinglePolylineConnection.java | 
48 | 
        add(_firstLabel);
        refresh();
    }
    @Override
    public void setPoints(PointList points) {
        float angle = getAngle(points);
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/editpart/ConnectionGroupEditPart.java | 
59 | 
| pl/edu/agh/cast/schema/editpart/SchemaNodeEditPart.java | 
182 | 
    }
    @Override
    public void activate() {
        super.activate();
        getModelCasted().addPropertyChangeListener(this);
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/action/DoubleConnectionAction.java | 
29 | 
| pl/edu/agh/cast/schema/action/ShowPropertiesAction.java | 
43 | 
    @Override
    public String getId() {
        return ID;
    }
    @Override
    public String getText() {
        return MENU_TEXT;
    }
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/layout/algorithm/Peacock3LayoutAlgorithm.java | 
699 | 
| pl/edu/agh/cast/schema/layout/algorithm/Peacock3LayoutAlgorithm.java | 
736 | 
            int x = (int)((this.AREA_CENTER_X - this.radius * radiusFactor * deepLevel) * Math.cos(angle + temp / 2.0));
            int y = (int)((this.AREA_CENTER_Y - this.radius * radiusFactor * deepLevel) * Math.sin(angle + temp / 2.0));
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/layout/algorithm/CircleLayoutAlgorithm.java | 
69 | 
| pl/edu/agh/cast/schema/layout/algorithm/GroupLayoutAlgorithm.java | 
77 | 
                    (int)(yCenter - circleRadius * Math.cos(counter) - node.getDimensions().height / 2));
            // }
            node.setLocation(location);
            counter += angle * cycleChildren.get(node).intValue() / 2.0;
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/layout/algorithm/CircleLayoutAlgorithm.java | 
38 | 
| pl/edu/agh/cast/schema/layout/algorithm/NewPeacockLayoutAlgorithm.java | 
71 | 
            double scalingFactor, Point center) {
        if (positionNodes.size() == 0) {
            return;
        }
        List<Node> orderedList = new LinkedList<Node>(positionNodes);
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/layout/algorithm/AbstractLayoutAlgorithm.java | 
76 | 
| pl/edu/agh/cast/schema/layout/algorithm/AbstractLayoutAlgorithm.java | 
89 | 
                        - upperLeftCorner.y);
                node.setLocation(loc);
            }
        }
        monitor.worked(nodes.size());
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/figure/DoublePolylineConnection.java | 
120 | 
| pl/edu/agh/cast/schema/figure/DoublePolylineConnection.java | 
126 | 
        int newX = (int)(original.x - LinesDistance * Math.cos(angle) / 2);
        int newY = (int)(original.y + LinesDistance * Math.sin(angle) / 2);
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/command/SelectMediatorsCommand.java | 
48 | 
| pl/edu/agh/cast/schema/command/SelectMediatorsCommand.java | 
55 | 
    public void redo() {
        for (Node node : _changedNodes) {
            node.setAttributeValue(NodeAttributeManager.PERMANENT_ISMAIN, Boolean.TRUE);
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/action/ResetThicknessAction.java | 
42 | 
| pl/edu/agh/cast/schema/action/ResetThicknessAction.java | 
94 | 
            return ConnectionType.VARIABLE_THICKNESS_CONNECTION.equals(((SchemaDiagramSettings)model.getSettings())
                    .getConnectionType());
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/action/ChangeConnectionTypeAction.java | 
56 | 
| pl/edu/agh/cast/schema/action/ResetThicknessAction.java | 
76 | 
            IDiagram model = ((DiagramEditorInput)schemaEditor.getEditorInput()).getDiagram();
            getCommandStack().execute(new ResetThicknessCommand(model));
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/layout/algorithm/Peacock3LayoutAlgorithm.java | 
701 | 
| pl/edu/agh/cast/schema/layout/algorithm/Peacock3LayoutAlgorithm.java | 
738 | 
            n.node.setLocation(new Point(x, y));
            if (radiusFactorInvert) {
                this.setNode(n, deepLevel + 1, this.countChildren(n), angle, this.ANGLE_RANGE_FACTOR * temp,
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/layout/algorithm/GroupLayoutAlgorithm.java | 
30 | 
| pl/edu/agh/cast/schema/layout/algorithm/NewPeacockLayoutAlgorithm.java | 
62 | 
    private static final int MAXIMUM_CIRCLE_RADIUS = 500;
    private static final int MAXIMUM_FIGURE_RADIUS = 80;
    private static final int CIRCLE_MINIMUM_DISTANCE = 5;
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/figure/DoublePolylineConnection.java | 
163 | 
| pl/edu/agh/cast/schema/figure/SinglePolylineConnection.java | 
71 | 
    private void setLabelsBounds(PointList firstLinePoints, float angle) {
        Point firstLabelPoint = getMiddlePoint(firstLinePoints);
        Dimension firstLabelSize = _firstLabel.getPreferredSize();
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/editpart/SchemaEditPart.java | 
133 | 
| pl/edu/agh/cast/ui/wizards/GetSelectMediatorsParametersWizard.java | 
66 | 
        IEditorPart editor = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor(); 
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/action/ShowPropertiesAction.java | 
86 | 
| pl/edu/agh/cast/schema/action/ToggleMainEntityAction.java | 
64 | 
        ISelection selection = getWorkbenchPart().getSite().getSelectionProvider().getSelection();
        if (!(selection instanceof IStructuredSelection)) {
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/action/InvertSelectionAction.java | 
102 | 
| pl/edu/agh/cast/schema/action/ToggleMainEntityAction.java | 
64 | 
        ISelection selection = getWorkbenchPart().getSite().getSelectionProvider().getSelection();
        if (!(selection instanceof IStructuredSelection)) {
 
 | 
| File | 
Line | 
| pl/edu/agh/cast/schema/action/ChangeConnectionTypeAction.java | 
37 | 
| pl/edu/agh/cast/schema/action/ResetThicknessAction.java | 
91 | 
        if (null != getCommandStack() && part instanceof SchemaEditor) {
            SchemaEditor schemaEditor = (SchemaEditor)part;
 
 |