Commits

mazaninfardi  committed 485f64d

fixed minor graphical bugs

  • Participants
  • Parent commits ff1f53c

Comments (0)

Files changed (5)

File src/nl/tudelft/lime/figures/ComponentBorder.java

         Rectangle r = figure.getBounds().getCropped(in);
 
         //Outline the border
-        r.shrink(2, 0);
+        r.shrink(1, 0);
         g.setForegroundColor(LimeColorConstants.black);
         //draw the border line
         g.setLineWidth(2);
         g.drawLine(r.x, r.y + splitterLineHeight, r.right(),
             r.y + splitterLineHeight);
 
-        g.drawLine(r.x, r.y + 1, r.right() - 1, r.y + 1);
-        g.drawLine(r.x, r.bottom() - 1, r.right() - 1, r.bottom() - 1);
-        g.drawLine(r.x, r.y + 1, r.x, r.bottom() - 1);
-        g.drawLine(r.right() - 1, r.bottom() - 1, r.right() - 1, r.y + 1);
+        g.drawLine(r.x, r.y, r.right(), r.y);
+        g.drawLine(r.x, r.bottom() - 1, r.right(), r.bottom() - 1);
+        g.drawLine(r.x, r.y, r.x, r.bottom() - 1);
+        g.drawLine(r.right(), r.bottom() - 1, r.right(), r.y);
 
         //r.crop(new Insets(5, 0, 5, 0));
         //r.expand(0, 6);

File src/nl/tudelft/lime/figures/InputPortFigure.java

             g.setAlpha(150);
         }
 
-        g.setBackgroundColor(ColorConstants.lightBlue);
+        g.setBackgroundColor(LimeColorConstants.inputPort);
 
         Rectangle r = getBounds().getCopy();
 

File src/nl/tudelft/lime/figures/LimeColorConstants.java

 
 public interface LimeColorConstants
 {
-
-public final static Color outputPort = new Color(null, 220,70,80);
-public final static Color inputPort = new Color (null, 0, 134, 255);
+public final static Color outputPort = new Color(null, 255,125,00);
+public final static Color inputPort = new Color (null, 188, 221, 90);
 public final static Color componentBorder = new Color(null, 123,174,148);
 public final static Color componentWhenHighlighted = new Color(null, 210,210,210);
 

File src/nl/tudelft/lime/figures/OutputPortFigure.java

             g.setAlpha(150);
         }
 
-        g.setBackgroundColor(ColorConstants.yellow);
+        g.setBackgroundColor(LimeColorConstants.outputPort);
 
         g.fillOval(r);
         r.height--;

File src/nl/tudelft/lime/figures/PortFigure.java

  * @author Mani Zandifar
  */
 public abstract class PortFigure extends OutputFigure {
-    protected static final Dimension SIZE = new Dimension(70, 70);
+    protected static final Dimension SIZE = new Dimension(70, 25);
 
     public PortFigure() {
         setSize(SIZE);