rendered paste bodypackage impsoft.nexus.bots.color.scriptobjects;public class DTM { public XY xy; public int areaSize; public int type; public RGB rgb; public int tolerance; public boolean parent; public boolean foundIfColorIsMatched; public final static int RECTANGLE = 0; public final static int CROSS = 1; public final static int DIAGONALCROSS = 2; public DTM(XY xy, int areaSize, int type, RGB rgb, boolean foundIfColorIsMatched, int tolerance, boolean parent) { this.xy = xy; this.areaSize = areaSize; this.type = type; this.rgb = rgb; this.tolerance = tolerance; this.parent = parent; this.foundIfColorIsMatched = foundIfColorIsMatched; } @Override public String toString() { String typeStr=null; if(type==RECTANGLE){ typeStr="RECTANGLE"; } else if(type==CROSS){ typeStr="CROSS"; } else if(type==DIAGONALCROSS){ typeStr="DIAGONALCROSS"; } return "XY(" + xy.x + "," + xy.y + ") (" + rgb + ")" + " tolerance=" + tolerance + " parent=" + parent + " foundIfColorIsMatched=" + foundIfColorIsMatched+" typeStr="+typeStr; }}