Пример #1
0
 public void draw(ComponentDrawContext context) {
   drawALU(context.getGraphics(), getBounds());
   context.drawPin(this, 0, "A", Direction.EAST);
   context.drawPin(this, 1, "B", Direction.EAST);
   context.drawPin(this, 3, "Zero", Direction.WEST);
   context.drawPin(this, 4, "Res", Direction.WEST);
   context.drawPin(this, 5, "  OF ", Direction.WEST);
   context.getGraphics().setColor(Color.GRAY);
   context.drawPin(this, 2, "Op", Direction.SOUTH);
   context.getGraphics().setColor(Color.BLACK);
 }
Пример #2
0
 public void drawPort(int i, String label, Direction dir) {
   context.drawPin(comp, i, label, dir);
 }
Пример #3
0
 public void drawPort(int i) {
   context.drawPin(comp, i);
 }