ProjektGraph/OurApplication/OurTextArea.java

45 lines
934 B
Java
Raw Normal View History

2024-07-02 19:13:30 +00:00
package OurApplication;
2024-07-07 12:02:19 +00:00
import logging.LogElement;
import logging.LogElementList;
2024-07-02 19:13:30 +00:00
import visualisation.TextArea;
/**
* This class provides an example for using visualization.TextArea.
* Constructors and print() method have been overwritten.
2024-07-02 19:13:30 +00:00
* @see TextArea
* @author MSch<EFBFBD>fer
* DHBW Stuttgart/Campus Horb AI2008<br>
* <br>
*/
2024-07-02 19:13:30 +00:00
public class OurTextArea extends TextArea{
private static final long serialVersionUID = 1L;
/**
* Standard constructor.
*/
2024-07-02 19:13:30 +00:00
public OurTextArea() {
super();
}
/**
* Extended constructor.
* Sets LogElementList of TestLogElements as log list.
* @param logList the text area's log element list.
*/
2024-07-02 19:13:30 +00:00
public OurTextArea(LogElementList<OurLogElement>logList){
super(logList);
}
/**
* Textual output of a log element.
* No output.
*/
public boolean print(){
2024-07-07 12:02:19 +00:00
LogElement logElement=(LogElement)logList.get();
setText(logElement.getDescription());
return true;
}
}