Class Macro

java.lang.Object
  |
  +--Macro

public class Macro
extends java.lang.Object

This class stores the objects in a macro that's been added to the circuit diagram, for structure handling


Constructor Summary
(package private) Macro()
          Null constructor, creates a macro with nothing in it.
(package private) Macro(java.lang.String name_)
          Creates a macro with a given name
 
Method Summary
 void addObject(java.lang.Object target)
          Use this method to add an object to this macro
 boolean contains(java.lang.Object target)
          Checks to see if an object passed in is already in the macro
 java.util.Enumeration elements()
          This method is used to enumerate the objects in the macro
 int getBottom()
          Gets the bottom variable
 int getLeftSide()
          Gets the leftSide variable
 java.lang.String getName()
          Gets the name of the macro
 int getRightSide()
          Gets the rightSide variable
 int getTop()
          Gets the top variable
 java.io.InputStream getXML()
          Gets the inputstream
 void setBottom(int bottom_)
          Sets the bottom variable
 void setLeftSide(int leftSide_)
          Sets the leftSide variable
 void setName(java.lang.String name_)
          Sets the macro name
 void setRightSide(int rightSide_)
          Sets the rightSide variable
 void setTop(int top_)
          Sets the top variable
 void setXML(java.io.InputStream xml_)
          Sets the macro outputstream
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Macro

Macro()
Null constructor, creates a macro with nothing in it.

Macro

Macro(java.lang.String name_)
Creates a macro with a given name
Method Detail

elements

public java.util.Enumeration elements()
This method is used to enumerate the objects in the macro

contains

public boolean contains(java.lang.Object target)
Checks to see if an object passed in is already in the macro
Parameters:
target - the object that might be in the macro

addObject

public void addObject(java.lang.Object target)
Use this method to add an object to this macro
Parameters:
target - the object to add

setLeftSide

public void setLeftSide(int leftSide_)
Sets the leftSide variable
Parameters:
leftSide_ - the int to be set

setRightSide

public void setRightSide(int rightSide_)
Sets the rightSide variable
Parameters:
rightSide_ - the int to be set

setTop

public void setTop(int top_)
Sets the top variable
Parameters:
top_ - the int to be set

setBottom

public void setBottom(int bottom_)
Sets the bottom variable
Parameters:
bottom_ - the int to be set

setName

public void setName(java.lang.String name_)
Sets the macro name
Parameters:
name_ - name to be set

setXML

public void setXML(java.io.InputStream xml_)
Sets the macro outputstream
Parameters:
xml_ - a string of xml.

getLeftSide

public int getLeftSide()
Gets the leftSide variable
Returns:
returns leftSide int

getRightSide

public int getRightSide()
Gets the rightSide variable
Returns:
returns rightSide int

getTop

public int getTop()
Gets the top variable
Returns:
returns top int

getBottom

public int getBottom()
Gets the bottom variable
Returns:
returns bottom int

getName

public java.lang.String getName()
Gets the name of the macro

getXML

public java.io.InputStream getXML()
Gets the inputstream