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 aea9c41a authored by SAINT-MARCEL Frederic's avatar SAINT-MARCEL Frederic
Browse files

PortRenderer

parent 6730ba0a
/*
* Created by IntelliJ IDEA.
* User: administrateur
* Date: 5 juin 2002
* Time: 15:46:43
* To change template for new class use
* Code Style | Class Templates options (Tools | IDE Options).
*/
package fr.fluxmedia.flowcomposer;
import com.jgraph.graph.PortRenderer;
import java.awt.*;
import javax.swing.*;
import java.io.Serializable;
import java.awt.geom.*;
import java.awt.image.BufferedImage;
import java.util.Map;
import javax.swing.border.*;
import com.jgraph.JGraph;
import com.jgraph.graph.*;
public class FCPortRenderer extends PortRenderer {
public FCPortRenderer(){
super();
}
/**
* Paint the renderer. Overrides superclass paint
* to add specific painting.
*/
public void paint(Graphics g) {
Dimension d = getSize();
g.setColor(graph.getBackground());
g.setXORMode(graph.getBackground());
if (preview) {
g.setColor(getBackground());
g.drawRect(1, 1, d.width-3, d.height-3);
g.drawRect(2, 2, d.width-5, d.height-5);
}
boolean offset = (GraphConstants.getOffset(view.getAttributes()) != null);
g.setColor(getForeground());
if (offset) {
g.drawRect(1, 1, d.width-3,d.height-3);
} else if (!preview)
g.drawRect(2, 2, d.width-4, d.height-4);
}
}
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