fhm.edu.fem.calc.objects
Class BorderList

java.lang.Object
  extended by fhm.edu.fem.calc.objects.BorderList

public class BorderList
extends java.lang.Object

Class Description: This class acts as border list. It takes the border index from the border itself

Author:
Thomas Woellert (thomas@woellert.net), Stefan Weissbach (weissbst@gmx.de)

Field Summary
protected  java.util.ArrayList<Border> borders
           
 
Constructor Summary
BorderList()
          Create a new border list
 
Method Summary
 void clear()
          Clear the list
 java.lang.Object clone()
          Clone Implementation
 Border getBorder(int borderIndex)
          Retrieve a border with the given index from the list
 void setBorder(Border border)
          Set a new border in the list.
 int size()
          Retrieve the number of borders in the list
 java.lang.Object[] toArray()
          Convert this list to an array of borders
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

borders

protected java.util.ArrayList<Border> borders
Constructor Detail

BorderList

public BorderList()
Create a new border list

Method Detail

clear

public void clear()
Clear the list


clone

public java.lang.Object clone()
Clone Implementation

Overrides:
clone in class java.lang.Object
Returns:
a clone of this list

getBorder

public Border getBorder(int borderIndex)
Retrieve a border with the given index from the list

Parameters:
borderIndex -
Returns:
the found border

setBorder

public void setBorder(Border border)
Set a new border in the list. It will be set at the index specified in the border

Parameters:
border, - the border to set

size

public int size()
Retrieve the number of borders in the list

Returns:
the number of borders

toArray

public java.lang.Object[] toArray()
Convert this list to an array of borders

Returns:
the border array