MAJ terminée. Nous sommes passés en version 14.6.2 . Pour consulter les "releases notes" associées c'est ici :

https://about.gitlab.com/releases/2022/01/11/security-release-gitlab-14-6-2-released/
https://about.gitlab.com/releases/2022/01/04/gitlab-14-6-1-released/

Commit 376aa67c authored by Guillaume Chomat's avatar Guillaume Chomat
Browse files

add Port View for our port

parent 356f9d6f
/**
*
*$Id: FCPortView.java,v 1.1 2002-06-05 13:40:48 gchomat Exp $
*
* Transmorpher
*
* Copyright (C) 2002 Fluxmedia and INRIA Rhne-Alpes.
*
* http://www.fluxmedia.fr - http://transmorpher.inrialpes.fr
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/**
*
*
* @version 1.0 29/01/01
* @author Chomat/Saint-Marcel
*/
package fr.fluxmedia.flowcomposer;
// import JGraph
import com.jgraph.JGraph;
import com.jgraph.graph.*;
import com.jgraph.event.*;
import java.awt.Rectangle;
public class FCPortView extends PortView{
protected static int size = 15;
/**
* Constructs a view that holds a reference to the specified cell,
* anchor and parent vertex.
*
* @param cell reference to the cell in the model
* @param anchor view of the parent
* @param anchor view of the anchor port
*/
public FCPortView(Object cell, JGraph graph, CellMapper mapper) {
super(cell, graph, mapper);
}
/**
* Returns the bounds for the port view.
*/
public Rectangle getBounds() {
Rectangle bounds = new Rectangle(getLocation(null));
bounds.x = bounds.x-size/2;
bounds.y = bounds.y-size/2;
bounds.width = bounds.width + size;
bounds.height = bounds.height + size;
return bounds;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment