All Packages Class Hierarchy This Package Previous Next Index
Class jschem.netData
java.lang.Object
|
+----jschem.netData
- public class netData
- extends Object
This class keeps the segment information for a specific net.
-
name
- The name of the network.
-
segment
- List of segments in Rectangle format.
-
segmentcount
- Amount of segments in this network.
-
netData(int, String)
-
Initializes network data.
-
netData(netData)
-
Initializes network data with a given dataset (creates a copy).
-
add(netData)
-
Adds segments from a given dataset.
-
add(Rectangle)
-
Adds a segment.
-
toString()
-
Returns the net name and the amount of used segments.
name
public String name
- The name of the network.
segmentcount
public int segmentcount
- Amount of segments in this network.
segment
public Rectangle segment[]
- List of segments in Rectangle format.
netData
public netData(int segs,
String nam)
- Initializes network data.
- Parameters:
- segs - amount of max. allowed segments
- nam - name of network
netData
public netData(netData n)
- Initializes network data with a given dataset (creates a copy).
- Parameters:
- n - an other netData set
add
public void add(Rectangle seg)
- Adds a segment.
- Parameters:
- seg - new segment in Rectangle class
add
public void add(netData n)
- Adds segments from a given dataset.
- Parameters:
- n - an other netData set
toString
public String toString()
- Returns the net name and the amount of used segments.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index