bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
private void insertFirstContentTag(ElementSpec[] data) { ElementSpec first = data[0]; BranchElement paragraph = (BranchElement) elementStack.peek(); int index = paragraph.getElementIndex(pos); Element current = paragraph.getElement(index); int newEndOffset = pos + first.length; boolean onlyContent = data.length == 1; Edit edit = getEditForParagraphAndIndex(paragraph, index); switch (first.getDirection()) { case ElementSpec.JoinPreviousDirection: if (current.getEndOffset() != newEndOffset && !onlyContent) { Element newEl1 = createLeafElement(paragraph, current.getAttributes(), current.getStartOffset(), newEndOffset); edit.addAddedElement(newEl1); edit.addRemovedElement(current); offset = newEndOffset; } break; case ElementSpec.JoinNextDirection: if (pos != 0) { Element newEl1 = createLeafElement(paragraph, current.getAttributes(), current.getStartOffset(), pos); edit.addAddedElement(newEl1); Element next = paragraph.getElement(index + 1); if (onlyContent) newEl1 = createLeafElement(paragraph, next.getAttributes(), pos, next.getEndOffset()); else { newEl1 = createLeafElement(paragraph, next.getAttributes(), pos, newEndOffset); pos = newEndOffset; } edit.addAddedElement(newEl1); edit.addRemovedElement(current); edit.addRemovedElement(next); } break; default: if (current.getStartOffset() != pos) { Element newEl = createLeafElement(paragraph, current.getAttributes(), current.getStartOffset(), pos); edit.addAddedElement(newEl); } edit.addRemovedElement(current); Element newEl1 = createLeafElement(paragraph, first.getAttributes(), pos, newEndOffset); edit.addAddedElement(newEl1); if (current.getEndOffset() != endOffset) recreateLeaves(newEndOffset, paragraph, onlyContent); else offset = newEndOffset; break; } }
private void insertFirstContentTag(ElementSpec[] data) { ElementSpec first = data[0]; BranchElement paragraph = (BranchElement) elementStack.peek(); int index = paragraph.getElementIndex(pos); Element current = paragraph.getElement(index); int newEndOffset = pos + first.length; boolean onlyContent = data.length == 1; Edit edit = getEditForParagraphAndIndex(paragraph, index); switch (first.getDirection()) { case ElementSpec.JoinPreviousDirection: if (current.getEndOffset() != newEndOffset && !onlyContent) { Element newEl1 = createLeafElement(paragraph, current.getAttributes(), current.getStartOffset(), newEndOffset); edit.addAddedElement(newEl1); edit.addRemovedElement(current); offset = newEndOffset; } break; case ElementSpec.JoinNextDirection: if (pos != 0) { Element newEl1 = createLeafElement(paragraph, current.getAttributes(), current.getStartOffset(), pos); edit.addAddedElement(newEl1); Element next = paragraph.getElement(index + 1); if (onlyContent) newEl1 = createLeafElement(paragraph, next.getAttributes(), pos, next.getEndOffset()); else { newEl1 = createLeafElement(paragraph, next.getAttributes(), pos, newEndOffset); pos = newEndOffset; } edit.addAddedElement(newEl1); edit.addRemovedElement(current); edit.addRemovedElement(next); } break; default: if (current.getStartOffset() != pos) { Element newEl = createLeafElement(paragraph, current.getAttributes(), current.getStartOffset(), pos); edit.addAddedElement(newEl); } edit.addRemovedElement(current); Element newEl1 = createLeafElement(paragraph, first.getAttributes(), pos, newEndOffset); edit.addAddedElement(newEl1); if (current.getEndOffset() != endOffset) recreateLeaves(newEndOffset, paragraph, onlyContent); else offset = newEndOffset; break; } }
4,953
private void insertFirstContentTag(ElementSpec[] data) { ElementSpec first = data[0]; BranchElement paragraph = (BranchElement) elementStack.peek(); int index = paragraph.getElementIndex(pos); Element current = paragraph.getElement(index); int newEndOffset = pos + first.length; boolean onlyContent = data.length == 1; Edit edit = getEditForParagraphAndIndex(paragraph, index); switch (first.getDirection()) { case ElementSpec.JoinPreviousDirection: if (current.getEndOffset() != newEndOffset && !onlyContent) { Element newEl1 = createLeafElement(paragraph, current.getAttributes(), current.getStartOffset(), newEndOffset); edit.addAddedElement(newEl1); edit.addRemovedElement(current); offset = newEndOffset; } break; case ElementSpec.JoinNextDirection: if (pos != 0) { Element newEl1 = createLeafElement(paragraph, current.getAttributes(), current.getStartOffset(), pos); edit.addAddedElement(newEl1); Element next = paragraph.getElement(index + 1); if (onlyContent) newEl1 = createLeafElement(paragraph, next.getAttributes(), pos, next.getEndOffset()); else { newEl1 = createLeafElement(paragraph, next.getAttributes(), pos, newEndOffset); pos = newEndOffset; } edit.addAddedElement(newEl1); edit.addRemovedElement(current); edit.addRemovedElement(next); } break; default: if (current.getStartOffset() != pos) { Element newEl = createLeafElement(paragraph, current.getAttributes(), current.getStartOffset(), pos); edit.addAddedElement(newEl); } edit.addRemovedElement(current); Element newEl1 = createLeafElement(paragraph, first.getAttributes(), pos, newEndOffset); edit.addAddedElement(newEl1); if (current.getEndOffset() != endOffset) recreateLeaves(newEndOffset, paragraph, onlyContent); else offset = newEndOffset; break; } }
private void insertFirstContentTag(ElementSpec[] data) { ElementSpec first = data[0]; BranchElement paragraph = (BranchElement) elementStack.peek(); int index = paragraph.getElementIndex(pos); Element current = paragraph.getElement(index); int newEndOffset = pos + first.length; boolean onlyContent = data.length == 1; Edit edit = getEditForParagraphAndIndex(paragraph, index); switch (first.getDirection()) { case ElementSpec.JoinPreviousDirection: if (current.getEndOffset() != newEndOffset && !onlyContent) { Element newEl1 = createLeafElement(paragraph, current.getAttributes(), current.getStartOffset(), newEndOffset); edit.addAddedElement(newEl1); edit.addRemovedElement(current); offset = newEndOffset; } break; case ElementSpec.JoinNextDirection: if (pos != 0) { Element newEl1 = createLeafElement(paragraph, current.getAttributes(), current.getStartOffset(), pos); edit.addAddedElement(newEl1); Element next = paragraph.getElement(index + 1); if (onlyContent) newEl1 = createLeafElement(paragraph, next.getAttributes(), pos, next.getEndOffset()); else { newEl1 = createLeafElement(paragraph, next.getAttributes(), pos, newEndOffset); pos = newEndOffset; } edit.addAddedElement(newEl1); edit.addRemovedElement(current); edit.addRemovedElement(next); } break; default: if (current.getStartOffset() != pos) { Element newEl = createLeafElement(paragraph, current.getAttributes(), current.getStartOffset(), pos); edit.addAddedElement(newEl); } edit.addRemovedElement(current); Element newEl1 = createLeafElement(paragraph, first.getAttributes(), pos, newEndOffset); edit.addAddedElement(newEl1); if (current.getEndOffset() != endOffset) recreateLeafs = true; else offset = newEndOffset; break; } }
4,954
private void insertFirstContentTag(ElementSpec[] data) { ElementSpec first = data[0]; BranchElement paragraph = (BranchElement) elementStack.peek(); int index = paragraph.getElementIndex(pos); Element current = paragraph.getElement(index); int newEndOffset = pos + first.length; boolean onlyContent = data.length == 1; Edit edit = getEditForParagraphAndIndex(paragraph, index); switch (first.getDirection()) { case ElementSpec.JoinPreviousDirection: if (current.getEndOffset() != newEndOffset && !onlyContent) { Element newEl1 = createLeafElement(paragraph, current.getAttributes(), current.getStartOffset(), newEndOffset); edit.addAddedElement(newEl1); edit.addRemovedElement(current); offset = newEndOffset; } break; case ElementSpec.JoinNextDirection: if (pos != 0) { Element newEl1 = createLeafElement(paragraph, current.getAttributes(), current.getStartOffset(), pos); edit.addAddedElement(newEl1); Element next = paragraph.getElement(index + 1); if (onlyContent) newEl1 = createLeafElement(paragraph, next.getAttributes(), pos, next.getEndOffset()); else { newEl1 = createLeafElement(paragraph, next.getAttributes(), pos, newEndOffset); pos = newEndOffset; } edit.addAddedElement(newEl1); edit.addRemovedElement(current); edit.addRemovedElement(next); } break; default: if (current.getStartOffset() != pos) { Element newEl = createLeafElement(paragraph, current.getAttributes(), current.getStartOffset(), pos); edit.addAddedElement(newEl); } edit.addRemovedElement(current); Element newEl1 = createLeafElement(paragraph, first.getAttributes(), pos, newEndOffset); edit.addAddedElement(newEl1); if (current.getEndOffset() != endOffset) recreateLeaves(newEndOffset, paragraph, onlyContent); else offset = newEndOffset; break; } }
private void insertFirstContentTag(ElementSpec[] data) { ElementSpec first = data[0]; BranchElement paragraph = (BranchElement) elementStack.peek(); int index = paragraph.getElementIndex(pos); Element current = paragraph.getElement(index); int newEndOffset = pos + first.length; boolean onlyContent = data.length == 1; Edit edit = getEditForParagraphAndIndex(paragraph, index); switch (first.getDirection()) { case ElementSpec.JoinPreviousDirection: if (current.getEndOffset() != newEndOffset && !onlyContent) { Element newEl1 = createLeafElement(paragraph, current.getAttributes(), current.getStartOffset(), newEndOffset); edit.addAddedElement(newEl1); edit.addRemovedElement(current); offsetLastIndex = true; } break; case ElementSpec.JoinNextDirection: if (pos != 0) { Element newEl1 = createLeafElement(paragraph, current.getAttributes(), current.getStartOffset(), pos); edit.addAddedElement(newEl1); Element next = paragraph.getElement(index + 1); if (onlyContent) newEl1 = createLeafElement(paragraph, next.getAttributes(), pos, next.getEndOffset()); else { newEl1 = createLeafElement(paragraph, next.getAttributes(), pos, newEndOffset); pos = newEndOffset; } edit.addAddedElement(newEl1); edit.addRemovedElement(current); edit.addRemovedElement(next); } break; default: if (current.getStartOffset() != pos) { Element newEl = createLeafElement(paragraph, current.getAttributes(), current.getStartOffset(), pos); edit.addAddedElement(newEl); } edit.addRemovedElement(current); Element newEl1 = createLeafElement(paragraph, first.getAttributes(), pos, newEndOffset); edit.addAddedElement(newEl1); if (current.getEndOffset() != endOffset) recreateLeaves(newEndOffset, paragraph, onlyContent); else offsetLastIndex = true; break; } }
4,955
protected void insertUpdate(ElementSpec[] data) { // Push the root and the paragraph at offset onto the element stack. Element current = root; int index; while (!current.isLeaf()) { index = current.getElementIndex(offset); elementStack.push(current); current = current.getElement(index); } int i = 0; int type = data[0].getType(); if (type == ElementSpec.ContentType) { // If the first tag is content we must treat it separately to allow // for joining properly to previous Elements and to ensure that // no extra LeafElements are erroneously inserted. insertFirstContentTag(data); pos += data[0].length; i = 1; } else { createFracture(data); i = 0; } // Handle each ElementSpec individually. for (; i < data.length; i++) { BranchElement paragraph = (BranchElement) elementStack.peek(); switch (data[i].getType()) { case ElementSpec.StartTagType: switch (data[i].getDirection()) { case ElementSpec.JoinFractureDirection: // Fracture the tree and ensure the appropriate element // is on top of the stack. fracNotCreated = false; insertFracture(data[i]); if (fracNotCreated) { if (lastFractured != null) elementStack.push(lastFractured.getParentElement()); else elementStack.push(paragraph.getElement(0)); } break; case ElementSpec.JoinNextDirection: // Push the next paragraph element onto the stack so // future insertions are added to it. int ix = paragraph.getElementIndex(pos) + 1; elementStack.push(paragraph.getElement(ix)); break; default: Element br = null; if (data.length > i + 1) { // leaves will be added to paragraph later int x = 0; if (paragraph.getElementCount() > 0) x = paragraph.getElementIndex(pos) + 1; Edit e = getEditForParagraphAndIndex(paragraph, x); br = (BranchElement) createBranchElement(paragraph, data[i].getAttributes()); e.added.add(br); elementStack.push(br); } else // need to add leaves to paragraph now br = insertParagraph(paragraph, pos); break; } break; case ElementSpec.EndTagType: elementStack.pop(); break; case ElementSpec.ContentType: insertContentTag(data[i]); offset = pos; break; } } }
protected void insertUpdate(ElementSpec[] data) { // Push the root and the paragraph at offset onto the element stack. Element current = root; int index; while (!current.isLeaf()) { index = current.getElementIndex(offset); elementStack.push(current); current = current.getElement(index); } int i = 0; int type = data[0].getType(); if (type == ElementSpec.ContentType) { // If the first tag is content we must treat it separately to allow // for joining properly to previous Elements and to ensure that // no extra LeafElements are erroneously inserted. insertFirstContentTag(data); pos += data[0].length; i = 1; } else { createFracture(data); i = 0; } // Handle each ElementSpec individually. for (; i < data.length; i++) { BranchElement paragraph = (BranchElement) elementStack.peek(); switch (data[i].getType()) { case ElementSpec.StartTagType: switch (data[i].getDirection()) { case ElementSpec.JoinFractureDirection: // Fracture the tree and ensure the appropriate element // is on top of the stack. fracNotCreated = false; insertFracture(data[i]); if (fracNotCreated) { if (lastFractured != null) elementStack.push(lastFractured.getParentElement()); else elementStack.push(paragraph.getElement(0)); } break; case ElementSpec.JoinNextDirection: // Push the next paragraph element onto the stack so // future insertions are added to it. int ix = paragraph.getElementIndex(pos) + 1; elementStack.push(paragraph.getElement(ix)); break; default: Element br = null; if (data.length > i + 1) { // leaves will be added to paragraph later int x = 0; if (paragraph.getElementCount() > 0) x = paragraph.getElementIndex(pos) + 1; Edit e = getEditForParagraphAndIndex(paragraph, x); br = (BranchElement) createBranchElement(paragraph, data[i].getAttributes()); e.added.add(br); elementStack.push(br); } else // need to add leaves to paragraph now br = insertParagraph(paragraph, pos); break; } break; case ElementSpec.EndTagType: elementStack.pop(); break; case ElementSpec.ContentType: insertContentTag(data[i]); offset = pos; break; } } }
4,956
protected void insertUpdate(ElementSpec[] data) { // Push the root and the paragraph at offset onto the element stack. Element current = root; int index; while (!current.isLeaf()) { index = current.getElementIndex(offset); elementStack.push(current); current = current.getElement(index); } int i = 0; int type = data[0].getType(); if (type == ElementSpec.ContentType) { // If the first tag is content we must treat it separately to allow // for joining properly to previous Elements and to ensure that // no extra LeafElements are erroneously inserted. insertFirstContentTag(data); pos += data[0].length; i = 1; } else { createFracture(data); i = 0; } // Handle each ElementSpec individually. for (; i < data.length; i++) { BranchElement paragraph = (BranchElement) elementStack.peek(); switch (data[i].getType()) { case ElementSpec.StartTagType: switch (data[i].getDirection()) { case ElementSpec.JoinFractureDirection: // Fracture the tree and ensure the appropriate element // is on top of the stack. fracNotCreated = false; insertFracture(data[i]); if (fracNotCreated) { if (lastFractured != null) elementStack.push(lastFractured.getParentElement()); else elementStack.push(paragraph.getElement(0)); } break; case ElementSpec.JoinNextDirection: // Push the next paragraph element onto the stack so // future insertions are added to it. int ix = paragraph.getElementIndex(pos) + 1; elementStack.push(paragraph.getElement(ix)); break; default: Element br = null; if (data.length > i + 1) { // leaves will be added to paragraph later int x = 0; if (paragraph.getElementCount() > 0) x = paragraph.getElementIndex(pos) + 1; Edit e = getEditForParagraphAndIndex(paragraph, x); br = (BranchElement) createBranchElement(paragraph, data[i].getAttributes()); e.added.add(br); elementStack.push(br); } else // need to add leaves to paragraph now br = insertParagraph(paragraph, pos); break; } break; case ElementSpec.EndTagType: elementStack.pop(); break; case ElementSpec.ContentType: insertContentTag(data[i]); offset = pos; break; } } }
protected void insertUpdate(ElementSpec[] data) { // Push the root and the paragraph at offset onto the element stack. Element current = root; int index; while (!current.isLeaf()) { index = current.getElementIndex(offset); elementStack.push(current); current = current.getElement(index); } int i = 0; int type = data[0].getType(); if (type == ElementSpec.ContentType) { // If the first tag is content we must treat it separately to allow // for joining properly to previous Elements and to ensure that // no extra LeafElements are erroneously inserted. insertFirstContentTag(data); pos += data[0].length; i = 1; } else { createFracture(data); i = 0; } // Handle each ElementSpec individually. for (; i < data.length; i++) { BranchElement paragraph = (BranchElement) elementStack.peek(); switch (data[i].getType()) { case ElementSpec.StartTagType: switch (data[i].getDirection()) { case ElementSpec.JoinFractureDirection: // Fracture the tree and ensure the appropriate element // is on top of the stack. fracNotCreated = false; insertFracture(data[i]); if (fracNotCreated) { if (lastFractured != null) elementStack.push(lastFractured.getParentElement()); else elementStack.push(paragraph.getElement(0)); } break; case ElementSpec.JoinNextDirection: // Push the next paragraph element onto the stack so // future insertions are added to it. int ix = paragraph.getElementIndex(pos) + 1; elementStack.push(paragraph.getElement(ix)); break; default: Element br = null; if (data.length > i + 1) { // leaves will be added to paragraph later int x = 0; if (paragraph.getElementCount() > 0) x = paragraph.getElementIndex(pos) + 1; Edit e = getEditForParagraphAndIndex(paragraph, x); br = (BranchElement) createBranchElement(paragraph, data[i].getAttributes()); e.added.add(br); elementStack.push(br); } else // need to add leaves to paragraph now br = insertParagraph(paragraph, pos); break; } break; case ElementSpec.EndTagType: elementStack.pop(); break; case ElementSpec.ContentType: insertContentTag(data[i]); offset = pos; break; } } }
4,957
protected void insertUpdate(ElementSpec[] data) { // Push the root and the paragraph at offset onto the element stack. Element current = root; int index; while (!current.isLeaf()) { index = current.getElementIndex(offset); elementStack.push(current); current = current.getElement(index); } int i = 0; int type = data[0].getType(); if (type == ElementSpec.ContentType) { // If the first tag is content we must treat it separately to allow // for joining properly to previous Elements and to ensure that // no extra LeafElements are erroneously inserted. insertFirstContentTag(data); pos += data[0].length; i = 1; } else { createFracture(data); i = 0; } // Handle each ElementSpec individually. for (; i < data.length; i++) { BranchElement paragraph = (BranchElement) elementStack.peek(); switch (data[i].getType()) { case ElementSpec.StartTagType: switch (data[i].getDirection()) { case ElementSpec.JoinFractureDirection: // Fracture the tree and ensure the appropriate element // is on top of the stack. fracNotCreated = false; insertFracture(data[i]); if (fracNotCreated) { if (lastFractured != null) elementStack.push(lastFractured.getParentElement()); else elementStack.push(paragraph.getElement(0)); } break; case ElementSpec.JoinNextDirection: // Push the next paragraph element onto the stack so // future insertions are added to it. int ix = paragraph.getElementIndex(pos) + 1; elementStack.push(paragraph.getElement(ix)); break; default: Element br = null; if (data.length > i + 1) { // leaves will be added to paragraph later int x = 0; if (paragraph.getElementCount() > 0) x = paragraph.getElementIndex(pos) + 1; Edit e = getEditForParagraphAndIndex(paragraph, x); br = (BranchElement) createBranchElement(paragraph, data[i].getAttributes()); e.added.add(br); elementStack.push(br); } else // need to add leaves to paragraph now br = insertParagraph(paragraph, pos); break; } break; case ElementSpec.EndTagType: elementStack.pop(); break; case ElementSpec.ContentType: insertContentTag(data[i]); offset = pos; break; } } }
protected void insertUpdate(ElementSpec[] data) { // Push the root and the paragraph at offset onto the element stack. Element current = root; int index; while (!current.isLeaf()) { index = current.getElementIndex(offset); elementStack.push(current); current = current.getElement(index); } int i = 0; int type = data[0].getType(); if (type == ElementSpec.ContentType) { // If the first tag is content we must treat it separately to allow // for joining properly to previous Elements and to ensure that // no extra LeafElements are erroneously inserted. insertFirstContentTag(data); pos += data[0].length; i = 1; } else { createFracture(data); i = 0; } // Handle each ElementSpec individually. for (; i < data.length; i++) { BranchElement paragraph = (BranchElement) elementStack.peek(); switch (data[i].getType()) { case ElementSpec.StartTagType: switch (data[i].getDirection()) { case ElementSpec.JoinFractureDirection: // Fracture the tree and ensure the appropriate element // is on top of the stack. fracNotCreated = false; insertFracture(data[i]); if (fracNotCreated) { if (lastFractured != null) elementStack.push(lastFractured.getParentElement()); else elementStack.push(paragraph.getElement(0)); } break; case ElementSpec.JoinNextDirection: // Push the next paragraph element onto the stack so // future insertions are added to it. int ix = paragraph.getElementIndex(pos) + 1; elementStack.push(paragraph.getElement(ix)); break; default: Element br = null; if (data.length > i + 1) { // leaves will be added to paragraph later int x = 0; if (paragraph.getElementCount() > 0) x = paragraph.getElementIndex(pos) + 1; Edit e = getEditForParagraphAndIndex(paragraph, x); br = (BranchElement) createBranchElement(paragraph, data[i].getAttributes()); e.added.add(br); elementStack.push(br); } else // need to add leaves to paragraph now br = insertParagraph(paragraph, pos); break; } break; case ElementSpec.EndTagType: elementStack.pop(); break; case ElementSpec.ContentType: insertContentTag(data[i]); offset = pos; break; } } }
4,958
protected void insertUpdate(ElementSpec[] data) { // Push the root and the paragraph at offset onto the element stack. Element current = root; int index; while (!current.isLeaf()) { index = current.getElementIndex(offset); elementStack.push(current); current = current.getElement(index); } int i = 0; int type = data[0].getType(); if (type == ElementSpec.ContentType) { // If the first tag is content we must treat it separately to allow // for joining properly to previous Elements and to ensure that // no extra LeafElements are erroneously inserted. insertFirstContentTag(data); pos += data[0].length; i = 1; } else { createFracture(data); i = 0; } // Handle each ElementSpec individually. for (; i < data.length; i++) { BranchElement paragraph = (BranchElement) elementStack.peek(); switch (data[i].getType()) { case ElementSpec.StartTagType: switch (data[i].getDirection()) { case ElementSpec.JoinFractureDirection: // Fracture the tree and ensure the appropriate element // is on top of the stack. fracNotCreated = false; insertFracture(data[i]); if (fracNotCreated) { if (lastFractured != null) elementStack.push(lastFractured.getParentElement()); else elementStack.push(paragraph.getElement(0)); } break; case ElementSpec.JoinNextDirection: // Push the next paragraph element onto the stack so // future insertions are added to it. int ix = paragraph.getElementIndex(pos) + 1; elementStack.push(paragraph.getElement(ix)); break; default: Element br = null; if (data.length > i + 1) { // leaves will be added to paragraph later int x = 0; if (paragraph.getElementCount() > 0) x = paragraph.getElementIndex(pos) + 1; Edit e = getEditForParagraphAndIndex(paragraph, x); br = (BranchElement) createBranchElement(paragraph, data[i].getAttributes()); e.added.add(br); elementStack.push(br); } else // need to add leaves to paragraph now br = insertParagraph(paragraph, pos); break; } break; case ElementSpec.EndTagType: elementStack.pop(); break; case ElementSpec.ContentType: insertContentTag(data[i]); offset = pos; break; } } }
protected void insertUpdate(ElementSpec[] data) { // Push the root and the paragraph at offset onto the element stack. Element current = root; int index; while (!current.isLeaf()) { index = current.getElementIndex(offset); elementStack.push(current); current = current.getElement(index); } int i = 0; int type = data[0].getType(); if (type == ElementSpec.ContentType) { // If the first tag is content we must treat it separately to allow // for joining properly to previous Elements and to ensure that // no extra LeafElements are erroneously inserted. insertFirstContentTag(data); pos += data[0].length; i = 1; } else { createFracture(data); i = 0; } // Handle each ElementSpec individually. for (; i < data.length; i++) { BranchElement paragraph = (BranchElement) elementStack.peek(); switch (data[i].getType()) { case ElementSpec.StartTagType: switch (data[i].getDirection()) { case ElementSpec.JoinFractureDirection: // Fracture the tree and ensure the appropriate element // is on top of the stack. fracNotCreated = false; insertFracture(data[i]); if (fracNotCreated) { if (lastFractured != null) elementStack.push(lastFractured.getParentElement()); else elementStack.push(paragraph.getElement(0)); } break; case ElementSpec.JoinNextDirection: // Push the next paragraph element onto the stack so // future insertions are added to it. int ix = paragraph.getElementIndex(pos) + 1; elementStack.push(paragraph.getElement(ix)); break; default: Element br = null; if (data.length > i + 1) { // leaves will be added to paragraph later int x = 0; if (paragraph.getElementCount() > 0) x = paragraph.getElementIndex(pos) + 1; Edit e = getEditForParagraphAndIndex(paragraph, x); br = (BranchElement) createBranchElement(paragraph, data[i].getAttributes()); e.added.add(br); elementStack.push(br); } else // need to add leaves to paragraph now br = insertParagraph(paragraph, pos); break; } break; case ElementSpec.EndTagType: elementStack.pop(); break; case ElementSpec.ContentType: insertContentTag(data[i]); offset = pos; break; } } }
4,959
protected void insertUpdate(ElementSpec[] data) { // Push the root and the paragraph at offset onto the element stack. Element current = root; int index; while (!current.isLeaf()) { index = current.getElementIndex(offset); elementStack.push(current); current = current.getElement(index); } int i = 0; int type = data[0].getType(); if (type == ElementSpec.ContentType) { // If the first tag is content we must treat it separately to allow // for joining properly to previous Elements and to ensure that // no extra LeafElements are erroneously inserted. insertFirstContentTag(data); pos += data[0].length; i = 1; } else { createFracture(data); i = 0; } // Handle each ElementSpec individually. for (; i < data.length; i++) { BranchElement paragraph = (BranchElement) elementStack.peek(); switch (data[i].getType()) { case ElementSpec.StartTagType: switch (data[i].getDirection()) { case ElementSpec.JoinFractureDirection: // Fracture the tree and ensure the appropriate element // is on top of the stack. fracNotCreated = false; insertFracture(data[i]); if (fracNotCreated) { if (lastFractured != null) elementStack.push(lastFractured.getParentElement()); else elementStack.push(paragraph.getElement(0)); } break; case ElementSpec.JoinNextDirection: // Push the next paragraph element onto the stack so // future insertions are added to it. int ix = paragraph.getElementIndex(pos) + 1; elementStack.push(paragraph.getElement(ix)); break; default: Element br = null; if (data.length > i + 1) { // leaves will be added to paragraph later int x = 0; if (paragraph.getElementCount() > 0) x = paragraph.getElementIndex(pos) + 1; Edit e = getEditForParagraphAndIndex(paragraph, x); br = (BranchElement) createBranchElement(paragraph, data[i].getAttributes()); e.added.add(br); elementStack.push(br); } else // need to add leaves to paragraph now br = insertParagraph(paragraph, pos); break; } break; case ElementSpec.EndTagType: elementStack.pop(); break; case ElementSpec.ContentType: insertContentTag(data[i]); offset = pos; break; } } }
protected void insertUpdate(ElementSpec[] data) { // Push the root and the paragraph at offset onto the element stack. Element current = root; int index; while (!current.isLeaf()) { index = current.getElementIndex(offset); elementStack.push(current); current = current.getElement(index); } int i = 0; int type = data[0].getType(); if (type == ElementSpec.ContentType) { // If the first tag is content we must treat it separately to allow // for joining properly to previous Elements and to ensure that // no extra LeafElements are erroneously inserted. insertFirstContentTag(data); pos += data[0].length; i = 1; } else { createFracture(data); i = 0; } // Handle each ElementSpec individually. for (; i < data.length; i++) { BranchElement paragraph = (BranchElement) elementStack.peek(); switch (data[i].getType()) { case ElementSpec.StartTagType: switch (data[i].getDirection()) { case ElementSpec.JoinFractureDirection: // Fracture the tree and ensure the appropriate element // is on top of the stack. fracNotCreated = false; insertFracture(data[i]); if (fracNotCreated) { if (lastFractured != null) elementStack.push(lastFractured.getParentElement()); else elementStack.push(paragraph.getElement(0)); } break; case ElementSpec.JoinNextDirection: // Push the next paragraph element onto the stack so // future insertions are added to it. int ix = paragraph.getElementIndex(pos) + 1; elementStack.push(paragraph.getElement(ix)); break; default: Element br = null; if (data.length > i + 1) { // leaves will be added to paragraph later int x = 0; if (paragraph.getElementCount() > 0) x = paragraph.getElementIndex(pos) + 1; Edit e = getEditForParagraphAndIndex(paragraph, x); br = (BranchElement) createBranchElement(paragraph, data[i].getAttributes()); e.added.add(br); elementStack.push(br); } else // need to add leaves to paragraph now br = insertParagraph(paragraph, pos); break; } break; case ElementSpec.EndTagType: elementStack.pop(); break; case ElementSpec.ContentType: insertContentTag(data[i]); offset = pos; break; } } }
4,960
protected void insertUpdate(ElementSpec[] data) { // Push the root and the paragraph at offset onto the element stack. Element current = root; int index; while (!current.isLeaf()) { index = current.getElementIndex(offset); elementStack.push(current); current = current.getElement(index); } int i = 0; int type = data[0].getType(); if (type == ElementSpec.ContentType) { // If the first tag is content we must treat it separately to allow // for joining properly to previous Elements and to ensure that // no extra LeafElements are erroneously inserted. insertFirstContentTag(data); pos += data[0].length; i = 1; } else { createFracture(data); i = 0; } // Handle each ElementSpec individually. for (; i < data.length; i++) { BranchElement paragraph = (BranchElement) elementStack.peek(); switch (data[i].getType()) { case ElementSpec.StartTagType: switch (data[i].getDirection()) { case ElementSpec.JoinFractureDirection: // Fracture the tree and ensure the appropriate element // is on top of the stack. fracNotCreated = false; insertFracture(data[i]); if (fracNotCreated) { if (lastFractured != null) elementStack.push(lastFractured.getParentElement()); else elementStack.push(paragraph.getElement(0)); } break; case ElementSpec.JoinNextDirection: // Push the next paragraph element onto the stack so // future insertions are added to it. int ix = paragraph.getElementIndex(pos) + 1; elementStack.push(paragraph.getElement(ix)); break; default: Element br = null; if (data.length > i + 1) { // leaves will be added to paragraph later int x = 0; if (paragraph.getElementCount() > 0) x = paragraph.getElementIndex(pos) + 1; Edit e = getEditForParagraphAndIndex(paragraph, x); br = (BranchElement) createBranchElement(paragraph, data[i].getAttributes()); e.added.add(br); elementStack.push(br); } else // need to add leaves to paragraph now br = insertParagraph(paragraph, pos); break; } break; case ElementSpec.EndTagType: elementStack.pop(); break; case ElementSpec.ContentType: insertContentTag(data[i]); offset = pos; break; } } }
protected void insertUpdate(ElementSpec[] data) { // Push the root and the paragraph at offset onto the element stack. Element current = root; int index; while (!current.isLeaf()) { index = current.getElementIndex(offset); elementStack.push(current); current = current.getElement(index); } int i = 0; int type = data[0].getType(); if (type == ElementSpec.ContentType) { // If the first tag is content we must treat it separately to allow // for joining properly to previous Elements and to ensure that // no extra LeafElements are erroneously inserted. insertFirstContentTag(data); pos += data[0].length; i = 1; } else { createFracture(data); i = 0; } // Handle each ElementSpec individually. for (; i < data.length; i++) { BranchElement paragraph = (BranchElement) elementStack.peek(); switch (data[i].getType()) { case ElementSpec.StartTagType: switch (data[i].getDirection()) { case ElementSpec.JoinFractureDirection: // Fracture the tree and ensure the appropriate element // is on top of the stack. fracNotCreated = false; insertFracture(data[i]); if (fracNotCreated) { if (lastFractured != null) elementStack.push(lastFractured.getParentElement()); else elementStack.push(paragraph.getElement(0)); } break; case ElementSpec.JoinNextDirection: // Push the next paragraph element onto the stack so // future insertions are added to it. int ix = paragraph.getElementIndex(pos) + 1; elementStack.push(paragraph.getElement(ix)); break; default: Element br = null; if (data.length > i + 1) { // leaves will be added to paragraph later int x = 0; if (paragraph.getElementCount() > 0) x = paragraph.getElementIndex(pos) + 1; Edit e = getEditForParagraphAndIndex(paragraph, x); br = (BranchElement) createBranchElement(paragraph, data[i].getAttributes()); e.added.add(br); elementStack.push(br); } else // need to add leaves to paragraph now br = insertParagraph(paragraph, pos); break; } break; case ElementSpec.EndTagType: elementStack.pop(); break; case ElementSpec.ContentType: insertContentTag(data[i]); offset = pos; break; } } }
4,961
protected void insertUpdate(ElementSpec[] data) { // Push the root and the paragraph at offset onto the element stack. Element current = root; int index; while (!current.isLeaf()) { index = current.getElementIndex(offset); elementStack.push(current); current = current.getElement(index); } int i = 0; int type = data[0].getType(); if (type == ElementSpec.ContentType) { // If the first tag is content we must treat it separately to allow // for joining properly to previous Elements and to ensure that // no extra LeafElements are erroneously inserted. insertFirstContentTag(data); pos += data[0].length; i = 1; } else { createFracture(data); i = 0; } // Handle each ElementSpec individually. for (; i < data.length; i++) { BranchElement paragraph = (BranchElement) elementStack.peek(); switch (data[i].getType()) { case ElementSpec.StartTagType: switch (data[i].getDirection()) { case ElementSpec.JoinFractureDirection: // Fracture the tree and ensure the appropriate element // is on top of the stack. fracNotCreated = false; insertFracture(data[i]); if (fracNotCreated) { if (lastFractured != null) elementStack.push(lastFractured.getParentElement()); else elementStack.push(paragraph.getElement(0)); } break; case ElementSpec.JoinNextDirection: // Push the next paragraph element onto the stack so // future insertions are added to it. int ix = paragraph.getElementIndex(pos) + 1; elementStack.push(paragraph.getElement(ix)); break; default: Element br = null; if (data.length > i + 1) { // leaves will be added to paragraph later int x = 0; if (paragraph.getElementCount() > 0) x = paragraph.getElementIndex(pos) + 1; Edit e = getEditForParagraphAndIndex(paragraph, x); br = (BranchElement) createBranchElement(paragraph, data[i].getAttributes()); e.added.add(br); elementStack.push(br); } else // need to add leaves to paragraph now br = insertParagraph(paragraph, pos); break; } break; case ElementSpec.EndTagType: elementStack.pop(); break; case ElementSpec.ContentType: insertContentTag(data[i]); offset = pos; break; } } }
protected void insertUpdate(ElementSpec[] data) { // Push the root and the paragraph at offset onto the element stack. Element current = root; int index; while (!current.isLeaf()) { index = current.getElementIndex(offset); elementStack.push(current); current = current.getElement(index); } int i = 0; int type = data[0].getType(); if (type == ElementSpec.ContentType) { // If the first tag is content we must treat it separately to allow // for joining properly to previous Elements and to ensure that // no extra LeafElements are erroneously inserted. insertFirstContentTag(data); pos += data[0].length; i = 1; } else { createFracture(data); i = 0; } // Handle each ElementSpec individually. for (; i < data.length; i++) { BranchElement paragraph = (BranchElement) elementStack.peek(); switch (data[i].getType()) { case ElementSpec.StartTagType: switch (data[i].getDirection()) { case ElementSpec.JoinFractureDirection: // Fracture the tree and ensure the appropriate element // is on top of the stack. fracNotCreated = false; insertFracture(data[i]); if (fracNotCreated) { if (lastFractured != null) elementStack.push(lastFractured.getParentElement()); else elementStack.push(paragraph.getElement(0)); } break; case ElementSpec.JoinNextDirection: // Push the next paragraph element onto the stack so // future insertions are added to it. int ix = paragraph.getElementIndex(pos) + 1; elementStack.push(paragraph.getElement(ix)); break; default: Element br = null; if (data.length > i + 1) { // leaves will be added to paragraph later int x = 0; if (paragraph.getElementCount() > 0) x = paragraph.getElementIndex(pos) + 1; Edit e = getEditForParagraphAndIndex(paragraph, x); br = (BranchElement) createBranchElement(paragraph, data[i].getAttributes()); e.added.add(br); elementStack.push(br); } else // need to add leaves to paragraph now br = insertParagraph(paragraph, pos); break; } break; case ElementSpec.EndTagType: elementStack.pop(); break; case ElementSpec.ContentType: insertContentTag(data[i]); offset = pos; break; } } }
4,962
protected void insertUpdate(ElementSpec[] data) { // Push the root and the paragraph at offset onto the element stack. Element current = root; int index; while (!current.isLeaf()) { index = current.getElementIndex(offset); elementStack.push(current); current = current.getElement(index); } int i = 0; int type = data[0].getType(); if (type == ElementSpec.ContentType) { // If the first tag is content we must treat it separately to allow // for joining properly to previous Elements and to ensure that // no extra LeafElements are erroneously inserted. insertFirstContentTag(data); pos += data[0].length; i = 1; } else { createFracture(data); i = 0; } // Handle each ElementSpec individually. for (; i < data.length; i++) { BranchElement paragraph = (BranchElement) elementStack.peek(); switch (data[i].getType()) { case ElementSpec.StartTagType: switch (data[i].getDirection()) { case ElementSpec.JoinFractureDirection: // Fracture the tree and ensure the appropriate element // is on top of the stack. fracNotCreated = false; insertFracture(data[i]); if (fracNotCreated) { if (lastFractured != null) elementStack.push(lastFractured.getParentElement()); else elementStack.push(paragraph.getElement(0)); } break; case ElementSpec.JoinNextDirection: // Push the next paragraph element onto the stack so // future insertions are added to it. int ix = paragraph.getElementIndex(pos) + 1; elementStack.push(paragraph.getElement(ix)); break; default: Element br = null; if (data.length > i + 1) { // leaves will be added to paragraph later int x = 0; if (paragraph.getElementCount() > 0) x = paragraph.getElementIndex(pos) + 1; Edit e = getEditForParagraphAndIndex(paragraph, x); br = (BranchElement) createBranchElement(paragraph, data[i].getAttributes()); e.added.add(br); elementStack.push(br); } else // need to add leaves to paragraph now br = insertParagraph(paragraph, pos); break; } break; case ElementSpec.EndTagType: elementStack.pop(); break; case ElementSpec.ContentType: insertContentTag(data[i]); offset = pos; break; } } }
protected void insertUpdate(ElementSpec[] data) { // Push the root and the paragraph at offset onto the element stack. Element current = root; int index; while (!current.isLeaf()) { index = current.getElementIndex(offset); elementStack.push(current); current = current.getElement(index); } int i = 0; int type = data[0].getType(); if (type == ElementSpec.ContentType) { // If the first tag is content we must treat it separately to allow // for joining properly to previous Elements and to ensure that // no extra LeafElements are erroneously inserted. insertFirstContentTag(data); pos += data[0].length; i = 1; } else { createFracture(data); i = 0; } // Handle each ElementSpec individually. for (; i < data.length; i++) { BranchElement paragraph = (BranchElement) elementStack.peek(); switch (data[i].getType()) { case ElementSpec.StartTagType: switch (data[i].getDirection()) { case ElementSpec.JoinFractureDirection: // Fracture the tree and ensure the appropriate element // is on top of the stack. fracNotCreated = false; insertFracture(data[i]); if (fracNotCreated) { if (lastFractured != null) elementStack.push(lastFractured.getParentElement()); else elementStack.push(paragraph.getElement(0)); } break; case ElementSpec.JoinNextDirection: // Push the next paragraph element onto the stack so // future insertions are added to it. int ix = paragraph.getElementIndex(pos) + 1; elementStack.push(paragraph.getElement(ix)); break; default: Element br = null; if (data.length > i + 1) { // leaves will be added to paragraph later int x = 0; if (paragraph.getElementCount() > 0) x = paragraph.getElementIndex(pos) + 1; Edit e = getEditForParagraphAndIndex(paragraph, x); br = (BranchElement) createBranchElement(paragraph, data[i].getAttributes()); e.added.add(br); elementStack.push(br); } else // need to add leaves to paragraph now br = insertParagraph(paragraph, pos); break; } break; case ElementSpec.EndTagType: elementStack.pop(); break; case ElementSpec.ContentType: insertContentTag(data[i]); offset = pos; break; } } }
4,963
protected void insertUpdate(ElementSpec[] data) { // Push the root and the paragraph at offset onto the element stack. Element current = root; int index; while (!current.isLeaf()) { index = current.getElementIndex(offset); elementStack.push(current); current = current.getElement(index); } int i = 0; int type = data[0].getType(); if (type == ElementSpec.ContentType) { // If the first tag is content we must treat it separately to allow // for joining properly to previous Elements and to ensure that // no extra LeafElements are erroneously inserted. insertFirstContentTag(data); pos += data[0].length; i = 1; } else { createFracture(data); i = 0; } // Handle each ElementSpec individually. for (; i < data.length; i++) { BranchElement paragraph = (BranchElement) elementStack.peek(); switch (data[i].getType()) { case ElementSpec.StartTagType: switch (data[i].getDirection()) { case ElementSpec.JoinFractureDirection: // Fracture the tree and ensure the appropriate element // is on top of the stack. fracNotCreated = false; insertFracture(data[i]); if (fracNotCreated) { if (lastFractured != null) elementStack.push(lastFractured.getParentElement()); else elementStack.push(paragraph.getElement(0)); } break; case ElementSpec.JoinNextDirection: // Push the next paragraph element onto the stack so // future insertions are added to it. int ix = paragraph.getElementIndex(pos) + 1; elementStack.push(paragraph.getElement(ix)); break; default: Element br = null; if (data.length > i + 1) { // leaves will be added to paragraph later int x = 0; if (paragraph.getElementCount() > 0) x = paragraph.getElementIndex(pos) + 1; Edit e = getEditForParagraphAndIndex(paragraph, x); br = (BranchElement) createBranchElement(paragraph, data[i].getAttributes()); e.added.add(br); elementStack.push(br); } else // need to add leaves to paragraph now br = insertParagraph(paragraph, pos); break; } break; case ElementSpec.EndTagType: elementStack.pop(); break; case ElementSpec.ContentType: insertContentTag(data[i]); offset = pos; break; } } }
protected void insertUpdate(ElementSpec[] data) { // Push the root and the paragraph at offset onto the element stack. Element current = root; int index; while (!current.isLeaf()) { index = current.getElementIndex(offset); elementStack.push(current); current = current.getElement(index); } int i = 0; int type = data[0].getType(); if (type == ElementSpec.ContentType) { // If the first tag is content we must treat it separately to allow // for joining properly to previous Elements and to ensure that // no extra LeafElements are erroneously inserted. insertFirstContentTag(data); pos += data[0].length; i = 1; } else { createFracture(data); i = 0; } // Handle each ElementSpec individually. for (; i < data.length; i++) { BranchElement paragraph = (BranchElement) elementStack.peek(); switch (data[i].getType()) { case ElementSpec.StartTagType: switch (data[i].getDirection()) { case ElementSpec.JoinFractureDirection: // Fracture the tree and ensure the appropriate element // is on top of the stack. fracNotCreated = false; insertFracture(data[i]); if (fracNotCreated) { if (lastFractured != null) elementStack.push(lastFractured.getParentElement()); else elementStack.push(paragraph.getElement(0)); } break; case ElementSpec.JoinNextDirection: // Push the next paragraph element onto the stack so // future insertions are added to it. int ix = paragraph.getElementIndex(pos) + 1; elementStack.push(paragraph.getElement(ix)); break; default: Element br = null; if (data.length > i + 1) { // leaves will be added to paragraph later int x = 0; if (paragraph.getElementCount() > 0) x = paragraph.getElementIndex(pos) + 1; Edit e = getEditForParagraphAndIndex(paragraph, x); br = (BranchElement) createBranchElement(paragraph, data[i].getAttributes()); e.added.add(br); elementStack.push(br); } else // need to add leaves to paragraph now br = insertParagraph(paragraph, pos); break; } break; case ElementSpec.EndTagType: elementStack.pop(); break; case ElementSpec.ContentType: insertContentTag(data[i]); offset = pos; break; } } }
4,964
protected void insertUpdate(ElementSpec[] data) { // Push the root and the paragraph at offset onto the element stack. Element current = root; int index; while (!current.isLeaf()) { index = current.getElementIndex(offset); elementStack.push(current); current = current.getElement(index); } int i = 0; int type = data[0].getType(); if (type == ElementSpec.ContentType) { // If the first tag is content we must treat it separately to allow // for joining properly to previous Elements and to ensure that // no extra LeafElements are erroneously inserted. insertFirstContentTag(data); pos += data[0].length; i = 1; } else { createFracture(data); i = 0; } // Handle each ElementSpec individually. for (; i < data.length; i++) { BranchElement paragraph = (BranchElement) elementStack.peek(); switch (data[i].getType()) { case ElementSpec.StartTagType: switch (data[i].getDirection()) { case ElementSpec.JoinFractureDirection: // Fracture the tree and ensure the appropriate element // is on top of the stack. fracNotCreated = false; insertFracture(data[i]); if (fracNotCreated) { if (lastFractured != null) elementStack.push(lastFractured.getParentElement()); else elementStack.push(paragraph.getElement(0)); } break; case ElementSpec.JoinNextDirection: // Push the next paragraph element onto the stack so // future insertions are added to it. int ix = paragraph.getElementIndex(pos) + 1; elementStack.push(paragraph.getElement(ix)); break; default: Element br = null; if (data.length > i + 1) { // leaves will be added to paragraph later int x = 0; if (paragraph.getElementCount() > 0) x = paragraph.getElementIndex(pos) + 1; Edit e = getEditForParagraphAndIndex(paragraph, x); br = (BranchElement) createBranchElement(paragraph, data[i].getAttributes()); e.added.add(br); elementStack.push(br); } else // need to add leaves to paragraph now br = insertParagraph(paragraph, pos); break; } break; case ElementSpec.EndTagType: elementStack.pop(); break; case ElementSpec.ContentType: insertContentTag(data[i]); offset = pos; break; } } }
protected void insertUpdate(ElementSpec[] data) { // Push the root and the paragraph at offset onto the element stack. Element current = root; int index; while (!current.isLeaf()) { index = current.getElementIndex(offset); elementStack.push(current); current = current.getElement(index); } int i = 0; int type = data[0].getType(); if (type == ElementSpec.ContentType) { // If the first tag is content we must treat it separately to allow // for joining properly to previous Elements and to ensure that // no extra LeafElements are erroneously inserted. insertFirstContentTag(data); pos += data[0].length; i = 1; } else { createFracture(data); i = 0; } // Handle each ElementSpec individually. for (; i < data.length; i++) { BranchElement paragraph = (BranchElement) elementStack.peek(); switch (data[i].getType()) { case ElementSpec.StartTagType: switch (data[i].getDirection()) { case ElementSpec.JoinFractureDirection: // Fracture the tree and ensure the appropriate element // is on top of the stack. fracNotCreated = false; insertFracture(data[i]); if (fracNotCreated) { if (lastFractured != null) elementStack.push(lastFractured.getParentElement()); else elementStack.push(paragraph.getElement(0)); } break; case ElementSpec.JoinNextDirection: // Push the next paragraph element onto the stack so // future insertions are added to it. int ix = paragraph.getElementIndex(pos) + 1; elementStack.push(paragraph.getElement(ix)); break; default: Element br = null; if (data.length > i + 1) { // leaves will be added to paragraph later int x = 0; if (paragraph.getElementCount() > 0) x = paragraph.getElementIndex(pos) + 1; Edit e = getEditForParagraphAndIndex(paragraph, x); br = (BranchElement) createBranchElement(paragraph, data[i].getAttributes()); e.added.add(br); elementStack.push(br); } else // need to add leaves to paragraph now br = insertParagraph(paragraph, pos); break; } break; case ElementSpec.EndTagType: elementStack.pop(); break; case ElementSpec.ContentType: insertContentTag(data[i]); offset = pos; break; } } }
4,965
public void remove(int offs, int len, DefaultDocumentEvent ev) { if (len == 0) return; offset = offs; length = len; pos = offset; documentEvent = ev; removeUpdate(); }
public void remove(int offs, int len, DefaultDocumentEvent ev) { if (len == 0) return; offset = offs; length = len; pos = offset; documentEvent = ev; removeUpdate(); }
4,966
protected void removeUpdate() { int startParagraph = root.getElementIndex(offset); int endParagraph = root.getElementIndex(offset + length); Element[] empty = new Element[0]; int removeStart = -1; int removeEnd = -1; for (int i = startParagraph; i < endParagraph; i++) { BranchElement paragraph = (BranchElement) root.getElement(i); int contentStart = paragraph.getElementIndex(offset); int contentEnd = paragraph.getElementIndex(offset + length); if (contentStart == paragraph.getStartOffset() && contentEnd == paragraph.getEndOffset()) { // In this case we only need to remove the whole paragraph. We // do this in one go after this loop and only record the indices // here. if (removeStart == -1) { removeStart = i; removeEnd = i; } else removeEnd = i; } else { // In this case we remove a couple of child elements from this // paragraph. int removeLen = contentEnd - contentStart; Element[] removed = new Element[removeLen]; for (int j = contentStart; j < contentEnd; j++) removed[j] = paragraph.getElement(j); Edit edit = getEditForParagraphAndIndex(paragraph, contentStart); edit.addRemovedElements(removed); } } // Now we remove paragraphs from the root that have been tagged for // removal. if (removeStart != -1) { int removeLen = removeEnd - removeStart; Element[] removed = new Element[removeLen]; for (int i = removeStart; i < removeEnd; i++) removed[i] = root.getElement(i); Edit edit = getEditForParagraphAndIndex((BranchElement) root, removeStart); edit.addRemovedElements(removed); } }
protected void removeUpdate() { int startParagraph = root.getElementIndex(offset); int endParagraph = root.getElementIndex(offset + length); Element[] empty = new Element[0]; int removeStart = -1; int removeEnd = -1; for (int i = startParagraph; i < endParagraph; i++) { BranchElement paragraph = (BranchElement) root.getElement(i); int contentStart = paragraph.getElementIndex(offset); int contentEnd = paragraph.getElementIndex(offset + length); if (contentStart == paragraph.getStartOffset() && contentEnd == paragraph.getEndOffset()) { // In this case we only need to remove the whole paragraph. We // do this in one go after this loop and only record the indices // here. if (removeStart == -1) { removeStart = i; removeEnd = i; } else removeEnd = i; } else { // In this case we remove a couple of child elements from this // paragraph. int removeLen = contentEnd - contentStart; Element[] removed = new Element[removeLen]; for (int j = contentStart; j < contentEnd; j++) removed[j] = paragraph.getElement(j); Edit edit = getEditForParagraphAndIndex(paragraph, contentStart); edit.addRemovedElements(removed); } } // Now we remove paragraphs from the root that have been tagged for // removal. if (removeStart != -1) { int removeLen = removeEnd - removeStart; Element[] removed = new Element[removeLen]; for (int i = removeStart; i < removeEnd; i++) removed[i] = root.getElement(i); Edit edit = getEditForParagraphAndIndex((BranchElement) root, removeStart); edit.addRemovedElements(removed); } }
4,968
private Element[] split(Element el, int offset, int space, int editIndex) { // If we are at an element boundary, then return an empty array. if ((offset == el.getStartOffset() || offset == el.getEndOffset()) && space == 0 && el.isLeaf()) return new Element[2]; // If the element is an instance of BranchElement, then we // recursivly // call this method to perform the split. Element[] res = new Element[2]; if (el instanceof BranchElement) { int index = el.getElementIndex(offset); Element child = el.getElement(index); Element[] result = split(child, offset, space, editIndex); Element[] removed; Element[] added; Element[] newAdded; int count = el.getElementCount(); if (result[1] != null) { // This is the case when we can keep the first element. if (result[0] == null) { removed = new Element[count - index - 1]; newAdded = new Element[count - index - 1]; added = new Element[] {}; } // This is the case when we may not keep the first // element. else { removed = new Element[count - index]; newAdded = new Element[count - index]; added = new Element[] { result[0] }; } newAdded[0] = result[1]; for (int i = index; i < count; i++) { Element el2 = el.getElement(i); int ind = i - count + removed.length; removed[ind] = el2; if (ind != 0) newAdded[ind] = el2; } Edit edit = getEditForParagraphAndIndex((BranchElement) el, editIndex); edit.addRemovedElements(removed); edit.addAddedElements(added); BranchElement newPar = (BranchElement) createBranchElement(el.getParentElement(), el.getAttributes()); newPar.replace(0, 0, newAdded); res = new Element[] { null, newPar }; } else { removed = new Element[count - index]; for (int i = index; i < count; ++i) removed[i - index] = el.getElement(i); Edit edit = getEditForParagraphAndIndex((BranchElement) el, editIndex); edit.addRemovedElements(removed); BranchElement newPar = (BranchElement) createBranchElement(el.getParentElement(), el.getAttributes()); newPar.replace(0, 0, removed); res = new Element[] { null, newPar }; } } else if (el instanceof LeafElement) { BranchElement par = (BranchElement) el.getParentElement(); Element el1 = createLeafElement(par, el.getAttributes(), el.getStartOffset(), offset); Element el2 = createLeafElement(par, el.getAttributes(), offset + space, el.getEndOffset()); res = new Element[] { el1, el2 }; } return res; }
private boolean split(int offs, int len) { boolean splitEnd = false; Element e = root; int index = e.getElementIndex(offs); while (! e.isLeaf()) { elementStack.push(new Edit(e, index)); e = e.getElement(index); index = e.getElementIndex(offs); } Edit ec = (Edit) elementStack.peek(); Element child = ec.e.getElement(ec.index); if (child.getStartOffset() < offs && offs < child.getEndOffset()) { int index0 = ec.index; int index1 = index0; if (((offs + len) < ec.e.getEndOffset()) && (len != 0)) { index1 = ec.e.getElementIndex(offs+len); if (index1 == index0) { ec.removed.add(child); e = createLeafElement(ec.e, child.getAttributes(), child.getStartOffset(), offs); ec.added.add(e); e = createLeafElement(ec.e, child.getAttributes(), offs, offs + len); ec.added.add(e); e = createLeafElement(ec.e, child.getAttributes(), offs + len, child.getEndOffset()); ec.added.add(e); return true; } else { child = ec.e.getElement(index1); if ((offs + len) == child.getStartOffset()) { // If we are at an element boundary, then return an empty array. if ((offset == el.getStartOffset() || offset == el.getEndOffset()) && space == 0 && el.isLeaf()) return new Element[2]; // If the element is an instance of BranchElement, then we // recursivly // call this method to perform the split. Element[] res = new Element[2]; if (el instanceof BranchElement) { int index = el.getElementIndex(offset); Element child = el.getElement(index); Element[] result = split(child, offset, space, editIndex); Element[] removed; Element[] added; Element[] newAdded; int count = el.getElementCount(); if (result[1] != null) { // This is the case when we can keep the first element. if (result[0] == null) { removed = new Element[count - index - 1]; newAdded = new Element[count - index - 1]; added = new Element[] {}; } // This is the case when we may not keep the first // element. else { removed = new Element[count - index]; newAdded = new Element[count - index]; added = new Element[] { result[0] }; } newAdded[0] = result[1]; for (int i = index; i < count; i++) { Element el2 = el.getElement(i); int ind = i - count + removed.length; removed[ind] = el2; if (ind != 0) newAdded[ind] = el2; } Edit edit = getEditForParagraphAndIndex((BranchElement) el, editIndex); edit.addRemovedElements(removed); edit.addAddedElements(added); BranchElement newPar = (BranchElement) createBranchElement(el.getParentElement(), el.getAttributes()); newPar.replace(0, 0, newAdded); res = new Element[] { null, newPar }; } else { removed = new Element[count - index]; for (int i = index; i < count; ++i) removed[i - index] = el.getElement(i); Edit edit = getEditForParagraphAndIndex((BranchElement) el, editIndex); edit.addRemovedElements(removed); BranchElement newPar = (BranchElement) createBranchElement(el.getParentElement(), el.getAttributes()); newPar.replace(0, 0, removed); res = new Element[] { null, newPar }; } } else if (el instanceof LeafElement) { BranchElement par = (BranchElement) el.getParentElement(); Element el1 = createLeafElement(par, el.getAttributes(), el.getStartOffset(), offset); Element el2 = createLeafElement(par, el.getAttributes(), offset + space, el.getEndOffset()); res = new Element[] { el1, el2 }; } return res; }
4,969
private Element[] split(Element el, int offset, int space, int editIndex) { // If we are at an element boundary, then return an empty array. if ((offset == el.getStartOffset() || offset == el.getEndOffset()) && space == 0 && el.isLeaf()) return new Element[2]; // If the element is an instance of BranchElement, then we // recursivly // call this method to perform the split. Element[] res = new Element[2]; if (el instanceof BranchElement) { int index = el.getElementIndex(offset); Element child = el.getElement(index); Element[] result = split(child, offset, space, editIndex); Element[] removed; Element[] added; Element[] newAdded; int count = el.getElementCount(); if (result[1] != null) { // This is the case when we can keep the first element. if (result[0] == null) { removed = new Element[count - index - 1]; newAdded = new Element[count - index - 1]; added = new Element[] {}; } // This is the case when we may not keep the first // element. else { removed = new Element[count - index]; newAdded = new Element[count - index]; added = new Element[] { result[0] }; } newAdded[0] = result[1]; for (int i = index; i < count; i++) { Element el2 = el.getElement(i); int ind = i - count + removed.length; removed[ind] = el2; if (ind != 0) newAdded[ind] = el2; } Edit edit = getEditForParagraphAndIndex((BranchElement) el, editIndex); edit.addRemovedElements(removed); edit.addAddedElements(added); BranchElement newPar = (BranchElement) createBranchElement(el.getParentElement(), el.getAttributes()); newPar.replace(0, 0, newAdded); res = new Element[] { null, newPar }; } else { removed = new Element[count - index]; for (int i = index; i < count; ++i) removed[i - index] = el.getElement(i); Edit edit = getEditForParagraphAndIndex((BranchElement) el, editIndex); edit.addRemovedElements(removed); BranchElement newPar = (BranchElement) createBranchElement(el.getParentElement(), el.getAttributes()); newPar.replace(0, 0, removed); res = new Element[] { null, newPar }; } } else if (el instanceof LeafElement) { BranchElement par = (BranchElement) el.getParentElement(); Element el1 = createLeafElement(par, el.getAttributes(), el.getStartOffset(), offset); Element el2 = createLeafElement(par, el.getAttributes(), offset + space, el.getEndOffset()); res = new Element[] { el1, el2 }; } return res; }
private Element[] split(Element el, int offset, int space, int editIndex) { // If we are at an element boundary, then return an empty array. if ((offset == el.getStartOffset() || offset == el.getEndOffset()) && space == 0 && el.isLeaf()) return new Element[2]; // If the element is an instance of BranchElement, then we // recursivly // call this method to perform the split. Element[] res = new Element[2]; if (el instanceof BranchElement) { int index = el.getElementIndex(offset); Element child = el.getElement(index); Element[] result = split(child, offset, space, editIndex); Element[] removed; Element[] added; Element[] newAdded; int count = el.getElementCount(); if (result[1] != null) { // This is the case when we can keep the first element. if (result[0] == null) { removed = new Element[count - index - 1]; newAdded = new Element[count - index - 1]; added = new Element[] {}; } // This is the case when we may not keep the first // element. else { removed = new Element[count - index]; newAdded = new Element[count - index]; added = new Element[] { result[0] }; } newAdded[0] = result[1]; for (int i = index; i < count; i++) { Element el2 = el.getElement(i); int ind = i - count + removed.length; removed[ind] = el2; if (ind != 0) newAdded[ind] = el2; } Edit edit = getEditForParagraphAndIndex((BranchElement) el, editIndex); edit.addRemovedElements(removed); edit.addAddedElements(added); BranchElement newPar = (BranchElement) createBranchElement(el.getParentElement(), el.getAttributes()); newPar.replace(0, 0, newAdded); res = new Element[] { null, newPar }; } else { removed = new Element[count - index]; for (int i = index; i < count; ++i) removed[i - index] = el.getElement(i); Edit edit = getEditForParagraphAndIndex((BranchElement) el, editIndex); edit.addRemovedElements(removed); BranchElement newPar = (BranchElement) createBranchElement(el.getParentElement(), el.getAttributes()); newPar.replace(0, 0, removed); res = new Element[] { null, newPar }; } } else if (el instanceof LeafElement) { BranchElement par = (BranchElement) el.getParentElement(); Element el1 = createLeafElement(par, el.getAttributes(), el.getStartOffset(), offset); Element el2 = createLeafElement(par, el.getAttributes(), offset + space, el.getEndOffset()); res = new Element[] { el1, el2 }; } return res; }
4,970
private Element[] split(Element el, int offset, int space, int editIndex) { // If we are at an element boundary, then return an empty array. if ((offset == el.getStartOffset() || offset == el.getEndOffset()) && space == 0 && el.isLeaf()) return new Element[2]; // If the element is an instance of BranchElement, then we // recursivly // call this method to perform the split. Element[] res = new Element[2]; if (el instanceof BranchElement) { int index = el.getElementIndex(offset); Element child = el.getElement(index); Element[] result = split(child, offset, space, editIndex); Element[] removed; Element[] added; Element[] newAdded; int count = el.getElementCount(); if (result[1] != null) { // This is the case when we can keep the first element. if (result[0] == null) { removed = new Element[count - index - 1]; newAdded = new Element[count - index - 1]; added = new Element[] {}; } // This is the case when we may not keep the first // element. else { removed = new Element[count - index]; newAdded = new Element[count - index]; added = new Element[] { result[0] }; } newAdded[0] = result[1]; for (int i = index; i < count; i++) { Element el2 = el.getElement(i); int ind = i - count + removed.length; removed[ind] = el2; if (ind != 0) newAdded[ind] = el2; } Edit edit = getEditForParagraphAndIndex((BranchElement) el, editIndex); edit.addRemovedElements(removed); edit.addAddedElements(added); BranchElement newPar = (BranchElement) createBranchElement(el.getParentElement(), el.getAttributes()); newPar.replace(0, 0, newAdded); res = new Element[] { null, newPar }; } else { removed = new Element[count - index]; for (int i = index; i < count; ++i) removed[i - index] = el.getElement(i); Edit edit = getEditForParagraphAndIndex((BranchElement) el, editIndex); edit.addRemovedElements(removed); BranchElement newPar = (BranchElement) createBranchElement(el.getParentElement(), el.getAttributes()); newPar.replace(0, 0, removed); res = new Element[] { null, newPar }; } } else if (el instanceof LeafElement) { BranchElement par = (BranchElement) el.getParentElement(); Element el1 = createLeafElement(par, el.getAttributes(), el.getStartOffset(), offset); Element el2 = createLeafElement(par, el.getAttributes(), offset + space, el.getEndOffset()); res = new Element[] { el1, el2 }; } return res; }
private Element[] split(Element el, int offset, int space, int editIndex) { // If we are at an element boundary, then return an empty array. if ((offset == el.getStartOffset() || offset == el.getEndOffset()) && space == 0 && el.isLeaf()) return new Element[2]; // If the element is an instance of BranchElement, then we // recursivly // call this method to perform the split. Element[] res = new Element[2]; if (el instanceof BranchElement) { int index = el.getElementIndex(offset); Element child = el.getElement(index); Element[] result = split(child, offset, space, editIndex); Element[] removed; Element[] added; Element[] newAdded; int count = el.getElementCount(); if (result[1] != null) { // This is the case when we can keep the first element. if (result[0] == null) { removed = new Element[count - index - 1]; newAdded = new Element[count - index - 1]; added = new Element[] {}; } // This is the case when we may not keep the first // element. else { removed = new Element[count - index]; newAdded = new Element[count - index]; added = new Element[] { result[0] }; } newAdded[0] = result[1]; for (int i = index; i < count; i++) { Element el2 = el.getElement(i); int ind = i - count + removed.length; removed[ind] = el2; if (ind != 0) newAdded[ind] = el2; } Edit edit = getEditForParagraphAndIndex((BranchElement) el, editIndex); edit.addRemovedElements(removed); edit.addAddedElements(added); BranchElement newPar = (BranchElement) createBranchElement(el.getParentElement(), el.getAttributes()); newPar.replace(0, 0, newAdded); res = new Element[] { null, newPar }; } else { removed = new Element[count - index]; for (int i = index; i < count; ++i) removed[i - index] = el.getElement(i); Edit edit = getEditForParagraphAndIndex((BranchElement) el, editIndex); edit.addRemovedElements(removed); BranchElement newPar = (BranchElement) createBranchElement(el.getParentElement(), el.getAttributes()); newPar.replace(0, 0, removed); res = new Element[] { null, newPar }; } } else if (el instanceof LeafElement) { BranchElement par = (BranchElement) el.getParentElement(); Element el1 = createLeafElement(par, el.getAttributes(), el.getStartOffset(), offset); Element el2 = createLeafElement(par, el.getAttributes(), offset + space, el.getEndOffset()); res = new Element[] { el1, el2 }; } return res; }
4,971
protected void insertUpdate(DefaultDocumentEvent ev, AttributeSet attr) { super.insertUpdate(ev, attr); // If the attribute set is null, use an empty attribute set. if (attr == null) attr = SimpleAttributeSet.EMPTY; int offset = ev.getOffset(); int length = ev.getLength(); int endOffset = offset + length; AttributeSet paragraphAttributes = getParagraphElement(endOffset).getAttributes(); Segment txt = new Segment(); try { getText(offset, length, txt); } catch (BadLocationException ex) { AssertionError ae = new AssertionError("Unexpected bad location"); ae.initCause(ex); throw ae; } int len = 0; Vector specs = new Vector(); ElementSpec finalStartTag = null; short finalStartDirection = ElementSpec.OriginateDirection; boolean prevCharWasNewline = false; Element prev = getCharacterElement(offset); Element next = getCharacterElement(endOffset); Element prevParagraph = getParagraphElement(offset); Element paragraph = getParagraphElement(endOffset); int segmentEnd = txt.offset + txt.count; // Check to see if we're inserting immediately after a newline. if (offset > 0) { try { String s = getText(offset - 1, 1); if (s.equals("\n")) { finalStartDirection = handleInsertAfterNewline(specs, offset, endOffset, prevParagraph, paragraph, paragraphAttributes); prevCharWasNewline = true; // Find the final start tag from the ones just created. for (int i = 0; i < specs.size(); i++) if (((ElementSpec) specs.get(i)).getType() == ElementSpec.StartTagType) finalStartTag = (ElementSpec) specs.get(i); } } catch (BadLocationException ble) { // This shouldn't happen. AssertionError ae = new AssertionError(); ae.initCause(ble); throw ae; } } for (int i = txt.offset; i < segmentEnd; ++i) { len++; if (txt.array[i] == '\n') { // Add the ElementSpec for the content. specs.add(new ElementSpec(attr, ElementSpec.ContentType, len)); // Add ElementSpecs for the newline. specs.add(new ElementSpec(null, ElementSpec.EndTagType)); finalStartTag = new ElementSpec(paragraphAttributes, ElementSpec.StartTagType); specs.add(finalStartTag); len = 0; } } // Create last element if last character hasn't been a newline. if (len > 0) specs.add(new ElementSpec(attr, ElementSpec.ContentType, len)); // Set the direction of the last spec of type StartTagType. // If we are inserting after a newline then this value comes from // handleInsertAfterNewline. if (finalStartTag != null) { if (prevCharWasNewline) finalStartTag.setDirection(finalStartDirection); else if (prevParagraph.getEndOffset() != endOffset) finalStartTag.setDirection(ElementSpec.JoinFractureDirection); else { // If there is an element AFTER this one, then set the // direction to JoinNextDirection. Element parent = prevParagraph.getParentElement(); int index = parent.getElementIndex(offset); if (index + 1 < parent.getElementCount() && !parent.getElement(index + 1).isLeaf()) finalStartTag.setDirection(ElementSpec.JoinNextDirection); } } // If we are at the last index, then check if we could probably be // joined with the next element. // This means: // - we must be a ContentTag // - if there is a next Element, we must have the same attributes // - if there is no next Element, but one will be created, // we must have the same attributes as the higher-level run. ElementSpec last = (ElementSpec) specs.lastElement(); if (last.getType() == ElementSpec.ContentType) { Element currentRun = prevParagraph.getElement(prevParagraph.getElementIndex(offset)); if (currentRun.getEndOffset() == endOffset) { if (endOffset < getLength() && next.getAttributes().isEqual(attr) && last.getType() == ElementSpec.ContentType) last.setDirection(ElementSpec.JoinNextDirection); } else { if (finalStartTag != null && finalStartTag.getDirection() == ElementSpec.JoinFractureDirection && currentRun.getAttributes().isEqual(attr)) { last.setDirection(ElementSpec.JoinNextDirection); } } } // If we are at the first new element, then check if it could be // joined with the previous element. ElementSpec first = (ElementSpec) specs.firstElement(); if (prev.getAttributes().isEqual(attr) && first.getType() == ElementSpec.ContentType) first.setDirection(ElementSpec.JoinPreviousDirection); ElementSpec[] elSpecs = (ElementSpec[]) specs.toArray(new ElementSpec[specs.size()]); buffer.insert(offset, length, elSpecs, ev); }
protected void insertUpdate(DefaultDocumentEvent ev, AttributeSet attr) { int offs = ev.getOffset(); int len = ev.getLength(); int endOffs = offs + len; // If the attribute set is null, use an empty attribute set. if (attr == null) attr = SimpleAttributeSet.EMPTY; int offset = ev.getOffset(); int length = ev.getLength(); int endOffset = offset + length; AttributeSet paragraphAttributes = getParagraphElement(endOffset).getAttributes(); Segment txt = new Segment(); try { getText(offset, length, txt); } catch (BadLocationException ex) { AssertionError ae = new AssertionError("Unexpected bad location"); ae.initCause(ex); throw ae; } int len = 0; Vector specs = new Vector(); ElementSpec finalStartTag = null; short finalStartDirection = ElementSpec.OriginateDirection; boolean prevCharWasNewline = false; Element prev = getCharacterElement(offset); Element next = getCharacterElement(endOffset); Element prevParagraph = getParagraphElement(offset); Element paragraph = getParagraphElement(endOffset); int segmentEnd = txt.offset + txt.count; // Check to see if we're inserting immediately after a newline. if (offset > 0) { try { String s = getText(offset - 1, 1); if (s.equals("\n")) { finalStartDirection = handleInsertAfterNewline(specs, offset, endOffset, prevParagraph, paragraph, paragraphAttributes); prevCharWasNewline = true; // Find the final start tag from the ones just created. for (int i = 0; i < specs.size(); i++) if (((ElementSpec) specs.get(i)).getType() == ElementSpec.StartTagType) finalStartTag = (ElementSpec) specs.get(i); } } catch (BadLocationException ble) { // This shouldn't happen. AssertionError ae = new AssertionError(); ae.initCause(ble); throw ae; } } for (int i = txt.offset; i < segmentEnd; ++i) { len++; if (txt.array[i] == '\n') { // Add the ElementSpec for the content. specs.add(new ElementSpec(attr, ElementSpec.ContentType, len)); // Add ElementSpecs for the newline. specs.add(new ElementSpec(null, ElementSpec.EndTagType)); finalStartTag = new ElementSpec(paragraphAttributes, ElementSpec.StartTagType); specs.add(finalStartTag); len = 0; } } // Create last element if last character hasn't been a newline. if (len > 0) specs.add(new ElementSpec(attr, ElementSpec.ContentType, len)); // Set the direction of the last spec of type StartTagType. // If we are inserting after a newline then this value comes from // handleInsertAfterNewline. if (finalStartTag != null) { if (prevCharWasNewline) finalStartTag.setDirection(finalStartDirection); else if (prevParagraph.getEndOffset() != endOffset) finalStartTag.setDirection(ElementSpec.JoinFractureDirection); else { // If there is an element AFTER this one, then set the // direction to JoinNextDirection. Element parent = prevParagraph.getParentElement(); int index = parent.getElementIndex(offset); if (index + 1 < parent.getElementCount() && !parent.getElement(index + 1).isLeaf()) finalStartTag.setDirection(ElementSpec.JoinNextDirection); } } // If we are at the last index, then check if we could probably be // joined with the next element. // This means: // - we must be a ContentTag // - if there is a next Element, we must have the same attributes // - if there is no next Element, but one will be created, // we must have the same attributes as the higher-level run. ElementSpec last = (ElementSpec) specs.lastElement(); if (last.getType() == ElementSpec.ContentType) { Element currentRun = prevParagraph.getElement(prevParagraph.getElementIndex(offset)); if (currentRun.getEndOffset() == endOffset) { if (endOffset < getLength() && next.getAttributes().isEqual(attr) && last.getType() == ElementSpec.ContentType) last.setDirection(ElementSpec.JoinNextDirection); } else { if (finalStartTag != null && finalStartTag.getDirection() == ElementSpec.JoinFractureDirection && currentRun.getAttributes().isEqual(attr)) { last.setDirection(ElementSpec.JoinNextDirection); } } } // If we are at the first new element, then check if it could be // joined with the previous element. ElementSpec first = (ElementSpec) specs.firstElement(); if (prev.getAttributes().isEqual(attr) && first.getType() == ElementSpec.ContentType) first.setDirection(ElementSpec.JoinPreviousDirection); ElementSpec[] elSpecs = (ElementSpec[]) specs.toArray(new ElementSpec[specs.size()]); buffer.insert(offset, length, elSpecs, ev); }
4,972
protected void insertUpdate(DefaultDocumentEvent ev, AttributeSet attr) { super.insertUpdate(ev, attr); // If the attribute set is null, use an empty attribute set. if (attr == null) attr = SimpleAttributeSet.EMPTY; int offset = ev.getOffset(); int length = ev.getLength(); int endOffset = offset + length; AttributeSet paragraphAttributes = getParagraphElement(endOffset).getAttributes(); Segment txt = new Segment(); try { getText(offset, length, txt); } catch (BadLocationException ex) { AssertionError ae = new AssertionError("Unexpected bad location"); ae.initCause(ex); throw ae; } int len = 0; Vector specs = new Vector(); ElementSpec finalStartTag = null; short finalStartDirection = ElementSpec.OriginateDirection; boolean prevCharWasNewline = false; Element prev = getCharacterElement(offset); Element next = getCharacterElement(endOffset); Element prevParagraph = getParagraphElement(offset); Element paragraph = getParagraphElement(endOffset); int segmentEnd = txt.offset + txt.count; // Check to see if we're inserting immediately after a newline. if (offset > 0) { try { String s = getText(offset - 1, 1); if (s.equals("\n")) { finalStartDirection = handleInsertAfterNewline(specs, offset, endOffset, prevParagraph, paragraph, paragraphAttributes); prevCharWasNewline = true; // Find the final start tag from the ones just created. for (int i = 0; i < specs.size(); i++) if (((ElementSpec) specs.get(i)).getType() == ElementSpec.StartTagType) finalStartTag = (ElementSpec) specs.get(i); } } catch (BadLocationException ble) { // This shouldn't happen. AssertionError ae = new AssertionError(); ae.initCause(ble); throw ae; } } for (int i = txt.offset; i < segmentEnd; ++i) { len++; if (txt.array[i] == '\n') { // Add the ElementSpec for the content. specs.add(new ElementSpec(attr, ElementSpec.ContentType, len)); // Add ElementSpecs for the newline. specs.add(new ElementSpec(null, ElementSpec.EndTagType)); finalStartTag = new ElementSpec(paragraphAttributes, ElementSpec.StartTagType); specs.add(finalStartTag); len = 0; } } // Create last element if last character hasn't been a newline. if (len > 0) specs.add(new ElementSpec(attr, ElementSpec.ContentType, len)); // Set the direction of the last spec of type StartTagType. // If we are inserting after a newline then this value comes from // handleInsertAfterNewline. if (finalStartTag != null) { if (prevCharWasNewline) finalStartTag.setDirection(finalStartDirection); else if (prevParagraph.getEndOffset() != endOffset) finalStartTag.setDirection(ElementSpec.JoinFractureDirection); else { // If there is an element AFTER this one, then set the // direction to JoinNextDirection. Element parent = prevParagraph.getParentElement(); int index = parent.getElementIndex(offset); if (index + 1 < parent.getElementCount() && !parent.getElement(index + 1).isLeaf()) finalStartTag.setDirection(ElementSpec.JoinNextDirection); } } // If we are at the last index, then check if we could probably be // joined with the next element. // This means: // - we must be a ContentTag // - if there is a next Element, we must have the same attributes // - if there is no next Element, but one will be created, // we must have the same attributes as the higher-level run. ElementSpec last = (ElementSpec) specs.lastElement(); if (last.getType() == ElementSpec.ContentType) { Element currentRun = prevParagraph.getElement(prevParagraph.getElementIndex(offset)); if (currentRun.getEndOffset() == endOffset) { if (endOffset < getLength() && next.getAttributes().isEqual(attr) && last.getType() == ElementSpec.ContentType) last.setDirection(ElementSpec.JoinNextDirection); } else { if (finalStartTag != null && finalStartTag.getDirection() == ElementSpec.JoinFractureDirection && currentRun.getAttributes().isEqual(attr)) { last.setDirection(ElementSpec.JoinNextDirection); } } } // If we are at the first new element, then check if it could be // joined with the previous element. ElementSpec first = (ElementSpec) specs.firstElement(); if (prev.getAttributes().isEqual(attr) && first.getType() == ElementSpec.ContentType) first.setDirection(ElementSpec.JoinPreviousDirection); ElementSpec[] elSpecs = (ElementSpec[]) specs.toArray(new ElementSpec[specs.size()]); buffer.insert(offset, length, elSpecs, ev); }
protected void insertUpdate(DefaultDocumentEvent ev, AttributeSet attr) { super.insertUpdate(ev, attr); // If the attribute set is null, use an empty attribute set. if (attr == null) attr = SimpleAttributeSet.EMPTY; int offset = ev.getOffset(); int length = ev.getLength(); int endOffset = offset + length; AttributeSet paragraphAttributes = getParagraphElement(endOffset).getAttributes(); Segment txt = new Segment(); try { getText(offset, length, txt); } catch (BadLocationException ex) { AssertionError ae = new AssertionError("Unexpected bad location"); ae.initCause(ex); throw ae; } int len = 0; Vector specs = new Vector(); ElementSpec finalStartTag = null; short finalStartDirection = ElementSpec.OriginateDirection; boolean prevCharWasNewline = false; Element prev = getCharacterElement(offset); Element next = getCharacterElement(endOffset); Element prevParagraph = getParagraphElement(offset); Element paragraph = getParagraphElement(endOffset); int segmentEnd = txt.offset + txt.count; // Check to see if we're inserting immediately after a newline. if (offset > 0) { try { String s = getText(offset - 1, 1); if (s.equals("\n")) { finalStartDirection = handleInsertAfterNewline(specs, offset, endOffset, prevParagraph, paragraph, paragraphAttributes); prevCharWasNewline = true; // Find the final start tag from the ones just created. for (int i = 0; i < specs.size(); i++) if (((ElementSpec) specs.get(i)).getType() == ElementSpec.StartTagType) finalStartTag = (ElementSpec) specs.get(i); } } catch (BadLocationException ble) { // This shouldn't happen. AssertionError ae = new AssertionError(); ae.initCause(ble); throw ae; } } for (int i = txt.offset; i < segmentEnd; ++i) { len++; if (txt.array[i] == '\n') { // Add the ElementSpec for the content. specs.add(new ElementSpec(attr, ElementSpec.ContentType, len)); // Add ElementSpecs for the newline. specs.add(new ElementSpec(null, ElementSpec.EndTagType)); finalStartTag = new ElementSpec(paragraphAttributes, ElementSpec.StartTagType); specs.add(finalStartTag); len = 0; } } // Create last element if last character hasn't been a newline. if (len > 0) specs.add(new ElementSpec(attr, ElementSpec.ContentType, len)); // Set the direction of the last spec of type StartTagType. // If we are inserting after a newline then this value comes from // handleInsertAfterNewline. if (finalStartTag != null) { if (prevCharWasNewline) finalStartTag.setDirection(finalStartDirection); else if (prevParagraph.getEndOffset() != endOffset) finalStartTag.setDirection(ElementSpec.JoinFractureDirection); else { // If there is an element AFTER this one, then set the // direction to JoinNextDirection. Element parent = prevParagraph.getParentElement(); int index = parent.getElementIndex(offset); if (index + 1 < parent.getElementCount() && !parent.getElement(index + 1).isLeaf()) finalStartTag.setDirection(ElementSpec.JoinNextDirection); } } // If we are at the last index, then check if we could probably be // joined with the next element. // This means: // - we must be a ContentTag // - if there is a next Element, we must have the same attributes // - if there is no next Element, but one will be created, // we must have the same attributes as the higher-level run. ElementSpec last = (ElementSpec) specs.lastElement(); if (last.getType() == ElementSpec.ContentType) { Element currentRun = prevParagraph.getElement(prevParagraph.getElementIndex(offset)); if (currentRun.getEndOffset() == endOffset) { if (endOffset < getLength() && next.getAttributes().isEqual(attr) && last.getType() == ElementSpec.ContentType) last.setDirection(ElementSpec.JoinNextDirection); } else { if (finalStartTag != null && finalStartTag.getDirection() == ElementSpec.JoinFractureDirection && currentRun.getAttributes().isEqual(attr)) { last.setDirection(ElementSpec.JoinNextDirection); } } } // If we are at the first new element, then check if it could be // joined with the previous element. ElementSpec first = (ElementSpec) specs.firstElement(); if (prev.getAttributes().isEqual(attr) && first.getType() == ElementSpec.ContentType) first.setDirection(ElementSpec.JoinPreviousDirection); ElementSpec[] elSpecs = (ElementSpec[]) specs.toArray(new ElementSpec[specs.size()]); buffer.insert(offset, length, elSpecs, ev); }
4,973
protected void insertUpdate(DefaultDocumentEvent ev, AttributeSet attr) { super.insertUpdate(ev, attr); // If the attribute set is null, use an empty attribute set. if (attr == null) attr = SimpleAttributeSet.EMPTY; int offset = ev.getOffset(); int length = ev.getLength(); int endOffset = offset + length; AttributeSet paragraphAttributes = getParagraphElement(endOffset).getAttributes(); Segment txt = new Segment(); try { getText(offset, length, txt); } catch (BadLocationException ex) { AssertionError ae = new AssertionError("Unexpected bad location"); ae.initCause(ex); throw ae; } int len = 0; Vector specs = new Vector(); ElementSpec finalStartTag = null; short finalStartDirection = ElementSpec.OriginateDirection; boolean prevCharWasNewline = false; Element prev = getCharacterElement(offset); Element next = getCharacterElement(endOffset); Element prevParagraph = getParagraphElement(offset); Element paragraph = getParagraphElement(endOffset); int segmentEnd = txt.offset + txt.count; // Check to see if we're inserting immediately after a newline. if (offset > 0) { try { String s = getText(offset - 1, 1); if (s.equals("\n")) { finalStartDirection = handleInsertAfterNewline(specs, offset, endOffset, prevParagraph, paragraph, paragraphAttributes); prevCharWasNewline = true; // Find the final start tag from the ones just created. for (int i = 0; i < specs.size(); i++) if (((ElementSpec) specs.get(i)).getType() == ElementSpec.StartTagType) finalStartTag = (ElementSpec) specs.get(i); } } catch (BadLocationException ble) { // This shouldn't happen. AssertionError ae = new AssertionError(); ae.initCause(ble); throw ae; } } for (int i = txt.offset; i < segmentEnd; ++i) { len++; if (txt.array[i] == '\n') { // Add the ElementSpec for the content. specs.add(new ElementSpec(attr, ElementSpec.ContentType, len)); // Add ElementSpecs for the newline. specs.add(new ElementSpec(null, ElementSpec.EndTagType)); finalStartTag = new ElementSpec(paragraphAttributes, ElementSpec.StartTagType); specs.add(finalStartTag); len = 0; } } // Create last element if last character hasn't been a newline. if (len > 0) specs.add(new ElementSpec(attr, ElementSpec.ContentType, len)); // Set the direction of the last spec of type StartTagType. // If we are inserting after a newline then this value comes from // handleInsertAfterNewline. if (finalStartTag != null) { if (prevCharWasNewline) finalStartTag.setDirection(finalStartDirection); else if (prevParagraph.getEndOffset() != endOffset) finalStartTag.setDirection(ElementSpec.JoinFractureDirection); else { // If there is an element AFTER this one, then set the // direction to JoinNextDirection. Element parent = prevParagraph.getParentElement(); int index = parent.getElementIndex(offset); if (index + 1 < parent.getElementCount() && !parent.getElement(index + 1).isLeaf()) finalStartTag.setDirection(ElementSpec.JoinNextDirection); } } // If we are at the last index, then check if we could probably be // joined with the next element. // This means: // - we must be a ContentTag // - if there is a next Element, we must have the same attributes // - if there is no next Element, but one will be created, // we must have the same attributes as the higher-level run. ElementSpec last = (ElementSpec) specs.lastElement(); if (last.getType() == ElementSpec.ContentType) { Element currentRun = prevParagraph.getElement(prevParagraph.getElementIndex(offset)); if (currentRun.getEndOffset() == endOffset) { if (endOffset < getLength() && next.getAttributes().isEqual(attr) && last.getType() == ElementSpec.ContentType) last.setDirection(ElementSpec.JoinNextDirection); } else { if (finalStartTag != null && finalStartTag.getDirection() == ElementSpec.JoinFractureDirection && currentRun.getAttributes().isEqual(attr)) { last.setDirection(ElementSpec.JoinNextDirection); } } } // If we are at the first new element, then check if it could be // joined with the previous element. ElementSpec first = (ElementSpec) specs.firstElement(); if (prev.getAttributes().isEqual(attr) && first.getType() == ElementSpec.ContentType) first.setDirection(ElementSpec.JoinPreviousDirection); ElementSpec[] elSpecs = (ElementSpec[]) specs.toArray(new ElementSpec[specs.size()]); buffer.insert(offset, length, elSpecs, ev); }
protected void insertUpdate(DefaultDocumentEvent ev, AttributeSet attr) { super.insertUpdate(ev, attr); // If the attribute set is null, use an empty attribute set. if (attr == null) attr = SimpleAttributeSet.EMPTY; int offset = ev.getOffset(); int length = ev.getLength(); int endOffset = offset + length; AttributeSet paragraphAttributes = getParagraphElement(endOffset).getAttributes(); Segment txt = new Segment(); try { Segment s = new Segment(); ArrayList buf = new ArrayList(); ElementSpec lastStartTag = null; boolean insertAfterNewline = false; short lastStartDir = ElementSpec.OriginateDirection; if (offs > 0) { getText(offs - 1, 1, s); if (s.array[s.offset] == '\n') { insertAfterNewline = true; lastStartDir = insertAfterNewline(paragraph, paragraph2, pAttr, buf, offs, endOffs); for (int i = buf.size() - 1; i >= 0 && lastStartTag == null; i--) { ElementSpec tag = (ElementSpec) buf.get(i); if (tag.getType() == ElementSpec.StartTagType) { lastStartTag = tag; } } } } if (! insertAfterNewline) pAttr = paragraph2.getAttributes(); getText(offs, len, s); int end = s.offset + s.count; int last = s.offset; for (int i = s.offset; i < end; i++) { if (s.array[i] == '\n') { int breakOffs = i + 1; buf.add(new ElementSpec(attr, ElementSpec.ContentType, breakOffs - last)); buf.add(new ElementSpec(null, ElementSpec.EndTagType)); lastStartTag = new ElementSpec(pAttr, ElementSpec.StartTagType); buf.add(lastStartTag); last = breakOffs; } } if (last < end) { buf.add(new ElementSpec(attr, ElementSpec.ContentType, end - last)); } ElementSpec first = (ElementSpec) buf.get(0); int doclen = getLength(); if (first.getType() == ElementSpec.ContentType && cAttr.isEqual(attr)) first.setDirection(ElementSpec.JoinPreviousDirection); if (lastStartTag != null) { if (insertAfterNewline) lastStartTag.setDirection(lastStartDir); else if (paragraph2.getEndOffset() != endOffs) lastStartTag.setDirection(ElementSpec.JoinFractureDirection); else { Element par = paragraph2.getParentElement(); int par2Index = par.getElementIndex(offs); if (par2Index + 1 < par.getElementCount() && ! par.getElement(par2Index + 1).isLeaf()) lastStartTag.setDirection(ElementSpec.JoinNextDirection); } } if (insertAtBoundary && endOffs < doclen) { ElementSpec lastTag = (ElementSpec) buf.get(buf.size() - 1); if (lastTag.getType() == ElementSpec.ContentType && ((lastStartTag == null && (paragraph == paragraph2 || insertAfterNewline)) || (lastStartTag != null && lastStartTag.getDirection() != ElementSpec.OriginateDirection))) { int nextIndex = paragraph.getElementIndex(endOffs); Element nextRun = paragraph.getElement(nextIndex); if (nextRun.isLeaf() && attr.isEqual(nextRun.getAttributes())) lastTag.setDirection(ElementSpec.JoinNextDirection); } } else if (! insertAtBoundary && lastStartTag != null && lastStartTag.getDirection() == ElementSpec.JoinFractureDirection) { ElementSpec lastTag = (ElementSpec) buf.get(buf.size() - 1); if (lastTag.getType() == ElementSpec.ContentType && lastTag.getDirection() != ElementSpec.JoinPreviousDirection && attr.isEqual(cAttr)) { lastTag.setDirection(ElementSpec.JoinNextDirection); } } ElementSpec[] specs = new ElementSpec[buf.size()]; specs = (ElementSpec[]) buf.toArray(specs); buffer.insert(offs, len, specs, ev); } catch (BadLocationException ex) { AssertionError ae = new AssertionError("Unexpected bad location"); ae.initCause(ex); throw ae; } int len = 0; Vector specs = new Vector(); ElementSpec finalStartTag = null; short finalStartDirection = ElementSpec.OriginateDirection; boolean prevCharWasNewline = false; Element prev = getCharacterElement(offset); Element next = getCharacterElement(endOffset); Element prevParagraph = getParagraphElement(offset); Element paragraph = getParagraphElement(endOffset); int segmentEnd = txt.offset + txt.count; // Check to see if we're inserting immediately after a newline. if (offset > 0) { try { String s = getText(offset - 1, 1); if (s.equals("\n")) { finalStartDirection = handleInsertAfterNewline(specs, offset, endOffset, prevParagraph, paragraph, paragraphAttributes); prevCharWasNewline = true; // Find the final start tag from the ones just created. for (int i = 0; i < specs.size(); i++) if (((ElementSpec) specs.get(i)).getType() == ElementSpec.StartTagType) finalStartTag = (ElementSpec) specs.get(i); } } catch (BadLocationException ble) { // This shouldn't happen. AssertionError ae = new AssertionError(); ae.initCause(ble); throw ae; } } for (int i = txt.offset; i < segmentEnd; ++i) { len++; if (txt.array[i] == '\n') { // Add the ElementSpec for the content. specs.add(new ElementSpec(attr, ElementSpec.ContentType, len)); // Add ElementSpecs for the newline. specs.add(new ElementSpec(null, ElementSpec.EndTagType)); finalStartTag = new ElementSpec(paragraphAttributes, ElementSpec.StartTagType); specs.add(finalStartTag); len = 0; } } // Create last element if last character hasn't been a newline. if (len > 0) specs.add(new ElementSpec(attr, ElementSpec.ContentType, len)); // Set the direction of the last spec of type StartTagType. // If we are inserting after a newline then this value comes from // handleInsertAfterNewline. if (finalStartTag != null) { if (prevCharWasNewline) finalStartTag.setDirection(finalStartDirection); else if (prevParagraph.getEndOffset() != endOffset) finalStartTag.setDirection(ElementSpec.JoinFractureDirection); else { // If there is an element AFTER this one, then set the // direction to JoinNextDirection. Element parent = prevParagraph.getParentElement(); int index = parent.getElementIndex(offset); if (index + 1 < parent.getElementCount() && !parent.getElement(index + 1).isLeaf()) finalStartTag.setDirection(ElementSpec.JoinNextDirection); } } // If we are at the last index, then check if we could probably be // joined with the next element. // This means: // - we must be a ContentTag // - if there is a next Element, we must have the same attributes // - if there is no next Element, but one will be created, // we must have the same attributes as the higher-level run. ElementSpec last = (ElementSpec) specs.lastElement(); if (last.getType() == ElementSpec.ContentType) { Element currentRun = prevParagraph.getElement(prevParagraph.getElementIndex(offset)); if (currentRun.getEndOffset() == endOffset) { if (endOffset < getLength() && next.getAttributes().isEqual(attr) && last.getType() == ElementSpec.ContentType) last.setDirection(ElementSpec.JoinNextDirection); } else { if (finalStartTag != null && finalStartTag.getDirection() == ElementSpec.JoinFractureDirection && currentRun.getAttributes().isEqual(attr)) { last.setDirection(ElementSpec.JoinNextDirection); } } } // If we are at the first new element, then check if it could be // joined with the previous element. ElementSpec first = (ElementSpec) specs.firstElement(); if (prev.getAttributes().isEqual(attr) && first.getType() == ElementSpec.ContentType) first.setDirection(ElementSpec.JoinPreviousDirection); ElementSpec[] elSpecs = (ElementSpec[]) specs.toArray(new ElementSpec[specs.size()]); buffer.insert(offset, length, elSpecs, ev); }
4,974
protected void insertUpdate(DefaultDocumentEvent ev, AttributeSet attr) { super.insertUpdate(ev, attr); // If the attribute set is null, use an empty attribute set. if (attr == null) attr = SimpleAttributeSet.EMPTY; int offset = ev.getOffset(); int length = ev.getLength(); int endOffset = offset + length; AttributeSet paragraphAttributes = getParagraphElement(endOffset).getAttributes(); Segment txt = new Segment(); try { getText(offset, length, txt); } catch (BadLocationException ex) { AssertionError ae = new AssertionError("Unexpected bad location"); ae.initCause(ex); throw ae; } int len = 0; Vector specs = new Vector(); ElementSpec finalStartTag = null; short finalStartDirection = ElementSpec.OriginateDirection; boolean prevCharWasNewline = false; Element prev = getCharacterElement(offset); Element next = getCharacterElement(endOffset); Element prevParagraph = getParagraphElement(offset); Element paragraph = getParagraphElement(endOffset); int segmentEnd = txt.offset + txt.count; // Check to see if we're inserting immediately after a newline. if (offset > 0) { try { String s = getText(offset - 1, 1); if (s.equals("\n")) { finalStartDirection = handleInsertAfterNewline(specs, offset, endOffset, prevParagraph, paragraph, paragraphAttributes); prevCharWasNewline = true; // Find the final start tag from the ones just created. for (int i = 0; i < specs.size(); i++) if (((ElementSpec) specs.get(i)).getType() == ElementSpec.StartTagType) finalStartTag = (ElementSpec) specs.get(i); } } catch (BadLocationException ble) { // This shouldn't happen. AssertionError ae = new AssertionError(); ae.initCause(ble); throw ae; } } for (int i = txt.offset; i < segmentEnd; ++i) { len++; if (txt.array[i] == '\n') { // Add the ElementSpec for the content. specs.add(new ElementSpec(attr, ElementSpec.ContentType, len)); // Add ElementSpecs for the newline. specs.add(new ElementSpec(null, ElementSpec.EndTagType)); finalStartTag = new ElementSpec(paragraphAttributes, ElementSpec.StartTagType); specs.add(finalStartTag); len = 0; } } // Create last element if last character hasn't been a newline. if (len > 0) specs.add(new ElementSpec(attr, ElementSpec.ContentType, len)); // Set the direction of the last spec of type StartTagType. // If we are inserting after a newline then this value comes from // handleInsertAfterNewline. if (finalStartTag != null) { if (prevCharWasNewline) finalStartTag.setDirection(finalStartDirection); else if (prevParagraph.getEndOffset() != endOffset) finalStartTag.setDirection(ElementSpec.JoinFractureDirection); else { // If there is an element AFTER this one, then set the // direction to JoinNextDirection. Element parent = prevParagraph.getParentElement(); int index = parent.getElementIndex(offset); if (index + 1 < parent.getElementCount() && !parent.getElement(index + 1).isLeaf()) finalStartTag.setDirection(ElementSpec.JoinNextDirection); } } // If we are at the last index, then check if we could probably be // joined with the next element. // This means: // - we must be a ContentTag // - if there is a next Element, we must have the same attributes // - if there is no next Element, but one will be created, // we must have the same attributes as the higher-level run. ElementSpec last = (ElementSpec) specs.lastElement(); if (last.getType() == ElementSpec.ContentType) { Element currentRun = prevParagraph.getElement(prevParagraph.getElementIndex(offset)); if (currentRun.getEndOffset() == endOffset) { if (endOffset < getLength() && next.getAttributes().isEqual(attr) && last.getType() == ElementSpec.ContentType) last.setDirection(ElementSpec.JoinNextDirection); } else { if (finalStartTag != null && finalStartTag.getDirection() == ElementSpec.JoinFractureDirection && currentRun.getAttributes().isEqual(attr)) { last.setDirection(ElementSpec.JoinNextDirection); } } } // If we are at the first new element, then check if it could be // joined with the previous element. ElementSpec first = (ElementSpec) specs.firstElement(); if (prev.getAttributes().isEqual(attr) && first.getType() == ElementSpec.ContentType) first.setDirection(ElementSpec.JoinPreviousDirection); ElementSpec[] elSpecs = (ElementSpec[]) specs.toArray(new ElementSpec[specs.size()]); buffer.insert(offset, length, elSpecs, ev); }
protected void insertUpdate(DefaultDocumentEvent ev, AttributeSet attr) { super.insertUpdate(ev, attr); // If the attribute set is null, use an empty attribute set. if (attr == null) attr = SimpleAttributeSet.EMPTY; int offset = ev.getOffset(); int length = ev.getLength(); int endOffset = offset + length; AttributeSet paragraphAttributes = getParagraphElement(endOffset).getAttributes(); Segment txt = new Segment(); try { getText(offset, length, txt); } catch (BadLocationException ex) { AssertionError ae = new AssertionError("Unexpected bad location"); ae.initCause(ex); throw ae; } int len = 0; Vector specs = new Vector(); ElementSpec finalStartTag = null; short finalStartDirection = ElementSpec.OriginateDirection; boolean prevCharWasNewline = false; Element prev = getCharacterElement(offset); Element next = getCharacterElement(endOffset); Element prevParagraph = getParagraphElement(offset); Element paragraph = getParagraphElement(endOffset); int segmentEnd = txt.offset + txt.count; // Check to see if we're inserting immediately after a newline. if (offset > 0) { try { String s = getText(offset - 1, 1); if (s.equals("\n")) { finalStartDirection = handleInsertAfterNewline(specs, offset, endOffset, prevParagraph, paragraph, paragraphAttributes); prevCharWasNewline = true; // Find the final start tag from the ones just created. for (int i = 0; i < specs.size(); i++) if (((ElementSpec) specs.get(i)).getType() == ElementSpec.StartTagType) finalStartTag = (ElementSpec) specs.get(i); } } catch (BadLocationException ble) { // This shouldn't happen. AssertionError ae = new AssertionError(); ae.initCause(ble); throw ae; } } for (int i = txt.offset; i < segmentEnd; ++i) { len++; if (txt.array[i] == '\n') { // Add the ElementSpec for the content. specs.add(new ElementSpec(attr, ElementSpec.ContentType, len)); // Add ElementSpecs for the newline. specs.add(new ElementSpec(null, ElementSpec.EndTagType)); finalStartTag = new ElementSpec(paragraphAttributes, ElementSpec.StartTagType); specs.add(finalStartTag); len = 0; } } // Create last element if last character hasn't been a newline. if (len > 0) specs.add(new ElementSpec(attr, ElementSpec.ContentType, len)); // Set the direction of the last spec of type StartTagType. // If we are inserting after a newline then this value comes from // handleInsertAfterNewline. if (finalStartTag != null) { if (prevCharWasNewline) finalStartTag.setDirection(finalStartDirection); else if (prevParagraph.getEndOffset() != endOffset) finalStartTag.setDirection(ElementSpec.JoinFractureDirection); else { // If there is an element AFTER this one, then set the // direction to JoinNextDirection. Element parent = prevParagraph.getParentElement(); int index = parent.getElementIndex(offset); if (index + 1 < parent.getElementCount() && !parent.getElement(index + 1).isLeaf()) finalStartTag.setDirection(ElementSpec.JoinNextDirection); } } // If we are at the last index, then check if we could probably be // joined with the next element. // This means: // - we must be a ContentTag // - if there is a next Element, we must have the same attributes // - if there is no next Element, but one will be created, // we must have the same attributes as the higher-level run. ElementSpec last = (ElementSpec) specs.lastElement(); if (last.getType() == ElementSpec.ContentType) { Element currentRun = prevParagraph.getElement(prevParagraph.getElementIndex(offset)); if (currentRun.getEndOffset() == endOffset) { if (endOffset < getLength() && next.getAttributes().isEqual(attr) && last.getType() == ElementSpec.ContentType) last.setDirection(ElementSpec.JoinNextDirection); } else { if (finalStartTag != null && finalStartTag.getDirection() == ElementSpec.JoinFractureDirection && currentRun.getAttributes().isEqual(attr)) { last.setDirection(ElementSpec.JoinNextDirection); } } } // If we are at the first new element, then check if it could be // joined with the previous element. ElementSpec first = (ElementSpec) specs.firstElement(); if (prev.getAttributes().isEqual(attr) && first.getType() == ElementSpec.ContentType) first.setDirection(ElementSpec.JoinPreviousDirection); ElementSpec[] elSpecs = (ElementSpec[]) specs.toArray(new ElementSpec[specs.size()]); buffer.insert(offset, length, elSpecs, ev); }
4,975
protected void insertUpdate(DefaultDocumentEvent ev, AttributeSet attr) { super.insertUpdate(ev, attr); // If the attribute set is null, use an empty attribute set. if (attr == null) attr = SimpleAttributeSet.EMPTY; int offset = ev.getOffset(); int length = ev.getLength(); int endOffset = offset + length; AttributeSet paragraphAttributes = getParagraphElement(endOffset).getAttributes(); Segment txt = new Segment(); try { getText(offset, length, txt); } catch (BadLocationException ex) { AssertionError ae = new AssertionError("Unexpected bad location"); ae.initCause(ex); throw ae; } int len = 0; Vector specs = new Vector(); ElementSpec finalStartTag = null; short finalStartDirection = ElementSpec.OriginateDirection; boolean prevCharWasNewline = false; Element prev = getCharacterElement(offset); Element next = getCharacterElement(endOffset); Element prevParagraph = getParagraphElement(offset); Element paragraph = getParagraphElement(endOffset); int segmentEnd = txt.offset + txt.count; // Check to see if we're inserting immediately after a newline. if (offset > 0) { try { String s = getText(offset - 1, 1); if (s.equals("\n")) { finalStartDirection = handleInsertAfterNewline(specs, offset, endOffset, prevParagraph, paragraph, paragraphAttributes); prevCharWasNewline = true; // Find the final start tag from the ones just created. for (int i = 0; i < specs.size(); i++) if (((ElementSpec) specs.get(i)).getType() == ElementSpec.StartTagType) finalStartTag = (ElementSpec) specs.get(i); } } catch (BadLocationException ble) { // This shouldn't happen. AssertionError ae = new AssertionError(); ae.initCause(ble); throw ae; } } for (int i = txt.offset; i < segmentEnd; ++i) { len++; if (txt.array[i] == '\n') { // Add the ElementSpec for the content. specs.add(new ElementSpec(attr, ElementSpec.ContentType, len)); // Add ElementSpecs for the newline. specs.add(new ElementSpec(null, ElementSpec.EndTagType)); finalStartTag = new ElementSpec(paragraphAttributes, ElementSpec.StartTagType); specs.add(finalStartTag); len = 0; } } // Create last element if last character hasn't been a newline. if (len > 0) specs.add(new ElementSpec(attr, ElementSpec.ContentType, len)); // Set the direction of the last spec of type StartTagType. // If we are inserting after a newline then this value comes from // handleInsertAfterNewline. if (finalStartTag != null) { if (prevCharWasNewline) finalStartTag.setDirection(finalStartDirection); else if (prevParagraph.getEndOffset() != endOffset) finalStartTag.setDirection(ElementSpec.JoinFractureDirection); else { // If there is an element AFTER this one, then set the // direction to JoinNextDirection. Element parent = prevParagraph.getParentElement(); int index = parent.getElementIndex(offset); if (index + 1 < parent.getElementCount() && !parent.getElement(index + 1).isLeaf()) finalStartTag.setDirection(ElementSpec.JoinNextDirection); } } // If we are at the last index, then check if we could probably be // joined with the next element. // This means: // - we must be a ContentTag // - if there is a next Element, we must have the same attributes // - if there is no next Element, but one will be created, // we must have the same attributes as the higher-level run. ElementSpec last = (ElementSpec) specs.lastElement(); if (last.getType() == ElementSpec.ContentType) { Element currentRun = prevParagraph.getElement(prevParagraph.getElementIndex(offset)); if (currentRun.getEndOffset() == endOffset) { if (endOffset < getLength() && next.getAttributes().isEqual(attr) && last.getType() == ElementSpec.ContentType) last.setDirection(ElementSpec.JoinNextDirection); } else { if (finalStartTag != null && finalStartTag.getDirection() == ElementSpec.JoinFractureDirection && currentRun.getAttributes().isEqual(attr)) { last.setDirection(ElementSpec.JoinNextDirection); } } } // If we are at the first new element, then check if it could be // joined with the previous element. ElementSpec first = (ElementSpec) specs.firstElement(); if (prev.getAttributes().isEqual(attr) && first.getType() == ElementSpec.ContentType) first.setDirection(ElementSpec.JoinPreviousDirection); ElementSpec[] elSpecs = (ElementSpec[]) specs.toArray(new ElementSpec[specs.size()]); buffer.insert(offset, length, elSpecs, ev); }
protected void insertUpdate(DefaultDocumentEvent ev, AttributeSet attr) { super.insertUpdate(ev, attr); // If the attribute set is null, use an empty attribute set. if (attr == null) attr = SimpleAttributeSet.EMPTY; int offset = ev.getOffset(); int length = ev.getLength(); int endOffset = offset + length; AttributeSet paragraphAttributes = getParagraphElement(endOffset).getAttributes(); Segment txt = new Segment(); try { getText(offset, length, txt); } catch (BadLocationException ex) { AssertionError ae = new AssertionError("Unexpected bad location"); ae.initCause(ex); throw ae; } int len = 0; Vector specs = new Vector(); ElementSpec finalStartTag = null; short finalStartDirection = ElementSpec.OriginateDirection; boolean prevCharWasNewline = false; Element prev = getCharacterElement(offset); Element next = getCharacterElement(endOffset); Element prevParagraph = getParagraphElement(offset); Element paragraph = getParagraphElement(endOffset); int segmentEnd = txt.offset + txt.count; // Check to see if we're inserting immediately after a newline. if (offset > 0) { try { String s = getText(offset - 1, 1); if (s.equals("\n")) { finalStartDirection = handleInsertAfterNewline(specs, offset, endOffset, prevParagraph, paragraph, paragraphAttributes); prevCharWasNewline = true; // Find the final start tag from the ones just created. for (int i = 0; i < specs.size(); i++) if (((ElementSpec) specs.get(i)).getType() == ElementSpec.StartTagType) finalStartTag = (ElementSpec) specs.get(i); } } catch (BadLocationException ble) { // This shouldn't happen. AssertionError ae = new AssertionError(); ae.initCause(ble); throw ae; } } for (int i = txt.offset; i < segmentEnd; ++i) { len++; if (txt.array[i] == '\n') { // Add the ElementSpec for the content. specs.add(new ElementSpec(attr, ElementSpec.ContentType, len)); // Add ElementSpecs for the newline. specs.add(new ElementSpec(null, ElementSpec.EndTagType)); finalStartTag = new ElementSpec(paragraphAttributes, ElementSpec.StartTagType); specs.add(finalStartTag); len = 0; } } // Create last element if last character hasn't been a newline. if (len > 0) specs.add(new ElementSpec(attr, ElementSpec.ContentType, len)); // Set the direction of the last spec of type StartTagType. // If we are inserting after a newline then this value comes from // handleInsertAfterNewline. if (finalStartTag != null) { if (prevCharWasNewline) finalStartTag.setDirection(finalStartDirection); else if (prevParagraph.getEndOffset() != endOffset) finalStartTag.setDirection(ElementSpec.JoinFractureDirection); else { // If there is an element AFTER this one, then set the // direction to JoinNextDirection. Element parent = prevParagraph.getParentElement(); int index = parent.getElementIndex(offset); if (index + 1 < parent.getElementCount() && !parent.getElement(index + 1).isLeaf()) finalStartTag.setDirection(ElementSpec.JoinNextDirection); } } // If we are at the last index, then check if we could probably be // joined with the next element. // This means: // - we must be a ContentTag // - if there is a next Element, we must have the same attributes // - if there is no next Element, but one will be created, // we must have the same attributes as the higher-level run. ElementSpec last = (ElementSpec) specs.lastElement(); if (last.getType() == ElementSpec.ContentType) { Element currentRun = prevParagraph.getElement(prevParagraph.getElementIndex(offset)); if (currentRun.getEndOffset() == endOffset) { if (endOffset < getLength() && next.getAttributes().isEqual(attr) && last.getType() == ElementSpec.ContentType) last.setDirection(ElementSpec.JoinNextDirection); } else { if (finalStartTag != null && finalStartTag.getDirection() == ElementSpec.JoinFractureDirection && currentRun.getAttributes().isEqual(attr)) { last.setDirection(ElementSpec.JoinNextDirection); } } } // If we are at the first new element, then check if it could be // joined with the previous element. ElementSpec first = (ElementSpec) specs.firstElement(); if (prev.getAttributes().isEqual(attr) && first.getType() == ElementSpec.ContentType) first.setDirection(ElementSpec.JoinPreviousDirection); ElementSpec[] elSpecs = (ElementSpec[]) specs.toArray(new ElementSpec[specs.size()]); buffer.insert(offset, length, elSpecs, ev); }
4,976
protected void insertUpdate(DefaultDocumentEvent ev, AttributeSet attr) { super.insertUpdate(ev, attr); // If the attribute set is null, use an empty attribute set. if (attr == null) attr = SimpleAttributeSet.EMPTY; int offset = ev.getOffset(); int length = ev.getLength(); int endOffset = offset + length; AttributeSet paragraphAttributes = getParagraphElement(endOffset).getAttributes(); Segment txt = new Segment(); try { getText(offset, length, txt); } catch (BadLocationException ex) { AssertionError ae = new AssertionError("Unexpected bad location"); ae.initCause(ex); throw ae; } int len = 0; Vector specs = new Vector(); ElementSpec finalStartTag = null; short finalStartDirection = ElementSpec.OriginateDirection; boolean prevCharWasNewline = false; Element prev = getCharacterElement(offset); Element next = getCharacterElement(endOffset); Element prevParagraph = getParagraphElement(offset); Element paragraph = getParagraphElement(endOffset); int segmentEnd = txt.offset + txt.count; // Check to see if we're inserting immediately after a newline. if (offset > 0) { try { String s = getText(offset - 1, 1); if (s.equals("\n")) { finalStartDirection = handleInsertAfterNewline(specs, offset, endOffset, prevParagraph, paragraph, paragraphAttributes); prevCharWasNewline = true; // Find the final start tag from the ones just created. for (int i = 0; i < specs.size(); i++) if (((ElementSpec) specs.get(i)).getType() == ElementSpec.StartTagType) finalStartTag = (ElementSpec) specs.get(i); } } catch (BadLocationException ble) { // This shouldn't happen. AssertionError ae = new AssertionError(); ae.initCause(ble); throw ae; } } for (int i = txt.offset; i < segmentEnd; ++i) { len++; if (txt.array[i] == '\n') { // Add the ElementSpec for the content. specs.add(new ElementSpec(attr, ElementSpec.ContentType, len)); // Add ElementSpecs for the newline. specs.add(new ElementSpec(null, ElementSpec.EndTagType)); finalStartTag = new ElementSpec(paragraphAttributes, ElementSpec.StartTagType); specs.add(finalStartTag); len = 0; } } // Create last element if last character hasn't been a newline. if (len > 0) specs.add(new ElementSpec(attr, ElementSpec.ContentType, len)); // Set the direction of the last spec of type StartTagType. // If we are inserting after a newline then this value comes from // handleInsertAfterNewline. if (finalStartTag != null) { if (prevCharWasNewline) finalStartTag.setDirection(finalStartDirection); else if (prevParagraph.getEndOffset() != endOffset) finalStartTag.setDirection(ElementSpec.JoinFractureDirection); else { // If there is an element AFTER this one, then set the // direction to JoinNextDirection. Element parent = prevParagraph.getParentElement(); int index = parent.getElementIndex(offset); if (index + 1 < parent.getElementCount() && !parent.getElement(index + 1).isLeaf()) finalStartTag.setDirection(ElementSpec.JoinNextDirection); } } // If we are at the last index, then check if we could probably be // joined with the next element. // This means: // - we must be a ContentTag // - if there is a next Element, we must have the same attributes // - if there is no next Element, but one will be created, // we must have the same attributes as the higher-level run. ElementSpec last = (ElementSpec) specs.lastElement(); if (last.getType() == ElementSpec.ContentType) { Element currentRun = prevParagraph.getElement(prevParagraph.getElementIndex(offset)); if (currentRun.getEndOffset() == endOffset) { if (endOffset < getLength() && next.getAttributes().isEqual(attr) && last.getType() == ElementSpec.ContentType) last.setDirection(ElementSpec.JoinNextDirection); } else { if (finalStartTag != null && finalStartTag.getDirection() == ElementSpec.JoinFractureDirection && currentRun.getAttributes().isEqual(attr)) { last.setDirection(ElementSpec.JoinNextDirection); } } } // If we are at the first new element, then check if it could be // joined with the previous element. ElementSpec first = (ElementSpec) specs.firstElement(); if (prev.getAttributes().isEqual(attr) && first.getType() == ElementSpec.ContentType) first.setDirection(ElementSpec.JoinPreviousDirection); ElementSpec[] elSpecs = (ElementSpec[]) specs.toArray(new ElementSpec[specs.size()]); buffer.insert(offset, length, elSpecs, ev); }
protected void insertUpdate(DefaultDocumentEvent ev, AttributeSet attr) { super.insertUpdate(ev, attr); // If the attribute set is null, use an empty attribute set. if (attr == null) attr = SimpleAttributeSet.EMPTY; int offset = ev.getOffset(); int length = ev.getLength(); int endOffset = offset + length; AttributeSet paragraphAttributes = getParagraphElement(endOffset).getAttributes(); Segment txt = new Segment(); try { getText(offset, length, txt); } catch (BadLocationException ex) { AssertionError ae = new AssertionError("Unexpected bad location"); ae.initCause(ex); throw ae; } int len = 0; Vector specs = new Vector(); ElementSpec finalStartTag = null; short finalStartDirection = ElementSpec.OriginateDirection; boolean prevCharWasNewline = false; Element prev = getCharacterElement(offset); Element next = getCharacterElement(endOffset); Element prevParagraph = getParagraphElement(offset); Element paragraph = getParagraphElement(endOffset); int segmentEnd = txt.offset + txt.count; // Check to see if we're inserting immediately after a newline. if (offset > 0) { try { String s = getText(offset - 1, 1); if (s.equals("\n")) { finalStartDirection = handleInsertAfterNewline(specs, offset, endOffset, prevParagraph, paragraph, paragraphAttributes); prevCharWasNewline = true; // Find the final start tag from the ones just created. for (int i = 0; i < specs.size(); i++) if (((ElementSpec) specs.get(i)).getType() == ElementSpec.StartTagType) finalStartTag = (ElementSpec) specs.get(i); } } catch (BadLocationException ble) { // This shouldn't happen. AssertionError ae = new AssertionError(); ae.initCause(ble); throw ae; } } for (int i = txt.offset; i < segmentEnd; ++i) { len++; if (txt.array[i] == '\n') { // Add the ElementSpec for the content. specs.add(new ElementSpec(attr, ElementSpec.ContentType, len)); // Add ElementSpecs for the newline. specs.add(new ElementSpec(null, ElementSpec.EndTagType)); finalStartTag = new ElementSpec(paragraphAttributes, ElementSpec.StartTagType); specs.add(finalStartTag); len = 0; } } // Create last element if last character hasn't been a newline. if (len > 0) specs.add(new ElementSpec(attr, ElementSpec.ContentType, len)); // Set the direction of the last spec of type StartTagType. // If we are inserting after a newline then this value comes from // handleInsertAfterNewline. if (finalStartTag != null) { if (prevCharWasNewline) finalStartTag.setDirection(finalStartDirection); else if (prevParagraph.getEndOffset() != endOffset) finalStartTag.setDirection(ElementSpec.JoinFractureDirection); else { // If there is an element AFTER this one, then set the // direction to JoinNextDirection. Element parent = prevParagraph.getParentElement(); int index = parent.getElementIndex(offset); if (index + 1 < parent.getElementCount() && !parent.getElement(index + 1).isLeaf()) finalStartTag.setDirection(ElementSpec.JoinNextDirection); } } // If we are at the last index, then check if we could probably be // joined with the next element. // This means: // - we must be a ContentTag // - if there is a next Element, we must have the same attributes // - if there is no next Element, but one will be created, // we must have the same attributes as the higher-level run. ElementSpec last = (ElementSpec) specs.lastElement(); if (last.getType() == ElementSpec.ContentType) { Element currentRun = prevParagraph.getElement(prevParagraph.getElementIndex(offset)); if (currentRun.getEndOffset() == endOffset) { if (endOffset < getLength() && next.getAttributes().isEqual(attr) && last.getType() == ElementSpec.ContentType) last.setDirection(ElementSpec.JoinNextDirection); } else { if (finalStartTag != null && finalStartTag.getDirection() == ElementSpec.JoinFractureDirection && currentRun.getAttributes().isEqual(attr)) { last.setDirection(ElementSpec.JoinNextDirection); } } } // If we are at the first new element, then check if it could be // joined with the previous element. ElementSpec first = (ElementSpec) specs.firstElement(); if (prev.getAttributes().isEqual(attr) && first.getType() == ElementSpec.ContentType) first.setDirection(ElementSpec.JoinPreviousDirection); ElementSpec[] elSpecs = (ElementSpec[]) specs.toArray(new ElementSpec[specs.size()]); buffer.insert(offset, length, elSpecs, ev); }
4,977
public void setCharacterAttributes(int offset, int length, AttributeSet attributes, boolean replace) { // Exit early if length is 0, so no DocumentEvent is created or fired. if (length == 0) return; try { // Must obtain a write lock for this method. writeLock() and // writeUnlock() should always be in try/finally block to make // sure that locking happens in a balanced manner. writeLock(); DefaultDocumentEvent ev = new DefaultDocumentEvent(offset, length, DocumentEvent.EventType.CHANGE); // Modify the element structure so that the interval begins at an // element // start and ends at an element end. buffer.change(offset, length, ev); Element root = getDefaultRootElement(); // Visit all paragraph elements within the specified interval int end = offset + length; Element curr; for (int pos = offset; pos < end;) { // Get the CharacterElement at offset pos. curr = getCharacterElement(pos); if (pos == curr.getEndOffset()) break; MutableAttributeSet a = (MutableAttributeSet) curr.getAttributes(); ev.addEdit(new AttributeUndoableEdit(curr, attributes, replace)); // If replace is true, remove all the old attributes. if (replace) a.removeAttributes(a); // Add all the new attributes. a.addAttributes(attributes); // Increment pos so we can check the next CharacterElement. pos = curr.getEndOffset(); } fireChangedUpdate(ev); fireUndoableEditUpdate(new UndoableEditEvent(this, ev)); } finally { writeUnlock(); } }
public void setCharacterAttributes(int offset, int length, AttributeSet attributes, boolean replace) { // Exit early if length is 0, so no DocumentEvent is created or fired. if (length == 0) return; try { // Must obtain a write lock for this method. writeLock() and // writeUnlock() should always be in try/finally block to make // sure that locking happens in a balanced manner. writeLock(); DefaultDocumentEvent ev = new DefaultDocumentEvent(offset, length, DocumentEvent.EventType.CHANGE); // Modify the element structure so that the interval begins at an // element // start and ends at an element end. buffer.change(offset, length, ev); // Visit all paragraph elements within the specified interval int end = offset + length; Element curr; for (int pos = offset; pos < end;) { // Get the CharacterElement at offset pos. curr = getCharacterElement(pos); if (pos == curr.getEndOffset()) break; MutableAttributeSet a = (MutableAttributeSet) curr.getAttributes(); ev.addEdit(new AttributeUndoableEdit(curr, attributes, replace)); // If replace is true, remove all the old attributes. if (replace) a.removeAttributes(a); // Add all the new attributes. a.addAttributes(attributes); // Increment pos so we can check the next CharacterElement. pos = curr.getEndOffset(); } fireChangedUpdate(ev); fireUndoableEditUpdate(new UndoableEditEvent(this, ev)); } finally { writeUnlock(); } }
4,978
public String getName() { return "destination"; }
public String getName() { return "spool-data-destination"; }
4,979
public void setLayer(Integer layer) { JDesktopPane p = getDesktopPane(); if (p != null) { int pos = p.getPosition(this); p.setLayer(this, layer.intValue(), pos); } }
public void setLayer(int layer) { JDesktopPane p = getDesktopPane(); if (p != null) { int pos = p.getPosition(this); p.setLayer(this, layer.intValue(), pos); } }
4,982
public void setLayer(Integer layer) { JDesktopPane p = getDesktopPane(); if (p != null) { int pos = p.getPosition(this); p.setLayer(this, layer.intValue(), pos); } }
public void setLayer(Integer layer) { JDesktopPane p = getDesktopPane(); if (p != null) { int pos = p.getPosition(this); p.setLayer(this, layer.intValue(), pos); } }
4,983
public SwingLabelPeer(Label label) { super(); SwingToolkit.add(label, this); SwingToolkit.copyAwtProperties(label, this); setText(label.getText()); }
public SwingLabelPeer(Label label) { super(); SwingToolkit.add(label, this); SwingToolkit.copyAwtProperties(label, this); setText(label.getText()); }
4,985
public boolean canDetermineObscurity() { return false; }
public boolean canDetermineObscurity() { return false; }
4,986
public void coalescePaintEvent(PaintEvent e) { System.err.println(e); }
public void coalescePaintEvent(PaintEvent e) { System.err.println(e); }
4,987
public void createBuffers(int x, BufferCapabilities bufferCapabilities) { }
public void createBuffers(int x, BufferCapabilities bufferCapabilities) { }
4,988
public void destroyBuffers() { }
public void destroyBuffers() { }
4,989
public void dispose() { }
public void dispose() { }
4,990
public void flip(BufferCapabilities.FlipContents flipContents) { }
public void flip(BufferCapabilities.FlipContents flipContents) { }
4,991
public Image getBackBuffer() { return null; }
public Image getBackBuffer() { return null; }
4,992
public void handleEvent(AWTEvent e) { //System.err.println(e); }
public void handleEvent(AWTEvent e) { //System.err.println(e); }
4,993
public boolean handlesWheelScrolling() { return false; }
public boolean handlesWheelScrolling() { return false; }
4,994
public boolean isObscured() { return false; }
public boolean isObscured() { return false; }
4,995
public boolean requestFocus(Component lightweightChild, boolean temporary, boolean focusedWindowChangeAllowed, long time) { return true; }
public boolean requestFocus(Component lightweightChild, boolean temporary, boolean focusedWindowChangeAllowed, long time) { return true; }
4,996
public void setAlignment(int alignment) { }
public void setAlignment(int alignment) { }
4,997
public void setEventMask(long mask) { // TODO Auto-generated method stub }
public void setEventMask(long mask) { // TODO Auto-generated method stub }
4,998
public void setEventMask(long mask) { // TODO Auto-generated method stub }
public void setEventMask(long mask) { // TODO Auto-generated method stub }
4,999
public void updateCursorImmediately() { }
public void updateCursorImmediately() { }
5,000
protected Object getArray() { return buffer; }
protected final Object getArray() { return buffer; }
5,001
public UndoableEdit insertString(int where, String str) throws BadLocationException { // check arguments int length = length(); int strLen = str.length(); if (where >= length) throw new BadLocationException("the where argument cannot be greater" + " than the content length", where); replace(where, 0, str.toCharArray(), strLen); return new InsertUndo(where, strLen); }
public UndoableEdit insertString(int where, String str) throws BadLocationException { // check arguments int length = length(); int strLen = str.length(); if (where >= length) throw new BadLocationException("The where argument cannot be greater" + " than the content length", where); replace(where, 0, str.toCharArray(), strLen); return new InsertUndo(where, strLen); }
5,002
private Component postEvent(Component source, int id, int button) { if (source == null) { final JNodeToolkit tk = (JNodeToolkit) Toolkit.getDefaultToolkit(); source = tk.getTopComponentAt(x, y); } //log.debug("Source: " + source.getClass().getName()); //TODO full support for modifiers final Point p = source.getLocationOnScreen(); final boolean popupTrigger = (button == MouseEvent.BUTTON2); final MouseEvent me = new MouseEvent(source, id, System.currentTimeMillis(), 0, x - p.x, y - p.y, 1, popupTrigger, button); JNodeGenericPeer.eventQueue.postEvent(me); return source; }
private Component postEvent(Component source, int id, int button) { if (source == null) { final JNodeToolkit tk = (JNodeToolkit) Toolkit.getDefaultToolkit(); source = tk.getTopComponentAt(x, y); } //log.debug("Source: " + source.getClass().getName()); //TODO full support for modifiers final Point p = source.getLocationOnScreen(); final boolean popupTrigger = (button == MouseEvent.BUTTON2); final MouseEvent me = new MouseEvent(source, id, System.currentTimeMillis(), 0, x - p.x, y - p.y, 1, popupTrigger, button); JNodeGenericPeer.eventQueue.postEvent(me); return source; }
5,003
public Screen5250(Gui5250 gui, SessionConfig config) {// ImageIcon ic = new ImageIcon("transtable1.jpg");// tileimage = ic.getImage(); this.gui = gui; this.config = config; // load the session properties from it's profile. loadProps(); try { jbInit(); } catch(Exception ex) { ex.printStackTrace(); } }
public Screen5250(Gui5250 gui, SessionConfig config) {// ImageIcon ic = new ImageIcon("transtable1.jpg");// tileimage = ic.getImage(); this.gui = gui; this.config = config; // load the session properties from it's profile. loadProps(); try { jbInit(); } catch(Exception ex) { log.warn("In constructor: ", ex); } }
5,004
protected final void copyField(int pos) { Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard(); StringBuffer s = new StringBuffer(); screenFields.saveCurrentField(); isInField(pos); System.out.println("Copying"); StringSelection contents = new StringSelection(screenFields.getCurrentFieldText()); cb.setContents(contents, null); screenFields.restoreCurrentField(); }
protected final void copyField(int pos) { Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard(); StringBuffer s = new StringBuffer(); screenFields.saveCurrentField(); isInField(pos); log.debug("Copying"); StringSelection contents = new StringSelection(screenFields.getCurrentFieldText()); cb.setContents(contents, null); screenFields.restoreCurrentField(); }
5,005
public final void copyMe() { Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard(); StringBuffer s = new StringBuffer(); // lets get the bounding area using a rectangle that we have already // allocated getBoundingArea(workR); gui.rubberband.reset(); gui.repaint(); System.out.println("Copying" + workR); // loop through all the screen characters to send them to the clip board int m = workR.x; int i = 0; int t = 0; while (workR.height-- > 0) { t = workR.width; i = workR.y; while (t-- > 0) { // only copy printable characters (in this case >= ' ') char c = screen[getPos(m - 1,i - 1)].getChar(); if (c >= ' ' && !screen[getPos(m - 1,i - 1)].nonDisplay) s.append(c); else s.append(' '); i++; } s.append('\n'); m++; } StringSelection contents = new StringSelection(s.toString()); cb.setContents(contents, null); }
public final void copyMe() { Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard(); StringBuffer s = new StringBuffer(); // lets get the bounding area using a rectangle that we have already // allocated getBoundingArea(workR); gui.rubberband.reset(); gui.repaint(); log.debug("Copying" + workR); // loop through all the screen characters to send them to the clip board int m = workR.x; int i = 0; int t = 0; while (workR.height-- > 0) { t = workR.width; i = workR.y; while (t-- > 0) { // only copy printable characters (in this case >= ' ') char c = screen[getPos(m - 1,i - 1)].getChar(); if (c >= ' ' && !screen[getPos(m - 1,i - 1)].nonDisplay) s.append(c); else s.append(' '); i++; } s.append('\n'); m++; } StringSelection contents = new StringSelection(s.toString()); cb.setContents(contents, null); }
5,006
public void moveCursor (MouseEvent e) { if(!keyboardLocked) { int pos = getPosFromView(e.getX(),e.getY());// System.out.println((getRow(pos)) + "," + (getCol(pos)));// System.out.println(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); if (pos < 0) return ; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0// pos -= (numCols + 1); int g = screen[pos].getWhichGUI(); // lets check for hot spots if (g >= ScreenChar.BUTTON_LEFT && g <= ScreenChar.BUTTON_LAST) { StringBuffer aid = new StringBuffer(); boolean aidFlag = true; switch (g) { case ScreenChar.BUTTON_RIGHT: case ScreenChar.BUTTON_MIDDLE: while (screen[--pos].getWhichGUI() != ScreenChar.BUTTON_LEFT) { } case ScreenChar.BUTTON_LEFT: if (screen[pos].getChar() == 'F') { pos++; } else aidFlag=false; if (screen[pos+1].getChar() != '=' && screen[pos+1].getChar() != '.' && screen[pos+1].getChar() != '/' ) {// System.out.println(" Hotspot clicked!!! we will send characters " +// screen[pos].getChar() +// screen[pos+1].getChar()); aid.append(screen[pos].getChar()); aid.append(screen[pos + 1].getChar()); } else {// System.out.println(" Hotspot clicked!!! we will send character " +// screen[pos].getChar());// aid.append(screen[pos].getChar()); } break; } if (aidFlag) { switch (g) { case ScreenChar.BUTTON_LEFT_UP: case ScreenChar.BUTTON_MIDDLE_UP: case ScreenChar.BUTTON_RIGHT_UP: case ScreenChar.BUTTON_ONE_UP: case ScreenChar.BUTTON_SB_UP: case ScreenChar.BUTTON_SB_GUIDE: gui.sendAidKey(tnvt.AID_ROLL_UP); break; case ScreenChar.BUTTON_LEFT_DN: case ScreenChar.BUTTON_MIDDLE_DN: case ScreenChar.BUTTON_RIGHT_DN: case ScreenChar.BUTTON_ONE_DN: case ScreenChar.BUTTON_SB_DN: case ScreenChar.BUTTON_SB_THUMB: gui.sendAidKey(tnvt.AID_ROLL_DOWN); break; case ScreenChar.BUTTON_LEFT_EB: case ScreenChar.BUTTON_MIDDLE_EB: case ScreenChar.BUTTON_RIGHT_EB: System.out.println("Send to external Browser"); break; default: int aidKey = Integer.parseInt(aid.toString()); if (aidKey >= 1 && aidKey <= 12) gui.sendAidKey(0x30 + aidKey); if (aidKey >= 13 && aidKey <= 24) gui.sendAidKey(0xB0 + (aidKey - 12)); } } else { if (screenFields.getCurrentField() != null) { int xPos = screenFields.getCurrentField().startPos(); for (int x = 0; x < aid.length(); x++) {// System.out.println(sr + "," + (sc + x) + " " + aid.charAt(x)); screen[xPos + x].setChar(aid.charAt(x)); }// System.out.println(aid); screenFields.setCurrentFieldMDT(); gui.sendAidKey(tnvt.AID_ENTER); } } } else { // this is a note to not execute this code here when we implement // the remain after edit function option. if (gui.rubberband.isAreaSelected()) { gui.rubberband.reset(); gui.repaint(); } else { goto_XY(pos); isInField(lastPos); } } } gui.requestFocus(); }
if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } public void moveCursor (MouseEvent e) {if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(!keyboardLocked) {if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } int pos = getPosFromView(e.getX(),e.getY());//if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } System.out.println((getRow(pos)) + "," + (getCol(pos)));//if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } System.out.println(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight);if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if (pos < 0)if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } return ;if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } // because getRowColFromPoint returns offset of 1,1 we need toif(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } //if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } translate to offset 0,0//if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } pos -= (numCols + 1);if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } int g = screen[pos].getWhichGUI();if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } // lets check for hot spotsif(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if (g >= ScreenChar.BUTTON_LEFT &&if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } g <= ScreenChar.BUTTON_LAST) {if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } StringBuffer aid = new StringBuffer();if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } boolean aidFlag = true;if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } switch (g) {if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } case ScreenChar.BUTTON_RIGHT:if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } case ScreenChar.BUTTON_MIDDLE:if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } while (screen[--pos].getWhichGUI() !=if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } ScreenChar.BUTTON_LEFT) {if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } }if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } case ScreenChar.BUTTON_LEFT:if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if (screen[pos].getChar() == 'F') {if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } pos++;if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } }if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } elseif(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } aidFlag=false;if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if (screen[pos+1].getChar() != '=' &&if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } screen[pos+1].getChar() != '.' &&if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } screen[pos+1].getChar() != '/' ) {//if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } System.out.println(" Hotspot clicked!!! we will send characters " +//if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } screen[pos].getChar() +//if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } screen[pos+1].getChar());if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } aid.append(screen[pos].getChar());if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } aid.append(screen[pos + 1].getChar());if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } }if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } else {//if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } System.out.println(" Hotspot clicked!!! we will send character " +//if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } screen[pos].getChar());//if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } aid.append(screen[pos].getChar());if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } }if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } break;if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } }if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if (aidFlag) {if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } switch (g) {if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } case ScreenChar.BUTTON_LEFT_UP:if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } case ScreenChar.BUTTON_MIDDLE_UP:if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } case ScreenChar.BUTTON_RIGHT_UP:if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } case ScreenChar.BUTTON_ONE_UP:if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } case ScreenChar.BUTTON_SB_UP:if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } case ScreenChar.BUTTON_SB_GUIDE:if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } gui.sendAidKey(tnvt.AID_ROLL_UP);if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } break;if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } case ScreenChar.BUTTON_LEFT_DN:if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } case ScreenChar.BUTTON_MIDDLE_DN:if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } case ScreenChar.BUTTON_RIGHT_DN:if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } case ScreenChar.BUTTON_ONE_DN:if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } case ScreenChar.BUTTON_SB_DN:if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } case ScreenChar.BUTTON_SB_THUMB:if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } gui.sendAidKey(tnvt.AID_ROLL_DOWN);if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } break;if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } case ScreenChar.BUTTON_LEFT_EB:if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } case ScreenChar.BUTTON_MIDDLE_EB:if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } case ScreenChar.BUTTON_RIGHT_EB:if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } System.out.println("Send to external Browser");if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } break;if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } default:if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } int aidKey = Integer.parseInt(aid.toString());if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if (aidKey >= 1 && aidKey <= 12)if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } gui.sendAidKey(0x30 + aidKey);if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if (aidKey >= 13 && aidKey <= 24)if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } gui.sendAidKey(0xB0 + (aidKey - 12));if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } }if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } }if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } else {if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if (screenFields.getCurrentField() != null) {if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } int xPos = screenFields.getCurrentField().startPos();if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } for (int x = 0; x < aid.length(); x++) {//if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } System.out.println(sr + "," + (sc + x) + " " + aid.charAt(x));if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } screen[xPos + x].setChar(aid.charAt(x));if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } }//if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } System.out.println(aid);if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } screenFields.setCurrentFieldMDT();if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } gui.sendAidKey(tnvt.AID_ENTER);if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } }if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } }if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } }if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } else {if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } // this is a note to not execute this code here when we implementif(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } //if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } the remain after edit function option.if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if (gui.rubberband.isAreaSelected()) {if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } gui.rubberband.reset();if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } gui.repaint();if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } }if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } else {if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } goto_XY(pos);if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } isInField(lastPos);if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } }if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } }if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } }if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } gui.requestFocus();if(log.isDebugEnabled()) { log.debug((getRow(pos)) + "," + (getCol(pos))); log.debug(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); } }
5,007
public void moveCursor (MouseEvent e) { if(!keyboardLocked) { int pos = getPosFromView(e.getX(),e.getY());// System.out.println((getRow(pos)) + "," + (getCol(pos)));// System.out.println(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); if (pos < 0) return ; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0// pos -= (numCols + 1); int g = screen[pos].getWhichGUI(); // lets check for hot spots if (g >= ScreenChar.BUTTON_LEFT && g <= ScreenChar.BUTTON_LAST) { StringBuffer aid = new StringBuffer(); boolean aidFlag = true; switch (g) { case ScreenChar.BUTTON_RIGHT: case ScreenChar.BUTTON_MIDDLE: while (screen[--pos].getWhichGUI() != ScreenChar.BUTTON_LEFT) { } case ScreenChar.BUTTON_LEFT: if (screen[pos].getChar() == 'F') { pos++; } else aidFlag=false; if (screen[pos+1].getChar() != '=' && screen[pos+1].getChar() != '.' && screen[pos+1].getChar() != '/' ) {// System.out.println(" Hotspot clicked!!! we will send characters " +// screen[pos].getChar() +// screen[pos+1].getChar()); aid.append(screen[pos].getChar()); aid.append(screen[pos + 1].getChar()); } else {// System.out.println(" Hotspot clicked!!! we will send character " +// screen[pos].getChar());// aid.append(screen[pos].getChar()); } break; } if (aidFlag) { switch (g) { case ScreenChar.BUTTON_LEFT_UP: case ScreenChar.BUTTON_MIDDLE_UP: case ScreenChar.BUTTON_RIGHT_UP: case ScreenChar.BUTTON_ONE_UP: case ScreenChar.BUTTON_SB_UP: case ScreenChar.BUTTON_SB_GUIDE: gui.sendAidKey(tnvt.AID_ROLL_UP); break; case ScreenChar.BUTTON_LEFT_DN: case ScreenChar.BUTTON_MIDDLE_DN: case ScreenChar.BUTTON_RIGHT_DN: case ScreenChar.BUTTON_ONE_DN: case ScreenChar.BUTTON_SB_DN: case ScreenChar.BUTTON_SB_THUMB: gui.sendAidKey(tnvt.AID_ROLL_DOWN); break; case ScreenChar.BUTTON_LEFT_EB: case ScreenChar.BUTTON_MIDDLE_EB: case ScreenChar.BUTTON_RIGHT_EB: System.out.println("Send to external Browser"); break; default: int aidKey = Integer.parseInt(aid.toString()); if (aidKey >= 1 && aidKey <= 12) gui.sendAidKey(0x30 + aidKey); if (aidKey >= 13 && aidKey <= 24) gui.sendAidKey(0xB0 + (aidKey - 12)); } } else { if (screenFields.getCurrentField() != null) { int xPos = screenFields.getCurrentField().startPos(); for (int x = 0; x < aid.length(); x++) {// System.out.println(sr + "," + (sc + x) + " " + aid.charAt(x)); screen[xPos + x].setChar(aid.charAt(x)); }// System.out.println(aid); screenFields.setCurrentFieldMDT(); gui.sendAidKey(tnvt.AID_ENTER); } } } else { // this is a note to not execute this code here when we implement // the remain after edit function option. if (gui.rubberband.isAreaSelected()) { gui.rubberband.reset(); gui.repaint(); } else { goto_XY(pos); isInField(lastPos); } } } gui.requestFocus(); }
log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); public void moveCursor (MouseEvent e) {log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); if(!keyboardLocked) {log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); int pos = getPosFromView(e.getX(),e.getY());//log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); System.out.println((getRow(pos)) + "," + (getCol(pos)));//log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); System.out.println(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight);log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); if (pos < 0)log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); return ;log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); // because getRowColFromPoint returns offset of 1,1 we need tolog.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); //log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); translate to offset 0,0//log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); pos -= (numCols + 1);log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); int g = screen[pos].getWhichGUI();log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); // lets check for hot spotslog.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); if (g >= ScreenChar.BUTTON_LEFT &&log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); g <= ScreenChar.BUTTON_LAST) {log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); StringBuffer aid = new StringBuffer();log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); boolean aidFlag = true;log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); switch (g) {log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); case ScreenChar.BUTTON_RIGHT:log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); case ScreenChar.BUTTON_MIDDLE:log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); while (screen[--pos].getWhichGUI() !=log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); ScreenChar.BUTTON_LEFT) {log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); }log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); case ScreenChar.BUTTON_LEFT:log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); if (screen[pos].getChar() == 'F') {log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); pos++;log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); }log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); elselog.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); aidFlag=false;log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); if (screen[pos+1].getChar() != '=' &&log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); screen[pos+1].getChar() != '.' &&log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); screen[pos+1].getChar() != '/' ) {//log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); System.out.println(" Hotspot clicked!!! we will send characters " +//log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); screen[pos].getChar() +//log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); screen[pos+1].getChar());log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); aid.append(screen[pos].getChar());log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); aid.append(screen[pos + 1].getChar());log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); }log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); else {//log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); System.out.println(" Hotspot clicked!!! we will send character " +//log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); screen[pos].getChar());//log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); aid.append(screen[pos].getChar());log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); }log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); break;log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); }log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); if (aidFlag) {log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); switch (g) {log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); case ScreenChar.BUTTON_LEFT_UP:log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); case ScreenChar.BUTTON_MIDDLE_UP:log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); case ScreenChar.BUTTON_RIGHT_UP:log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); case ScreenChar.BUTTON_ONE_UP:log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); case ScreenChar.BUTTON_SB_UP:log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); case ScreenChar.BUTTON_SB_GUIDE:log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); gui.sendAidKey(tnvt.AID_ROLL_UP);log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); break;log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); case ScreenChar.BUTTON_LEFT_DN:log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); case ScreenChar.BUTTON_MIDDLE_DN:log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); case ScreenChar.BUTTON_RIGHT_DN:log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); case ScreenChar.BUTTON_ONE_DN:log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); case ScreenChar.BUTTON_SB_DN:log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); case ScreenChar.BUTTON_SB_THUMB:log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); gui.sendAidKey(tnvt.AID_ROLL_DOWN);log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); break;log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); case ScreenChar.BUTTON_LEFT_EB:log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); case ScreenChar.BUTTON_MIDDLE_EB:log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); case ScreenChar.BUTTON_RIGHT_EB:log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); System.out.println("Send to external Browser");log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); break;log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); default:log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); int aidKey = Integer.parseInt(aid.toString());log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); if (aidKey >= 1 && aidKey <= 12)log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); gui.sendAidKey(0x30 + aidKey);log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); if (aidKey >= 13 && aidKey <= 24)log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); gui.sendAidKey(0xB0 + (aidKey - 12));log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); }log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); }log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); else {log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); if (screenFields.getCurrentField() != null) {log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); int xPos = screenFields.getCurrentField().startPos();log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); for (int x = 0; x < aid.length(); x++) {//log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); System.out.println(sr + "," + (sc + x) + " " + aid.charAt(x));log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); screen[xPos + x].setChar(aid.charAt(x));log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); }//log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); System.out.println(aid);log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); screenFields.setCurrentFieldMDT();log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); gui.sendAidKey(tnvt.AID_ENTER);log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); }log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); }log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); }log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); else {log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); // this is a note to not execute this code here when we implementlog.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); //log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); the remain after edit function option.log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); if (gui.rubberband.isAreaSelected()) {log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); gui.rubberband.reset();log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); gui.repaint();log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); }log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); else {log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); goto_XY(pos);log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); isInField(lastPos);log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); }log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); }log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); }log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); gui.requestFocus();log.debug(" Hotspot clicked!!! we will send character " + screen[pos].getChar()); }
5,008
public void moveCursor (MouseEvent e) { if(!keyboardLocked) { int pos = getPosFromView(e.getX(),e.getY());// System.out.println((getRow(pos)) + "," + (getCol(pos)));// System.out.println(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); if (pos < 0) return ; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0// pos -= (numCols + 1); int g = screen[pos].getWhichGUI(); // lets check for hot spots if (g >= ScreenChar.BUTTON_LEFT && g <= ScreenChar.BUTTON_LAST) { StringBuffer aid = new StringBuffer(); boolean aidFlag = true; switch (g) { case ScreenChar.BUTTON_RIGHT: case ScreenChar.BUTTON_MIDDLE: while (screen[--pos].getWhichGUI() != ScreenChar.BUTTON_LEFT) { } case ScreenChar.BUTTON_LEFT: if (screen[pos].getChar() == 'F') { pos++; } else aidFlag=false; if (screen[pos+1].getChar() != '=' && screen[pos+1].getChar() != '.' && screen[pos+1].getChar() != '/' ) {// System.out.println(" Hotspot clicked!!! we will send characters " +// screen[pos].getChar() +// screen[pos+1].getChar()); aid.append(screen[pos].getChar()); aid.append(screen[pos + 1].getChar()); } else {// System.out.println(" Hotspot clicked!!! we will send character " +// screen[pos].getChar());// aid.append(screen[pos].getChar()); } break; } if (aidFlag) { switch (g) { case ScreenChar.BUTTON_LEFT_UP: case ScreenChar.BUTTON_MIDDLE_UP: case ScreenChar.BUTTON_RIGHT_UP: case ScreenChar.BUTTON_ONE_UP: case ScreenChar.BUTTON_SB_UP: case ScreenChar.BUTTON_SB_GUIDE: gui.sendAidKey(tnvt.AID_ROLL_UP); break; case ScreenChar.BUTTON_LEFT_DN: case ScreenChar.BUTTON_MIDDLE_DN: case ScreenChar.BUTTON_RIGHT_DN: case ScreenChar.BUTTON_ONE_DN: case ScreenChar.BUTTON_SB_DN: case ScreenChar.BUTTON_SB_THUMB: gui.sendAidKey(tnvt.AID_ROLL_DOWN); break; case ScreenChar.BUTTON_LEFT_EB: case ScreenChar.BUTTON_MIDDLE_EB: case ScreenChar.BUTTON_RIGHT_EB: System.out.println("Send to external Browser"); break; default: int aidKey = Integer.parseInt(aid.toString()); if (aidKey >= 1 && aidKey <= 12) gui.sendAidKey(0x30 + aidKey); if (aidKey >= 13 && aidKey <= 24) gui.sendAidKey(0xB0 + (aidKey - 12)); } } else { if (screenFields.getCurrentField() != null) { int xPos = screenFields.getCurrentField().startPos(); for (int x = 0; x < aid.length(); x++) {// System.out.println(sr + "," + (sc + x) + " " + aid.charAt(x)); screen[xPos + x].setChar(aid.charAt(x)); }// System.out.println(aid); screenFields.setCurrentFieldMDT(); gui.sendAidKey(tnvt.AID_ENTER); } } } else { // this is a note to not execute this code here when we implement // the remain after edit function option. if (gui.rubberband.isAreaSelected()) { gui.rubberband.reset(); gui.repaint(); } else { goto_XY(pos); isInField(lastPos); } } } gui.requestFocus(); }
public void moveCursor (MouseEvent e) { if(!keyboardLocked) { int pos = getPosFromView(e.getX(),e.getY());// System.out.println((getRow(pos)) + "," + (getCol(pos)));// System.out.println(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); if (pos < 0) return ; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0// pos -= (numCols + 1); int g = screen[pos].getWhichGUI(); // lets check for hot spots if (g >= ScreenChar.BUTTON_LEFT && g <= ScreenChar.BUTTON_LAST) { StringBuffer aid = new StringBuffer(); boolean aidFlag = true; switch (g) { case ScreenChar.BUTTON_RIGHT: case ScreenChar.BUTTON_MIDDLE: while (screen[--pos].getWhichGUI() != ScreenChar.BUTTON_LEFT) { } case ScreenChar.BUTTON_LEFT: if (screen[pos].getChar() == 'F') { pos++; } else aidFlag=false; if (screen[pos+1].getChar() != '=' && screen[pos+1].getChar() != '.' && screen[pos+1].getChar() != '/' ) {// System.out.println(" Hotspot clicked!!! we will send characters " +// screen[pos].getChar() +// screen[pos+1].getChar()); aid.append(screen[pos].getChar()); aid.append(screen[pos + 1].getChar()); } else {// System.out.println(" Hotspot clicked!!! we will send character " +// screen[pos].getChar());// aid.append(screen[pos].getChar()); } break; } if (aidFlag) { switch (g) { case ScreenChar.BUTTON_LEFT_UP: case ScreenChar.BUTTON_MIDDLE_UP: case ScreenChar.BUTTON_RIGHT_UP: case ScreenChar.BUTTON_ONE_UP: case ScreenChar.BUTTON_SB_UP: case ScreenChar.BUTTON_SB_GUIDE: gui.sendAidKey(tnvt.AID_ROLL_UP); break; case ScreenChar.BUTTON_LEFT_DN: case ScreenChar.BUTTON_MIDDLE_DN: case ScreenChar.BUTTON_RIGHT_DN: case ScreenChar.BUTTON_ONE_DN: case ScreenChar.BUTTON_SB_DN: case ScreenChar.BUTTON_SB_THUMB: gui.sendAidKey(tnvt.AID_ROLL_DOWN); break; case ScreenChar.BUTTON_LEFT_EB: case ScreenChar.BUTTON_MIDDLE_EB: case ScreenChar.BUTTON_RIGHT_EB: log.info("Send to external Browser"); break; default: int aidKey = Integer.parseInt(aid.toString()); if (aidKey >= 1 && aidKey <= 12) gui.sendAidKey(0x30 + aidKey); if (aidKey >= 13 && aidKey <= 24) gui.sendAidKey(0xB0 + (aidKey - 12)); } } else { if (screenFields.getCurrentField() != null) { int xPos = screenFields.getCurrentField().startPos(); for (int x = 0; x < aid.length(); x++) {// System.out.println(sr + "," + (sc + x) + " " + aid.charAt(x)); screen[xPos + x].setChar(aid.charAt(x)); }// System.out.println(aid); screenFields.setCurrentFieldMDT(); gui.sendAidKey(tnvt.AID_ENTER); } } } else { // this is a note to not execute this code here when we implement // the remain after edit function option. if (gui.rubberband.isAreaSelected()) { gui.rubberband.reset(); gui.repaint(); } else { goto_XY(pos); isInField(lastPos); } } } gui.requestFocus(); }
5,009
protected final void pasteMe(boolean special) { setCursorActive(false); Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard(); Transferable content = cb.getContents(this); try { StringBuffer sb = new StringBuffer((String)content.getTransferData(DataFlavor.stringFlavor)); StringBuffer pd = new StringBuffer(); int r = getRow(lastPos); int nextChar = 0; int nChars = sb.length(); boolean omitLF = false; boolean done = false; screenFields.saveCurrentField(); int lr = getRow(lastPos); int lc = getCol(lastPos); resetDirty(lastPos); while (!done) { if (nextChar >= nChars) { /* EOF */ done = true; break; } pd.setLength(0); boolean eol = false; char c = 0; int i; /* Skip a leftover '\n', if necessary */ if (omitLF && (sb.charAt(nextChar) == '\n')) nextChar++; boolean skipLF = false; omitLF = false; charLoop: for (i = nextChar; i < nChars; i++) { c = sb.charAt(i); if ((c == '\n') || (c == '\r')) { eol = true; break charLoop; } } int startChar = nextChar; nextChar = i; pd.append(sb.substring(startChar, startChar + (i - startChar))); if (eol) { nextChar++; if (c == '\r') { skipLF = true; } } System.out.println("pasted >" + pd + "<"); int col = getCol(lastPos); int t = numCols - col; if (t > pd.length()) t = pd.length(); int p = 0; char pc; boolean setIt; while (t-- > 0) { pc = pd.charAt(p); setIt = true; if (special && (!Character.isLetter(pc) && !Character.isDigit(pc))) setIt = false; if (isInField(r,col) && setIt) { screen[getPos(r,col)].setChar(pc); setDirty(r,col); screenFields.setCurrentFieldMDT(); } p++; if (setIt) col++; } r++; } screenFields.restoreCurrentField(); updateDirty(); goto_XY(lr+1,lc+1); setCursorActive(true); } catch (Throwable exc) { System.err.println(exc); } }
protected final void pasteMe(boolean special) { setCursorActive(false); Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard(); Transferable content = cb.getContents(this); try { StringBuffer sb = new StringBuffer((String)content.getTransferData(DataFlavor.stringFlavor)); StringBuffer pd = new StringBuffer(); int r = getRow(lastPos); int nextChar = 0; int nChars = sb.length(); boolean omitLF = false; boolean done = false; screenFields.saveCurrentField(); int lr = getRow(lastPos); int lc = getCol(lastPos); resetDirty(lastPos); while (!done) { if (nextChar >= nChars) { /* EOF */ done = true; break; } pd.setLength(0); boolean eol = false; char c = 0; int i; /* Skip a leftover '\n', if necessary */ if (omitLF && (sb.charAt(nextChar) == '\n')) nextChar++; boolean skipLF = false; omitLF = false; charLoop: for (i = nextChar; i < nChars; i++) { c = sb.charAt(i); if ((c == '\n') || (c == '\r')) { eol = true; break charLoop; } } int startChar = nextChar; nextChar = i; pd.append(sb.substring(startChar, startChar + (i - startChar))); if (eol) { nextChar++; if (c == '\r') { skipLF = true; } } log.debug("pasted >" + pd + "<"); int col = getCol(lastPos); int t = numCols - col; if (t > pd.length()) t = pd.length(); int p = 0; char pc; boolean setIt; while (t-- > 0) { pc = pd.charAt(p); setIt = true; if (special && (!Character.isLetter(pc) && !Character.isDigit(pc))) setIt = false; if (isInField(r,col) && setIt) { screen[getPos(r,col)].setChar(pc); setDirty(r,col); screenFields.setCurrentFieldMDT(); } p++; if (setIt) col++; } r++; } screenFields.restoreCurrentField(); updateDirty(); goto_XY(lr+1,lc+1); setCursorActive(true); } catch (Throwable exc) { System.err.println(exc); } }
5,010
protected final void pasteMe(boolean special) { setCursorActive(false); Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard(); Transferable content = cb.getContents(this); try { StringBuffer sb = new StringBuffer((String)content.getTransferData(DataFlavor.stringFlavor)); StringBuffer pd = new StringBuffer(); int r = getRow(lastPos); int nextChar = 0; int nChars = sb.length(); boolean omitLF = false; boolean done = false; screenFields.saveCurrentField(); int lr = getRow(lastPos); int lc = getCol(lastPos); resetDirty(lastPos); while (!done) { if (nextChar >= nChars) { /* EOF */ done = true; break; } pd.setLength(0); boolean eol = false; char c = 0; int i; /* Skip a leftover '\n', if necessary */ if (omitLF && (sb.charAt(nextChar) == '\n')) nextChar++; boolean skipLF = false; omitLF = false; charLoop: for (i = nextChar; i < nChars; i++) { c = sb.charAt(i); if ((c == '\n') || (c == '\r')) { eol = true; break charLoop; } } int startChar = nextChar; nextChar = i; pd.append(sb.substring(startChar, startChar + (i - startChar))); if (eol) { nextChar++; if (c == '\r') { skipLF = true; } } System.out.println("pasted >" + pd + "<"); int col = getCol(lastPos); int t = numCols - col; if (t > pd.length()) t = pd.length(); int p = 0; char pc; boolean setIt; while (t-- > 0) { pc = pd.charAt(p); setIt = true; if (special && (!Character.isLetter(pc) && !Character.isDigit(pc))) setIt = false; if (isInField(r,col) && setIt) { screen[getPos(r,col)].setChar(pc); setDirty(r,col); screenFields.setCurrentFieldMDT(); } p++; if (setIt) col++; } r++; } screenFields.restoreCurrentField(); updateDirty(); goto_XY(lr+1,lc+1); setCursorActive(true); } catch (Throwable exc) { System.err.println(exc); } }
protected final void pasteMe(boolean special) { setCursorActive(false); Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard(); Transferable content = cb.getContents(this); try { StringBuffer sb = new StringBuffer((String)content.getTransferData(DataFlavor.stringFlavor)); StringBuffer pd = new StringBuffer(); int r = getRow(lastPos); int nextChar = 0; int nChars = sb.length(); boolean omitLF = false; boolean done = false; screenFields.saveCurrentField(); int lr = getRow(lastPos); int lc = getCol(lastPos); resetDirty(lastPos); while (!done) { if (nextChar >= nChars) { /* EOF */ done = true; break; } pd.setLength(0); boolean eol = false; char c = 0; int i; /* Skip a leftover '\n', if necessary */ if (omitLF && (sb.charAt(nextChar) == '\n')) nextChar++; boolean skipLF = false; omitLF = false; charLoop: for (i = nextChar; i < nChars; i++) { c = sb.charAt(i); if ((c == '\n') || (c == '\r')) { eol = true; break charLoop; } } int startChar = nextChar; nextChar = i; pd.append(sb.substring(startChar, startChar + (i - startChar))); if (eol) { nextChar++; if (c == '\r') { skipLF = true; } } System.out.println("pasted >" + pd + "<"); int col = getCol(lastPos); int t = numCols - col; if (t > pd.length()) t = pd.length(); int p = 0; char pc; boolean setIt; while (t-- > 0) { pc = pd.charAt(p); setIt = true; if (special && (!Character.isLetter(pc) && !Character.isDigit(pc))) setIt = false; if (isInField(r,col) && setIt) { screen[getPos(r,col)].setChar(pc); setDirty(r,col); screenFields.setCurrentFieldMDT(); } p++; if (setIt) col++; } r++; } screenFields.restoreCurrentField(); updateDirty(); goto_XY(lr+1,lc+1); setCursorActive(true); } catch (Throwable exc) { log.warn(""+exc.getMessage()); } }
5,011
public void propertyChange(PropertyChangeEvent pce) { String pn = pce.getPropertyName(); boolean resetAttr = false; if (pn.equals("colorBg")) { colorBg = (Color)pce.getNewValue(); resetAttr = true; } if (pn.equals("colorBlue")) { colorBlue = (Color)pce.getNewValue(); resetAttr = true; } if (pn.equals("colorTurq")) { colorTurq = (Color)pce.getNewValue(); resetAttr = true; } if (pn.equals("colorRed")) { colorRed = (Color)pce.getNewValue(); resetAttr = true; } if (pn.equals("colorWhite")) { colorWhite = (Color)pce.getNewValue(); resetAttr = true; } if (pn.equals("colorYellow")) { colorYellow = (Color)pce.getNewValue(); resetAttr = true; } if (pn.equals("colorGreen")) { colorGreen = (Color)pce.getNewValue(); resetAttr = true; } if (pn.equals("colorPink")) { colorPink = (Color)pce.getNewValue(); resetAttr = true; } if (pn.equals("colorGUIField")) { colorGUIField = (Color)pce.getNewValue(); resetAttr = true; } if (pn.equals("colorCursor")) { colorCursor = (Color)pce.getNewValue(); resetAttr = true; } if (pn.equals("colorSep")) { colorSep = (Color)pce.getNewValue(); resetAttr = true; } if (pn.equals("colorHexAttr")) { colorHexAttr = (Color)pce.getNewValue(); resetAttr = true; } if (pn.equals("cursorSize")) { if (pce.getNewValue().equals("Full")) cursorSize = 2; if (pce.getNewValue().equals("Half")) cursorSize = 1; if (pce.getNewValue().equals("Line")) cursorSize = 0; } if (pn.equals("crossHair")) { if (pce.getNewValue().equals("None")) crossHair = 0; if (pce.getNewValue().equals("Horz")) crossHair = 1; if (pce.getNewValue().equals("Vert")) crossHair = 2; if (pce.getNewValue().equals("Both")) crossHair = 3; } if (pn.equals("rulerFixed")) { if (pce.getNewValue().equals("Yes")) rulerFixed = true; else rulerFixed = false; } if (pn.equals("colSeparator")) { if (pce.getNewValue().equals("Line")) colSepLine = 0; if (pce.getNewValue().equals("ShortLine")) colSepLine = 1; if (pce.getNewValue().equals("Dot")) colSepLine = 2; if (pce.getNewValue().equals("Hide")) colSepLine = 3; } if (pn.equals("showAttr")) { if (pce.getNewValue().equals("Hex")) showHex = true; else showHex= false; } if (pn.equals("guiInterface")) { if (pce.getNewValue().equals("Yes")) guiInterface = true; else guiInterface = false; } if (pn.equals("guiShowUnderline")) { if (pce.getNewValue().equals("Yes")) guiShowUnderline = true; else guiShowUnderline = false; } if (pn.equals("hotspots")) { if (pce.getNewValue().equals("Yes")) hotSpots = true; else hotSpots = false; } if (pn.equals("defaultPrinter")) { if (pce.getNewValue().equals("Yes")) defaultPrinter = true; else defaultPrinter = false; } if (pn.equals("resetRequired")) { if (pce.getNewValue().equals("Yes")) resetRequired = true; else resetRequired = false; } if (pn.equals("hsMore")) { hsMore.setLength(0); hsMore.append((String)pce.getNewValue()); } if (pn.equals("hsBottom")) { hsBottom.setLength(0); hsBottom.append((String)pce.getNewValue()); } if (pn.equals("font")) { font = new Font((String)pce.getNewValue(),Font.PLAIN,14); updateFont = true; } if (pn.equals("useAntialias")) { if (pce.getNewValue().equals("Yes")) bi.setUseAntialias(true); else bi.setUseAntialias(false); updateFont = true; } if (pn.equals("fontScaleHeight")) {// try { sfh = Float.parseFloat((String)pce.getNewValue()); updateFont = true;// } } if (pn.equals("fontScaleWidth")) {// try { sfw = Float.parseFloat((String)pce.getNewValue()); updateFont = true;// } } if (pn.equals("fontPointSize")) {// try { ps132 = Float.parseFloat((String)pce.getNewValue()); updateFont = true;// } } if (pn.equals("cursorBottOffset")) { cursorBottOffset = getIntProperty("cursorBottOffset"); } if (pn.equals("cursorBlink")) { System.out.println(getStringProperty("cursorBlink")); if (pce.getNewValue().equals("Yes")) { if (blinker == null) { blinker = new javax.swing.Timer(500,this); blinker.start(); } } else { if (blinker != null) { blinker.stop(); blinker = null; } } } if (updateFont) { Rectangle r = gui.getDrawingBounds(); resizeScreenArea(r.width,r.height); updateFont = false; } if (resetAttr) { for (int y = 0;y < lenScreen; y++) { screen[y].setAttribute(screen[y].getCharAttr()); } bi.drawOIA(fmWidth,fmHeight,numRows,numCols,font,colorBg,colorBlue); } gui.validate(); gui.repaint(); }
public void propertyChange(PropertyChangeEvent pce) { String pn = pce.getPropertyName(); boolean resetAttr = false; if (pn.equals("colorBg")) { colorBg = (Color)pce.getNewValue(); resetAttr = true; } if (pn.equals("colorBlue")) { colorBlue = (Color)pce.getNewValue(); resetAttr = true; } if (pn.equals("colorTurq")) { colorTurq = (Color)pce.getNewValue(); resetAttr = true; } if (pn.equals("colorRed")) { colorRed = (Color)pce.getNewValue(); resetAttr = true; } if (pn.equals("colorWhite")) { colorWhite = (Color)pce.getNewValue(); resetAttr = true; } if (pn.equals("colorYellow")) { colorYellow = (Color)pce.getNewValue(); resetAttr = true; } if (pn.equals("colorGreen")) { colorGreen = (Color)pce.getNewValue(); resetAttr = true; } if (pn.equals("colorPink")) { colorPink = (Color)pce.getNewValue(); resetAttr = true; } if (pn.equals("colorGUIField")) { colorGUIField = (Color)pce.getNewValue(); resetAttr = true; } if (pn.equals("colorCursor")) { colorCursor = (Color)pce.getNewValue(); resetAttr = true; } if (pn.equals("colorSep")) { colorSep = (Color)pce.getNewValue(); resetAttr = true; } if (pn.equals("colorHexAttr")) { colorHexAttr = (Color)pce.getNewValue(); resetAttr = true; } if (pn.equals("cursorSize")) { if (pce.getNewValue().equals("Full")) cursorSize = 2; if (pce.getNewValue().equals("Half")) cursorSize = 1; if (pce.getNewValue().equals("Line")) cursorSize = 0; } if (pn.equals("crossHair")) { if (pce.getNewValue().equals("None")) crossHair = 0; if (pce.getNewValue().equals("Horz")) crossHair = 1; if (pce.getNewValue().equals("Vert")) crossHair = 2; if (pce.getNewValue().equals("Both")) crossHair = 3; } if (pn.equals("rulerFixed")) { if (pce.getNewValue().equals("Yes")) rulerFixed = true; else rulerFixed = false; } if (pn.equals("colSeparator")) { if (pce.getNewValue().equals("Line")) colSepLine = 0; if (pce.getNewValue().equals("ShortLine")) colSepLine = 1; if (pce.getNewValue().equals("Dot")) colSepLine = 2; if (pce.getNewValue().equals("Hide")) colSepLine = 3; } if (pn.equals("showAttr")) { if (pce.getNewValue().equals("Hex")) showHex = true; else showHex= false; } if (pn.equals("guiInterface")) { if (pce.getNewValue().equals("Yes")) guiInterface = true; else guiInterface = false; } if (pn.equals("guiShowUnderline")) { if (pce.getNewValue().equals("Yes")) guiShowUnderline = true; else guiShowUnderline = false; } if (pn.equals("hotspots")) { if (pce.getNewValue().equals("Yes")) hotSpots = true; else hotSpots = false; } if (pn.equals("defaultPrinter")) { if (pce.getNewValue().equals("Yes")) defaultPrinter = true; else defaultPrinter = false; } if (pn.equals("resetRequired")) { if (pce.getNewValue().equals("Yes")) resetRequired = true; else resetRequired = false; } if (pn.equals("hsMore")) { hsMore.setLength(0); hsMore.append((String)pce.getNewValue()); } if (pn.equals("hsBottom")) { hsBottom.setLength(0); hsBottom.append((String)pce.getNewValue()); } if (pn.equals("font")) { font = new Font((String)pce.getNewValue(),Font.PLAIN,14); updateFont = true; } if (pn.equals("useAntialias")) { if (pce.getNewValue().equals("Yes")) bi.setUseAntialias(true); else bi.setUseAntialias(false); updateFont = true; } if (pn.equals("fontScaleHeight")) {// try { sfh = Float.parseFloat((String)pce.getNewValue()); updateFont = true;// } } if (pn.equals("fontScaleWidth")) {// try { sfw = Float.parseFloat((String)pce.getNewValue()); updateFont = true;// } } if (pn.equals("fontPointSize")) {// try { ps132 = Float.parseFloat((String)pce.getNewValue()); updateFont = true;// } } if (pn.equals("cursorBottOffset")) { cursorBottOffset = getIntProperty("cursorBottOffset"); } if (pn.equals("cursorBlink")) { log.debug(getStringProperty("cursorBlink")); if (pce.getNewValue().equals("Yes")) { if (blinker == null) { blinker = new javax.swing.Timer(500,this); blinker.start(); } } else { if (blinker != null) { blinker.stop(); blinker = null; } } } if (updateFont) { Rectangle r = gui.getDrawingBounds(); resizeScreenArea(r.width,r.height); updateFont = false; } if (resetAttr) { for (int y = 0;y < lenScreen; y++) { screen[y].setAttribute(screen[y].getCharAttr()); } bi.drawOIA(fmWidth,fmHeight,numRows,numCols,font,colorBg,colorBlue); } gui.validate(); gui.repaint(); }
5,012
public void sendKeys(String text) {// if (text == null) {// return;// } if (isStatusErrorCode() && !resetRequired) { setCursorActive(false); simulateMnemonic(getMnemonicValue("[reset]")); setCursorActive(true); } if (keyboardLocked) { if(text.equals("[reset]") || text.equals("[sysreq]") || text.equals("[attn]")) { setCursorActive(false); simulateMnemonic(getMnemonicValue(text)); setCursorActive(true); } else { if (isStatusErrorCode()) { Toolkit.getDefaultToolkit().beep(); return; } keysBuffered = true; setKBIndicatorOn(); if(bufferedKeys == null){ bufferedKeys = text; return; } else { bufferedKeys += text; return; } } } else { if (keysBuffered) { if (bufferedKeys != null) { text = bufferedKeys + text; }// if (text.length() == 0) { keysBuffered = false; setKBIndicatorOff();// } bufferedKeys = null; } // check to see if position is in a field and if it is then change // current field to that field isInField(lastPos,true); if (text.length() == 1 && !text.equals("[") && !text.equals("]")) {// setCursorOff2(); setCursorActive(false); simulateKeyStroke(text.charAt(0)); setCursorActive(true);// setCursorOn2();// System.out.println(" text one"); } else { strokenizer.setKeyStrokes(text); String s; boolean done = false;// setCursorOff2(); setCursorActive(false); while (!done) {// while (strokenizer.hasMoreKeyStrokes() && !keyboardLocked &&// !isStatusErrorCode() && !done) { if (strokenizer.hasMoreKeyStrokes()) { // check to see if position is in a field and if it is then change // current field to that field isInField(lastPos,true); s = strokenizer.nextKeyStroke(); if (s.length() == 1) {// setCursorOn();// if (!keysBuffered) {// System.out.println(" s two" + s);// setCursorOn();// }// try { new Thread().sleep(400);} catch (InterruptedException ie) {} simulateKeyStroke(s.charAt(0));// System.out.println(" s two " + s + " " + cursorActive);// if (cursorActive && !keysBuffered) {// System.out.println(" s two" + s);// setCursorOn();// } } else { if (s != null) { simulateMnemonic(getMnemonicValue(s));// if (!cursorActive && !keysBuffered) {// System.out.println(" m one");// setCursorOn();// } } else System.out.println(" send keys mnemonic " + s); } if (keyboardLocked) { bufferedKeys = strokenizer.getUnprocessedKeyStroked(); if (bufferedKeys != null) { keysBuffered = true; setKBIndicatorOn(); } done = true; } } else {// setCursorActive(true);// setCursorOn(); done = true; } } setCursorActive(true); } } }
public void sendKeys(String text) {// if (text == null) {// return;// } if (isStatusErrorCode() && !resetRequired) { setCursorActive(false); simulateMnemonic(getMnemonicValue("[reset]")); setCursorActive(true); } if (keyboardLocked) { if(text.equals("[reset]") || text.equals("[sysreq]") || text.equals("[attn]")) { setCursorActive(false); simulateMnemonic(getMnemonicValue(text)); setCursorActive(true); } else { if (isStatusErrorCode()) { Toolkit.getDefaultToolkit().beep(); return; } keysBuffered = true; setKBIndicatorOn(); if(bufferedKeys == null){ bufferedKeys = text; return; } else { bufferedKeys += text; return; } } } else { if (keysBuffered) { if (bufferedKeys != null) { text = bufferedKeys + text; }// if (text.length() == 0) { keysBuffered = false; setKBIndicatorOff();// } bufferedKeys = null; } // check to see if position is in a field and if it is then change // current field to that field isInField(lastPos,true); if (text.length() == 1 && !text.equals("[") && !text.equals("]")) {// setCursorOff2(); setCursorActive(false); simulateKeyStroke(text.charAt(0)); setCursorActive(true);// setCursorOn2();// System.out.println(" text one"); } else { strokenizer.setKeyStrokes(text); String s; boolean done = false;// setCursorOff2(); setCursorActive(false); while (!done) {// while (strokenizer.hasMoreKeyStrokes() && !keyboardLocked &&// !isStatusErrorCode() && !done) { if (strokenizer.hasMoreKeyStrokes()) { // check to see if position is in a field and if it is then change // current field to that field isInField(lastPos,true); s = strokenizer.nextKeyStroke(); if (s.length() == 1) {// setCursorOn();// if (!keysBuffered) {// System.out.println(" s two" + s);// setCursorOn();// }// try { new Thread().sleep(400);} catch (InterruptedException ie) {} simulateKeyStroke(s.charAt(0));// System.out.println(" s two " + s + " " + cursorActive);// if (cursorActive && !keysBuffered) {// System.out.println(" s two" + s);// setCursorOn();// } } else { if (s != null) { simulateMnemonic(getMnemonicValue(s));// if (!cursorActive && !keysBuffered) {// System.out.println(" m one");// setCursorOn();// } } else log.info(" send keys mnemonic " + s); } if (keyboardLocked) { bufferedKeys = strokenizer.getUnprocessedKeyStroked(); if (bufferedKeys != null) { keysBuffered = true; setKBIndicatorOn(); } done = true; } } else {// setCursorActive(true);// setCursorOn(); done = true; } } setCursorActive(true); } } }
5,013
protected boolean simulateMnemonic(int mnem){ boolean simulated = false; switch (mnem) { case AID_CLEAR : case AID_ENTER : case AID_PF1 : case AID_PF2 : case AID_PF3 : case AID_PF4 : case AID_PF5 : case AID_PF6 : case AID_PF7 : case AID_PF8 : case AID_PF9 : case AID_PF10 : case AID_PF11 : case AID_PF12 : case AID_PF13 : case AID_PF14 : case AID_PF15 : case AID_PF16 : case AID_PF17 : case AID_PF18 : case AID_PF19 : case AID_PF20 : case AID_PF21 : case AID_PF22 : case AID_PF23 : case AID_PF24 : case AID_ROLL_DOWN : case AID_ROLL_UP : case AID_ROLL_LEFT : case AID_ROLL_RIGHT : if (!screenFields.isCanSendAid()) { displayError(ERR_ENTER_NO_ALLOWED); } else sendAid(mnem); simulated = true; break; case AID_HELP : sessionVT.sendHelpRequest(); simulated = true; break; case AID_PRINT : sessionVT.hostPrint(1); simulated = true; break; case BACK_SPACE : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { if (screenFields.getCurrentField().startPos() == lastPos) displayError(ERR_CURSOR_PROTECTED); else { screenFields.getCurrentField().getKeyPos(lastPos); screenFields.getCurrentField().changePos(-1); resetDirty(screenFields.getCurrentField().getCurrentPos()); shiftLeft(screenFields.getCurrentField().getCurrentPos()); updateDirty(); screenFields.setCurrentFieldMDT(); simulated = true; } } else { displayError(ERR_CURSOR_PROTECTED); } break; case BACK_TAB : if (screenFields.getCurrentField() != null && screenFields.isCurrentFieldHighlightedEntry()) { resetDirty(screenFields.getCurrentField().startPos); gotoFieldPrev(); updateDirty(); } else gotoFieldPrev(); if (screenFields.isCurrentFieldContinued()) { do { gotoFieldPrev(); } while (screenFields.isCurrentFieldContinuedMiddle() || screenFields.isCurrentFieldContinuedLast()); } isInField(lastPos); simulated = true; break; case UP : case MARK_UP : process_XY(lastPos - numCols); simulated = true; break; case DOWN : case MARK_DOWN : process_XY(lastPos + numCols); simulated = true; break; case LEFT : case MARK_LEFT : process_XY(lastPos - 1); simulated = true; break; case RIGHT : case MARK_RIGHT : process_XY(lastPos + 1); simulated = true; break; case NEXTWORD : gotoNextWord(); simulated = true; break; case PREVWORD : gotoPrevWord(); simulated = true; break; case DELETE : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { resetDirty(lastPos); screenFields.getCurrentField().getKeyPos(lastPos); shiftLeft(screenFields.getCurrentFieldPos()); screenFields.setCurrentFieldMDT(); updateDirty(); simulated = true; } else { displayError(ERR_CURSOR_PROTECTED); } break; case TAB : if (screenFields.getCurrentField() != null && !screenFields.isCurrentFieldContinued()) { if (screenFields.isCurrentFieldHighlightedEntry()) { resetDirty(screenFields.getCurrentField().startPos); gotoFieldNext(); updateDirty(); } else gotoFieldNext(); } else { do { gotoFieldNext(); } while (screenFields.getCurrentField() != null && (screenFields.isCurrentFieldContinuedMiddle() || screenFields.isCurrentFieldContinuedLast())); } isInField(lastPos); simulated = true; break; case EOF : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { int where = endOfField(screenFields.getCurrentField().startPos(),true); if (where > 0) { goto_XY((where / numCols) + 1,(where % numCols) + 1); } simulated = true; } else { displayError(ERR_CURSOR_PROTECTED); } resetDirty(lastPos); break; case ERASE_EOF : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { int where = lastPos; resetDirty(lastPos); if (fieldExit()) { screenFields.setCurrentFieldMDT(); if (!screenFields.isCurrentFieldContinued()) { gotoFieldNext(); } else { do { gotoFieldNext(); if (screenFields.isCurrentFieldContinued()) fieldExit(); } while (screenFields.isCurrentFieldContinuedMiddle() || screenFields.isCurrentFieldContinuedLast()); } } updateDirty(); goto_XY(where); simulated = true; } else { displayError(ERR_CURSOR_PROTECTED); } break; case ERASE_FIELD : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { int where = lastPos; lastPos = screenFields.getCurrentField().startPos(); resetDirty(lastPos); if (fieldExit()) { screenFields.setCurrentFieldMDT(); if (!screenFields.isCurrentFieldContinued()) { gotoFieldNext(); } else { do { gotoFieldNext(); if (screenFields.isCurrentFieldContinued()) fieldExit(); } while (screenFields.isCurrentFieldContinuedMiddle() || screenFields.isCurrentFieldContinuedLast()); } } updateDirty(); goto_XY(where); simulated = true; } else { displayError(ERR_CURSOR_PROTECTED); } break; case INSERT : // we toggle it insertMode = insertMode ? false : true; break; case HOME : // position to the home position set if (lastPos + numCols + 1 != homePos) { goto_XY(homePos - numCols - 1); // now check if we are in a field isInField(lastPos); } else gotoField(1); break; case KEYPAD_0 : simulated = simulateKeyStroke('0'); break; case KEYPAD_1 : simulated = simulateKeyStroke('1'); break; case KEYPAD_2 : simulated = simulateKeyStroke('2'); break; case KEYPAD_3 : simulated = simulateKeyStroke('3'); break; case KEYPAD_4 : simulated = simulateKeyStroke('4'); break; case KEYPAD_5 : simulated = simulateKeyStroke('5'); break; case KEYPAD_6 : simulated = simulateKeyStroke('6'); break; case KEYPAD_7 : simulated = simulateKeyStroke('7'); break; case KEYPAD_8 : simulated = simulateKeyStroke('8'); break; case KEYPAD_9 : simulated = simulateKeyStroke('9'); break; case KEYPAD_PERIOD : simulated = simulateKeyStroke('.'); break; case KEYPAD_COMMA : simulated = simulateKeyStroke(','); break; case KEYPAD_MINUS : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { int s = screenFields.getCurrentField().getFieldShift(); if (s == 3 || s == 5 || s == 7) { screen[lastPos].setChar('-'); resetDirty(lastPos); advancePos(); if (fieldExit()) { screenFields.setCurrentFieldMDT(); if (!screenFields.isCurrentFieldContinued()) { gotoFieldNext(); } else { do { gotoFieldNext(); } while (screenFields.isCurrentFieldContinuedMiddle() || screenFields.isCurrentFieldContinuedLast()); } simulated = true; updateDirty(); if (screenFields.isCurrentFieldAutoEnter()) sendAid(AID_ENTER); } } else { displayError(ERR_FIELD_MINUS); } } else { displayError(ERR_CURSOR_PROTECTED); } break; case FIELD_EXIT : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { resetDirty(lastPos); if (fieldExit()) { screenFields.setCurrentFieldMDT(); if (!screenFields.isCurrentFieldContinued()) { gotoFieldNext(); } else { do { gotoFieldNext(); if (screenFields.isCurrentFieldContinued()) fieldExit(); } while (screenFields.isCurrentFieldContinuedMiddle() || screenFields.isCurrentFieldContinuedLast()); } } updateDirty(); simulated = true; if (screenFields.isCurrentFieldAutoEnter()) sendAid(AID_ENTER); } else { displayError(ERR_CURSOR_PROTECTED); } break; case FIELD_PLUS : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { resetDirty(lastPos); if (fieldExit()) { screenFields.setCurrentFieldMDT(); if (!screenFields.isCurrentFieldContinued()) { gotoFieldNext(); } else { do { gotoFieldNext(); } while (screenFields.isCurrentFieldContinuedMiddle() || screenFields.isCurrentFieldContinuedLast()); } } updateDirty(); simulated = true; if (screenFields.isCurrentFieldAutoEnter()) sendAid(AID_ENTER); } else { displayError(ERR_CURSOR_PROTECTED); } break; case FIELD_MINUS : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { int s = screenFields.getCurrentField().getFieldShift(); if (s == 3 || s == 5 || s == 7) { screen[lastPos].setChar('-'); resetDirty(lastPos); advancePos(); if (fieldExit()) { screenFields.setCurrentFieldMDT(); if (!screenFields.isCurrentFieldContinued()) { gotoFieldNext(); } else { do { gotoFieldNext(); } while (screenFields.isCurrentFieldContinuedMiddle() || screenFields.isCurrentFieldContinuedLast()); } } updateDirty(); simulated = true; if (screenFields.isCurrentFieldAutoEnter()) sendAid(AID_ENTER); } else { displayError(ERR_FIELD_MINUS); } } else { displayError(ERR_CURSOR_PROTECTED); } break; case BOF : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { int where = screenFields.getCurrentField().startPos(); if (where > 0) { goto_XY(where); } simulated = true; } else { displayError(ERR_CURSOR_PROTECTED); } resetDirty(lastPos); break; case SYSREQ : sessionVT.systemRequest(); simulated = true; break; case RESET : if (isStatusErrorCode()) { resetError(); isInField(lastPos); updateDirty(); } else { setPrehelpState(false,isKeyboardLocked(),false); } gui.repaint(); simulated = true; break; case COPY : copyMe(); break; case PASTE : pasteMe(false); break; case ATTN : sessionVT.sendAttentionKey(); simulated = true; break; case DUP_FIELD : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { if (screenFields.isCurrentFieldDupEnabled()) { resetDirty(lastPos); screenFields.getCurrentField().setFieldChar(lastPos,(char)0x1C); screenFields.setCurrentFieldMDT(); gotoFieldNext(); updateDirty(); simulated = true; } else { displayError(ERR_DUP_KEY_NOT_ALLOWED); } } else { displayError(ERR_CURSOR_PROTECTED); } break; case NEW_LINE : if (screenFields.getSize() > 0) { int startRow = getRow(lastPos) + 1; int startPos = lastPos; boolean isthere = false; if (startRow == getRows()) startRow = 0; goto_XY(++startRow,1); if (!isInField() && screenFields.getCurrentField() != null && !screenFields.isCurrentFieldBypassField()) { while (!isInField() && screenFields.getCurrentField() != null && !screenFields.isCurrentFieldBypassField()) { // lets keep going advancePos(); // Have we looped the screen? if (lastPos == startPos) { // if so then go back to starting point goto_XY(startPos); break; } } } } simulated = true; break; case JUMP_NEXT_SESS : gui.nextSession(); simulated = true; break; case JUMP_PREV_SESS : gui.prevSession(); simulated = true; break; default : System.out.println(" Mnemonic not supported " + mnem); break; } return simulated; }
protected boolean simulateMnemonic(int mnem){ boolean simulated = false; switch (mnem) { case AID_CLEAR : case AID_ENTER : case AID_PF1 : case AID_PF2 : case AID_PF3 : case AID_PF4 : case AID_PF5 : case AID_PF6 : case AID_PF7 : case AID_PF8 : case AID_PF9 : case AID_PF10 : case AID_PF11 : case AID_PF12 : case AID_PF13 : case AID_PF14 : case AID_PF15 : case AID_PF16 : case AID_PF17 : case AID_PF18 : case AID_PF19 : case AID_PF20 : case AID_PF21 : case AID_PF22 : case AID_PF23 : case AID_PF24 : case AID_ROLL_DOWN : case AID_ROLL_UP : case AID_ROLL_LEFT : case AID_ROLL_RIGHT : if (!screenFields.isCanSendAid()) { displayError(ERR_ENTER_NO_ALLOWED); } else sendAid(mnem); simulated = true; break; case AID_HELP : sessionVT.sendHelpRequest(); simulated = true; break; case AID_PRINT : sessionVT.hostPrint(1); simulated = true; break; case BACK_SPACE : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { if (screenFields.getCurrentField().startPos() == lastPos) displayError(ERR_CURSOR_PROTECTED); else { screenFields.getCurrentField().getKeyPos(lastPos); screenFields.getCurrentField().changePos(-1); resetDirty(screenFields.getCurrentField().getCurrentPos()); shiftLeft(screenFields.getCurrentField().getCurrentPos()); updateDirty(); screenFields.setCurrentFieldMDT(); simulated = true; } } else { displayError(ERR_CURSOR_PROTECTED); } break; case BACK_TAB : if (screenFields.getCurrentField() != null && screenFields.isCurrentFieldHighlightedEntry()) { resetDirty(screenFields.getCurrentField().startPos); gotoFieldPrev(); updateDirty(); } else gotoFieldPrev(); if (screenFields.isCurrentFieldContinued()) { do { gotoFieldPrev(); } while (screenFields.isCurrentFieldContinuedMiddle() || screenFields.isCurrentFieldContinuedLast()); } isInField(lastPos); simulated = true; break; case UP : case MARK_UP : process_XY(lastPos - numCols); simulated = true; break; case DOWN : case MARK_DOWN : process_XY(lastPos + numCols); simulated = true; break; case LEFT : case MARK_LEFT : process_XY(lastPos - 1); simulated = true; break; case RIGHT : case MARK_RIGHT : process_XY(lastPos + 1); simulated = true; break; case NEXTWORD : gotoNextWord(); simulated = true; break; case PREVWORD : gotoPrevWord(); simulated = true; break; case DELETE : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { resetDirty(lastPos); screenFields.getCurrentField().getKeyPos(lastPos); shiftLeft(screenFields.getCurrentFieldPos()); screenFields.setCurrentFieldMDT(); updateDirty(); simulated = true; } else { displayError(ERR_CURSOR_PROTECTED); } break; case TAB : if (screenFields.getCurrentField() != null && !screenFields.isCurrentFieldContinued()) { if (screenFields.isCurrentFieldHighlightedEntry()) { resetDirty(screenFields.getCurrentField().startPos); gotoFieldNext(); updateDirty(); } else gotoFieldNext(); } else { do { gotoFieldNext(); } while (screenFields.getCurrentField() != null && (screenFields.isCurrentFieldContinuedMiddle() || screenFields.isCurrentFieldContinuedLast())); } isInField(lastPos); simulated = true; break; case EOF : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { int where = endOfField(screenFields.getCurrentField().startPos(),true); if (where > 0) { goto_XY((where / numCols) + 1,(where % numCols) + 1); } simulated = true; } else { displayError(ERR_CURSOR_PROTECTED); } resetDirty(lastPos); break; case ERASE_EOF : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { int where = lastPos; resetDirty(lastPos); if (fieldExit()) { screenFields.setCurrentFieldMDT(); if (!screenFields.isCurrentFieldContinued()) { gotoFieldNext(); } else { do { gotoFieldNext(); if (screenFields.isCurrentFieldContinued()) fieldExit(); } while (screenFields.isCurrentFieldContinuedMiddle() || screenFields.isCurrentFieldContinuedLast()); } } updateDirty(); goto_XY(where); simulated = true; } else { displayError(ERR_CURSOR_PROTECTED); } break; case ERASE_FIELD : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { int where = lastPos; lastPos = screenFields.getCurrentField().startPos(); resetDirty(lastPos); if (fieldExit()) { screenFields.setCurrentFieldMDT(); if (!screenFields.isCurrentFieldContinued()) { gotoFieldNext(); } else { do { gotoFieldNext(); if (screenFields.isCurrentFieldContinued()) fieldExit(); } while (screenFields.isCurrentFieldContinuedMiddle() || screenFields.isCurrentFieldContinuedLast()); } } updateDirty(); goto_XY(where); simulated = true; } else { displayError(ERR_CURSOR_PROTECTED); } break; case INSERT : // we toggle it insertMode = insertMode ? false : true; break; case HOME : // position to the home position set if (lastPos + numCols + 1 != homePos) { goto_XY(homePos - numCols - 1); // now check if we are in a field isInField(lastPos); } else gotoField(1); break; case KEYPAD_0 : simulated = simulateKeyStroke('0'); break; case KEYPAD_1 : simulated = simulateKeyStroke('1'); break; case KEYPAD_2 : simulated = simulateKeyStroke('2'); break; case KEYPAD_3 : simulated = simulateKeyStroke('3'); break; case KEYPAD_4 : simulated = simulateKeyStroke('4'); break; case KEYPAD_5 : simulated = simulateKeyStroke('5'); break; case KEYPAD_6 : simulated = simulateKeyStroke('6'); break; case KEYPAD_7 : simulated = simulateKeyStroke('7'); break; case KEYPAD_8 : simulated = simulateKeyStroke('8'); break; case KEYPAD_9 : simulated = simulateKeyStroke('9'); break; case KEYPAD_PERIOD : simulated = simulateKeyStroke('.'); break; case KEYPAD_COMMA : simulated = simulateKeyStroke(','); break; case KEYPAD_MINUS : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { int s = screenFields.getCurrentField().getFieldShift(); if (s == 3 || s == 5 || s == 7) { screen[lastPos].setChar('-'); resetDirty(lastPos); advancePos(); if (fieldExit()) { screenFields.setCurrentFieldMDT(); if (!screenFields.isCurrentFieldContinued()) { gotoFieldNext(); } else { do { gotoFieldNext(); } while (screenFields.isCurrentFieldContinuedMiddle() || screenFields.isCurrentFieldContinuedLast()); } simulated = true; updateDirty(); if (screenFields.isCurrentFieldAutoEnter()) sendAid(AID_ENTER); } } else { displayError(ERR_FIELD_MINUS); } } else { displayError(ERR_CURSOR_PROTECTED); } break; case FIELD_EXIT : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { resetDirty(lastPos); if (fieldExit()) { screenFields.setCurrentFieldMDT(); if (!screenFields.isCurrentFieldContinued()) { gotoFieldNext(); } else { do { gotoFieldNext(); if (screenFields.isCurrentFieldContinued()) fieldExit(); } while (screenFields.isCurrentFieldContinuedMiddle() || screenFields.isCurrentFieldContinuedLast()); } } updateDirty(); simulated = true; if (screenFields.isCurrentFieldAutoEnter()) sendAid(AID_ENTER); } else { displayError(ERR_CURSOR_PROTECTED); } break; case FIELD_PLUS : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { resetDirty(lastPos); if (fieldExit()) { screenFields.setCurrentFieldMDT(); if (!screenFields.isCurrentFieldContinued()) { gotoFieldNext(); } else { do { gotoFieldNext(); } while (screenFields.isCurrentFieldContinuedMiddle() || screenFields.isCurrentFieldContinuedLast()); } } updateDirty(); simulated = true; if (screenFields.isCurrentFieldAutoEnter()) sendAid(AID_ENTER); } else { displayError(ERR_CURSOR_PROTECTED); } break; case FIELD_MINUS : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { int s = screenFields.getCurrentField().getFieldShift(); if (s == 3 || s == 5 || s == 7) { screen[lastPos].setChar('-'); resetDirty(lastPos); advancePos(); if (fieldExit()) { screenFields.setCurrentFieldMDT(); if (!screenFields.isCurrentFieldContinued()) { gotoFieldNext(); } else { do { gotoFieldNext(); } while (screenFields.isCurrentFieldContinuedMiddle() || screenFields.isCurrentFieldContinuedLast()); } } updateDirty(); simulated = true; if (screenFields.isCurrentFieldAutoEnter()) sendAid(AID_ENTER); } else { displayError(ERR_FIELD_MINUS); } } else { displayError(ERR_CURSOR_PROTECTED); } break; case BOF : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { int where = screenFields.getCurrentField().startPos(); if (where > 0) { goto_XY(where); } simulated = true; } else { displayError(ERR_CURSOR_PROTECTED); } resetDirty(lastPos); break; case SYSREQ : sessionVT.systemRequest(); simulated = true; break; case RESET : if (isStatusErrorCode()) { resetError(); isInField(lastPos); updateDirty(); } else { setPrehelpState(false,isKeyboardLocked(),false); } gui.repaint(); simulated = true; break; case COPY : copyMe(); break; case PASTE : pasteMe(false); break; case ATTN : sessionVT.sendAttentionKey(); simulated = true; break; case DUP_FIELD : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { if (screenFields.isCurrentFieldDupEnabled()) { resetDirty(lastPos); screenFields.getCurrentField().setFieldChar(lastPos,(char)0x1C); screenFields.setCurrentFieldMDT(); gotoFieldNext(); updateDirty(); simulated = true; } else { displayError(ERR_DUP_KEY_NOT_ALLOWED); } } else { displayError(ERR_CURSOR_PROTECTED); } break; case NEW_LINE : if (screenFields.getSize() > 0) { int startRow = getRow(lastPos) + 1; int startPos = lastPos; boolean isthere = false; if (startRow == getRows()) startRow = 0; goto_XY(++startRow,1); if (!isInField() && screenFields.getCurrentField() != null && !screenFields.isCurrentFieldBypassField()) { while (!isInField() && screenFields.getCurrentField() != null && !screenFields.isCurrentFieldBypassField()) { // lets keep going advancePos(); // Have we looped the screen? if (lastPos == startPos) { // if so then go back to starting point goto_XY(startPos); break; } } } } simulated = true; break; case JUMP_NEXT_SESS : gui.nextSession(); simulated = true; break; case JUMP_PREV_SESS : gui.prevSession(); simulated = true; break; default : log.info(" Mnemonic not supported " + mnem); break; } return simulated; }
5,014
protected final Vector sumThem(boolean which) { StringBuffer s = new StringBuffer(); getBoundingArea(workR);// gui.rubberband.reset();// gui.repaint();// System.out.println("Summing"); // obtain the decimal format for parsing DecimalFormat df = (DecimalFormat)NumberFormat.getInstance() ; DecimalFormatSymbols dfs = df.getDecimalFormatSymbols(); if (which) { dfs.setDecimalSeparator('.'); dfs.setGroupingSeparator(','); } else { dfs.setDecimalSeparator(','); dfs.setGroupingSeparator('.'); } df.setDecimalFormatSymbols(dfs); Vector sumVector = new Vector(); // loop through all the screen characters to send them to the clip board int m = workR.x; int i = 0; int t = 0; double sum = 0.0; while (workR.height-- > 0) { t = workR.width; i = workR.y; while (t-- > 0) { // only copy printable numeric characters (in this case >= ' ') char c = screen[getPos(m - 1,i - 1)].getChar(); if (((c >= '0' && c <= '9') || c== '.' || c == ',' || c == '-') && !screen[getPos(m - 1,i - 1)].nonDisplay) { s.append(c); } i++; } if (s.length() > 0) { if (s.charAt(s.length()-1) == '-') { s.insert(0,'-'); s.deleteCharAt(s.length()-1); } try { Number n = df.parse(s.toString());// System.out.println(s + " " + n.doubleValue()); sumVector.add(new Double(n.doubleValue())); sum += n.doubleValue(); } catch (ParseException pe) { System.out.println(pe.getMessage() + " at " + pe.getErrorOffset()); } } s.setLength(0); m++; }// System.out.println(sum); return sumVector; }
log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); protectedlog.debug("Summing"); finallog.debug("Summing"); Vectorlog.debug("Summing"); sumThem(booleanlog.debug("Summing"); which)log.debug("Summing"); {log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); StringBufferlog.debug("Summing"); slog.debug("Summing"); =log.debug("Summing"); newlog.debug("Summing"); StringBuffer();log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); getBoundingArea(workR);//log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); gui.rubberband.reset();//log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); gui.repaint();//log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); System.out.println("Summing");log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); //log.debug("Summing"); obtainlog.debug("Summing"); thelog.debug("Summing"); decimallog.debug("Summing"); formatlog.debug("Summing"); forlog.debug("Summing"); parsinglog.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); DecimalFormatlog.debug("Summing"); dflog.debug("Summing"); =log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); (DecimalFormat)NumberFormat.getInstance()log.debug("Summing"); ;log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); DecimalFormatSymbolslog.debug("Summing"); dfslog.debug("Summing"); =log.debug("Summing"); df.getDecimalFormatSymbols();log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); iflog.debug("Summing"); (which)log.debug("Summing"); {log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); dfs.setDecimalSeparator('.');log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); dfs.setGroupingSeparator(',');log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); }log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); elselog.debug("Summing"); {log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); dfs.setDecimalSeparator(',');log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); dfs.setGroupingSeparator('.');log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); }log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); df.setDecimalFormatSymbols(dfs);log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); Vectorlog.debug("Summing"); sumVectorlog.debug("Summing"); =log.debug("Summing"); newlog.debug("Summing"); Vector();log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); //log.debug("Summing"); looplog.debug("Summing"); throughlog.debug("Summing"); alllog.debug("Summing"); thelog.debug("Summing"); screenlog.debug("Summing"); characterslog.debug("Summing"); tolog.debug("Summing"); sendlog.debug("Summing"); themlog.debug("Summing"); tolog.debug("Summing"); thelog.debug("Summing"); cliplog.debug("Summing"); boardlog.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); intlog.debug("Summing"); mlog.debug("Summing"); =log.debug("Summing"); workR.x;log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); intlog.debug("Summing"); ilog.debug("Summing"); =log.debug("Summing"); 0;log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); intlog.debug("Summing"); tlog.debug("Summing"); =log.debug("Summing"); 0;log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); doublelog.debug("Summing"); sumlog.debug("Summing"); =log.debug("Summing"); 0.0;log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); whilelog.debug("Summing"); (workR.height--log.debug("Summing"); >log.debug("Summing"); 0)log.debug("Summing"); {log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); tlog.debug("Summing"); =log.debug("Summing"); workR.width;log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); ilog.debug("Summing"); =log.debug("Summing"); workR.y;log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); whilelog.debug("Summing"); (t--log.debug("Summing"); >log.debug("Summing"); 0)log.debug("Summing"); {log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); //log.debug("Summing"); onlylog.debug("Summing"); copylog.debug("Summing"); printablelog.debug("Summing"); numericlog.debug("Summing"); characterslog.debug("Summing"); (inlog.debug("Summing"); thislog.debug("Summing"); caselog.debug("Summing"); >=log.debug("Summing"); 'log.debug("Summing"); ')log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); charlog.debug("Summing"); clog.debug("Summing"); =log.debug("Summing"); screen[getPos(mlog.debug("Summing"); -log.debug("Summing"); 1,ilog.debug("Summing"); -log.debug("Summing"); 1)].getChar();log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); iflog.debug("Summing"); (((clog.debug("Summing"); >=log.debug("Summing"); '0'log.debug("Summing"); &&log.debug("Summing"); clog.debug("Summing"); <=log.debug("Summing"); '9')log.debug("Summing"); ||log.debug("Summing"); c==log.debug("Summing"); '.'log.debug("Summing"); ||log.debug("Summing"); clog.debug("Summing"); ==log.debug("Summing"); ','log.debug("Summing"); ||log.debug("Summing"); clog.debug("Summing"); ==log.debug("Summing"); '-')log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); &&log.debug("Summing"); !screen[getPos(mlog.debug("Summing"); -log.debug("Summing"); 1,ilog.debug("Summing"); -log.debug("Summing"); 1)].nonDisplay)log.debug("Summing"); {log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); s.append(c);log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); }log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); i++;log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); }log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); iflog.debug("Summing"); (s.length()log.debug("Summing"); >log.debug("Summing"); 0)log.debug("Summing"); {log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); iflog.debug("Summing"); (s.charAt(s.length()-1)log.debug("Summing"); ==log.debug("Summing"); '-')log.debug("Summing"); {log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); s.insert(0,'-');log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); s.deleteCharAt(s.length()-1);log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); }log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); trylog.debug("Summing"); {log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); Numberlog.debug("Summing"); nlog.debug("Summing"); =log.debug("Summing"); df.parse(s.toString());//log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); System.out.println(slog.debug("Summing"); +log.debug("Summing"); "log.debug("Summing"); "log.debug("Summing"); +log.debug("Summing"); n.doubleValue());log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); sumVector.add(newlog.debug("Summing"); Double(n.doubleValue()));log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); sumlog.debug("Summing"); +=log.debug("Summing"); n.doubleValue();log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); }log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); catchlog.debug("Summing"); (ParseExceptionlog.debug("Summing"); pe)log.debug("Summing"); {log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); System.out.println(pe.getMessage()log.debug("Summing"); +log.debug("Summing"); "log.debug("Summing"); atlog.debug("Summing"); "log.debug("Summing"); +log.debug("Summing"); pe.getErrorOffset());log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); }log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); }log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); s.setLength(0);log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); m++;log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); }//log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); System.out.println(sum);log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); returnlog.debug("Summing"); sumVector;log.debug("Summing"); log.debug("Summing"); log.debug("Summing"); }
5,015
protected final Vector sumThem(boolean which) { StringBuffer s = new StringBuffer(); getBoundingArea(workR);// gui.rubberband.reset();// gui.repaint();// System.out.println("Summing"); // obtain the decimal format for parsing DecimalFormat df = (DecimalFormat)NumberFormat.getInstance() ; DecimalFormatSymbols dfs = df.getDecimalFormatSymbols(); if (which) { dfs.setDecimalSeparator('.'); dfs.setGroupingSeparator(','); } else { dfs.setDecimalSeparator(','); dfs.setGroupingSeparator('.'); } df.setDecimalFormatSymbols(dfs); Vector sumVector = new Vector(); // loop through all the screen characters to send them to the clip board int m = workR.x; int i = 0; int t = 0; double sum = 0.0; while (workR.height-- > 0) { t = workR.width; i = workR.y; while (t-- > 0) { // only copy printable numeric characters (in this case >= ' ') char c = screen[getPos(m - 1,i - 1)].getChar(); if (((c >= '0' && c <= '9') || c== '.' || c == ',' || c == '-') && !screen[getPos(m - 1,i - 1)].nonDisplay) { s.append(c); } i++; } if (s.length() > 0) { if (s.charAt(s.length()-1) == '-') { s.insert(0,'-'); s.deleteCharAt(s.length()-1); } try { Number n = df.parse(s.toString());// System.out.println(s + " " + n.doubleValue()); sumVector.add(new Double(n.doubleValue())); sum += n.doubleValue(); } catch (ParseException pe) { System.out.println(pe.getMessage() + " at " + pe.getErrorOffset()); } } s.setLength(0); m++; }// System.out.println(sum); return sumVector; }
log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); protectedlog.debug(""+sum); finallog.debug(""+sum); Vectorlog.debug(""+sum); sumThem(booleanlog.debug(""+sum); which)log.debug(""+sum); {log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); StringBufferlog.debug(""+sum); slog.debug(""+sum); =log.debug(""+sum); newlog.debug(""+sum); StringBuffer();log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); getBoundingArea(workR);//log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); gui.rubberband.reset();//log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); gui.repaint();//log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); System.out.println("Summing");log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); //log.debug(""+sum); obtainlog.debug(""+sum); thelog.debug(""+sum); decimallog.debug(""+sum); formatlog.debug(""+sum); forlog.debug(""+sum); parsinglog.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); DecimalFormatlog.debug(""+sum); dflog.debug(""+sum); =log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); (DecimalFormat)NumberFormat.getInstance()log.debug(""+sum); ;log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); DecimalFormatSymbolslog.debug(""+sum); dfslog.debug(""+sum); =log.debug(""+sum); df.getDecimalFormatSymbols();log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); iflog.debug(""+sum); (which)log.debug(""+sum); {log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); dfs.setDecimalSeparator('.');log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); dfs.setGroupingSeparator(',');log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); }log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); elselog.debug(""+sum); {log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); dfs.setDecimalSeparator(',');log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); dfs.setGroupingSeparator('.');log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); }log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); df.setDecimalFormatSymbols(dfs);log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); Vectorlog.debug(""+sum); sumVectorlog.debug(""+sum); =log.debug(""+sum); newlog.debug(""+sum); Vector();log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); //log.debug(""+sum); looplog.debug(""+sum); throughlog.debug(""+sum); alllog.debug(""+sum); thelog.debug(""+sum); screenlog.debug(""+sum); characterslog.debug(""+sum); tolog.debug(""+sum); sendlog.debug(""+sum); themlog.debug(""+sum); tolog.debug(""+sum); thelog.debug(""+sum); cliplog.debug(""+sum); boardlog.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); intlog.debug(""+sum); mlog.debug(""+sum); =log.debug(""+sum); workR.x;log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); intlog.debug(""+sum); ilog.debug(""+sum); =log.debug(""+sum); 0;log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); intlog.debug(""+sum); tlog.debug(""+sum); =log.debug(""+sum); 0;log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); doublelog.debug(""+sum); sumlog.debug(""+sum); =log.debug(""+sum); 0.0;log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); whilelog.debug(""+sum); (workR.height--log.debug(""+sum); >log.debug(""+sum); 0)log.debug(""+sum); {log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); tlog.debug(""+sum); =log.debug(""+sum); workR.width;log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); ilog.debug(""+sum); =log.debug(""+sum); workR.y;log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); whilelog.debug(""+sum); (t--log.debug(""+sum); >log.debug(""+sum); 0)log.debug(""+sum); {log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); //log.debug(""+sum); onlylog.debug(""+sum); copylog.debug(""+sum); printablelog.debug(""+sum); numericlog.debug(""+sum); characterslog.debug(""+sum); (inlog.debug(""+sum); thislog.debug(""+sum); caselog.debug(""+sum); >=log.debug(""+sum); 'log.debug(""+sum); ')log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); charlog.debug(""+sum); clog.debug(""+sum); =log.debug(""+sum); screen[getPos(mlog.debug(""+sum); -log.debug(""+sum); 1,ilog.debug(""+sum); -log.debug(""+sum); 1)].getChar();log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); iflog.debug(""+sum); (((clog.debug(""+sum); >=log.debug(""+sum); '0'log.debug(""+sum); &&log.debug(""+sum); clog.debug(""+sum); <=log.debug(""+sum); '9')log.debug(""+sum); ||log.debug(""+sum); c==log.debug(""+sum); '.'log.debug(""+sum); ||log.debug(""+sum); clog.debug(""+sum); ==log.debug(""+sum); ','log.debug(""+sum); ||log.debug(""+sum); clog.debug(""+sum); ==log.debug(""+sum); '-')log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); &&log.debug(""+sum); !screen[getPos(mlog.debug(""+sum); -log.debug(""+sum); 1,ilog.debug(""+sum); -log.debug(""+sum); 1)].nonDisplay)log.debug(""+sum); {log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); s.append(c);log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); }log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); i++;log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); }log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); iflog.debug(""+sum); (s.length()log.debug(""+sum); >log.debug(""+sum); 0)log.debug(""+sum); {log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); iflog.debug(""+sum); (s.charAt(s.length()-1)log.debug(""+sum); ==log.debug(""+sum); '-')log.debug(""+sum); {log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); s.insert(0,'-');log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); s.deleteCharAt(s.length()-1);log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); }log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); trylog.debug(""+sum); {log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); Numberlog.debug(""+sum); nlog.debug(""+sum); =log.debug(""+sum); df.parse(s.toString());//log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); System.out.println(slog.debug(""+sum); +log.debug(""+sum); "log.debug(""+sum); "log.debug(""+sum); +log.debug(""+sum); n.doubleValue());log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); sumVector.add(newlog.debug(""+sum); Double(n.doubleValue()));log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); sumlog.debug(""+sum); +=log.debug(""+sum); n.doubleValue();log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); }log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); catchlog.debug(""+sum); (ParseExceptionlog.debug(""+sum); pe)log.debug(""+sum); {log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); System.out.println(pe.getMessage()log.debug(""+sum); +log.debug(""+sum); "log.debug(""+sum); atlog.debug(""+sum); "log.debug(""+sum); +log.debug(""+sum); pe.getErrorOffset());log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); }log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); }log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); s.setLength(0);log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); m++;log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); }//log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); System.out.println(sum);log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); returnlog.debug(""+sum); sumVector;log.debug(""+sum); log.debug(""+sum); log.debug(""+sum); }
5,016
public Point translateEnd(Point end) { // because getRowColFromPoint returns position offset as 1,1 we need // to translate as offset 0,0 int pos = getPosFromView(end.x,end.y); int x = screen[pos].x + fmWidth - 1; int y = screen[pos].y + fmHeight - 1; end.setLocation(x,y); return end; }
if(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } publicif(pos >= screen.length) { pos = screen.length-1; } Pointif(pos >= screen.length) { pos = screen.length-1; } translateEnd(Pointif(pos >= screen.length) { pos = screen.length-1; } end)if(pos >= screen.length) { pos = screen.length-1; } {if(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } //if(pos >= screen.length) { pos = screen.length-1; } becauseif(pos >= screen.length) { pos = screen.length-1; } getRowColFromPointif(pos >= screen.length) { pos = screen.length-1; } returnsif(pos >= screen.length) { pos = screen.length-1; } positionif(pos >= screen.length) { pos = screen.length-1; } offsetif(pos >= screen.length) { pos = screen.length-1; } asif(pos >= screen.length) { pos = screen.length-1; } 1,1if(pos >= screen.length) { pos = screen.length-1; } weif(pos >= screen.length) { pos = screen.length-1; } needif(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } //if(pos >= screen.length) { pos = screen.length-1; } toif(pos >= screen.length) { pos = screen.length-1; } translateif(pos >= screen.length) { pos = screen.length-1; } asif(pos >= screen.length) { pos = screen.length-1; } offsetif(pos >= screen.length) { pos = screen.length-1; } 0,0if(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } intif(pos >= screen.length) { pos = screen.length-1; } posif(pos >= screen.length) { pos = screen.length-1; } =if(pos >= screen.length) { pos = screen.length-1; } getPosFromView(end.x,end.y);if(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } intif(pos >= screen.length) { pos = screen.length-1; } xif(pos >= screen.length) { pos = screen.length-1; } =if(pos >= screen.length) { pos = screen.length-1; } screen[pos].xif(pos >= screen.length) { pos = screen.length-1; } +if(pos >= screen.length) { pos = screen.length-1; } fmWidthif(pos >= screen.length) { pos = screen.length-1; } -if(pos >= screen.length) { pos = screen.length-1; } 1;if(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } intif(pos >= screen.length) { pos = screen.length-1; } yif(pos >= screen.length) { pos = screen.length-1; } =if(pos >= screen.length) { pos = screen.length-1; } screen[pos].yif(pos >= screen.length) { pos = screen.length-1; } +if(pos >= screen.length) { pos = screen.length-1; } fmHeightif(pos >= screen.length) { pos = screen.length-1; } -if(pos >= screen.length) { pos = screen.length-1; } 1;if(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } end.setLocation(x,y);if(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } returnif(pos >= screen.length) { pos = screen.length-1; } end;if(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } if(pos >= screen.length) { pos = screen.length-1; } }
5,017
public void setString(String text) {// int y = length;// cursorPos = startPos;// int len = text.length();// char[] c = text.toCharArray();// char tc = ' ';// for (int x = 0; x < y; x++) {// tc = ' ';// if (x < len) {// tc = c[x];// }// data[x] = tc; s.setScreenData(text,startPos);// changePos(1);// } }
public void setString(String text) {// int y = length;// cursorPos = startPos;// int len = text.length();// char[] c = text.toCharArray();// char tc = ' ';// for (int x = 0; x < y; x++) {// tc = ' ';// if (x < len) {// tc = c[x];// }// data[x] = tc; s.setScreenData(text,startPos);// changePos(1);// } }
5,018
public static RequestProcessingPolicyValue from_int(int code) { try { return enume [ code ]; } catch (ArrayIndexOutOfBoundsException ex) { throw new BAD_OPERATION("Invalid enumeration code " + code); } }
public static RequestProcessingPolicyValue from_int(int code) { try { return enume [ code ]; } catch (ArrayIndexOutOfBoundsException ex) { BAD_OPERATION bad = new BAD_OPERATION("Invalid policy code " + code); bad.minor = Minor.PolicyType; throw bad; } }
5,020
public Object clone() throws CloneNotSupportedException { if (this instanceof Cloneable) return super.clone(); else throw new CloneNotSupportedException(); }
public Object clone() throws CloneNotSupportedException { return super.clone(); else throw new CloneNotSupportedException(); }
5,021
public Object clone() throws CloneNotSupportedException { if (this instanceof Cloneable) return super.clone(); else throw new CloneNotSupportedException(); }
public Object clone() throws CloneNotSupportedException { if (this instanceof Cloneable) return super.clone(); else throw new CloneNotSupportedException(); }
5,022
public Object clone() throws CloneNotSupportedException { if (this instanceof Cloneable) return super.clone(); else throw new CloneNotSupportedException(); }
public Object clone() throws CloneNotSupportedException { return super.clone(); else throw new CloneNotSupportedException(); }
5,023
public Object clone() throws CloneNotSupportedException { if (this instanceof Cloneable) return super.clone(); else throw new CloneNotSupportedException(); }
public Object clone() throws CloneNotSupportedException { if (this instanceof Cloneable) return super.clone(); else throw new CloneNotSupportedException(); }
5,024
public final void saveScreen() throws IOException { ByteArrayOutputStream sc = new ByteArrayOutputStream(); sc.write(4); sc.write(0x12); // 18 sc.write(0); // 18 sc.write(0); // 18 sc.write((byte) screen52.getRows()); // store the current size sc.write((byte) screen52.getColumns()); // "" //int cp = screen52.getCurrentPos(); // save off current position // fix below submitted by Mitch Blevins int cp = screen52.getScreenFields().getCurrentFieldPos(); // save off current position sc.write((byte) (cp >> 8 & 0xff)); // "" sc.write((byte) (cp & 0xff)); // "" sc.write((byte) (screen52.homePos >> 8 & 0xff)); // save home pos sc.write((byte) (screen52.homePos & 0xff)); // "" int rows = screen52.getRows(); // store the current size int cols = screen52.getColumns(); // ""// byte[] sa = new byte[rows * cols]; fillRegenerationBuffer(sc,rows,cols);// fillScreenArray(sa, rows, cols);//// sc.write(sa);// sa = null; int sizeFields = screen52.getScreenFields().getSize(); sc.write((byte) (sizeFields >> 8 & 0xff)); // "" sc.write((byte) (sizeFields & 0xff)); // "" if (sizeFields > 0) { int x = 0; int s = screen52.getScreenFields().getSize(); ScreenField sf = null; while (x < s) { sf = screen52.getScreenFields().getField(x); sc.write((byte) sf.getAttr()); // attribute int sp = sf.startPos(); sc.write((byte) (sp >> 8 & 0xff)); // "" sc.write((byte) (sp & 0xff)); // "" if (sf.mdt) sc.write((byte) 1); else sc.write((byte) 0); sc.write((byte) (sf.getLength() >> 8 & 0xff)); // "" sc.write((byte) (sf.getLength() & 0xff)); // "" sc.write((byte) sf.getFFW1() & 0xff); sc.write((byte) sf.getFFW2() & 0xff); sc.write((byte) sf.getFCW1() & 0xff); sc.write((byte) sf.getFCW2() & 0xff); log.debug("Saved "); log.debug(sf.toString()); x++; } sf = null; } // The following two lines of code looks to have caused all sorts of // problems so for now we have commented them out. // screen52.getScreenFields().setCurrentField(null); // set it to null // for GC ? // screen52.clearTable(); try { writeGDS(0, 3, sc.toByteArray()); } catch (IOException ioe) { log.warn(ioe.getMessage()); } sc = null; log.debug("Save Screen end "); }
publicint cp = screen52.getCurrentPos(); finalint cp = screen52.getCurrentPos(); voidint cp = screen52.getCurrentPos(); saveScreen()int cp = screen52.getCurrentPos(); throwsint cp = screen52.getCurrentPos(); IOExceptionint cp = screen52.getCurrentPos(); { ByteArrayOutputStreamint cp = screen52.getCurrentPos(); scint cp = screen52.getCurrentPos(); =int cp = screen52.getCurrentPos(); newint cp = screen52.getCurrentPos(); ByteArrayOutputStream(); sc.write(4); sc.write(0x12);int cp = screen52.getCurrentPos(); //int cp = screen52.getCurrentPos(); 18 sc.write(0);int cp = screen52.getCurrentPos(); //int cp = screen52.getCurrentPos(); 18 sc.write(0);int cp = screen52.getCurrentPos(); //int cp = screen52.getCurrentPos(); 18 sc.write((byte)int cp = screen52.getCurrentPos(); screen52.getRows());int cp = screen52.getCurrentPos(); //int cp = screen52.getCurrentPos(); storeint cp = screen52.getCurrentPos(); theint cp = screen52.getCurrentPos(); currentint cp = screen52.getCurrentPos(); size sc.write((byte)int cp = screen52.getCurrentPos(); screen52.getColumns());int cp = screen52.getCurrentPos(); //int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); "" //intint cp = screen52.getCurrentPos(); cpint cp = screen52.getCurrentPos(); =int cp = screen52.getCurrentPos(); screen52.getCurrentPos();int cp = screen52.getCurrentPos(); //int cp = screen52.getCurrentPos(); saveint cp = screen52.getCurrentPos(); offint cp = screen52.getCurrentPos(); currentint cp = screen52.getCurrentPos(); positionint cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); //int cp = screen52.getCurrentPos(); fixint cp = screen52.getCurrentPos(); belowint cp = screen52.getCurrentPos(); submittedint cp = screen52.getCurrentPos(); byint cp = screen52.getCurrentPos(); Mitchint cp = screen52.getCurrentPos(); Blevinsint cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); intint cp = screen52.getCurrentPos(); cpint cp = screen52.getCurrentPos(); =int cp = screen52.getCurrentPos(); screen52.getScreenFields().getCurrentFieldPos();int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); //int cp = screen52.getCurrentPos(); saveint cp = screen52.getCurrentPos(); offint cp = screen52.getCurrentPos(); currentint cp = screen52.getCurrentPos(); position sc.write((byte)int cp = screen52.getCurrentPos(); (cpint cp = screen52.getCurrentPos(); >>int cp = screen52.getCurrentPos(); 8int cp = screen52.getCurrentPos(); &int cp = screen52.getCurrentPos(); 0xff));int cp = screen52.getCurrentPos(); //int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); "" sc.write((byte)int cp = screen52.getCurrentPos(); (cpint cp = screen52.getCurrentPos(); &int cp = screen52.getCurrentPos(); 0xff));int cp = screen52.getCurrentPos(); //int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); "" sc.write((byte)int cp = screen52.getCurrentPos(); (screen52.homePosint cp = screen52.getCurrentPos(); >>int cp = screen52.getCurrentPos(); 8int cp = screen52.getCurrentPos(); &int cp = screen52.getCurrentPos(); 0xff));int cp = screen52.getCurrentPos(); //int cp = screen52.getCurrentPos(); saveint cp = screen52.getCurrentPos(); homeint cp = screen52.getCurrentPos(); pos sc.write((byte)int cp = screen52.getCurrentPos(); (screen52.homePosint cp = screen52.getCurrentPos(); &int cp = screen52.getCurrentPos(); 0xff));int cp = screen52.getCurrentPos(); //int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); "" intint cp = screen52.getCurrentPos(); rowsint cp = screen52.getCurrentPos(); =int cp = screen52.getCurrentPos(); screen52.getRows();int cp = screen52.getCurrentPos(); //int cp = screen52.getCurrentPos(); storeint cp = screen52.getCurrentPos(); theint cp = screen52.getCurrentPos(); currentint cp = screen52.getCurrentPos(); size intint cp = screen52.getCurrentPos(); colsint cp = screen52.getCurrentPos(); =int cp = screen52.getCurrentPos(); screen52.getColumns();int cp = screen52.getCurrentPos(); //int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); ""// byte[]int cp = screen52.getCurrentPos(); saint cp = screen52.getCurrentPos(); =int cp = screen52.getCurrentPos(); newint cp = screen52.getCurrentPos(); byte[rowsint cp = screen52.getCurrentPos(); *int cp = screen52.getCurrentPos(); cols]; fillRegenerationBuffer(sc,rows,cols);// fillScreenArray(sa,int cp = screen52.getCurrentPos(); rows,int cp = screen52.getCurrentPos(); cols);//// sc.write(sa);// saint cp = screen52.getCurrentPos(); =int cp = screen52.getCurrentPos(); null; intint cp = screen52.getCurrentPos(); sizeFieldsint cp = screen52.getCurrentPos(); =int cp = screen52.getCurrentPos(); screen52.getScreenFields().getSize(); sc.write((byte)int cp = screen52.getCurrentPos(); (sizeFieldsint cp = screen52.getCurrentPos(); >>int cp = screen52.getCurrentPos(); 8int cp = screen52.getCurrentPos(); &int cp = screen52.getCurrentPos(); 0xff));int cp = screen52.getCurrentPos(); //int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); "" sc.write((byte)int cp = screen52.getCurrentPos(); (sizeFieldsint cp = screen52.getCurrentPos(); &int cp = screen52.getCurrentPos(); 0xff));int cp = screen52.getCurrentPos(); //int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); "" ifint cp = screen52.getCurrentPos(); (sizeFieldsint cp = screen52.getCurrentPos(); >int cp = screen52.getCurrentPos(); 0)int cp = screen52.getCurrentPos(); { intint cp = screen52.getCurrentPos(); xint cp = screen52.getCurrentPos(); =int cp = screen52.getCurrentPos(); 0; intint cp = screen52.getCurrentPos(); sint cp = screen52.getCurrentPos(); =int cp = screen52.getCurrentPos(); screen52.getScreenFields().getSize(); ScreenFieldint cp = screen52.getCurrentPos(); sfint cp = screen52.getCurrentPos(); =int cp = screen52.getCurrentPos(); null; whileint cp = screen52.getCurrentPos(); (xint cp = screen52.getCurrentPos(); <int cp = screen52.getCurrentPos(); s)int cp = screen52.getCurrentPos(); { sfint cp = screen52.getCurrentPos(); =int cp = screen52.getCurrentPos(); screen52.getScreenFields().getField(x); sc.write((byte)int cp = screen52.getCurrentPos(); sf.getAttr());int cp = screen52.getCurrentPos(); //int cp = screen52.getCurrentPos(); attribute intint cp = screen52.getCurrentPos(); spint cp = screen52.getCurrentPos(); =int cp = screen52.getCurrentPos(); sf.startPos(); sc.write((byte)int cp = screen52.getCurrentPos(); (spint cp = screen52.getCurrentPos(); >>int cp = screen52.getCurrentPos(); 8int cp = screen52.getCurrentPos(); &int cp = screen52.getCurrentPos(); 0xff));int cp = screen52.getCurrentPos(); //int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); "" sc.write((byte)int cp = screen52.getCurrentPos(); (spint cp = screen52.getCurrentPos(); &int cp = screen52.getCurrentPos(); 0xff));int cp = screen52.getCurrentPos(); //int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); "" ifint cp = screen52.getCurrentPos(); (sf.mdt) sc.write((byte)int cp = screen52.getCurrentPos(); 1); else sc.write((byte)int cp = screen52.getCurrentPos(); 0); sc.write((byte)int cp = screen52.getCurrentPos(); (sf.getLength()int cp = screen52.getCurrentPos(); >>int cp = screen52.getCurrentPos(); 8int cp = screen52.getCurrentPos(); &int cp = screen52.getCurrentPos(); 0xff));int cp = screen52.getCurrentPos(); //int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); "" sc.write((byte)int cp = screen52.getCurrentPos(); (sf.getLength()int cp = screen52.getCurrentPos(); &int cp = screen52.getCurrentPos(); 0xff));int cp = screen52.getCurrentPos(); //int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); "" sc.write((byte)int cp = screen52.getCurrentPos(); sf.getFFW1()int cp = screen52.getCurrentPos(); &int cp = screen52.getCurrentPos(); 0xff); sc.write((byte)int cp = screen52.getCurrentPos(); sf.getFFW2()int cp = screen52.getCurrentPos(); &int cp = screen52.getCurrentPos(); 0xff); sc.write((byte)int cp = screen52.getCurrentPos(); sf.getFCW1()int cp = screen52.getCurrentPos(); &int cp = screen52.getCurrentPos(); 0xff); sc.write((byte)int cp = screen52.getCurrentPos(); sf.getFCW2()int cp = screen52.getCurrentPos(); &int cp = screen52.getCurrentPos(); 0xff); log.debug("Savedint cp = screen52.getCurrentPos(); "); log.debug(sf.toString()); x++; } sfint cp = screen52.getCurrentPos(); =int cp = screen52.getCurrentPos(); null; } //int cp = screen52.getCurrentPos(); Theint cp = screen52.getCurrentPos(); followingint cp = screen52.getCurrentPos(); twoint cp = screen52.getCurrentPos(); linesint cp = screen52.getCurrentPos(); ofint cp = screen52.getCurrentPos(); codeint cp = screen52.getCurrentPos(); looksint cp = screen52.getCurrentPos(); toint cp = screen52.getCurrentPos(); haveint cp = screen52.getCurrentPos(); causedint cp = screen52.getCurrentPos(); allint cp = screen52.getCurrentPos(); sortsint cp = screen52.getCurrentPos(); of //int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); problemsint cp = screen52.getCurrentPos(); soint cp = screen52.getCurrentPos(); forint cp = screen52.getCurrentPos(); nowint cp = screen52.getCurrentPos(); weint cp = screen52.getCurrentPos(); haveint cp = screen52.getCurrentPos(); commentedint cp = screen52.getCurrentPos(); themint cp = screen52.getCurrentPos(); out. //int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); screen52.getScreenFields().setCurrentField(null);int cp = screen52.getCurrentPos(); //int cp = screen52.getCurrentPos(); setint cp = screen52.getCurrentPos(); itint cp = screen52.getCurrentPos(); toint cp = screen52.getCurrentPos(); null //int cp = screen52.getCurrentPos(); forint cp = screen52.getCurrentPos(); GCint cp = screen52.getCurrentPos(); ? //int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); int cp = screen52.getCurrentPos(); screen52.clearTable(); tryint cp = screen52.getCurrentPos(); { writeGDS(0,int cp = screen52.getCurrentPos(); 3,int cp = screen52.getCurrentPos(); sc.toByteArray()); }int cp = screen52.getCurrentPos(); catchint cp = screen52.getCurrentPos(); (IOExceptionint cp = screen52.getCurrentPos(); ioe)int cp = screen52.getCurrentPos(); { log.warn(ioe.getMessage()); } scint cp = screen52.getCurrentPos(); =int cp = screen52.getCurrentPos(); null; log.debug("Saveint cp = screen52.getCurrentPos(); Screenint cp = screen52.getCurrentPos(); endint cp = screen52.getCurrentPos(); "); }
5,026
public final void saveScreen() throws IOException { ByteArrayOutputStream sc = new ByteArrayOutputStream(); sc.write(4); sc.write(0x12); // 18 sc.write(0); // 18 sc.write(0); // 18 sc.write((byte) screen52.getRows()); // store the current size sc.write((byte) screen52.getColumns()); // "" //int cp = screen52.getCurrentPos(); // save off current position // fix below submitted by Mitch Blevins int cp = screen52.getScreenFields().getCurrentFieldPos(); // save off current position sc.write((byte) (cp >> 8 & 0xff)); // "" sc.write((byte) (cp & 0xff)); // "" sc.write((byte) (screen52.homePos >> 8 & 0xff)); // save home pos sc.write((byte) (screen52.homePos & 0xff)); // "" int rows = screen52.getRows(); // store the current size int cols = screen52.getColumns(); // ""// byte[] sa = new byte[rows * cols]; fillRegenerationBuffer(sc,rows,cols);// fillScreenArray(sa, rows, cols);//// sc.write(sa);// sa = null; int sizeFields = screen52.getScreenFields().getSize(); sc.write((byte) (sizeFields >> 8 & 0xff)); // "" sc.write((byte) (sizeFields & 0xff)); // "" if (sizeFields > 0) { int x = 0; int s = screen52.getScreenFields().getSize(); ScreenField sf = null; while (x < s) { sf = screen52.getScreenFields().getField(x); sc.write((byte) sf.getAttr()); // attribute int sp = sf.startPos(); sc.write((byte) (sp >> 8 & 0xff)); // "" sc.write((byte) (sp & 0xff)); // "" if (sf.mdt) sc.write((byte) 1); else sc.write((byte) 0); sc.write((byte) (sf.getLength() >> 8 & 0xff)); // "" sc.write((byte) (sf.getLength() & 0xff)); // "" sc.write((byte) sf.getFFW1() & 0xff); sc.write((byte) sf.getFFW2() & 0xff); sc.write((byte) sf.getFCW1() & 0xff); sc.write((byte) sf.getFCW2() & 0xff); log.debug("Saved "); log.debug(sf.toString()); x++; } sf = null; } // The following two lines of code looks to have caused all sorts of // problems so for now we have commented them out. // screen52.getScreenFields().setCurrentField(null); // set it to null // for GC ? // screen52.clearTable(); try { writeGDS(0, 3, sc.toByteArray()); } catch (IOException ioe) { log.warn(ioe.getMessage()); } sc = null; log.debug("Save Screen end "); }
public final void saveScreen() throws IOException { ByteArrayOutputStream sc = new ByteArrayOutputStream(); sc.write(4); sc.write(0x12); // 18 sc.write(0); // 18 sc.write(0); // 18 sc.write((byte) screen52.getRows()); // store the current size sc.write((byte) screen52.getColumns()); // "" //int cp = screen52.getCurrentPos(); // save off current position // fix below submitted by Mitch Blevins // save off current position sc.write((byte) (cp >> 8 & 0xff)); // "" sc.write((byte) (cp & 0xff)); // "" sc.write((byte) (screen52.homePos >> 8 & 0xff)); // save home pos sc.write((byte) (screen52.homePos & 0xff)); // "" int rows = screen52.getRows(); // store the current size int cols = screen52.getColumns(); // ""// byte[] sa = new byte[rows * cols]; fillRegenerationBuffer(sc,rows,cols);// fillScreenArray(sa, rows, cols);//// sc.write(sa);// sa = null; int sizeFields = screen52.getScreenFields().getSize(); sc.write((byte) (sizeFields >> 8 & 0xff)); // "" sc.write((byte) (sizeFields & 0xff)); // "" if (sizeFields > 0) { int x = 0; int s = screen52.getScreenFields().getSize(); ScreenField sf = null; while (x < s) { sf = screen52.getScreenFields().getField(x); sc.write((byte) sf.getAttr()); // attribute int sp = sf.startPos(); sc.write((byte) (sp >> 8 & 0xff)); // "" sc.write((byte) (sp & 0xff)); // "" if (sf.mdt) sc.write((byte) 1); else sc.write((byte) 0); sc.write((byte) (sf.getLength() >> 8 & 0xff)); // "" sc.write((byte) (sf.getLength() & 0xff)); // "" sc.write((byte) sf.getFFW1() & 0xff); sc.write((byte) sf.getFFW2() & 0xff); sc.write((byte) sf.getFCW1() & 0xff); sc.write((byte) sf.getFCW2() & 0xff); log.debug("Saved "); log.debug(sf.toString()); x++; } sf = null; } // The following two lines of code looks to have caused all sorts of // problems so for now we have commented them out. // screen52.getScreenFields().setCurrentField(null); // set it to null // for GC ? // screen52.clearTable(); try { writeGDS(0, 3, sc.toByteArray()); } catch (IOException ioe) { log.warn(ioe.getMessage()); } sc = null; log.debug("Save Screen end "); }
5,027
public View getLogicalView(FlowView fv) { return fv.layoutPool; }
protected View getLogicalView(FlowView fv) { return fv.layoutPool; }
5,028
public View createFragment(int p0, int p1) { // The default implementation doesn't support fragmentation. return this; }
public View createFragment(int p0, int p1) { // The default implementation doesn't support fragmentation. return this; }
5,030
public void removeAll() { replace(0, getViewCount(), new View[0]); }
public void removeAll() { replace(0, getViewCount(), new View[0]); }
5,031
public AccessibleContext getAccessibleContext() { /* Create the context if this is the first request */ if (accessibleContext == null) { /* Create the context */ accessibleContext = new AccessibleAWTCanvas(); } return accessibleContext; }
public AccessibleContext getAccessibleContext() { /* Create the context if this is the first request */ if (accessibleContext == null) { /* Create the context */ accessibleContext = new AccessibleAWTCanvas(); } return accessibleContext; }
5,032
public AccessibleContext getAccessibleContext() { /* Create the context if this is the first request */ if (accessibleContext == null) { /* Create the context */ accessibleContext = new AccessibleAWTCanvas(); } return accessibleContext; }
public AccessibleContext getAccessibleContext() { /* Create the context if this is the first request */ if (accessibleContext == null) { /* Create the context */ accessibleContext = new AccessibleAWTCanvas(); return accessibleContext; }
5,033
public void addColumn(TableColumn col) { tableColumns.add(col); invalidateWidthCache(); fireColumnAdded(new TableColumnModelEvent(this,0,tableColumns.size())); }
public void addColumn(TableColumn col) { tableColumns.add(col); invalidateWidthCache(); fireColumnAdded(new TableColumnModelEvent(this, 0, tableColumns.size() - 1)); }
5,034
public int getColumnIndex(Object identifier) { return tableColumns.indexOf(identifier, 0); }
public int getColumnIndex(Object identifier) { if (identifier == null) throw new IllegalArgumentException("Null identifier."); int columnCount = tableColumns.size(); for (int i = 0; i < columnCount; i++) { TableColumn tc = (TableColumn) tableColumns.get(i); if (identifier.equals(tc.getIdentifier())) return i; } throw new IllegalArgumentException("No TableColumn with that identifier."); }
5,035
public void moveColumn(int i, int j) { Object tmp = tableColumns.get(i); tableColumns.set(i, tableColumns.get(j)); tableColumns.set(j, tmp); fireColumnAdded(new TableColumnModelEvent(this,i,j)); }
public void moveColumn(int i, int j) { Object tmp = tableColumns.get(i); tableColumns.set(i, tableColumns.get(j)); tableColumns.set(j, tmp); fireColumnAdded(new TableColumnModelEvent(this,i,j)); }
5,036
public void removeColumn(TableColumn col) { int index = getColumnIndex(col); fireColumnRemoved(new TableColumnModelEvent(this,index,0)); tableColumns.remove(col); invalidateWidthCache(); }
public void removeColumn(TableColumn col) { int index = getColumnIndex(col); fireColumnRemoved(new TableColumnModelEvent(this,index,0)); tableColumns.remove(col); invalidateWidthCache(); }
5,037
public TableColumnModelEvent(TableColumnModel source, int from, int to) { super(source); fromIndex = from; toIndex = to; } // TableColumnModelEvent()
public TableColumnModelEvent(TableColumnModel source, int from, int to) { super(source); fromIndex = from; toIndex = to; } // TableColumnModelEvent()
5,038
public TableColumnModelEvent(TableColumnModel source, int from, int to) { super(source); fromIndex = from; toIndex = to; } // TableColumnModelEvent()
public TableColumnModelEvent(TableColumnModel source, int from, int to) { super(source); fromIndex = from; toIndex = to; } // TableColumnModelEvent()
5,039
public Object getIdentifier() { if (identifier == null) return getHeaderValue(); return identifier; }
public Object getIdentifier() { if (identifier == null) return getHeaderValue(); return identifier; }
5,040
MenuItem(String label){ this.label = label;}
MenuItem(String label){ this.label = label;}
5,041
MenuItem(String label){ this.label = label;}
MenuItem(String label){ this.label = label;}
5,042
public static void main(String[] args) throws Exception { ParsedArguments cmdLine = HELP_INFO.parse(args); File dir = ARG_DIR.getFile(cmdLine); if (dir == null) { dir = new File(System.getProperty("user.dir")); } if (dir.exists() && dir.isDirectory()) { final File[] list = dir.listFiles(); printList(list); } else if("/".equals(dir.getCanonicalPath())) { File[] roots = File.listRoots(); printList(roots); } else if (dir.exists() && dir.isFile()) { printList(new File[] { dir }); } else { System.err.println("No such directory " + dir); } }
public static void main(String[] args) throws Exception { ParsedArguments cmdLine = HELP_INFO.parse(args); File dir = ARG_DIR.getFile(cmdLine); if (dir == null) { dir = new File(System.getProperty("user.dir")); } if (dir.exists() && dir.isDirectory()) { final File[] list = dir.listFiles(); printList(list); } else if("/".equals(dir.getCanonicalPath())) { File[] roots = File.listRoots(); printList(roots); } else if (dir.exists() && dir.isFile()) { printList(new File[] { dir }); } else { System.err.println("No such directory " + dir); } }
5,043
private static void printList(File[] list) { if (list != null) { for (int i = 0; i < list.length; i++) { File f = list[i]; if (f.isDirectory()) { System.out.print("[" + f.getName() + "]"); } else { System.out.print(f.getName() + " " + f.length()); } System.out.println(); } System.out.println(); } }
private static void printList(File[] list) { if (list != null) { for (int i = 0; i < list.length; i++) { File f = list[i]; if (f.isDirectory()) { System.out.print("[" + f.getName() + "]"); } else { System.out.print(f.getName() + " " + f.length()); } System.out.println(); } System.out.println(); } }
5,044
private static void printList(File[] list) { if (list != null) { for (int i = 0; i < list.length; i++) { File f = list[i]; if (f.isDirectory()) { System.out.print("[" + f.getName() + "]"); } else { System.out.print(f.getName() + " " + f.length()); } System.out.println(); } System.out.println(); } }
private static void printList(File[] list) { if (list != null) { for (int i = 0; i < list.length; i++) { File f = list[i]; if (f.isDirectory()) { System.out.print("[" + f.getName() + "]"); } else { System.out.print(f.getName() + " " + f.length()); } System.out.println(); } System.out.println(); } }
5,045
private static void printList(File[] list) { if (list != null) { for (int i = 0; i < list.length; i++) { File f = list[i]; if (f.isDirectory()) { System.out.print("[" + f.getName() + "]"); } else { System.out.print(f.getName() + " " + f.length()); } System.out.println(); } System.out.println(); } }
private static void printList(File[] list) { if (list != null) { for (int i = 0; i < list.length; i++) { File f = list[i]; if (f.isDirectory()) { System.out.print("[" + f.getName() + "]"); } else { System.out.print(f.getName() + " " + f.length()); } System.out.println(); } System.out.println(); } }
5,046
private static void printList(File[] list) { if (list != null) { for (int i = 0; i < list.length; i++) { File f = list[i]; if (f.isDirectory()) { System.out.print("[" + f.getName() + "]"); } else { System.out.print(f.getName() + " " + f.length()); } System.out.println(); } System.out.println(); } }
private static void printList(File[] list) { if (list != null) { for (int i = 0; i < list.length; i++) { File f = list[i]; if (f.isDirectory()) { System.out.print("[" + f.getName() + "]"); } else { System.out.print(f.getName() + " " + f.length()); } System.out.println(); } System.out.println(); } }
5,047
private static void printList(File[] list) { if (list != null) { for (int i = 0; i < list.length; i++) { File f = list[i]; if (f.isDirectory()) { System.out.print("[" + f.getName() + "]"); } else { System.out.print(f.getName() + " " + f.length()); } System.out.println(); } System.out.println(); } }
private static void printList(File[] list) { if (list != null) { for (int i = 0; i < list.length; i++) { File f = list[i]; if (f.isDirectory()) { System.out.print("[" + f.getName() + "]"); } else { System.out.print(f.getName() + " " + f.length()); } System.out.println(); } System.out.println(); } }
5,048
public SentenceBreakIterator() { iter = null; }
public SentenceBreakIterator() { iter = null; }
5,049
public Object clone() { return new SentenceBreakIterator(this); }
public Object clone() { return new SentenceBreakIterator(this); }
5,050
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; while (iter.getIndex() < end) { char c = iter.current(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); char n = iter.next(); if (n == CharacterIterator.DONE) break; // Always break after paragraph separator. if (type == Character.PARAGRAPH_SEPARATOR) break; if (c == '!' || c == '?') { // Skip close punctuation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.END_PUNCTUATION) n = iter.next(); // Skip (java) space, line and paragraph separators. while (n != CharacterIterator.DONE && Character.isWhitespace(n)) n = iter.next(); // There's always a break somewhere after `!' or `?'. break; } if (c == '.') { int save = iter.getIndex(); // Skip close punctuation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.END_PUNCTUATION) n = iter.next(); // Skip (java) space, line and paragraph separators. // We keep count because we need at least one for this period to // represent a terminator. int spcount = 0; while (n != CharacterIterator.DONE && Character.isWhitespace(n)) { n = iter.next(); ++spcount; } if (spcount > 0) { int save2 = iter.getIndex(); // Skip over open puncutation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.START_PUNCTUATION) n = iter.next(); // Next character must not be lower case. if (n == CharacterIterator.DONE || !Character.isLowerCase(n)) { iter.setIndex(save2); break; } } iter.setIndex(save); } } return iter.getIndex(); }
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; while (iter.getIndex() < end) { char c = iter.current(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); char n = iter.next(); if (n == CharacterIterator.DONE) break; // Always break after paragraph separator. if (type == Character.PARAGRAPH_SEPARATOR) break; if (c == '!' || c == '?') { // Skip close punctuation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.END_PUNCTUATION) n = iter.next(); // Skip (java) space, line and paragraph separators. while (n != CharacterIterator.DONE && Character.isWhitespace(n)) n = iter.next(); // There's always a break somewhere after `!' or `?'. break; } if (c == '.') { int save = iter.getIndex(); // Skip close punctuation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.END_PUNCTUATION) n = iter.next(); // Skip (java) space, line and paragraph separators. // We keep count because we need at least one for this period to // represent a terminator. int spcount = 0; while (n != CharacterIterator.DONE && Character.isWhitespace(n)) { n = iter.next(); ++spcount; } if (spcount > 0) { int save2 = iter.getIndex(); // Skip over open puncutation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.START_PUNCTUATION) n = iter.next(); // Next character must not be lower case. if (n == CharacterIterator.DONE || !Character.isLowerCase(n)) { iter.setIndex(save2); break; } } iter.setIndex(save); } } return iter.getIndex(); }
5,051
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; while (iter.getIndex() < end) { char c = iter.current(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); char n = iter.next(); if (n == CharacterIterator.DONE) break; // Always break after paragraph separator. if (type == Character.PARAGRAPH_SEPARATOR) break; if (c == '!' || c == '?') { // Skip close punctuation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.END_PUNCTUATION) n = iter.next(); // Skip (java) space, line and paragraph separators. while (n != CharacterIterator.DONE && Character.isWhitespace(n)) n = iter.next(); // There's always a break somewhere after `!' or `?'. break; } if (c == '.') { int save = iter.getIndex(); // Skip close punctuation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.END_PUNCTUATION) n = iter.next(); // Skip (java) space, line and paragraph separators. // We keep count because we need at least one for this period to // represent a terminator. int spcount = 0; while (n != CharacterIterator.DONE && Character.isWhitespace(n)) { n = iter.next(); ++spcount; } if (spcount > 0) { int save2 = iter.getIndex(); // Skip over open puncutation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.START_PUNCTUATION) n = iter.next(); // Next character must not be lower case. if (n == CharacterIterator.DONE || !Character.isLowerCase(n)) { iter.setIndex(save2); break; } } iter.setIndex(save); } } return iter.getIndex(); }
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; while (iter.getIndex() < end) { char c = iter.current(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); char n = iter.next(); if (n == CharacterIterator.DONE) break; // Always break after paragraph separator. if (type == Character.PARAGRAPH_SEPARATOR) break; if (c == '!' || c == '?') { // Skip close punctuation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.END_PUNCTUATION) n = iter.next(); // Skip (java) space, line and paragraph separators. while (n != CharacterIterator.DONE && Character.isWhitespace(n)) n = iter.next(); // There's always a break somewhere after `!' or `?'. break; } if (c == '.') { int save = iter.getIndex(); // Skip close punctuation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.END_PUNCTUATION) n = iter.next(); // Skip (java) space, line and paragraph separators. // We keep count because we need at least one for this period to // represent a terminator. int spcount = 0; while (n != CharacterIterator.DONE && Character.isWhitespace(n)) { n = iter.next(); ++spcount; } if (spcount > 0) { int save2 = iter.getIndex(); // Skip over open puncutation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.START_PUNCTUATION) n = iter.next(); // Next character must not be lower case. if (n == CharacterIterator.DONE || !Character.isLowerCase(n)) { iter.setIndex(save2); break; } } iter.setIndex(save); } } return iter.getIndex(); }
5,052
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; while (iter.getIndex() < end) { char c = iter.current(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); char n = iter.next(); if (n == CharacterIterator.DONE) break; // Always break after paragraph separator. if (type == Character.PARAGRAPH_SEPARATOR) break; if (c == '!' || c == '?') { // Skip close punctuation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.END_PUNCTUATION) n = iter.next(); // Skip (java) space, line and paragraph separators. while (n != CharacterIterator.DONE && Character.isWhitespace(n)) n = iter.next(); // There's always a break somewhere after `!' or `?'. break; } if (c == '.') { int save = iter.getIndex(); // Skip close punctuation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.END_PUNCTUATION) n = iter.next(); // Skip (java) space, line and paragraph separators. // We keep count because we need at least one for this period to // represent a terminator. int spcount = 0; while (n != CharacterIterator.DONE && Character.isWhitespace(n)) { n = iter.next(); ++spcount; } if (spcount > 0) { int save2 = iter.getIndex(); // Skip over open puncutation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.START_PUNCTUATION) n = iter.next(); // Next character must not be lower case. if (n == CharacterIterator.DONE || !Character.isLowerCase(n)) { iter.setIndex(save2); break; } } iter.setIndex(save); } } return iter.getIndex(); }
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; while (iter.getIndex() < end) { char c = iter.current(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); char n = iter.next(); if (n == CharacterIterator.DONE) break; // Always break after paragraph separator. if (type == Character.PARAGRAPH_SEPARATOR) break; if (c == '!' || c == '?') { // Skip close punctuation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.END_PUNCTUATION) n = iter.next(); // Skip (java) space, line and paragraph separators. while (n != CharacterIterator.DONE && Character.isWhitespace(n)) n = iter.next(); // There's always a break somewhere after `!' or `?'. break; } if (c == '.') { int save = iter.getIndex(); // Skip close punctuation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.END_PUNCTUATION) n = iter.next(); // Skip (java) space, line and paragraph separators. // We keep count because we need at least one for this period to // represent a terminator. int spcount = 0; while (n != CharacterIterator.DONE && Character.isWhitespace(n)) { n = iter.next(); ++spcount; } if (spcount > 0) { int save2 = iter.getIndex(); // Skip over open puncutation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.START_PUNCTUATION) n = iter.next(); // Next character must not be lower case. if (n == CharacterIterator.DONE || !Character.isLowerCase(n)) { iter.setIndex(save2); break; } } iter.setIndex(save); } } return iter.getIndex(); }
5,053
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; while (iter.getIndex() < end) { char c = iter.current(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); char n = iter.next(); if (n == CharacterIterator.DONE) break; // Always break after paragraph separator. if (type == Character.PARAGRAPH_SEPARATOR) break; if (c == '!' || c == '?') { // Skip close punctuation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.END_PUNCTUATION) n = iter.next(); // Skip (java) space, line and paragraph separators. while (n != CharacterIterator.DONE && Character.isWhitespace(n)) n = iter.next(); // There's always a break somewhere after `!' or `?'. break; } if (c == '.') { int save = iter.getIndex(); // Skip close punctuation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.END_PUNCTUATION) n = iter.next(); // Skip (java) space, line and paragraph separators. // We keep count because we need at least one for this period to // represent a terminator. int spcount = 0; while (n != CharacterIterator.DONE && Character.isWhitespace(n)) { n = iter.next(); ++spcount; } if (spcount > 0) { int save2 = iter.getIndex(); // Skip over open puncutation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.START_PUNCTUATION) n = iter.next(); // Next character must not be lower case. if (n == CharacterIterator.DONE || !Character.isLowerCase(n)) { iter.setIndex(save2); break; } } iter.setIndex(save); } } return iter.getIndex(); }
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; while (iter.getIndex() < end) { char c = iter.current(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); char n = iter.next(); if (n == CharacterIterator.DONE) break; // Always break after paragraph separator. if (type == Character.PARAGRAPH_SEPARATOR) break; if (c == '!' || c == '?') { // Skip close punctuation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.END_PUNCTUATION) n = iter.next(); // Skip (java) space, line and paragraph separators. while (n != CharacterIterator.DONE && Character.isWhitespace(n)) n = iter.next(); // There's always a break somewhere after `!' or `?'. break; } if (c == '.') { int save = iter.getIndex(); // Skip close punctuation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.END_PUNCTUATION) n = iter.next(); // Skip (java) space, line and paragraph separators. // We keep count because we need at least one for this period to // represent a terminator. int spcount = 0; while (n != CharacterIterator.DONE && Character.isWhitespace(n)) { n = iter.next(); ++spcount; } if (spcount > 0) { int save2 = iter.getIndex(); // Skip over open puncutation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.START_PUNCTUATION) n = iter.next(); // Next character must not be lower case. if (n == CharacterIterator.DONE || !Character.isLowerCase(n)) { iter.setIndex(save2); break; } } iter.setIndex(save); } } return iter.getIndex(); }
5,054
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; while (iter.getIndex() < end) { char c = iter.current(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); char n = iter.next(); if (n == CharacterIterator.DONE) break; // Always break after paragraph separator. if (type == Character.PARAGRAPH_SEPARATOR) break; if (c == '!' || c == '?') { // Skip close punctuation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.END_PUNCTUATION) n = iter.next(); // Skip (java) space, line and paragraph separators. while (n != CharacterIterator.DONE && Character.isWhitespace(n)) n = iter.next(); // There's always a break somewhere after `!' or `?'. break; } if (c == '.') { int save = iter.getIndex(); // Skip close punctuation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.END_PUNCTUATION) n = iter.next(); // Skip (java) space, line and paragraph separators. // We keep count because we need at least one for this period to // represent a terminator. int spcount = 0; while (n != CharacterIterator.DONE && Character.isWhitespace(n)) { n = iter.next(); ++spcount; } if (spcount > 0) { int save2 = iter.getIndex(); // Skip over open puncutation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.START_PUNCTUATION) n = iter.next(); // Next character must not be lower case. if (n == CharacterIterator.DONE || !Character.isLowerCase(n)) { iter.setIndex(save2); break; } } iter.setIndex(save); } } return iter.getIndex(); }
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; while (iter.getIndex() < end) { char c = iter.current(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); char n = iter.next(); if (n == CharacterIterator.DONE) break; // Always break after paragraph separator. if (type == Character.PARAGRAPH_SEPARATOR) break; if (c == '!' || c == '?') { // Skip close punctuation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.END_PUNCTUATION) n = iter.next(); // Skip (java) space, line and paragraph separators. while (n != CharacterIterator.DONE && Character.isWhitespace(n)) n = iter.next(); // There's always a break somewhere after `!' or `?'. break; } if (c == '.') { int save = iter.getIndex(); // Skip close punctuation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.END_PUNCTUATION) n = iter.next(); // Skip (java) space, line and paragraph separators. // We keep count because we need at least one for this period to // represent a terminator. int spcount = 0; while (n != CharacterIterator.DONE && Character.isWhitespace(n)) { n = iter.next(); ++spcount; } if (spcount > 0) { int save2 = iter.getIndex(); // Skip over open puncutation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.START_PUNCTUATION) n = iter.next(); // Next character must not be lower case. if (n == CharacterIterator.DONE || !Character.isLowerCase(n)) { iter.setIndex(save2); break; } } iter.setIndex(save); } } return iter.getIndex(); }
5,055
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; while (iter.getIndex() < end) { char c = iter.current(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); char n = iter.next(); if (n == CharacterIterator.DONE) break; // Always break after paragraph separator. if (type == Character.PARAGRAPH_SEPARATOR) break; if (c == '!' || c == '?') { // Skip close punctuation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.END_PUNCTUATION) n = iter.next(); // Skip (java) space, line and paragraph separators. while (n != CharacterIterator.DONE && Character.isWhitespace(n)) n = iter.next(); // There's always a break somewhere after `!' or `?'. break; } if (c == '.') { int save = iter.getIndex(); // Skip close punctuation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.END_PUNCTUATION) n = iter.next(); // Skip (java) space, line and paragraph separators. // We keep count because we need at least one for this period to // represent a terminator. int spcount = 0; while (n != CharacterIterator.DONE && Character.isWhitespace(n)) { n = iter.next(); ++spcount; } if (spcount > 0) { int save2 = iter.getIndex(); // Skip over open puncutation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.START_PUNCTUATION) n = iter.next(); // Next character must not be lower case. if (n == CharacterIterator.DONE || !Character.isLowerCase(n)) { iter.setIndex(save2); break; } } iter.setIndex(save); } } return iter.getIndex(); }
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; while (iter.getIndex() < end) { char c = iter.current(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); char n = iter.next(); if (n == CharacterIterator.DONE) break; // Always break after paragraph separator. if (type == Character.PARAGRAPH_SEPARATOR) break; if (c == '!' || c == '?') { // Skip close punctuation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.END_PUNCTUATION) n = iter.next(); // Skip (java) space, line and paragraph separators. while (n != CharacterIterator.DONE && Character.isWhitespace(n)) n = iter.next(); // There's always a break somewhere after `!' or `?'. break; } if (c == '.') { int save = iter.getIndex(); // Skip close punctuation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.END_PUNCTUATION) n = iter.next(); // Skip (java) space, line and paragraph separators. // We keep count because we need at least one for this period to // represent a terminator. int spcount = 0; while (n != CharacterIterator.DONE && Character.isWhitespace(n)) { n = iter.next(); ++spcount; } if (spcount > 0) { int save2 = iter.getIndex(); // Skip over open puncutation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.START_PUNCTUATION) n = iter.next(); // Next character must not be lower case. if (n == CharacterIterator.DONE || !Character.isLowerCase(n)) { iter.setIndex(save2); break; } } iter.setIndex(save); } } return iter.getIndex(); }
5,056
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; while (iter.getIndex() < end) { char c = iter.current(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); char n = iter.next(); if (n == CharacterIterator.DONE) break; // Always break after paragraph separator. if (type == Character.PARAGRAPH_SEPARATOR) break; if (c == '!' || c == '?') { // Skip close punctuation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.END_PUNCTUATION) n = iter.next(); // Skip (java) space, line and paragraph separators. while (n != CharacterIterator.DONE && Character.isWhitespace(n)) n = iter.next(); // There's always a break somewhere after `!' or `?'. break; } if (c == '.') { int save = iter.getIndex(); // Skip close punctuation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.END_PUNCTUATION) n = iter.next(); // Skip (java) space, line and paragraph separators. // We keep count because we need at least one for this period to // represent a terminator. int spcount = 0; while (n != CharacterIterator.DONE && Character.isWhitespace(n)) { n = iter.next(); ++spcount; } if (spcount > 0) { int save2 = iter.getIndex(); // Skip over open puncutation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.START_PUNCTUATION) n = iter.next(); // Next character must not be lower case. if (n == CharacterIterator.DONE || !Character.isLowerCase(n)) { iter.setIndex(save2); break; } } iter.setIndex(save); } } return iter.getIndex(); }
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; while (iter.getIndex() < end) { char c = iter.current(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); char n = iter.next(); if (n == CharacterIterator.DONE) break; // Always break after paragraph separator. if (type == Character.PARAGRAPH_SEPARATOR) break; if (c == '!' || c == '?') { // Skip close punctuation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.END_PUNCTUATION) n = iter.next(); // Skip (java) space, line and paragraph separators. while (n != CharacterIterator.DONE && Character.isWhitespace(n)) n = iter.next(); // There's always a break somewhere after `!' or `?'. break; } if (c == '.') { int save = iter.getIndex(); // Skip close punctuation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.END_PUNCTUATION) n = iter.next(); // Skip (java) space, line and paragraph separators. // We keep count because we need at least one for this period to // represent a terminator. int spcount = 0; while (n != CharacterIterator.DONE && Character.isWhitespace(n)) { n = iter.next(); ++spcount; } if (spcount > 0) { int save2 = iter.getIndex(); // Skip over open puncutation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.START_PUNCTUATION) n = iter.next(); // Next character must not be lower case. if (n == CharacterIterator.DONE || !Character.isLowerCase(n)) { iter.setIndex(save2); break; } } iter.setIndex(save); } } return iter.getIndex(); }
5,057
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; while (iter.getIndex() < end) { char c = iter.current(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); char n = iter.next(); if (n == CharacterIterator.DONE) break; // Always break after paragraph separator. if (type == Character.PARAGRAPH_SEPARATOR) break; if (c == '!' || c == '?') { // Skip close punctuation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.END_PUNCTUATION) n = iter.next(); // Skip (java) space, line and paragraph separators. while (n != CharacterIterator.DONE && Character.isWhitespace(n)) n = iter.next(); // There's always a break somewhere after `!' or `?'. break; } if (c == '.') { int save = iter.getIndex(); // Skip close punctuation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.END_PUNCTUATION) n = iter.next(); // Skip (java) space, line and paragraph separators. // We keep count because we need at least one for this period to // represent a terminator. int spcount = 0; while (n != CharacterIterator.DONE && Character.isWhitespace(n)) { n = iter.next(); ++spcount; } if (spcount > 0) { int save2 = iter.getIndex(); // Skip over open puncutation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.START_PUNCTUATION) n = iter.next(); // Next character must not be lower case. if (n == CharacterIterator.DONE || !Character.isLowerCase(n)) { iter.setIndex(save2); break; } } iter.setIndex(save); } } return iter.getIndex(); }
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; while (iter.getIndex() < end) { char c = iter.current(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); char n = iter.next(); if (n == CharacterIterator.DONE) break; // Always break after paragraph separator. if (type == Character.PARAGRAPH_SEPARATOR) break; if (c == '!' || c == '?') { // Skip close punctuation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.END_PUNCTUATION) n = iter.next(); // Skip (java) space, line and paragraph separators. while (n != CharacterIterator.DONE && Character.isWhitespace(n)) n = iter.next(); // There's always a break somewhere after `!' or `?'. break; } if (c == '.') { int save = iter.getIndex(); // Skip close punctuation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.END_PUNCTUATION) n = iter.next(); // Skip (java) space, line and paragraph separators. // We keep count because we need at least one for this period to // represent a terminator. int spcount = 0; while (n != CharacterIterator.DONE && Character.isWhitespace(n)) { n = iter.next(); ++spcount; } if (spcount > 0) { int save2 = iter.getIndex(); // Skip over open puncutation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.START_PUNCTUATION) n = iter.next(); // Next character must not be lower case. if (n == CharacterIterator.DONE || !Character.isLowerCase(n)) { iter.setIndex(save2); break; } } iter.setIndex(save); } } return iter.getIndex(); }
5,058
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; while (iter.getIndex() < end) { char c = iter.current(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); char n = iter.next(); if (n == CharacterIterator.DONE) break; // Always break after paragraph separator. if (type == Character.PARAGRAPH_SEPARATOR) break; if (c == '!' || c == '?') { // Skip close punctuation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.END_PUNCTUATION) n = iter.next(); // Skip (java) space, line and paragraph separators. while (n != CharacterIterator.DONE && Character.isWhitespace(n)) n = iter.next(); // There's always a break somewhere after `!' or `?'. break; } if (c == '.') { int save = iter.getIndex(); // Skip close punctuation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.END_PUNCTUATION) n = iter.next(); // Skip (java) space, line and paragraph separators. // We keep count because we need at least one for this period to // represent a terminator. int spcount = 0; while (n != CharacterIterator.DONE && Character.isWhitespace(n)) { n = iter.next(); ++spcount; } if (spcount > 0) { int save2 = iter.getIndex(); // Skip over open puncutation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.START_PUNCTUATION) n = iter.next(); // Next character must not be lower case. if (n == CharacterIterator.DONE || !Character.isLowerCase(n)) { iter.setIndex(save2); break; } } iter.setIndex(save); } } return iter.getIndex(); }
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; while (iter.getIndex() < end) { char c = iter.current(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); char n = iter.next(); if (n == CharacterIterator.DONE) break; // Always break after paragraph separator. if (type == Character.PARAGRAPH_SEPARATOR) break; if (c == '!' || c == '?') { // Skip close punctuation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.END_PUNCTUATION) n = iter.next(); // Skip (java) space, line and paragraph separators. while (n != CharacterIterator.DONE && Character.isWhitespace(n)) n = iter.next(); // There's always a break somewhere after `!' or `?'. break; } if (c == '.') { int save = iter.getIndex(); // Skip close punctuation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.END_PUNCTUATION) n = iter.next(); // Skip (java) space, line and paragraph separators. // We keep count because we need at least one for this period to // represent a terminator. int spcount = 0; while (n != CharacterIterator.DONE && Character.isWhitespace(n)) { n = iter.next(); ++spcount; } if (spcount > 0) { int save2 = iter.getIndex(); // Skip over open puncutation. while (n != CharacterIterator.DONE && Character.getType(n) == Character.START_PUNCTUATION) n = iter.next(); // Next character must not be lower case. if (n == CharacterIterator.DONE || !Character.isLowerCase(n)) { iter.setIndex(save2); break; } } iter.setIndex(save); } } return iter.getIndex(); }
5,059