algoanim.primitives.vhdl
Class OrGate

java.lang.Object
  extended by algoanim.primitives.Primitive
      extended by algoanim.primitives.vhdl.VHDLElement
          extended by algoanim.primitives.vhdl.OrGate

public class OrGate
extends VHDLElement

Represents an OR gate defined by an upper left corner and its width.

Version:
0.2 20110218
Author:
Guido Roessling (roessling@acm.org)

Field Summary
 
Fields inherited from class algoanim.primitives.vhdl.VHDLElement
generator, height, pins, properties, upperLeft, width
 
Fields inherited from class algoanim.primitives.Primitive
gen
 
Constructor Summary
OrGate(VHDLElementGenerator sg, Node upperLeftCorner, int theWidth, int theHeight, java.lang.String name, java.util.List<VHDLPin> definedPins, DisplayOptions display, VHDLElementProperties sp)
          Instantiates the OrGate and calls the create() method of the associated SquareGenerator.
 
Method Summary
 
Methods inherited from class algoanim.primitives.vhdl.VHDLElement
getHeight, getPins, getProperties, getUpperLeft, getWidth, setName
 
Methods inherited from class algoanim.primitives.Primitive
changeColor, exchange, getDisplayOptions, getName, hide, hide, moveBy, moveTo, moveVia, rotate, rotate, show, show
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrGate

public OrGate(VHDLElementGenerator sg,
              Node upperLeftCorner,
              int theWidth,
              int theHeight,
              java.lang.String name,
              java.util.List<VHDLPin> definedPins,
              DisplayOptions display,
              VHDLElementProperties sp)
       throws java.lang.IllegalArgumentException
Instantiates the OrGate and calls the create() method of the associated SquareGenerator.

Parameters:
sg - the appropriate code Generator.
upperLeftCorner - the upper left corner of this VHDL element.
theWidth - the width of this VHDL element.
theHeight - the height of this VHDL element
name - the name of this VHDL element.
definedPins - the list of VHDL pins (in, out, control, or bidirectional)
display - [optional] the DisplayOptions of this VHDL element.
sp - [optional] the properties of this VHDL element.
Throws:
java.lang.IllegalArgumentException