package data.graph;
import java.util.*;
import data.*;
import data.graph.*;
import data.geom.plain.*;
public class TextArea extends Shape {
public TextArea() {
}
public TextArea(TextArea o) {
super(o);
setInit(o.getInit());
setLines(o.getLines());
}
public TextArea(String init, String[] lines) {
setInit(init);
setLines(lines);
}
public void setData(TextArea o) {
setInit(o.getInit());
setLines(o.getLines());
}
public Point[] place(Point p) {
Point[] ret = null;
return ret;
}
public void draw() {
}
public void refresh(Date time) {
}
public Point resize(Integer x, Integer y) {
Point ret = null;
return ret;
}
public static String[] stat() {
String[] ret = null;
return ret;
}
static private Alignment ALIGNMENT = Alignment.LEFT;
public static Alignment getALIGNMENT() {
return ALIGNMENT;
}
public static void setALIGNMENT(Alignment _ALIGNMENT) {
ALIGNMENT = _ALIGNMENT;
}
private String init = "xxxx";
public String getInit() {
return init;
}
public void setInit(String init) {
this.init = init;
}
private String[] lines;
public String[] getLines() {
return lines;
}
public void setLines(String[] lines) {
this.lines = lines;
}
public String toString() {
StringBuffer sb = new StringBuffer(super.toString());
sb.append("[");
sb.append(init);
sb.append(", ");
sb.append(lines);
sb.append("]");
return sb.toString();
}
public String toDisplayString() {
StringBuffer sb = new StringBuffer();
sb.append(super.toDisplayString());
sb.append(" ");
sb.append(init == null ? "" : init.toString());
return sb.toString();
}
public boolean equals(Object other) {
if (this == other) return true;
if (!(other instanceof TextArea)) return false;
if(!super.equals(other)) return false;
final TextArea o = (TextArea) other;
if(o.getInit() == null) {
if (getInit() != null) return false;
}
else if (!o.getInit().equals(getInit()))
return false;
if(o.getLines() == null) {
if (getLines() != null) return false;
}
else if (!o.getLines().equals(getLines()))
return false;
return true;
}
public int hashCode() {
int res = 0;
if(getInit() != null)
res = 29 * res + getInit().hashCode();
if(getLines() != null)
res = 29 * res + getLines().hashCode();
return res;
}
}