package hr.fer.zemris.vhdllab.simulations;

import java.awt.Graphics;


/**
 * Predstavlja visoku impedanciju s poluvertikalnom crtom prema gore. Dolazi
 * iza jedinice
 *
 * @author Boris Ozegovic
 */
class Shape12 implements Shape
{
    public void draw (Graphics g, int x1, int y1, int x2)
    {
        g.drawLine(x1, y1 + 8, x2, y1 + 8);
        g.drawLine(x1, y1 + 9, x2, y1 + 9);
        g.drawLine(x1, y1 + 10, x2, y1 + 10);
        g.drawLine(x1, y1 + 11, x2, y1 + 11);
        g.drawLine(x1, y1, x1, y1 + 10);    
    }


    public void putLabel(Graphics g, String s, int x1, int y1, int x2)
	{
		;
	}
}

@@ -626,17 +626,99 @@
 %0D%0A%09%7B%0D%0A%09%09
-;
+if (x2 - x1 %3E= 10)%0D%0A        %7B%0D%0A             g.drawString(s, x1, y1 + 5);%0D%0A        %7D
 %0D%0A%09%7D%0D%0A%7D%0D

Modificirani prikazi nekih valnih oblika.