Download Method Detail
Transcript
Package domain.gui Page Class Summary DockingPoints represent input or output areas of DrawableComponents and DockingPoint work as "hooks" for GateConnections. DrawableComponent is the super type of all elements of a logic circuit that are DrawableComponent drawn in DrawingArea apart from GateConnections. DrawablesFactory Factory for DrawableComponents. Gate Element of a logic circuit representing operators including the NOT-sign. GateConnection Represents a line connecting two components of a logic circuit. GateNot Represents a NOT sign in a logic circuit. GateOperator Represents an operator in a logic circuit. Node An area attached to a GateConnection that can be used to edit it. Operand Represents an operand in a logic circuit. Enum Summary 69 74 77 78 80 83 85 87 90 Page DockType Defines the types of DockingPoints. 72 domain.gui DockingPoint java.lang.Object domain.gui.DockingPoint All Implemented Interfaces: Serializable public class DockingPoint extends Object implements Serializable DockingPoints represent input or output areas of DrawableComponents and work as "hooks" for GateConnections. They can only be established between 2 DockingPoints so that each DrawableComponent has one, two or three of them, depending on the components type. The exact position where a GateConnection starts or ends is calculated in GridService using a DockingPoint. To mark their position on a DrawableComponent each DockingPoint is associated with a DockType. Field Summary int Page height 70 The height of this DockingPoint. int width 70 The width of this DockingPoint. int x 70 The x coordinate of this DockingPoint. int y 70 The y coordinate of this DockingPoint. Constructor Summary Page DockingPoint(DockType type, DrawableComponent parent) 71 Constructs a new DockingPoint. Method Summary Page void addConnection(GateConnection con) 71 Adds a GateConnection that hooks into this DockingPoint. 69