bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
protected String common(String[] items) { if (items.length == 0) return ""; String result = items[0]; for (int i = 1; i < items.length; i++) { while (!items[i].startsWith(result)) // shorten the result until it matches result = result.substring(0, result.length() - 1); } return result; }
protected String common(String[] items) { if (items.length == 0) return ""; String result = items[0]; for (int i = 1; i < items.length; i++) { while (!items[i].startsWith(result)) // shorten the result until it matches result = result.substring(0, result.length() - 1); } return result; }
9,929
public String complete(String partial) { // No completion per default return partial; }
public String complete(String partial) { // No completion per default return partial; }
9,930
public void describe(Help help) { help.describeArgument(this); }
public void describe(Help help) { help.describeArgument(this); }
9,931
public String format() { return "<" + getName() + ">" + (isMulti() ? " ..." : ""); }
public String format() { return "<" + getName() + ">" + (isMulti() ? " ..." : ""); }
9,932
public final String getValue(ParsedArguments args) { String[] result = getValues(args); if( (result == null) || (result.length == 0) ) return null; return result[0]; }
public final String getValue(ParsedArguments args) { String[] result = getValues(args); if( (result == null) || (result.length == 0) ) return null; return result[0]; }
9,933
public final String[] getValues(ParsedArguments args) { return args.getValues(this); }
public final String[] getValues(ParsedArguments args) { return args.getValues(this); }
9,934
public boolean isMulti() { return multi; }
public boolean isMulti() { return multi; }
9,935
public final boolean isSatisfied() { return satisfied; }
public final boolean isSatisfied() { return satisfied; }
9,936
public void list(String[] items) { try { ShellUtils.getShellManager().getCurrentShell().list(items); } catch (NameNotFoundException ex) { // should not happen! System.err.println("No list available"); } }
public void list(String[] items) { try { ShellUtils.getShellManager().getCurrentShell().list(items); } catch (NameNotFoundException ex) { // should not happen! System.err.println("No list available"); } }
9,937
protected final void setSatisfied(boolean satisfied) { this.satisfied = satisfied; }
protected final void setSatisfied(boolean satisfied) { this.satisfied = satisfied; }
9,938
protected final void setValue(String value) { if (isMulti()) { String[] values = new String[this.values.length + 1]; System.arraycopy(this.values, 0, values, 0, this.values.length); values[this.values.length] = value; this.values = values; } else { this.values = new String[] { value }; } setSatisfied(!isMulti()); }
protected final void setValue(String value) { if (isMulti()) { String[] values = new String[this.values.length + 1]; System.arraycopy(this.values, 0, values, 0, this.values.length); values[this.values.length] = value; this.values = values; } else { this.values = new String[] { value }; } setSatisfied(!isMulti()); }
9,939
private void nestedToXDF(OutputStream outputstream, String indent, int which, int stop) { String delimiter = getDelimiter(); String repeatable = getRepeatable(); String recordTerminator = getRecordTerminator(); if (which > stop) { if (Specification.getInstance().isPrettyXDFOutput()) { writeOut(outputstream, Constants.NEW_LINE); writeOut(outputstream, indent); } writeOut(outputstream, "<" + classXDFNodeName); if (delimiter !=null) writeOut(outputstream, " delimiter =\"" + delimiter + "\""); writeOut(outputstream, " repeatable=\"" + repeatable + "\""); if (recordTerminator !=null) writeOut(outputstream, " recordTerminator=\"" + recordTerminator + "\"/>"); } else { if (Specification.getInstance().isPrettyXDFOutput()) { writeOut(outputstream, Constants.NEW_LINE); writeOut(outputstream, indent); } writeOut(outputstream, "<" + UntaggedInstructionNodeName + " axisIdRef=\""); writeOut(outputstream, ((AxisInterface) parentArray.getAxisList().get(which)).getAxisId() + "\">"); which++; nestedToXDF(outputstream, indent + Specification.getInstance().getPrettyXDFOutputIndentation(), which, stop); if (Specification.getInstance().isPrettyXDFOutput()) { writeOut(outputstream, Constants.NEW_LINE); writeOut(outputstream, indent); } writeOut(outputstream, "</" + UntaggedInstructionNodeName + ">"); } }
private void nestedToXDF(OutputStream outputstream, String indent, int which, int stop) { String delimiter = getDelimiter(); String repeatable = getRepeatable(); String recordTerminator = getRecordTerminator(); if (which > stop) { if (Specification.getInstance().isPrettyXDFOutput()) { writeOut(outputstream, Constants.NEW_LINE); writeOut(outputstream, indent); } writeOut(outputstream, "<" + classXDFNodeName); if (delimiter !=null) writeOut(outputstream, " delimiter =\"" + delimiter + "\""); writeOut(outputstream, " repeatable=\"" + repeatable + "\""); if (recordTerminator !=null) writeOut(outputstream, " recordTerminator=\"" + recordTerminator + "\"/>"); } else { if (Specification.getInstance().isPrettyXDFOutput()) { writeOut(outputstream, Constants.NEW_LINE); writeOut(outputstream, indent); } writeOut(outputstream, "<" + UntaggedInstructionNodeName + " axisIdRef=\""); writeOut(outputstream, ((AxisInterface) parentArray.getAxisList().get(which)).getAxisId() + "\">"); which++; nestedToXDF(outputstream, indent + Specification.getInstance().getPrettyXDFOutputIndentation(), which, stop); if (Specification.getInstance().isPrettyXDFOutput()) { writeOut(outputstream, Constants.NEW_LINE); writeOut(outputstream, indent); } writeOut(outputstream, "</" + UntaggedInstructionNodeName + ">"); } }
9,940
protected void repaintScreen() { //drawing = true;// dirty.setBounds(tArea.getBounds()); dirtyScreen.setBounds(0,lenScreen - 1,0,0);// if (gui.getGraphics() != null) { // do not forget to null out gg2d before update or else there will // be a very hard to trace screen resize problem // controllersG2D = null;// updateDirty();// } fireScreenChanged(1); // restore statuses that were on the screen before resize if (oia.getLevel() == ScreenOIA.OIA_LEVEL_INPUT_ERROR) { oia.setInputInhibited(ScreenOIA.INPUTINHIBITED_SYSTEM_WAIT, ScreenOIA.OIA_LEVEL_INPUT_ERROR); } if (oia.getLevel() == ScreenOIA.OIA_LEVEL_INPUT_INHIBITED) { oia.setInputInhibited(ScreenOIA.INPUTINHIBITED_SYSTEM_WAIT, ScreenOIA.OIA_LEVEL_INPUT_INHIBITED); } if (oia.isMessageWait()) oia.setMessageLightOn(); }
protected void repaintScreen() { //drawing = true;// dirty.setBounds(tArea.getBounds()); dirtyScreen.setBounds(0,lenScreen - 1,0,0);// if (gui.getGraphics() != null) { // do not forget to null out gg2d before update or else there will // be a very hard to trace screen resize problem // controllersG2D = null;// updateDirty();// } fireScreenChanged(1); // restore statuses that were on the screen before resize if (oia.getLevel() == ScreenOIA.OIA_LEVEL_INPUT_ERROR) { oia.setInputInhibited(ScreenOIA.INPUTINHIBITED_SYSTEM_WAIT, ScreenOIA.OIA_LEVEL_INPUT_ERROR); } if (oia.getLevel() == ScreenOIA.OIA_LEVEL_INPUT_INHIBITED) { oia.setInputInhibited(ScreenOIA.INPUTINHIBITED_SYSTEM_WAIT, ScreenOIA.OIA_LEVEL_INPUT_INHIBITED); } if (oia.isMessageWait()) oia.setMessageLightOn(); }
9,941
public final void setRowsCols(int rows, int cols) { // default number of rows and columns numRows = rows; numCols = cols; lenScreen = numRows * numCols; planes.setSize(rows); }
public final void setRowsCols(int rows, int cols) { // default number of rows and columns numRows = rows; numCols = cols; lenScreen = numRows * numCols;planes.setSize(rows); }
9,942
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; } else myIndent = ""; String moreIndent = super.sPrettyXDFOutputIndentation; //open the read block if (niceOutput) writeOut(outputstream, myIndent); writeOut(outputstream, "<"+classXDFNodeName + ">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); String nextIndent = myIndent + moreIndent; List indents = new ArrayList(); List axisList = getParentArray().getAxisList(); String axisId; for (int i = 0; i< axisList.size(); i++) { axisId = ((AxisInterface)axisList.get(i)).getAxisId(); indents.add(nextIndent); if (niceOutput) writeOut(outputstream, nextIndent); writeOut(outputstream,"<"+UntaggedInstructionNodeName + "axisIdRef = \"" + axisId + "\">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); nextIndent += moreIndent; } //now dump ourselves here using the trusty generic method super.toXDFOutputStream(outputstream, null, nextIndent); //close the instruction for (int i = indents.size()-1; i>=0; i++) { if (niceOutput) writeOut(outputstream, (String) indents.get(i)); writeOut(outputstream, "</" + UntaggedInstructionNodeName + ">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); } //close the read block if (niceOutput) writeOut(outputstream, myIndent); writeOut(outputstream, "<//"+classXDFNodeName + ">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); }
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; } else myIndent = ""; String moreIndent = super.sPrettyXDFOutputIndentation; //open the read block if (niceOutput) writeOut(outputstream, myIndent); writeOut(outputstream, "<"+classXDFNodeName + ">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); String nextIndent = myIndent + moreIndent; List indents = new ArrayList(); List axisList = getParentArray().getAxisList(); String axisId; for (int i = 0; i< axisList.size(); i++) { axisId = ((AxisInterface)axisList.get(i)).getAxisId(); indents.add(nextIndent); if (niceOutput) writeOut(outputstream, nextIndent); writeOut(outputstream,"<"+UntaggedInstructionNodeName + "axisIdRef = \"" + axisId + "\">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); nextIndent += moreIndent; } //now dump ourselves here using the trusty generic method super.toXDFOutputStream(outputstream, null, nextIndent); //close the instruction for (int i = indents.size()-1; i>=0; i++) { if (niceOutput) writeOut(outputstream, (String) indents.get(i)); writeOut(outputstream, "</" + UntaggedInstructionNodeName + ">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); } //close the read block if (niceOutput) writeOut(outputstream, myIndent); writeOut(outputstream, "<//"+classXDFNodeName + ">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); }
9,944
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; } else myIndent = ""; String moreIndent = super.sPrettyXDFOutputIndentation; //open the read block if (niceOutput) writeOut(outputstream, myIndent); writeOut(outputstream, "<"+classXDFNodeName + ">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); String nextIndent = myIndent + moreIndent; List indents = new ArrayList(); List axisList = getParentArray().getAxisList(); String axisId; for (int i = 0; i< axisList.size(); i++) { axisId = ((AxisInterface)axisList.get(i)).getAxisId(); indents.add(nextIndent); if (niceOutput) writeOut(outputstream, nextIndent); writeOut(outputstream,"<"+UntaggedInstructionNodeName + "axisIdRef = \"" + axisId + "\">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); nextIndent += moreIndent; } //now dump ourselves here using the trusty generic method super.toXDFOutputStream(outputstream, null, nextIndent); //close the instruction for (int i = indents.size()-1; i>=0; i++) { if (niceOutput) writeOut(outputstream, (String) indents.get(i)); writeOut(outputstream, "</" + UntaggedInstructionNodeName + ">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); } //close the read block if (niceOutput) writeOut(outputstream, myIndent); writeOut(outputstream, "<//"+classXDFNodeName + ">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); }
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; else myIndent = ""; String moreIndent = super.sPrettyXDFOutputIndentation; //open the read block if (niceOutput) writeOut(outputstream, myIndent); writeOut(outputstream, "<"+classXDFNodeName + ">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); String nextIndent = myIndent + moreIndent; List indents = new ArrayList(); List axisList = getParentArray().getAxisList(); String axisId; for (int i = 0; i< axisList.size(); i++) { axisId = ((AxisInterface)axisList.get(i)).getAxisId(); indents.add(nextIndent); if (niceOutput) writeOut(outputstream, nextIndent); writeOut(outputstream,"<"+UntaggedInstructionNodeName + "axisIdRef = \"" + axisId + "\">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); nextIndent += moreIndent; //now dump ourselves here using the trusty generic method super.toXDFOutputStream(outputstream, null, nextIndent); //close the instruction for (int i = indents.size()-1; i>=0; i++) { if (niceOutput) writeOut(outputstream, (String) indents.get(i)); writeOut(outputstream, "</" + UntaggedInstructionNodeName + ">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); //close the read block if (niceOutput) writeOut(outputstream, myIndent); writeOut(outputstream, "<//"+classXDFNodeName + ">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); }
9,945
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; } else myIndent = ""; String moreIndent = super.sPrettyXDFOutputIndentation; //open the read block if (niceOutput) writeOut(outputstream, myIndent); writeOut(outputstream, "<"+classXDFNodeName + ">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); String nextIndent = myIndent + moreIndent; List indents = new ArrayList(); List axisList = getParentArray().getAxisList(); String axisId; for (int i = 0; i< axisList.size(); i++) { axisId = ((AxisInterface)axisList.get(i)).getAxisId(); indents.add(nextIndent); if (niceOutput) writeOut(outputstream, nextIndent); writeOut(outputstream,"<"+UntaggedInstructionNodeName + "axisIdRef = \"" + axisId + "\">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); nextIndent += moreIndent; } //now dump ourselves here using the trusty generic method super.toXDFOutputStream(outputstream, null, nextIndent); //close the instruction for (int i = indents.size()-1; i>=0; i++) { if (niceOutput) writeOut(outputstream, (String) indents.get(i)); writeOut(outputstream, "</" + UntaggedInstructionNodeName + ">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); } //close the read block if (niceOutput) writeOut(outputstream, myIndent); writeOut(outputstream, "<//"+classXDFNodeName + ">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); }
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; } else myIndent = ""; //open the read block if (niceOutput) writeOut(outputstream, myIndent); writeOut(outputstream, "<"+classXDFNodeName + ">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); String nextIndent = myIndent + moreIndent; List indents = new ArrayList(); List axisList = getParentArray().getAxisList(); String axisId; for (int i = 0; i< axisList.size(); i++) { axisId = ((AxisInterface)axisList.get(i)).getAxisId(); indents.add(nextIndent); if (niceOutput) writeOut(outputstream, nextIndent); writeOut(outputstream,"<"+UntaggedInstructionNodeName + "axisIdRef = \"" + axisId + "\">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); nextIndent += moreIndent; } //now dump ourselves here using the trusty generic method super.toXDFOutputStream(outputstream, null, nextIndent); //close the instruction for (int i = indents.size()-1; i>=0; i++) { if (niceOutput) writeOut(outputstream, (String) indents.get(i)); writeOut(outputstream, "</" + UntaggedInstructionNodeName + ">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); } //close the read block if (niceOutput) writeOut(outputstream, myIndent); writeOut(outputstream, "<//"+classXDFNodeName + ">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); }
9,946
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; } else myIndent = ""; String moreIndent = super.sPrettyXDFOutputIndentation; //open the read block if (niceOutput) writeOut(outputstream, myIndent); writeOut(outputstream, "<"+classXDFNodeName + ">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); String nextIndent = myIndent + moreIndent; List indents = new ArrayList(); List axisList = getParentArray().getAxisList(); String axisId; for (int i = 0; i< axisList.size(); i++) { axisId = ((AxisInterface)axisList.get(i)).getAxisId(); indents.add(nextIndent); if (niceOutput) writeOut(outputstream, nextIndent); writeOut(outputstream,"<"+UntaggedInstructionNodeName + "axisIdRef = \"" + axisId + "\">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); nextIndent += moreIndent; } //now dump ourselves here using the trusty generic method super.toXDFOutputStream(outputstream, null, nextIndent); //close the instruction for (int i = indents.size()-1; i>=0; i++) { if (niceOutput) writeOut(outputstream, (String) indents.get(i)); writeOut(outputstream, "</" + UntaggedInstructionNodeName + ">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); } //close the read block if (niceOutput) writeOut(outputstream, myIndent); writeOut(outputstream, "<//"+classXDFNodeName + ">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); }
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; } else myIndent = ""; String moreIndent = super.sPrettyXDFOutputIndentation; //open the read block if (niceOutput) writeOut(outputstream, myIndent); writeOut(outputstream, "<"+classXDFNodeName + ">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); String nextIndent = myIndent + moreIndent; List indents = new ArrayList(); List axisList = getParentArray().getAxisList(); String axisId; for (int i = 0; i< axisList.size(); i++) { axisId = ((AxisInterface)axisList.get(i)).getAxisId(); indents.add(nextIndent); if (niceOutput) writeOut(outputstream, nextIndent); writeOut(outputstream,"<"+UntaggedInstructionNodeName + "axisIdRef = \"" + axisId + "\">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); nextIndent += moreIndent; } //now dump ourselves here using the trusty generic method super.toXDFOutputStream(outputstream, null, nextIndent); //close the instruction for (int i = indents.size()-1; i>=0; i++) { if (niceOutput) writeOut(outputstream, (String) indents.get(i)); writeOut(outputstream, "</" + UntaggedInstructionNodeName + ">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); } //close the read block if (niceOutput) writeOut(outputstream, myIndent); writeOut(outputstream, "<//"+classXDFNodeName + ">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); }
9,947
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; } else myIndent = ""; String moreIndent = super.sPrettyXDFOutputIndentation; //open the read block if (niceOutput) writeOut(outputstream, myIndent); writeOut(outputstream, "<"+classXDFNodeName + ">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); String nextIndent = myIndent + moreIndent; List indents = new ArrayList(); List axisList = getParentArray().getAxisList(); String axisId; for (int i = 0; i< axisList.size(); i++) { axisId = ((AxisInterface)axisList.get(i)).getAxisId(); indents.add(nextIndent); if (niceOutput) writeOut(outputstream, nextIndent); writeOut(outputstream,"<"+UntaggedInstructionNodeName + "axisIdRef = \"" + axisId + "\">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); nextIndent += moreIndent; } //now dump ourselves here using the trusty generic method super.toXDFOutputStream(outputstream, null, nextIndent); //close the instruction for (int i = indents.size()-1; i>=0; i++) { if (niceOutput) writeOut(outputstream, (String) indents.get(i)); writeOut(outputstream, "</" + UntaggedInstructionNodeName + ">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); } //close the read block if (niceOutput) writeOut(outputstream, myIndent); writeOut(outputstream, "<//"+classXDFNodeName + ">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); }
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; } else myIndent = ""; String moreIndent = super.sPrettyXDFOutputIndentation; //open the read block if (niceOutput) writeOut(outputstream, myIndent); writeOut(outputstream, "<"+classXDFNodeName + ">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); String nextIndent = myIndent + moreIndent; List indents = new ArrayList(); List axisList = getParentArray().getAxisList(); String axisId; for (int i = 0; i< axisList.size(); i++) { axisId = ((AxisInterface)axisList.get(i)).getAxisId(); indents.add(nextIndent); if (niceOutput) writeOut(outputstream, nextIndent); writeOut(outputstream,"<"+UntaggedInstructionNodeName + "axisIdRef = \"" + axisId + "\">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); nextIndent += moreIndent; } //now dump ourselves here using the trusty generic method super.toXDFOutputStream(outputstream, null, nextIndent); //close the instruction for (int i = indents.size()-1; i>=0; i++) { if (niceOutput) writeOut(outputstream, (String) indents.get(i)); writeOut(outputstream, "</" + UntaggedInstructionNodeName + ">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); } //close the read block if (niceOutput) writeOut(outputstream, myIndent); writeOut(outputstream, "<//"+classXDFNodeName + ">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); }
9,948
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; } else myIndent = ""; String moreIndent = super.sPrettyXDFOutputIndentation; //open the read block if (niceOutput) writeOut(outputstream, myIndent); writeOut(outputstream, "<"+classXDFNodeName + ">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); String nextIndent = myIndent + moreIndent; List indents = new ArrayList(); List axisList = getParentArray().getAxisList(); String axisId; for (int i = 0; i< axisList.size(); i++) { axisId = ((AxisInterface)axisList.get(i)).getAxisId(); indents.add(nextIndent); if (niceOutput) writeOut(outputstream, nextIndent); writeOut(outputstream,"<"+UntaggedInstructionNodeName + "axisIdRef = \"" + axisId + "\">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); nextIndent += moreIndent; } //now dump ourselves here using the trusty generic method super.toXDFOutputStream(outputstream, null, nextIndent); //close the instruction for (int i = indents.size()-1; i>=0; i++) { if (niceOutput) writeOut(outputstream, (String) indents.get(i)); writeOut(outputstream, "</" + UntaggedInstructionNodeName + ">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); } //close the read block if (niceOutput) writeOut(outputstream, myIndent); writeOut(outputstream, "<//"+classXDFNodeName + ">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); }
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; } else myIndent = ""; String moreIndent = super.sPrettyXDFOutputIndentation; //open the read block if (niceOutput) writeOut(outputstream, myIndent); writeOut(outputstream, "<"+classXDFNodeName + ">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); String nextIndent = myIndent + moreIndent; List indents = new ArrayList(); List axisList = getParentArray().getAxisList(); String axisId; for (int i = 0; i< axisList.size(); i++) { axisId = ((AxisInterface)axisList.get(i)).getAxisId(); indents.add(nextIndent); if (niceOutput) writeOut(outputstream, nextIndent); writeOut(outputstream,"<"+UntaggedInstructionNodeName + "axisIdRef = \"" + axisId + "\">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); nextIndent += moreIndent; } //now dump ourselves here using the trusty generic method super.toXDFOutputStream(outputstream, null, nextIndent); //close the instruction for (int i = indents.size()-1; i>=0; i++) { if (niceOutput) writeOut(outputstream, (String) indents.get(i)); writeOut(outputstream, "</" + UntaggedInstructionNodeName + ">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); } //close the read block if (niceOutput) writeOut(outputstream, myIndent); writeOut(outputstream, "<//"+classXDFNodeName + ">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); }
9,949
public String toString() { final VmMethod method = sfMethod; final VmType vmClass = (method == null) ? null : method.getDeclaringClass(); final String cname = (vmClass == null) ? "<unknown class>" : vmClass.getName(); final String mname = (method == null) ? "<unknown method>" : method.getName(); final String lineNr = getLineNr(); final String linePrefix; final String line; if (isInterpreted()) { linePrefix = ""; } else { linePrefix = "*"; } /*if (lineNr < 0) { line = "?"; } else { line = String.valueOf(lineNr); }*/ line = lineNr; return cname + "!" + mname + " (" + linePrefix + line + ")"; }
public String toString() { final VmMethod method = sfMethod; final VmType vmClass = (method == null) ? null : method.getDeclaringClass(); final String cname = (vmClass == null) ? "<unknown class>" : vmClass.getName(); final String mname = (method == null) ? "<unknown method>" : method.getName(); final String lineNr = getLineNr(); final String linePrefix; final String line; if (isInterpreted()) { linePrefix = ""; } else { linePrefix = "*"; } /*if (lineNr < 0) { line = "?"; } else { line = String.valueOf(lineNr); }*/ line = lineNr; return cname + "!" + mname + " (" + linePrefix + line + ")"; }
9,950
public String toString() { final VmMethod method = sfMethod; final VmType vmClass = (method == null) ? null : method.getDeclaringClass(); final String cname = (vmClass == null) ? "<unknown class>" : vmClass.getName(); final String mname = (method == null) ? "<unknown method>" : method.getName(); final String lineNr = getLineNr(); final String linePrefix; final String line; if (isInterpreted()) { linePrefix = ""; } else { linePrefix = "*"; } /*if (lineNr < 0) { line = "?"; } else { line = String.valueOf(lineNr); }*/ line = lineNr; return cname + "!" + mname + " (" + linePrefix + line + ")"; }
public String toString() { final VmMethod method = sfMethod; final VmType vmClass = (method == null) ? null : method.getDeclaringClass(); final String cname = (vmClass == null) ? "<unknown class>" : vmClass.getName(); final String mname = (method == null) ? "<unknown method>" : method.getName(); final String lineNr = getLineNr(); final String linePrefix; final String line; if (isInterpreted()) { linePrefix = ""; } else { linePrefix = "*"; } /*if (lineNr < 0) { line = "?"; } else { line = String.valueOf(lineNr); }*/ line = lineNr; return cname + "!" + mname + " (" + linePrefix + line + ")"; }
9,951
public FileDevice(File file, String mode) throws FileNotFoundException, IOException { super(null, "file" + System.currentTimeMillis()); raf = new RandomAccessFile(file, mode); registerAPI(BlockDeviceAPI.class, this); }
public FileDevice(File file, String mode) throws FileNotFoundException, IOException { super(null, "file" + System.currentTimeMillis()); raf = new RandomAccessFile(file, mode); registerAPI(BlockDeviceAPI.class, this); }
9,952
public void setCodePage (String newCodePage) { if (!codePage.toLowerCase().equals(newCodePage.toLowerCase())) { codePage = newCodePage; int i = 0; int[] cp = CharMappings.getCodePage(codePage); do { ebcdic[i] = cp[i]; ascii[cp[i]] = i; } while(++i < 256); if (codePage.toLowerCase().startsWith("870")) { unicode = uni1250; convert = true;// System.out.println("using conversion"); } else if(codePage.toLowerCase().startsWith("1025")) { unicode = uni1025; convert = true;// System.out.println("using conversion"); } else { convert = false;// System.out.println("not using conversion"); } } }
public void setCodePage (String newCodePage) { if (!codePage.toLowerCase().equals(newCodePage.toLowerCase())) { codePage = newCodePage; int i = 0; int[] cp = CharMappings.getCodePage(codePage); do { ebcdic[i] = cp[i]; ascii[cp[i]] = i; } while(++i < 256); if (codePage.toLowerCase().startsWith("870-pl")) { unicode = uni1250; convert = true;// System.out.println("using conversion"); } else if(codePage.toLowerCase().startsWith("1025")) { unicode = uni1025; convert = true;// System.out.println("using conversion"); } else { convert = false;// System.out.println("not using conversion"); } } }
9,953
public Offset add (Extent byteSize) { return null; }
public Offset add (int byteSize) { return null; }
9,962
public Gui5250Frame(My5250 m) { me = m; enableEvents(AWTEvent.WINDOW_EVENT_MASK); try { jbInit(); } catch(Exception e) { e.printStackTrace(); } }
public Gui5250Frame(My5250 m, int seq) { me = m; enableEvents(AWTEvent.WINDOW_EVENT_MASK); try { jbInit(); } catch(Exception e) { e.printStackTrace(); } }
9,963
private void jbInit() throws Exception { this.getContentPane().setLayout(borderLayout1); this.setTitle("tn5250j - 0.5.2"); sessionPane.setBorder(BorderFactory.createEtchedBorder()); sessionPane.setBounds(new Rectangle(78, 57, 5, 5)); sessionPane.setOpaque(false); sessionPane.setRequestFocusEnabled(false); sessionPane.setDoubleBuffered(true); this.getContentPane().add(sessionPane, BorderLayout.CENTER); }
private void jbInit() throws Exception { this.getContentPane().setLayout(borderLayout1); String release = "0"; String version = ".5"; String subVer= ".2b"; if (sequence > 0) setTitle("tn5250j <" + sequence + ">- " + release + version + subVer); else setTitle("tn5250j - " + release + version + subVer); sessionPane.setBorder(BorderFactory.createEtchedBorder()); sessionPane.setBounds(new Rectangle(78, 57, 5, 5)); sessionPane.setOpaque(false); sessionPane.setRequestFocusEnabled(false); sessionPane.setDoubleBuffered(true); this.getContentPane().add(sessionPane, BorderLayout.CENTER); }
9,965
synchronized void newSession(String sel,String[] args) { Properties sesProps = new Properties(); String propFileName = null; String session = args[0]; // Start loading properties sesProps.put(SESSION_HOST,session); if (isSpecified("-e",args)) sesProps.put(SESSION_TN_ENHANCED,"1"); if (isSpecified("-p",args)) { sesProps.put(SESSION_HOST_PORT,getParm("-p",args)); } if (isSpecified("-f",args)) propFileName = getParm("-f",args); if (isSpecified("-cp",args)) sesProps.put(SESSION_CODE_PAGE ,getParm("-cp",args)); if (isSpecified("-gui",args)) sesProps.put(SESSION_USE_GUI,"1"); if (isSpecified("-132",args)) sesProps.put(SESSION_SCREEN_SIZE,SCREEN_SIZE_27X132_STR); else sesProps.put(SESSION_SCREEN_SIZE,SCREEN_SIZE_24X80_STR); // are we to use a socks proxy if (isSpecified("-usp",args)) { // socks proxy host argument if (isSpecified("-sph",args)) { sesProps.put(SESSION_PROXY_HOST ,getParm("-sph",args)); } // socks proxy port argument if (isSpecified("-spp",args)) sesProps.put(SESSION_PROXY_PORT ,getParm("-spp",args)); } // are we to use a ssl and if we are what type if (isSpecified("-sslType",args)) { sesProps.put(SSL_TYPE,getParm("-sslType",args)); } // check if device name is specified if (isSpecified("-dn=hostname",args)){ String dnParam; // use IP address as device name try{ dnParam = InetAddress.getLocalHost().getHostName(); } catch(UnknownHostException uhe){ dnParam = "UNKNOWN_HOST"; } sesProps.put(SESSION_DEVICE_NAME ,dnParam); } else if (isSpecified("-dn",args)){ sesProps.put(SESSION_DEVICE_NAME ,getParm("-dn",args)); } if (isSpecified("-hb",args)) sesProps.put(SESSION_HEART_BEAT,"1"); Session5250 s2 = manager.openSession(sesProps,propFileName,sel); SessionGUI s = new SessionGUI(s2); if (!frame1.isVisible()) { splash.updateProgress(++step); if (isSpecified("-noembed",args)) { newView(); } frame1.setVisible(true); splash.setVisible(false); frame1.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); } else { if (isSpecified("-noembed",args)) { splash.updateProgress(++step); newView(); frame1.setVisible(true); splash.setVisible(false); frame1.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); } } if (isSpecified("-t",args)) frame1.addSessionView(sel,s); else frame1.addSessionView(session,s); s.connect(); s.addEmulatorActionListener(this); }
synchronized void newSession(String sel,String[] args) { Properties sesProps = new Properties(); String propFileName = null; String session = args[0]; // Start loading properties sesProps.put(SESSION_HOST,session); if (isSpecified("-e",args)) sesProps.put(SESSION_TN_ENHANCED,"1"); if (isSpecified("-p",args)) { sesProps.put(SESSION_HOST_PORT,getParm("-p",args)); } if (isSpecified("-f",args)) propFileName = getParm("-f",args); if (isSpecified("-cp",args)) sesProps.put(SESSION_CODE_PAGE ,getParm("-cp",args)); if (isSpecified("-gui",args)) sesProps.put(SESSION_USE_GUI,"1"); if (isSpecified("-132",args)) sesProps.put(SESSION_SCREEN_SIZE,SCREEN_SIZE_27X132_STR); else sesProps.put(SESSION_SCREEN_SIZE,SCREEN_SIZE_24X80_STR); // are we to use a socks proxy if (isSpecified("-usp",args)) { // socks proxy host argument if (isSpecified("-sph",args)) { sesProps.put(SESSION_PROXY_HOST ,getParm("-sph",args)); } // socks proxy port argument if (isSpecified("-spp",args)) sesProps.put(SESSION_PROXY_PORT ,getParm("-spp",args)); } // are we to use a ssl and if we are what type if (isSpecified("-sslType",args)) { sesProps.put(SSL_TYPE,getParm("-sslType",args)); } // check if device name is specified if (isSpecified("-dn=hostname",args)){ String dnParam; // use IP address as device name try{ dnParam = InetAddress.getLocalHost().getHostName(); } catch(UnknownHostException uhe){ dnParam = "UNKNOWN_HOST"; } sesProps.put(SESSION_DEVICE_NAME ,dnParam); } else if (isSpecified("-dn",args)){ sesProps.put(SESSION_DEVICE_NAME ,getParm("-dn",args)); } if (isSpecified("-hb",args)) sesProps.put(SESSION_HEART_BEAT,"1"); Session5250 s2 = manager.openSession(sesProps,propFileName,sel); SessionGUI s = new SessionGUI(s2); if (!frame1.isVisible()) { splash.updateProgress(++step); if (isSpecified("-noembed",args) && sessionCount > 0) { newView(); } frame1.setVisible(true); splash.setVisible(false); frame1.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); } else { if (isSpecified("-noembed",args) && sessionCount > 0) { splash.updateProgress(++step); newView(); frame1.setVisible(true); splash.setVisible(false); frame1.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); } } if (isSpecified("-t",args)) frame1.addSessionView(sel,s); else frame1.addSessionView(session,s); s.connect(); s.addEmulatorActionListener(this); }
9,967
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... setSize(300,300); //Set the window's location. setLocation(xOffset*openFrameCount, yOffset*openFrameCount); addInternalFrameListener(new InternalFrameAdapter() {// public void internalFrameActivated(InternalFrameEvent e) {// paintme();// // displayMessage("Internal frame activated", e);// } public void internalFrameClosing(InternalFrameEvent e) { displayMessage("Internal frame closing", e); } public void internalFrameClosed(InternalFrameEvent e) { displayMessage("Internal frame closed", e); } public void internalFrameOpened(InternalFrameEvent e) { displayMessage("Internal frame opened", e); } public void internalFrameIconified(InternalFrameEvent e) { displayMessage("Internal frame iconified", e); } public void internalFrameDeiconified(InternalFrameEvent e) { displayMessage("Internal frame deiconified", e); } public void internalFrameActivated(InternalFrameEvent e) { displayMessage("Internal frame activated", e); repaint(); } public void internalFrameDeactivated(InternalFrameEvent e) { displayMessage("Internal frame deactivated", e); } }); }
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... setSize(300,300); //Set the window's location. setLocation(xOffset*openFrameCount, yOffset*openFrameCount); addInternalFrameListener(new InternalFrameAdapter() {// public void internalFrameActivated(InternalFrameEvent e) {// paintme();// // displayMessage("Internal frame activated", e);// } public void internalFrameClosing(InternalFrameEvent e) { displayMessage("Internal frame closing", e); } public void internalFrameClosed(InternalFrameEvent e) { displayMessage("Internal frame closed", e); } public void internalFrameOpened(InternalFrameEvent e) { displayMessage("Internal frame opened", e); } public void internalFrameIconified(InternalFrameEvent e) { displayMessage("Internal frame iconified", e); } public void internalFrameDeiconified(InternalFrameEvent e) { displayMessage("Internal frame deiconified", e); } public void internalFrameActivated(InternalFrameEvent e) { displayMessage("Internal frame activated", e); repaint(); } public void internalFrameDeactivated(InternalFrameEvent e) { displayMessage("Internal frame deactivated", e); } }); }
9,968
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... setSize(300,300); //Set the window's location. setLocation(xOffset*openFrameCount, yOffset*openFrameCount); addInternalFrameListener(new InternalFrameAdapter() {// public void internalFrameActivated(InternalFrameEvent e) {// paintme();// // displayMessage("Internal frame activated", e);// } public void internalFrameClosing(InternalFrameEvent e) { displayMessage("Internal frame closing", e); } public void internalFrameClosed(InternalFrameEvent e) { displayMessage("Internal frame closed", e); } public void internalFrameOpened(InternalFrameEvent e) { displayMessage("Internal frame opened", e); } public void internalFrameIconified(InternalFrameEvent e) { displayMessage("Internal frame iconified", e); } public void internalFrameDeiconified(InternalFrameEvent e) { displayMessage("Internal frame deiconified", e); } public void internalFrameActivated(InternalFrameEvent e) { displayMessage("Internal frame activated", e); repaint(); } public void internalFrameDeactivated(InternalFrameEvent e) { displayMessage("Internal frame deactivated", e); } }); }
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... setSize(300,300); //Set the window's location. setLocation(xOffset*openFrameCount, yOffset*openFrameCount); addInternalFrameListener(new InternalFrameAdapter() {// public void internalFrameActivated(InternalFrameEvent e) {// paintme();// // displayMessage("Internal frame activated", e);// } public void internalFrameClosing(InternalFrameEvent e) { displayMessage("Internal frame closing", e); } public void internalFrameClosed(InternalFrameEvent e) { displayMessage("Internal frame closed", e); } public void internalFrameOpened(InternalFrameEvent e) { displayMessage("Internal frame opened", e); } public void internalFrameIconified(InternalFrameEvent e) { displayMessage("Internal frame iconified", e); } public void internalFrameDeiconified(InternalFrameEvent e) { displayMessage("Internal frame deiconified", e); } public void internalFrameActivated(InternalFrameEvent e) { displayMessage("Internal frame activated", e); repaint(); } public void internalFrameDeactivated(InternalFrameEvent e) { displayMessage("Internal frame deactivated", e); } }); }
9,969
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... setSize(300,300); //Set the window's location. setLocation(xOffset*openFrameCount, yOffset*openFrameCount); addInternalFrameListener(new InternalFrameAdapter() {// public void internalFrameActivated(InternalFrameEvent e) {// paintme();// // displayMessage("Internal frame activated", e);// } public void internalFrameClosing(InternalFrameEvent e) { displayMessage("Internal frame closing", e); } public void internalFrameClosed(InternalFrameEvent e) { displayMessage("Internal frame closed", e); } public void internalFrameOpened(InternalFrameEvent e) { displayMessage("Internal frame opened", e); } public void internalFrameIconified(InternalFrameEvent e) { displayMessage("Internal frame iconified", e); } public void internalFrameDeiconified(InternalFrameEvent e) { displayMessage("Internal frame deiconified", e); } public void internalFrameActivated(InternalFrameEvent e) { displayMessage("Internal frame activated", e); repaint(); } public void internalFrameDeactivated(InternalFrameEvent e) { displayMessage("Internal frame deactivated", e); } }); }
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... setSize(300,300); //Set the window's location. setLocation(xOffset*openFrameCount, yOffset*openFrameCount); addInternalFrameListener(new InternalFrameAdapter() {// public void internalFrameActivated(InternalFrameEvent e) {// paintme();// // displayMessage("Internal frame activated", e);// } public void internalFrameClosing(InternalFrameEvent e) { displayMessage("Internal frame closing", e); } public void internalFrameClosed(InternalFrameEvent e) { displayMessage("Internal frame closed", e); } public void internalFrameOpened(InternalFrameEvent e) { displayMessage("Internal frame opened", e); } public void internalFrameIconified(InternalFrameEvent e) { displayMessage("Internal frame iconified", e); } public void internalFrameDeiconified(InternalFrameEvent e) { displayMessage("Internal frame deiconified", e); } public void internalFrameActivated(InternalFrameEvent e) { displayMessage("Internal frame activated", e); repaint(); } public void internalFrameDeactivated(InternalFrameEvent e) { displayMessage("Internal frame deactivated", e); } }); }
9,970
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... setSize(300,300); //Set the window's location. setLocation(xOffset*openFrameCount, yOffset*openFrameCount); addInternalFrameListener(new InternalFrameAdapter() {// public void internalFrameActivated(InternalFrameEvent e) {// paintme();// // displayMessage("Internal frame activated", e);// } public void internalFrameClosing(InternalFrameEvent e) { displayMessage("Internal frame closing", e); } public void internalFrameClosed(InternalFrameEvent e) { displayMessage("Internal frame closed", e); } public void internalFrameOpened(InternalFrameEvent e) { displayMessage("Internal frame opened", e); } public void internalFrameIconified(InternalFrameEvent e) { displayMessage("Internal frame iconified", e); } public void internalFrameDeiconified(InternalFrameEvent e) { displayMessage("Internal frame deiconified", e); } public void internalFrameActivated(InternalFrameEvent e) { displayMessage("Internal frame activated", e); repaint(); } public void internalFrameDeactivated(InternalFrameEvent e) { displayMessage("Internal frame deactivated", e); } }); }
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... setSize(300,300); //Set the window's location. setLocation(xOffset*openFrameCount, yOffset*openFrameCount); addInternalFrameListener(new InternalFrameAdapter() {// public void internalFrameActivated(InternalFrameEvent e) {// paintme();// // displayMessage("Internal frame activated", e);// } public void internalFrameClosing(InternalFrameEvent e) { displayMessage("Internal frame closing", e); } public void internalFrameClosed(InternalFrameEvent e) { displayMessage("Internal frame closed", e); } public void internalFrameOpened(InternalFrameEvent e) { displayMessage("Internal frame opened", e); } public void internalFrameIconified(InternalFrameEvent e) { displayMessage("Internal frame iconified", e); } public void internalFrameDeiconified(InternalFrameEvent e) { displayMessage("Internal frame deiconified", e); } public void internalFrameActivated(InternalFrameEvent e) { displayMessage("Internal frame activated", e); repaint(); } public void internalFrameDeactivated(InternalFrameEvent e) { displayMessage("Internal frame deactivated", e); } }); }
9,971
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... setSize(300,300); //Set the window's location. setLocation(xOffset*openFrameCount, yOffset*openFrameCount); addInternalFrameListener(new InternalFrameAdapter() {// public void internalFrameActivated(InternalFrameEvent e) {// paintme();// // displayMessage("Internal frame activated", e);// } public void internalFrameClosing(InternalFrameEvent e) { displayMessage("Internal frame closing", e); } public void internalFrameClosed(InternalFrameEvent e) { displayMessage("Internal frame closed", e); } public void internalFrameOpened(InternalFrameEvent e) { displayMessage("Internal frame opened", e); } public void internalFrameIconified(InternalFrameEvent e) { displayMessage("Internal frame iconified", e); } public void internalFrameDeiconified(InternalFrameEvent e) { displayMessage("Internal frame deiconified", e); } public void internalFrameActivated(InternalFrameEvent e) { displayMessage("Internal frame activated", e); repaint(); } public void internalFrameDeactivated(InternalFrameEvent e) { displayMessage("Internal frame deactivated", e); } }); }
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... setSize(300,300); //Set the window's location. setLocation(xOffset*openFrameCount, yOffset*openFrameCount); addInternalFrameListener(new InternalFrameAdapter() {// public void internalFrameActivated(InternalFrameEvent e) {// paintme();// // displayMessage("Internal frame activated", e);// } public void internalFrameClosing(InternalFrameEvent e) { displayMessage("Internal frame closing", e); } public void internalFrameClosed(InternalFrameEvent e) { displayMessage("Internal frame closed", e); } public void internalFrameOpened(InternalFrameEvent e) { displayMessage("Internal frame opened", e); } public void internalFrameIconified(InternalFrameEvent e) { displayMessage("Internal frame iconified", e); } public void internalFrameDeiconified(InternalFrameEvent e) { displayMessage("Internal frame deiconified", e); } public void internalFrameActivated(InternalFrameEvent e) { displayMessage("Internal frame activated", e); repaint(); } public void internalFrameDeactivated(InternalFrameEvent e) { displayMessage("Internal frame deactivated", e); } }); }
9,972
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... setSize(300,300); //Set the window's location. setLocation(xOffset*openFrameCount, yOffset*openFrameCount); addInternalFrameListener(new InternalFrameAdapter() {// public void internalFrameActivated(InternalFrameEvent e) {// paintme();// // displayMessage("Internal frame activated", e);// } public void internalFrameClosing(InternalFrameEvent e) { displayMessage("Internal frame closing", e); } public void internalFrameClosed(InternalFrameEvent e) { displayMessage("Internal frame closed", e); } public void internalFrameOpened(InternalFrameEvent e) { displayMessage("Internal frame opened", e); } public void internalFrameIconified(InternalFrameEvent e) { displayMessage("Internal frame iconified", e); } public void internalFrameDeiconified(InternalFrameEvent e) { displayMessage("Internal frame deiconified", e); } public void internalFrameActivated(InternalFrameEvent e) { displayMessage("Internal frame activated", e); repaint(); } public void internalFrameDeactivated(InternalFrameEvent e) { displayMessage("Internal frame deactivated", e); } }); }
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... setSize(300,300); //Set the window's location. setLocation(xOffset*openFrameCount, yOffset*openFrameCount); addInternalFrameListener(new InternalFrameAdapter() {// public void internalFrameActivated(InternalFrameEvent e) {// paintme();// // displayMessage("Internal frame activated", e);// } public void internalFrameClosing(InternalFrameEvent e) { displayMessage("Internal frame closing", e); } public void internalFrameClosed(InternalFrameEvent e) { displayMessage("Internal frame closed", e); } public void internalFrameOpened(InternalFrameEvent e) { displayMessage("Internal frame opened", e); } public void internalFrameIconified(InternalFrameEvent e) { displayMessage("Internal frame iconified", e); } public void internalFrameDeiconified(InternalFrameEvent e) { displayMessage("Internal frame deiconified", e); } public void internalFrameActivated(InternalFrameEvent e) { displayMessage("Internal frame activated", e); repaint(); } public void internalFrameDeactivated(InternalFrameEvent e) { displayMessage("Internal frame deactivated", e); } }); }
9,973
private void nextSession() { JInternalFrame[] frames = desktop.getAllFrames(); JInternalFrame miv = desktop.getSelectedFrame(); int index = desktop.getIndexOf(miv); if (index < desktop.getComponentCount() - 1) { try { frames[index + 1].setSelected(true); } catch (java.beans.PropertyVetoException e) { System.out.println(e.getMessage()); } } else { try { frames[0].setSelected(true); } catch (java.beans.PropertyVetoException e) { System.out.println(e.getMessage()); } } }
private void nextSession() { JInternalFrame[] frames = desktop.getAllFrames(); JInternalFrame miv = desktop.getSelectedFrame(); int index = desktop.getIndexOf(miv); if (index < desktop.getComponentCount() - 1) { try { frames[index + 1].setSelected(true); } catch (java.beans.PropertyVetoException e) { System.out.println(e.getMessage()); } } else { try { frames[0].setSelected(true); } catch (java.beans.PropertyVetoException e) { System.out.println(e.getMessage()); } } }
9,974
private void prevSession() { JInternalFrame[] frames = desktop.getAllFrames(); JInternalFrame miv = desktop.getSelectedFrame(); int index = desktop.getIndexOf(miv); if (index == 0) {// desktop.setSelectedFrame(frames[frames.length - 1]); try { frames[frames.length - 1].setSelected(true); frames[frames.length - 1].repaint(); } catch (java.beans.PropertyVetoException e) { System.out.println(e.getMessage()); } } else { try { frames[index - 1].setSelected(true); frames[index - 1].repaint(); } catch (java.beans.PropertyVetoException e) { System.out.println(e.getMessage()); } } }
private void prevSession() { JInternalFrame[] frames = desktop.getAllFrames(); JInternalFrame miv = desktop.getSelectedFrame(); int index = desktop.getIndexOf(miv); if (index == 0) {// desktop.setSelectedFrame(frames[frames.length - 1]); try { frames[frames.length - 1].setSelected(true); frames[frames.length - 1].repaint(); } catch (java.beans.PropertyVetoException e) { System.out.println(e.getMessage()); } } else { try { frames[index - 1].setSelected(true); frames[index - 1].repaint(); } catch (java.beans.PropertyVetoException e) { System.out.println(e.getMessage()); } } }
9,976
public void removeSessionView(Session targetSession) { JInternalFrame[] frames = desktop.getAllFrames(); }
public void removeSessionView(Session targetSession) { MyInternalFrame[] frames = (MyInternalFrame[])desktop.getAllFrames(); int index = desktop.getIndexOf(targetSession); System.out.println("session found and closing down " + index); targetSession.removeSessionListener(this); targetSession.removeSessionJumpListener(this); desktop.remove(index); }
9,977
private boolean popupVisible() { JMenuBar mb = (JMenuBar) ((JMenu)menuItem).getParent(); // check if mb.isSelected because if no menus are selected // we don't have to look through the list for popup menus if (!mb.isSelected()) return false; for (int i=0;i<mb.getMenuCount();i++) if (((JMenu)mb.getComponent(i)).isPopupMenuVisible()) return true; return false; }
private boolean popupVisible() { JMenuBar mb = (JMenuBar) ((JMenu) menuItem).getParent(); // check if mb.isSelected because if no menus are selected // we don't have to look through the list for popup menus if (!mb.isSelected()) return false; for (int i=0;i<mb.getMenuCount();i++) if (((JMenu)mb.getComponent(i)).isPopupMenuVisible()) return true; return false; }
9,978
private boolean popupVisible() { JMenuBar mb = (JMenuBar) ((JMenu)menuItem).getParent(); // check if mb.isSelected because if no menus are selected // we don't have to look through the list for popup menus if (!mb.isSelected()) return false; for (int i=0;i<mb.getMenuCount();i++) if (((JMenu)mb.getComponent(i)).isPopupMenuVisible()) return true; return false; }
private boolean popupVisible() { JMenuBar mb = (JMenuBar) ((JMenu)menuItem).getParent(); // check if mb.isSelected because if no menus are selected // we don't have to look through the list for popup menus if (!mb.isSelected()) return false; for (int i=0;i<mb.getMenuCount();i++) if (((JMenu)mb.getComponent(i)).isPopupMenuVisible()) return true; return false; }
9,979
public Object clone() { return new LineSegment(P1, P2); }
public Object clone() { LineSegment segment = null; try { segment = (LineSegment) super.clone(); segment.P1 = (Point2D) P1.clone(); segment.P2 = (Point2D) P2.clone(); } catch (CloneNotSupportedException cnse) { InternalError ie = new InternalError(); ie.initCause(cnse); throw ie; } return segment; }
9,981
protected Object readResolve() throws InvalidObjectException { if (this.equals (READING)) return READING; if (this.equals (LANGUAGE)) return LANGUAGE; if (this.equals (INPUT_METHOD_SEGMENT)) return INPUT_METHOD_SEGMENT; throw new InvalidObjectException ("Can't resolve Attribute: " + getName()); }
protected Object readResolve() throws InvalidObjectException { if (getName().equals(READING.getName())) return READING; if (this.equals (LANGUAGE)) return LANGUAGE; if (this.equals (INPUT_METHOD_SEGMENT)) return INPUT_METHOD_SEGMENT; throw new InvalidObjectException ("Can't resolve Attribute: " + getName()); }
9,982
protected Object readResolve() throws InvalidObjectException { if (this.equals (READING)) return READING; if (this.equals (LANGUAGE)) return LANGUAGE; if (this.equals (INPUT_METHOD_SEGMENT)) return INPUT_METHOD_SEGMENT; throw new InvalidObjectException ("Can't resolve Attribute: " + getName()); }
protected Object readResolve() throws InvalidObjectException { if (this.equals (READING)) return READING; if (getName().equals(LANGUAGE.getName())) return LANGUAGE; if (this.equals (INPUT_METHOD_SEGMENT)) return INPUT_METHOD_SEGMENT; throw new InvalidObjectException ("Can't resolve Attribute: " + getName()); }
9,983
protected Object readResolve() throws InvalidObjectException { if (this.equals (READING)) return READING; if (this.equals (LANGUAGE)) return LANGUAGE; if (this.equals (INPUT_METHOD_SEGMENT)) return INPUT_METHOD_SEGMENT; throw new InvalidObjectException ("Can't resolve Attribute: " + getName()); }
protected Object readResolve() throws InvalidObjectException { if (this.equals (READING)) return READING; if (this.equals (LANGUAGE)) return LANGUAGE; if (getName().equals(INPUT_METHOD_SEGMENT.getName())) return INPUT_METHOD_SEGMENT; throw new InvalidObjectException ("Can't resolve Attribute: " + getName()); }
9,984
public CaretEvent(Object source) { super(source); } // CaretEvent()
public CaretEvent(Object source) { super(source); } // CaretEvent()
9,986
public CaretEvent(Object source) { super(source); } // CaretEvent()
public CaretEvent(Object source) { super(source); } // CaretEvent()
9,987
public void clearScreen() { for (int x = 0; x < lenScreen; x++) { screen[x].setCharAndAttr(' ',initAttr,false); screen[x].setUseGUI(ScreenChar.NO_GUI); } dirty.setBounds(tArea.getBounds());// dirty.setBounds(fmWidth * numCols,fmHeight * numRows,0,0); }
drawing = true; drawing = true; drawing = true; publicdrawing = true; voiddrawing = true; clearScreen()drawing = true; {drawing = true; drawing = true; drawing = true; drawing = true; drawing = true; drawing = true; fordrawing = true; (intdrawing = true; xdrawing = true; =drawing = true; 0;drawing = true; xdrawing = true; <drawing = true; lenScreen;drawing = true; x++)drawing = true; {drawing = true; drawing = true; drawing = true; drawing = true; drawing = true; drawing = true; drawing = true; drawing = true; drawing = true; screen[x].setCharAndAttr('drawing = true; ',initAttr,false);drawing = true; drawing = true; drawing = true; drawing = true; drawing = true; drawing = true; drawing = true; drawing = true; drawing = true; screen[x].setUseGUI(ScreenChar.NO_GUI);drawing = true; drawing = true; drawing = true; drawing = true; drawing = true; drawing = true; }drawing = true; drawing = true; drawing = true; drawing = true; drawing = true; drawing = true; dirty.setBounds(tArea.getBounds());//drawing = true; drawing = true; drawing = true; drawing = true; drawing = true; drawing = true; dirty.setBounds(fmWidthdrawing = true; *drawing = true; numCols,fmHeightdrawing = true; *drawing = true; numRows,0,0);drawing = true; drawing = true; drawing = true; }
9,988
public void setEnabled(boolean enabled) { if (enabled != this.enabled) { this.enabled = enabled; firePropertyChange(ENABLED_PROPERTY, !this.enabled, this.enabled); } }
public void setEnabled(boolean enabled) { if (enabled != this.enabled) { this.enabled = enabled; firePropertyChange("enabled", !this.enabled, this.enabled); } }
9,990
public void insertString(DocumentFilter.FilterBypass bypass, int offset, String text, AttributeSet attributes) throws BadLocationException { if (overwriteMode == true) replace(bypass, offset, text.length(), text, attributes); else super.insertString(bypass, offset, text, attributes); checkValidInput(); commitIfAllowed(); }
public void insertString(DocumentFilter.FilterBypass bypass, int offset, String text, AttributeSet attributes) throws BadLocationException { if (overwriteMode == true) replace(bypass, offset, text.length(), text, attributes); else super.insertString(bypass, offset, text, attributes); checkValidInput(); commitIfAllowed(); }
9,991
protected final JTextComponent getFocusedComponent() { return null; // TODO }
protected final JTextComponent getFocusedComponent() { KeyboardFocusManager kfm = KeyboardFocusManager.getCurrentKeyboardFocusManager(); Component focused = kfm.getPermanentFocusOwner(); JTextComponent textComp = null; if (focused instanceof JTextComponent) textComp = (JTextComponent) focused; return textComp; // TODO }
9,992
public boolean isBorderOpaque() { /* If the colors are to be drived from the enclosed Component's * background color, the border is guaranteed to be fully opaque * because Color.brighten() and Color.darken() always return an * opaque color. */ return ((highlight == null) || (highlight.getAlpha() == 255)) && ((shadow == null) || (shadow.getAlpha() == 255)); }
public boolean isBorderOpaque() { /* If the colors are to be drived from the enclosed Component's * background color, the border is guaranteed to be fully opaque * because Color.brighten() and Color.darken() always return an * opaque color. */ return ((highlight == null) || (highlight.getAlpha() == 255)) && ((shadow == null) || (shadow.getAlpha() == 255)); }
9,993
private static void paintEtchedBorder(Graphics g, int x, int y, int width, int height, Color a, Color b) { Color oldColor; oldColor = g.getColor(); g.translate(x, y); width = width - 1; height = height - 1; try { /* To understand this code, it might be helpful to look at the * images that are included with the JavaDoc. They are located * in the "doc-files" subdirectory. EtchedBorder-2.png might * be especially informative. */ g.setColor(a); g.drawRect(0, 0, width - 1, height - 1); g.setColor(b); g.drawLine(1, 1, width - 2, 1); // top edge g.drawLine(1, 2, 1, height - 2); // left edge g.drawLine(0, height, width, height); // bottom edge g.drawLine(width, 0, width, height - 1); // right edge } finally { g.translate(-x, -y); g.setColor(oldColor); } }
private static void paintEtchedBorder(Graphics g, int x, int y, int width, int height, Color a, Color b) { Color oldColor; oldColor = g.getColor(); g.translate(x, y); width = width - 1; height = height - 1; try { /* To understand this code, it might be helpful to look at the * images that are included with the JavaDoc. They are located * in the "doc-files" subdirectory. EtchedBorder-2.png might * be especially informative. */ g.setColor(a); g.drawRect(0, 0, width - 1, height - 1); g.setColor(b); g.drawLine(1, 1, width - 2, 1); // top edge g.drawLine(1, 2, 1, height - 2); // left edge g.drawLine(0, height, width, height); // bottom edge g.drawLine(width, 0, width, height - 1); // right edge } finally { g.translate(-x, -y); g.setColor(oldColor); } }
9,994
private static void paintEtchedBorder(Graphics g, int x, int y, int width, int height, Color a, Color b) { Color oldColor; oldColor = g.getColor(); g.translate(x, y); width = width - 1; height = height - 1; try { /* To understand this code, it might be helpful to look at the * images that are included with the JavaDoc. They are located * in the "doc-files" subdirectory. EtchedBorder-2.png might * be especially informative. */ g.setColor(a); g.drawRect(0, 0, width - 1, height - 1); g.setColor(b); g.drawLine(1, 1, width - 2, 1); // top edge g.drawLine(1, 2, 1, height - 2); // left edge g.drawLine(0, height, width, height); // bottom edge g.drawLine(width, 0, width, height - 1); // right edge } finally { g.translate(-x, -y); g.setColor(oldColor); } }
private static void paintEtchedBorder(Graphics g, int x, int y, int width, int height, Color a, Color b) { Color oldColor; oldColor = g.getColor(); g.translate(x, y); width = width - 1; height = height - 1; try { /* To understand this code, it might be helpful to look at the * images that are included with the JavaDoc. They are located * in the "doc-files" subdirectory. EtchedBorder-2.png might * be especially informative. */ g.setColor(a); g.drawRect(0, 0, width - 1, height - 1); g.setColor(b); g.drawLine(1, 1, width - 2, 1); // top edge g.drawLine(1, 2, 1, height - 2); // left edge g.drawLine(0, height, width, height); // bottom edge g.drawLine(width, 0, width, height - 1); // right edge } finally { g.translate(-x, -y); g.setColor(oldColor); } }
9,995
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !(DataIOStyleAttribs.isEmpty()) ) { // create new object appropriately FormattedXMLDataIOStyle readObj = new FormattedXMLDataIOStyle (CurrentArray, DataIOStyleAttribs); String readId = readObj.getReadId(); String readIdRef = readObj.getReadIdRef(); // add this object to the lookup table, if it has an ID if (readId != null) { // a warning check, just in case if (ReadObj.containsKey(readId)) Log.warnln("More than one read node with readId=\""+readId+"\", using latest node." ); // add this into the list of note objects ReadObj.put(readId, readObj); } // If there is a reference object, clone it to get // the new readObj if (readIdRef != null) { if (ReadObj.containsKey(readIdRef)) { BaseObject refReadObj = (BaseObject) ReadObj.get(readIdRef); try { readObj = (FormattedXMLDataIOStyle) refReadObj.clone(); } catch (java.lang.CloneNotSupportedException e) { Log.errorln("Weird error, cannot clone FormattedXMLDataIOStyle (read node) object. Aborting read."); System.exit(-1); } // override attrs with those in passed list readObj.hashtableInitXDFAttributes(DataIOStyleAttribs); // give the clone a unique Id and remove IdRef readObj.setReadId(findUniqueIdName(ReadObj, readObj.getReadId())); readObj.setReadIdRef(null); // add this into the list of note objects ReadObj.put(readObj.getReadId(), readObj); } else { Log.warnln("Error: Reader got a read node with ReadIdRef=\""+readIdRef+"\" but no previous read node has that id! Ignoring add request."); return (Object) null; } } CurrentArray.setXMLDataIOStyle(readObj); DataIOStyleAttribs = new Hashtable(); // clear table CurrentFormatObjectList.add(readObj); } // okey, now that that is taken care off, we will go // get the current format (read) object, and add the readCell // command to it. Object formatObj = (Object) CurrentFormatObjectList.get(CurrentFormatObjectList.size()-1); ReadCellFormattedIOCmd readCellObj = new ReadCellFormattedIOCmd(); readCellObj.setXMLAttributes(attrs); if (formatObj instanceof FormattedXMLDataIOStyle) { return ((FormattedXMLDataIOStyle) formatObj).addFormatCommand(readCellObj); } else if ( formatObj instanceof RepeatFormattedIOCmd ) { return ((RepeatFormattedIOCmd) formatObj).addFormatCommand(readCellObj); } else { Log.warnln("Warning: cant add ReadCellFormattedIOCmd object to parent, ignoring request "); } return (Object) null; }
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !(DataIOStyleAttribs.isEmpty()) ) { // create new object appropriately FormattedXMLDataIOStyle readObj = new FormattedXMLDataIOStyle (CurrentArray, DataIOStyleAttribs); String readId = readObj.getReadId(); // add this object to the lookup table, if it has an ID if (readId != null) { // a warning check, just in case if (ReadObj.containsKey(readId)) Log.warnln("More than one read node with readId=\""+readId+"\", using latest node." ); // add this into the list of note objects ReadObj.put(readId, readObj); } // If there is a reference object, clone it to get // the new readObj if (readIdRef != null) { if (ReadObj.containsKey(readIdRef)) { BaseObject refReadObj = (BaseObject) ReadObj.get(readIdRef); try { readObj = (FormattedXMLDataIOStyle) refReadObj.clone(); } catch (java.lang.CloneNotSupportedException e) { Log.errorln("Weird error, cannot clone FormattedXMLDataIOStyle (read node) object. Aborting read."); System.exit(-1); } // override attrs with those in passed list readObj.hashtableInitXDFAttributes(DataIOStyleAttribs); // give the clone a unique Id and remove IdRef readObj.setReadId(findUniqueIdName(ReadObj, readObj.getReadId())); readObj.setReadIdRef(null); // add this into the list of note objects ReadObj.put(readObj.getReadId(), readObj); } else { Log.warnln("Error: Reader got a read node with ReadIdRef=\""+readIdRef+"\" but no previous read node has that id! Ignoring add request."); return (Object) null; } } CurrentArray.setXMLDataIOStyle(readObj); DataIOStyleAttribs = new Hashtable(); // clear table CurrentFormatObjectList.add(readObj); } // okey, now that that is taken care off, we will go // get the current format (read) object, and add the readCell // command to it. Object formatObj = (Object) CurrentFormatObjectList.get(CurrentFormatObjectList.size()-1); ReadCellFormattedIOCmd readCellObj = new ReadCellFormattedIOCmd(); readCellObj.setXMLAttributes(attrs); if (formatObj instanceof FormattedXMLDataIOStyle) { return ((FormattedXMLDataIOStyle) formatObj).addFormatCommand(readCellObj); } else if ( formatObj instanceof RepeatFormattedIOCmd ) { return ((RepeatFormattedIOCmd) formatObj).addFormatCommand(readCellObj); } else { Log.warnln("Warning: cant add ReadCellFormattedIOCmd object to parent, ignoring request "); } return (Object) null; }
9,997
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !(DataIOStyleAttribs.isEmpty()) ) { // create new object appropriately FormattedXMLDataIOStyle readObj = new FormattedXMLDataIOStyle (CurrentArray, DataIOStyleAttribs); String readId = readObj.getReadId(); String readIdRef = readObj.getReadIdRef(); // add this object to the lookup table, if it has an ID if (readId != null) { // a warning check, just in case if (ReadObj.containsKey(readId)) Log.warnln("More than one read node with readId=\""+readId+"\", using latest node." ); // add this into the list of note objects ReadObj.put(readId, readObj); } // If there is a reference object, clone it to get // the new readObj if (readIdRef != null) { if (ReadObj.containsKey(readIdRef)) { BaseObject refReadObj = (BaseObject) ReadObj.get(readIdRef); try { readObj = (FormattedXMLDataIOStyle) refReadObj.clone(); } catch (java.lang.CloneNotSupportedException e) { Log.errorln("Weird error, cannot clone FormattedXMLDataIOStyle (read node) object. Aborting read."); System.exit(-1); } // override attrs with those in passed list readObj.hashtableInitXDFAttributes(DataIOStyleAttribs); // give the clone a unique Id and remove IdRef readObj.setReadId(findUniqueIdName(ReadObj, readObj.getReadId())); readObj.setReadIdRef(null); // add this into the list of note objects ReadObj.put(readObj.getReadId(), readObj); } else { Log.warnln("Error: Reader got a read node with ReadIdRef=\""+readIdRef+"\" but no previous read node has that id! Ignoring add request."); return (Object) null; } } CurrentArray.setXMLDataIOStyle(readObj); DataIOStyleAttribs = new Hashtable(); // clear table CurrentFormatObjectList.add(readObj); } // okey, now that that is taken care off, we will go // get the current format (read) object, and add the readCell // command to it. Object formatObj = (Object) CurrentFormatObjectList.get(CurrentFormatObjectList.size()-1); ReadCellFormattedIOCmd readCellObj = new ReadCellFormattedIOCmd(); readCellObj.setXMLAttributes(attrs); if (formatObj instanceof FormattedXMLDataIOStyle) { return ((FormattedXMLDataIOStyle) formatObj).addFormatCommand(readCellObj); } else if ( formatObj instanceof RepeatFormattedIOCmd ) { return ((RepeatFormattedIOCmd) formatObj).addFormatCommand(readCellObj); } else { Log.warnln("Warning: cant add ReadCellFormattedIOCmd object to parent, ignoring request "); } return (Object) null; }
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !(DataIOStyleAttribs.isEmpty()) ) { // create new object appropriately FormattedXMLDataIOStyle readObj = new FormattedXMLDataIOStyle (CurrentArray, DataIOStyleAttribs); String readId = readObj.getReadId(); String readIdRef = readObj.getReadIdRef(); // add this object to the lookup table, if it has an ID if (readId != null) { // a warning check, just in case if (ReadObj.containsKey(readId)) Log.warnln("More than one read node with readId=\""+readId+"\", using latest node." ); // add this into the list of note objects ReadObj.put(readId, readObj); } // If there is a reference object, clone it to get // the new readObj if (readIdRef != null) { if (ReadObj.containsKey(readIdRef)) { BaseObject refReadObj = (BaseObject) ReadObj.get(readIdRef); try { readObj = (FormattedXMLDataIOStyle) refReadObj.clone(); } catch (java.lang.CloneNotSupportedException e) { Log.errorln("Weird error, cannot clone FormattedXMLDataIOStyle (read node) object. Aborting read."); System.exit(-1); } // override attrs with those in passed list readObj.hashtableInitXDFAttributes(DataIOStyleAttribs); // give the clone a unique Id and remove IdRef readObj.setReadId(findUniqueIdName(ReadObj, readObj.getReadId())); readObj.setReadIdRef(null); // add this into the list of note objects ReadObj.put(readObj.getReadId(), readObj); } else { Log.warnln("Error: Reader got a read node with ReadIdRef=\""+readIdRef+"\" but no previous read node has that id! Ignoring add request."); return (Object) null; } } CurrentArray.setXMLDataIOStyle(readObj); DataIOStyleAttribs = new Hashtable(); // clear table CurrentFormatObjectList.add(readObj); } // okey, now that that is taken care off, we will go // get the current format (read) object, and add the readCell // command to it. Object formatObj = (Object) CurrentFormatObjectList.get(CurrentFormatObjectList.size()-1); ReadCellFormattedIOCmd readCellObj = new ReadCellFormattedIOCmd(); readCellObj.setXMLAttributes(attrs); if (formatObj instanceof FormattedXMLDataIOStyle) { return ((FormattedXMLDataIOStyle) formatObj).addFormatCommand(readCellObj); } else if ( formatObj instanceof RepeatFormattedIOCmd ) { return ((RepeatFormattedIOCmd) formatObj).addFormatCommand(readCellObj); } else { Log.warnln("Warning: cant add ReadCellFormattedIOCmd object to parent, ignoring request "); } return (Object) null; }
9,998
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !(DataIOStyleAttribs.isEmpty()) ) { // create new object appropriately FormattedXMLDataIOStyle readObj = new FormattedXMLDataIOStyle (CurrentArray, DataIOStyleAttribs); String readId = readObj.getReadId(); String readIdRef = readObj.getReadIdRef(); // add this object to the lookup table, if it has an ID if (readId != null) { // a warning check, just in case if (ReadObj.containsKey(readId)) Log.warnln("More than one read node with readId=\""+readId+"\", using latest node." ); // add this into the list of note objects ReadObj.put(readId, readObj); } // If there is a reference object, clone it to get // the new readObj if (readIdRef != null) { if (ReadObj.containsKey(readIdRef)) { BaseObject refReadObj = (BaseObject) ReadObj.get(readIdRef); try { readObj = (FormattedXMLDataIOStyle) refReadObj.clone(); } catch (java.lang.CloneNotSupportedException e) { Log.errorln("Weird error, cannot clone FormattedXMLDataIOStyle (read node) object. Aborting read."); System.exit(-1); } // override attrs with those in passed list readObj.hashtableInitXDFAttributes(DataIOStyleAttribs); // give the clone a unique Id and remove IdRef readObj.setReadId(findUniqueIdName(ReadObj, readObj.getReadId())); readObj.setReadIdRef(null); // add this into the list of note objects ReadObj.put(readObj.getReadId(), readObj); } else { Log.warnln("Error: Reader got a read node with ReadIdRef=\""+readIdRef+"\" but no previous read node has that id! Ignoring add request."); return (Object) null; } } CurrentArray.setXMLDataIOStyle(readObj); DataIOStyleAttribs = new Hashtable(); // clear table CurrentFormatObjectList.add(readObj); } // okey, now that that is taken care off, we will go // get the current format (read) object, and add the readCell // command to it. Object formatObj = (Object) CurrentFormatObjectList.get(CurrentFormatObjectList.size()-1); ReadCellFormattedIOCmd readCellObj = new ReadCellFormattedIOCmd(); readCellObj.setXMLAttributes(attrs); if (formatObj instanceof FormattedXMLDataIOStyle) { return ((FormattedXMLDataIOStyle) formatObj).addFormatCommand(readCellObj); } else if ( formatObj instanceof RepeatFormattedIOCmd ) { return ((RepeatFormattedIOCmd) formatObj).addFormatCommand(readCellObj); } else { Log.warnln("Warning: cant add ReadCellFormattedIOCmd object to parent, ignoring request "); } return (Object) null; }
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !(DataIOStyleAttribs.isEmpty()) ) { // create new object appropriately FormattedXMLDataIOStyle readObj = new FormattedXMLDataIOStyle (CurrentArray, DataIOStyleAttribs); String readId = readObj.getReadId(); String readIdRef = readObj.getReadIdRef(); // add this object to the lookup table, if it has an ID if (readId != null) { // a warning check, just in case if (ReadObj.containsKey(readId)) Log.warnln("More than one read node with readId=\""+readId+"\", using latest node." ); // add this into the list of note objects ReadObj.put(readId, readObj); } // If there is a reference object, clone it to get // the new readObj if (ReadObj.containsKey(readIdRef)) { BaseObject refReadObj = (BaseObject) ReadObj.get(readIdRef); try { readObj = (FormattedXMLDataIOStyle) refReadObj.clone(); } catch (java.lang.CloneNotSupportedException e) { Log.errorln("Weird error, cannot clone FormattedXMLDataIOStyle (read node) object. Aborting read."); System.exit(-1); } // override attrs with those in passed list readObj.hashtableInitXDFAttributes(DataIOStyleAttribs); // give the clone a unique Id and remove IdRef readObj.setReadId(findUniqueIdName(ReadObj, readObj.getReadId())); readObj.setReadIdRef(null); // add this into the list of note objects ReadObj.put(readObj.getReadId(), readObj); } else { Log.warnln("Error: Reader got a read node with ReadIdRef=\""+readIdRef+"\" but no previous read node has that id! Ignoring add request."); return (Object) null; } } CurrentArray.setXMLDataIOStyle(readObj); DataIOStyleAttribs = new Hashtable(); // clear table CurrentFormatObjectList.add(readObj); } // okey, now that that is taken care off, we will go // get the current format (read) object, and add the readCell // command to it. Object formatObj = (Object) CurrentFormatObjectList.get(CurrentFormatObjectList.size()-1); ReadCellFormattedIOCmd readCellObj = new ReadCellFormattedIOCmd(); readCellObj.setXMLAttributes(attrs); if (formatObj instanceof FormattedXMLDataIOStyle) { return ((FormattedXMLDataIOStyle) formatObj).addFormatCommand(readCellObj); } else if ( formatObj instanceof RepeatFormattedIOCmd ) { return ((RepeatFormattedIOCmd) formatObj).addFormatCommand(readCellObj); } else { Log.warnln("Warning: cant add ReadCellFormattedIOCmd object to parent, ignoring request "); } return (Object) null; }
9,999
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !(DataIOStyleAttribs.isEmpty()) ) { // create new object appropriately FormattedXMLDataIOStyle readObj = new FormattedXMLDataIOStyle (CurrentArray, DataIOStyleAttribs); String readId = readObj.getReadId(); String readIdRef = readObj.getReadIdRef(); // add this object to the lookup table, if it has an ID if (readId != null) { // a warning check, just in case if (ReadObj.containsKey(readId)) Log.warnln("More than one read node with readId=\""+readId+"\", using latest node." ); // add this into the list of note objects ReadObj.put(readId, readObj); } // If there is a reference object, clone it to get // the new readObj if (readIdRef != null) { if (ReadObj.containsKey(readIdRef)) { BaseObject refReadObj = (BaseObject) ReadObj.get(readIdRef); try { readObj = (FormattedXMLDataIOStyle) refReadObj.clone(); } catch (java.lang.CloneNotSupportedException e) { Log.errorln("Weird error, cannot clone FormattedXMLDataIOStyle (read node) object. Aborting read."); System.exit(-1); } // override attrs with those in passed list readObj.hashtableInitXDFAttributes(DataIOStyleAttribs); // give the clone a unique Id and remove IdRef readObj.setReadId(findUniqueIdName(ReadObj, readObj.getReadId())); readObj.setReadIdRef(null); // add this into the list of note objects ReadObj.put(readObj.getReadId(), readObj); } else { Log.warnln("Error: Reader got a read node with ReadIdRef=\""+readIdRef+"\" but no previous read node has that id! Ignoring add request."); return (Object) null; } } CurrentArray.setXMLDataIOStyle(readObj); DataIOStyleAttribs = new Hashtable(); // clear table CurrentFormatObjectList.add(readObj); } // okey, now that that is taken care off, we will go // get the current format (read) object, and add the readCell // command to it. Object formatObj = (Object) CurrentFormatObjectList.get(CurrentFormatObjectList.size()-1); ReadCellFormattedIOCmd readCellObj = new ReadCellFormattedIOCmd(); readCellObj.setXMLAttributes(attrs); if (formatObj instanceof FormattedXMLDataIOStyle) { return ((FormattedXMLDataIOStyle) formatObj).addFormatCommand(readCellObj); } else if ( formatObj instanceof RepeatFormattedIOCmd ) { return ((RepeatFormattedIOCmd) formatObj).addFormatCommand(readCellObj); } else { Log.warnln("Warning: cant add ReadCellFormattedIOCmd object to parent, ignoring request "); } return (Object) null; }
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !(DataIOStyleAttribs.isEmpty()) ) { // create new object appropriately FormattedXMLDataIOStyle readObj = new FormattedXMLDataIOStyle (CurrentArray, DataIOStyleAttribs); String readId = readObj.getReadId(); String readIdRef = readObj.getReadIdRef(); // add this object to the lookup table, if it has an ID if (readId != null) { // a warning check, just in case if (ReadObj.containsKey(readId)) Log.warnln("More than one read node with readId=\""+readId+"\", using latest node." ); // add this into the list of note objects ReadObj.put(readId, readObj); } // If there is a reference object, clone it to get // the new readObj if (readIdRef != null) { if (ReadObj.containsKey(readIdRef)) { BaseObject refReadObj = (BaseObject) ReadObj.get(readIdRef); try { readObj = (FormattedXMLDataIOStyle) refReadObj.clone(); } catch (java.lang.CloneNotSupportedException e) { Log.errorln("Weird error, cannot clone FormattedXMLDataIOStyle (read node) object. Aborting read."); System.exit(-1); } // override attrs with those in passed list readObj.hashtableInitXDFAttributes(DataIOStyleAttribs); // give the clone a unique Id and remove IdRef readObj.setReadId(findUniqueIdName(ReadObj, readObj.getReadId())); readObj.setReadIdRef(null); // add this into the list of note objects ReadObj.put(readObj.getReadId(), readObj); } else { Log.warnln("Error: Reader got a read node with ReadIdRef=\""+readIdRef+"\" but no previous read node has that id! Ignoring add request."); return (Object) null; } } CurrentArray.setXMLDataIOStyle(readObj); DataIOStyleAttribs = new Hashtable(); // clear table CurrentFormatObjectList.add(readObj); } // okey, now that that is taken care off, we will go // get the current format (read) object, and add the readCell // command to it. Object formatObj = (Object) CurrentFormatObjectList.get(CurrentFormatObjectList.size()-1); ReadCellFormattedIOCmd readCellObj = new ReadCellFormattedIOCmd(); readCellObj.setXMLAttributes(attrs); if (formatObj instanceof FormattedXMLDataIOStyle) { return ((FormattedXMLDataIOStyle) formatObj).addFormatCommand(readCellObj); } else if ( formatObj instanceof RepeatFormattedIOCmd ) { return ((RepeatFormattedIOCmd) formatObj).addFormatCommand(readCellObj); } else { Log.warnln("Warning: cant add ReadCellFormattedIOCmd object to parent, ignoring request "); } return (Object) null; }
10,000
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // save these for later, when we know what kind of dataIOstyle we got // Argh we really need a clone on AttributeList. Just dumb copy for now. DataIOStyleAttribs = new Hashtable(); int size = attrs.getLength(); for (int i = 0; i < size; i++) { String name = attrs.getName(i); String value = attrs.getValue(i); if (value != null) DataIOStyleAttribs.put(name, value); } // clear out the format command object array // (its used by Formatted reads only, but this is reasonable // spot to do this). CurrentFormatObjectList = new ArrayList (); // this will be used in formatted/delimited reads to // set the iteration order of the locator that will populate // the datacube AxisReadOrder = new ArrayList(); return (Object) null; }
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // save these for later, when we know what kind of dataIOstyle we got // Argh we really need a clone on AttributeList. Just dumb copy for now. DataIOStyleAttribs = new Hashtable(); int size = attrs.getLength(); for (int i = 0; i < size; i++) { String name = attrs.getName(i); String value = attrs.getValue(i); if (value != null) DataIOStyleAttribs.put(name, value); } // clear out the format command object array // (its used by Formatted reads only, but this is reasonable // spot to do this). CurrentFormatObjectList = new ArrayList (); // this will be used in formatted/delimited reads to // set the iteration order of the locator that will populate // the datacube AxisReadOrder = new ArrayList(); return (Object) null; }
10,001
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !DataIOStyleAttribs.isEmpty()) { // FormattedXMLDataIOStyle readObj = new FormattedXMLDataIOStyle(CurrentArray); FormattedXMLDataIOStyle readObj = new FormattedXMLDataIOStyle (CurrentArray, DataIOStyleAttribs); // readObj.setXMLAttributes(DataIOStyleAttribs); CurrentArray.setXMLDataIOStyle(readObj); DataIOStyleAttribs = new Hashtable (); CurrentFormatObjectList.add(readObj); } // okey, now that that is taken care off, we will go // get the current format (read) object, and add the readCell // command to it. Object formatObj = (Object) CurrentFormatObjectList.get(CurrentFormatObjectList.size()-1); RepeatFormattedIOCmd repeatObj = new RepeatFormattedIOCmd(); repeatObj.setXMLAttributes(attrs); if (formatObj instanceof FormattedXMLDataIOStyle) { CurrentFormatObjectList.add(repeatObj); return ((FormattedXMLDataIOStyle) formatObj).addFormatCommand(repeatObj); } else if ( formatObj instanceof RepeatFormattedIOCmd ) { CurrentFormatObjectList.add(repeatObj); return ((RepeatFormattedIOCmd) formatObj).addFormatCommand(repeatObj); } else { Log.warnln("Warning: cant add RepeatFormattedIOCmd object to parent, ignoring request "); } return (Object) null; }
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !DataIOStyleAttribs.isEmpty()) { // FormattedXMLDataIOStyle readObj = new FormattedXMLDataIOStyle(CurrentArray); FormattedXMLDataIOStyle readObj = new FormattedXMLDataIOStyle (CurrentArray, DataIOStyleAttribs); // readObj.setXMLAttributes(DataIOStyleAttribs); CurrentArray.setXMLDataIOStyle(readObj); DataIOStyleAttribs = new Hashtable (); CurrentFormatObjectList.add(readObj); } // okey, now that that is taken care off, we will go // get the current format (read) object, and add the readCell // command to it. Object formatObj = (Object) CurrentFormatObjectList.get(CurrentFormatObjectList.size()-1); RepeatFormattedIOCmd repeatObj = new RepeatFormattedIOCmd(); repeatObj.setXMLAttributes(attrs); if (formatObj instanceof FormattedXMLDataIOStyle) { CurrentFormatObjectList.add(repeatObj); return ((FormattedXMLDataIOStyle) formatObj).addFormatCommand(repeatObj); } else if ( formatObj instanceof RepeatFormattedIOCmd ) { CurrentFormatObjectList.add(repeatObj); return ((RepeatFormattedIOCmd) formatObj).addFormatCommand(repeatObj); } else { Log.warnln("Warning: cant add RepeatFormattedIOCmd object to parent, ignoring request "); } return (Object) null; }
10,003
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !DataIOStyleAttribs.isEmpty()) { // FormattedXMLDataIOStyle readObj = new FormattedXMLDataIOStyle(CurrentArray); FormattedXMLDataIOStyle readObj = new FormattedXMLDataIOStyle (CurrentArray, DataIOStyleAttribs); // readObj.setXMLAttributes(DataIOStyleAttribs); CurrentArray.setXMLDataIOStyle(readObj); DataIOStyleAttribs = new Hashtable (); CurrentFormatObjectList.add(readObj); } // okey, now that that is taken care off, we will go // get the current format (read) object, and add the readCell // command to it. Object formatObj = (Object) CurrentFormatObjectList.get(CurrentFormatObjectList.size()-1); RepeatFormattedIOCmd repeatObj = new RepeatFormattedIOCmd(); repeatObj.setXMLAttributes(attrs); if (formatObj instanceof FormattedXMLDataIOStyle) { CurrentFormatObjectList.add(repeatObj); return ((FormattedXMLDataIOStyle) formatObj).addFormatCommand(repeatObj); } else if ( formatObj instanceof RepeatFormattedIOCmd ) { CurrentFormatObjectList.add(repeatObj); return ((RepeatFormattedIOCmd) formatObj).addFormatCommand(repeatObj); } else { Log.warnln("Warning: cant add RepeatFormattedIOCmd object to parent, ignoring request "); } return (Object) null; }
publicObjectaction(SaxDocumentHandlerhandler,AttributeListattrs){//ifthisisstilldefined,wehaventinit'dan//XMLDataIOStyleobjectforthisarrayyet,doitnow.if(!DataIOStyleAttribs.isEmpty()){//FormattedXMLDataIOStylereadObj=newFormattedXMLDataIOStyle(CurrentArray);FormattedXMLDataIOStylereadObj=newFormattedXMLDataIOStyle(CurrentArray,DataIOStyleAttribs);//readObj.setXMLAttributes(DataIOStyleAttribs);CurrentArray.setXMLDataIOStyle(readObj);DataIOStyleAttribs=newHashtable();CurrentFormatObjectList.add(readObj);}//okey,nowthatthatistakencareoff,wewillgo//getthecurrentformat(read)object,andaddthereadCell//commandtoit.ObjectformatObj=(Object)CurrentFormatObjectList.get(CurrentFormatObjectList.size()-1);RepeatFormattedIOCmdrepeatObj=newRepeatFormattedIOCmd();repeatObj.setXMLAttributes(attrs);if(formatObjinstanceofFormattedXMLDataIOStyle){CurrentFormatObjectList.add(repeatObj);return((FormattedXMLDataIOStyle)formatObj).addFormatCommand(repeatObj);}elseif(formatObjinstanceofRepeatFormattedIOCmd){CurrentFormatObjectList.add(repeatObj);return((RepeatFormattedIOCmd)formatObj).addFormatCommand(repeatObj);}else{Log.warnln("Warning:cantaddRepeatFormattedIOCmdobjecttoparent,ignoringrequest");}return(Object)null;}
10,004
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !DataIOStyleAttribs.isEmpty()) { // FormattedXMLDataIOStyle readObj = new FormattedXMLDataIOStyle(CurrentArray); FormattedXMLDataIOStyle readObj = new FormattedXMLDataIOStyle (CurrentArray, DataIOStyleAttribs); // readObj.setXMLAttributes(DataIOStyleAttribs); CurrentArray.setXMLDataIOStyle(readObj); DataIOStyleAttribs = new Hashtable (); CurrentFormatObjectList.add(readObj); } // okey, now that that is taken care off, we will go // get the current format (read) object, and add the readCell // command to it. Object formatObj = (Object) CurrentFormatObjectList.get(CurrentFormatObjectList.size()-1); RepeatFormattedIOCmd repeatObj = new RepeatFormattedIOCmd(); repeatObj.setXMLAttributes(attrs); if (formatObj instanceof FormattedXMLDataIOStyle) { CurrentFormatObjectList.add(repeatObj); return ((FormattedXMLDataIOStyle) formatObj).addFormatCommand(repeatObj); } else if ( formatObj instanceof RepeatFormattedIOCmd ) { CurrentFormatObjectList.add(repeatObj); return ((RepeatFormattedIOCmd) formatObj).addFormatCommand(repeatObj); } else { Log.warnln("Warning: cant add RepeatFormattedIOCmd object to parent, ignoring request "); } return (Object) null; }
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !DataIOStyleAttribs.isEmpty()) { // FormattedXMLDataIOStyle readObj = new FormattedXMLDataIOStyle(CurrentArray); FormattedXMLDataIOStyle readObj = new FormattedXMLDataIOStyle (CurrentArray, DataIOStyleAttribs); // readObj.setXMLAttributes(DataIOStyleAttribs); CurrentArray.setXMLDataIOStyle(readObj); if (ReadObj.containsKey(readId)) Log.warnln("More than one read node with readId=\""+readId+"\", using latest node." ); ReadObj.put(readId, readObj); } DataIOStyleAttribs.clear(); CurrentFormatObjectList.add(readObj); } // okey, now that that is taken care off, we will go // get the current format (read) object, and add the readCell // command to it. Object formatObj = (Object) CurrentFormatObjectList.get(CurrentFormatObjectList.size()-1); RepeatFormattedIOCmd repeatObj = new RepeatFormattedIOCmd(); repeatObj.setXMLAttributes(attrs); if (formatObj instanceof FormattedXMLDataIOStyle) { CurrentFormatObjectList.add(repeatObj); return ((FormattedXMLDataIOStyle) formatObj).addFormatCommand(repeatObj); } else if ( formatObj instanceof RepeatFormattedIOCmd ) { CurrentFormatObjectList.add(repeatObj); return ((RepeatFormattedIOCmd) formatObj).addFormatCommand(repeatObj); } else { Log.warnln("Warning: cant add RepeatFormattedIOCmd object to parent, ignoring request "); } return (Object) null; }
10,005
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !DataIOStyleAttribs.isEmpty()) { // FormattedXMLDataIOStyle readObj = new FormattedXMLDataIOStyle(CurrentArray); FormattedXMLDataIOStyle readObj = new FormattedXMLDataIOStyle (CurrentArray, DataIOStyleAttribs); // readObj.setXMLAttributes(DataIOStyleAttribs); CurrentArray.setXMLDataIOStyle(readObj); DataIOStyleAttribs = new Hashtable(); // clear out table CurrentFormatObjectList.add(readObj); } // okey, now that that is taken care off, we will go // get the current format (read) object, and add the readCell // command to it. Object formatObj = (Object) CurrentFormatObjectList.get(CurrentFormatObjectList.size()-1); SkipCharFormattedIOCmd skipObj = new SkipCharFormattedIOCmd(); skipObj.setXMLAttributes(attrs); if (formatObj instanceof FormattedXMLDataIOStyle) { return ((FormattedXMLDataIOStyle) formatObj).addFormatCommand(skipObj); } else if ( formatObj instanceof RepeatFormattedIOCmd ) { return ((RepeatFormattedIOCmd) formatObj).addFormatCommand(skipObj); } else { Log.warnln("Warning: cant add SkipCharFormattedIOCmd object to parent, ignoring request "); } return (Object) null; }
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !DataIOStyleAttribs.isEmpty()) { // FormattedXMLDataIOStyle readObj = new FormattedXMLDataIOStyle(CurrentArray); FormattedXMLDataIOStyle readObj = new FormattedXMLDataIOStyle (CurrentArray, DataIOStyleAttribs); // readObj.setXMLAttributes(DataIOStyleAttribs); CurrentArray.setXMLDataIOStyle(readObj); DataIOStyleAttribs = new Hashtable(); // clear out table CurrentFormatObjectList.add(readObj); } // okey, now that that is taken care off, we will go // get the current format (read) object, and add the readCell // command to it. Object formatObj = (Object) CurrentFormatObjectList.get(CurrentFormatObjectList.size()-1); SkipCharFormattedIOCmd skipObj = new SkipCharFormattedIOCmd(); skipObj.setXMLAttributes(attrs); if (formatObj instanceof FormattedXMLDataIOStyle) { return ((FormattedXMLDataIOStyle) formatObj).addFormatCommand(skipObj); } else if ( formatObj instanceof RepeatFormattedIOCmd ) { return ((RepeatFormattedIOCmd) formatObj).addFormatCommand(skipObj); } else { Log.warnln("Warning: cant add SkipCharFormattedIOCmd object to parent, ignoring request "); } return (Object) null; }
10,006
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !DataIOStyleAttribs.isEmpty()) { // FormattedXMLDataIOStyle readObj = new FormattedXMLDataIOStyle(CurrentArray); FormattedXMLDataIOStyle readObj = new FormattedXMLDataIOStyle (CurrentArray, DataIOStyleAttribs); // readObj.setXMLAttributes(DataIOStyleAttribs); CurrentArray.setXMLDataIOStyle(readObj); DataIOStyleAttribs = new Hashtable(); // clear out table CurrentFormatObjectList.add(readObj); } // okey, now that that is taken care off, we will go // get the current format (read) object, and add the readCell // command to it. Object formatObj = (Object) CurrentFormatObjectList.get(CurrentFormatObjectList.size()-1); SkipCharFormattedIOCmd skipObj = new SkipCharFormattedIOCmd(); skipObj.setXMLAttributes(attrs); if (formatObj instanceof FormattedXMLDataIOStyle) { return ((FormattedXMLDataIOStyle) formatObj).addFormatCommand(skipObj); } else if ( formatObj instanceof RepeatFormattedIOCmd ) { return ((RepeatFormattedIOCmd) formatObj).addFormatCommand(skipObj); } else { Log.warnln("Warning: cant add SkipCharFormattedIOCmd object to parent, ignoring request "); } return (Object) null; }
publicObjectaction(SaxDocumentHandlerhandler,AttributeListattrs){//ifthisisstilldefined,wehaventinit'dan//XMLDataIOStyleobjectforthisarrayyet,doitnow.if(!DataIOStyleAttribs.isEmpty()){//FormattedXMLDataIOStylereadObj=newFormattedXMLDataIOStyle(CurrentArray);FormattedXMLDataIOStylereadObj=newFormattedXMLDataIOStyle(CurrentArray,DataIOStyleAttribs);//readObj.setXMLAttributes(DataIOStyleAttribs);CurrentArray.setXMLDataIOStyle(readObj);DataIOStyleAttribs=newHashtable();//clearouttableCurrentFormatObjectList.add(readObj);}//okey,nowthatthatistakencareoff,wewillgo//getthecurrentformat(read)object,andaddthereadCell//commandtoit.ObjectformatObj=(Object)CurrentFormatObjectList.get(CurrentFormatObjectList.size()-1);SkipCharFormattedIOCmdskipObj=newSkipCharFormattedIOCmd();skipObj.setXMLAttributes(attrs);if(formatObjinstanceofFormattedXMLDataIOStyle){return((FormattedXMLDataIOStyle)formatObj).addFormatCommand(skipObj);}elseif(formatObjinstanceofRepeatFormattedIOCmd){return((RepeatFormattedIOCmd)formatObj).addFormatCommand(skipObj);}else{Log.warnln("Warning:cantaddSkipCharFormattedIOCmdobjecttoparent,ignoringrequest");}return(Object)null;}
10,007
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !DataIOStyleAttribs.isEmpty()) { // FormattedXMLDataIOStyle readObj = new FormattedXMLDataIOStyle(CurrentArray); FormattedXMLDataIOStyle readObj = new FormattedXMLDataIOStyle (CurrentArray, DataIOStyleAttribs); // readObj.setXMLAttributes(DataIOStyleAttribs); CurrentArray.setXMLDataIOStyle(readObj); DataIOStyleAttribs = new Hashtable(); // clear out table CurrentFormatObjectList.add(readObj); } // okey, now that that is taken care off, we will go // get the current format (read) object, and add the readCell // command to it. Object formatObj = (Object) CurrentFormatObjectList.get(CurrentFormatObjectList.size()-1); SkipCharFormattedIOCmd skipObj = new SkipCharFormattedIOCmd(); skipObj.setXMLAttributes(attrs); if (formatObj instanceof FormattedXMLDataIOStyle) { return ((FormattedXMLDataIOStyle) formatObj).addFormatCommand(skipObj); } else if ( formatObj instanceof RepeatFormattedIOCmd ) { return ((RepeatFormattedIOCmd) formatObj).addFormatCommand(skipObj); } else { Log.warnln("Warning: cant add SkipCharFormattedIOCmd object to parent, ignoring request "); } return (Object) null; }
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !DataIOStyleAttribs.isEmpty()) { // FormattedXMLDataIOStyle readObj = new FormattedXMLDataIOStyle(CurrentArray); FormattedXMLDataIOStyle readObj = new FormattedXMLDataIOStyle (CurrentArray, DataIOStyleAttribs); // readObj.setXMLAttributes(DataIOStyleAttribs); CurrentArray.setXMLDataIOStyle(readObj); String readId = readObj.getReadId(); if (readId != null) { if (ReadObj.containsKey(readId)) Log.warnln("More than one read node with readId=\""+readId+"\", using latest node." ); ReadObj.put(readId, readObj); } DataIOStyleAttribs.clear(); // clear out table CurrentFormatObjectList.add(readObj); } // okey, now that that is taken care off, we will go // get the current format (read) object, and add the readCell // command to it. Object formatObj = (Object) CurrentFormatObjectList.get(CurrentFormatObjectList.size()-1); SkipCharFormattedIOCmd skipObj = new SkipCharFormattedIOCmd(); skipObj.setXMLAttributes(attrs); if (formatObj instanceof FormattedXMLDataIOStyle) { return ((FormattedXMLDataIOStyle) formatObj).addFormatCommand(skipObj); } else if ( formatObj instanceof RepeatFormattedIOCmd ) { return ((RepeatFormattedIOCmd) formatObj).addFormatCommand(skipObj); } else { Log.warnln("Warning: cant add SkipCharFormattedIOCmd object to parent, ignoring request "); } return (Object) null; }
10,008
public void action (SaxDocumentHandler handler) { // generate valuelist values from algoritm IF we need to // (e.g. values where'nt in a delimited cdata list) // check to see if we didnt alrealy parse from a delmited string. if ( ((String) CurrentValueListParameter.get("isDelimitedCase")).equals("true") ) return; // we already did the list, leave here // 1. grab parent node name String parentNodeName = (String) CurrentValueListParameter.get("parentNodeName"); // 2. try to determine values from attributes (e.g. algorithm method) ArrayList values = getValueListNodeValues(); // 3. Populate correct parent node w/ values if(values.size() > 0 ) { // needed safety? ArrayList valueObjList = new ArrayList(); if( parentNodeName.equals(XDFNodeName.AXIS) ) { // get the last axis List axisList = (List) CurrentArray.getAxisList(); Axis lastAxisObject = (Axis) axisList.get(axisList.size()-1); Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(lastAxisObject.addAxisValue(value)); } } else if ( parentNodeName.equals(XDFNodeName.VALUEGROUP) ) {/* ValueGroup lastValueGroup = (ValueGroup) CurrentValueGroupList.get(CurrentValueGroupList.size()-1); newvalueGroup = lastValueGroup.addValueGroup(newvalueGroup);*/ if ( LastValueGroupParentObject instanceof Parameter ) { Parameter myParamObject = (Parameter) LastValueGroupParentObject; Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(myParamObject.addValue(value)); } } else if ( LastValueGroupParentObject instanceof Axis ) { // get the last axis Axis myAxisObject = (Axis) LastValueGroupParentObject; Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(myAxisObject.addAxisValue(value)); } } else { Log.warnln("Error: unknown valueGroupParent "+LastValueGroupParentObject+ " cant treat for "+XDFNodeName.VALUELIST); return; // bail } } else if ( parentNodeName.equals(XDFNodeName.PARAMETER) ) { Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(LastParameterObject.addValue(value)); } } else { Log.errorln("Error: weird parent node "+parentNodeName+" for "+XDFNodeName.VALUELIST); System.exit(-1); // fatal error, shut down } }// Need to do something wi/ ValueObjList HERE }
public void action (SaxDocumentHandler handler) { // generate valuelist values from algoritm IF we need to // (e.g. values where'nt in a delimited cdata list) // check to see if we didnt alrealy parse from a delmited string. if ( ((String) CurrentValueListParameter.get("isDelimitedCase")).equals("true") ) return; // we already did the list, leave here // 1. grab parent node name String parentNodeName = (String) CurrentValueListParameter.get("parentNodeName"); // 2. try to determine values from attributes (e.g. algorithm method) ArrayList values = getValueListNodeValues(); // 3. Populate correct parent node w/ values if(values.size() > 0 ) { // needed safety? ArrayList valueObjList = new ArrayList(); if( parentNodeName.equals(XDFNodeName.AXIS) ) { // get the last axis List axisList = (List) CurrentArray.getAxisList(); Axis lastAxisObject = (Axis) axisList.get(axisList.size()-1); Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(lastAxisObject.addAxisValue(value)); } } else if ( parentNodeName.equals(XDFNodeName.VALUEGROUP) ) {/* ValueGroup lastValueGroup = (ValueGroup) CurrentValueGroupList.get(CurrentValueGroupList.size()-1); newvalueGroup = lastValueGroup.addValueGroup(newvalueGroup);*/ if ( LastValueGroupParentObject instanceof Parameter ) { Parameter myParamObject = (Parameter) LastValueGroupParentObject; Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(myParamObject.addValue(value)); } } else if ( LastValueGroupParentObject instanceof Axis ) { // get the last axis Axis myAxisObject = (Axis) LastValueGroupParentObject; Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(myAxisObject.addAxisValue(value)); } } else { Log.warnln("Error: unknown valueGroupParent "+LastValueGroupParentObject+ " cant treat for "+XDFNodeName.VALUELIST); return; // bail } } else if ( parentNodeName.equals(XDFNodeName.PARAMETER) ) { Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(LastParameterObject.addValue(value)); } } else { Log.errorln("Error: weird parent node "+parentNodeName+" for "+XDFNodeName.VALUELIST); System.exit(-1); // fatal error, shut down } }// Need to do something wi/ ValueObjList HERE }
10,010
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // 1. re-init CurrentValueListParameter = new Hashtable(); // 2. populate ValueListparameters w/ parent name String parentNodeName = getParentNodeName(); CurrentValueListParameter.put("parentNodeName", parentNodeName); // 3. populate ValueListparameters from attribute list int size = attrs.getLength(); for (int i = 0; i < size; i++) { String value; if ((value = attrs.getValue(i)) != null) CurrentValueListParameter.put(attrs.getName(i), value); } // 4. set this parameter to false to indicate the future is not // yet determined for this :) CurrentValueListParameter.put("isDelimitedCase", "false"); return (Object) null; }
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // 1. re-init CurrentValueListParameter.clear(); // 2. populate ValueListparameters w/ parent name String parentNodeName = getParentNodeName(); CurrentValueListParameter.put("parentNodeName", parentNodeName); // 3. populate ValueListparameters from attribute list int size = attrs.getLength(); for (int i = 0; i < size; i++) { String value; if ((value = attrs.getValue(i)) != null) CurrentValueListParameter.put(attrs.getName(i), value); } // 4. set this parameter to false to indicate the future is not // yet determined for this :) CurrentValueListParameter.put("isDelimitedCase", "false"); return (Object) null; }
10,011
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // 1. re-init CurrentValueListParameter = new Hashtable(); // 2. populate ValueListparameters w/ parent name String parentNodeName = getParentNodeName(); CurrentValueListParameter.put("parentNodeName", parentNodeName); // 3. populate ValueListparameters from attribute list int size = attrs.getLength(); for (int i = 0; i < size; i++) { String value; if ((value = attrs.getValue(i)) != null) CurrentValueListParameter.put(attrs.getName(i), value); } // 4. set this parameter to false to indicate the future is not // yet determined for this :) CurrentValueListParameter.put("isDelimitedCase", "false"); return (Object) null; }
CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); public CurrentValueListParameter = attribListToHashtable(attrs); Object CurrentValueListParameter = attribListToHashtable(attrs); action CurrentValueListParameter = attribListToHashtable(attrs); (SaxDocumentHandler CurrentValueListParameter = attribListToHashtable(attrs); handler, CurrentValueListParameter = attribListToHashtable(attrs); AttributeList CurrentValueListParameter = attribListToHashtable(attrs); attrs) CurrentValueListParameter = attribListToHashtable(attrs); { CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); // CurrentValueListParameter = attribListToHashtable(attrs); 1. CurrentValueListParameter = attribListToHashtable(attrs); re-init CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter CurrentValueListParameter = attribListToHashtable(attrs); = CurrentValueListParameter = attribListToHashtable(attrs); new CurrentValueListParameter = attribListToHashtable(attrs); Hashtable(); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); // CurrentValueListParameter = attribListToHashtable(attrs); 2. CurrentValueListParameter = attribListToHashtable(attrs); populate CurrentValueListParameter = attribListToHashtable(attrs); ValueListparameters CurrentValueListParameter = attribListToHashtable(attrs); w/ CurrentValueListParameter = attribListToHashtable(attrs); parent CurrentValueListParameter = attribListToHashtable(attrs); name CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); String CurrentValueListParameter = attribListToHashtable(attrs); parentNodeName CurrentValueListParameter = attribListToHashtable(attrs); = CurrentValueListParameter = attribListToHashtable(attrs); getParentNodeName(); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter.put("parentNodeName", CurrentValueListParameter = attribListToHashtable(attrs); parentNodeName); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); // CurrentValueListParameter = attribListToHashtable(attrs); 3. CurrentValueListParameter = attribListToHashtable(attrs); populate CurrentValueListParameter = attribListToHashtable(attrs); ValueListparameters CurrentValueListParameter = attribListToHashtable(attrs); from CurrentValueListParameter = attribListToHashtable(attrs); attribute CurrentValueListParameter = attribListToHashtable(attrs); list CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); int CurrentValueListParameter = attribListToHashtable(attrs); size CurrentValueListParameter = attribListToHashtable(attrs); = CurrentValueListParameter = attribListToHashtable(attrs); attrs.getLength(); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); for CurrentValueListParameter = attribListToHashtable(attrs); (int CurrentValueListParameter = attribListToHashtable(attrs); i CurrentValueListParameter = attribListToHashtable(attrs); = CurrentValueListParameter = attribListToHashtable(attrs); 0; CurrentValueListParameter = attribListToHashtable(attrs); i CurrentValueListParameter = attribListToHashtable(attrs); < CurrentValueListParameter = attribListToHashtable(attrs); size; CurrentValueListParameter = attribListToHashtable(attrs); i++) CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); { CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); String CurrentValueListParameter = attribListToHashtable(attrs); value; CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); if CurrentValueListParameter = attribListToHashtable(attrs); ((value CurrentValueListParameter = attribListToHashtable(attrs); = CurrentValueListParameter = attribListToHashtable(attrs); attrs.getValue(i)) CurrentValueListParameter = attribListToHashtable(attrs); != CurrentValueListParameter = attribListToHashtable(attrs); null) CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter.put(attrs.getName(i), CurrentValueListParameter = attribListToHashtable(attrs); value); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); } CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); // CurrentValueListParameter = attribListToHashtable(attrs); 4. CurrentValueListParameter = attribListToHashtable(attrs); set CurrentValueListParameter = attribListToHashtable(attrs); this CurrentValueListParameter = attribListToHashtable(attrs); parameter CurrentValueListParameter = attribListToHashtable(attrs); to CurrentValueListParameter = attribListToHashtable(attrs); false CurrentValueListParameter = attribListToHashtable(attrs); to CurrentValueListParameter = attribListToHashtable(attrs); indicate CurrentValueListParameter = attribListToHashtable(attrs); the CurrentValueListParameter = attribListToHashtable(attrs); future CurrentValueListParameter = attribListToHashtable(attrs); is CurrentValueListParameter = attribListToHashtable(attrs); not CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); // CurrentValueListParameter = attribListToHashtable(attrs); yet CurrentValueListParameter = attribListToHashtable(attrs); determined CurrentValueListParameter = attribListToHashtable(attrs); for CurrentValueListParameter = attribListToHashtable(attrs); this CurrentValueListParameter = attribListToHashtable(attrs); :) CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter.put("isDelimitedCase", CurrentValueListParameter = attribListToHashtable(attrs); "false"); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); return CurrentValueListParameter = attribListToHashtable(attrs); (Object) CurrentValueListParameter = attribListToHashtable(attrs); null; CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); }
10,012
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // 1. re-init CurrentValueListParameter = new Hashtable(); // 2. populate ValueListparameters w/ parent name String parentNodeName = getParentNodeName(); CurrentValueListParameter.put("parentNodeName", parentNodeName); // 3. populate ValueListparameters from attribute list int size = attrs.getLength(); for (int i = 0; i < size; i++) { String value; if ((value = attrs.getValue(i)) != null) CurrentValueListParameter.put(attrs.getName(i), value); } // 4. set this parameter to false to indicate the future is not // yet determined for this :) CurrentValueListParameter.put("isDelimitedCase", "false"); return (Object) null; }
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // 1. re-init CurrentValueListParameter = new Hashtable(); // 2. populate ValueListparameters w/ parent name String parentNodeName = getParentNodeName(); CurrentValueListParameter.put("parentNodeName", parentNodeName); // 3. populate ValueListparameters from attribute list int size = attrs.getLength(); for (int i = 0; i < size; i++) { String value; if ((value = attrs.getValue(i)) != null) CurrentValueListParameter.put(attrs.getName(i), value); } // 4. set this parameter to false to indicate the future is not // yet determined for this :) CurrentValueListParameter.put("isDelimitedCase", "false"); return (Object) null; }
10,013
private void initStartHandlerHashtable () { startElementHandlerHashtable.put(XDFNodeName.ARRAY, new arrayStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.AXIS, new axisStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.AXISUNITS, new nullStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.BINARYFLOAT, new binaryFloatFieldStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.BINARYINTEGER, new binaryIntegerFieldStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.DATA, new dataStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.DATAFORMAT, new dataFormatStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.EXPONENT, new exponentFieldStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.FIELD, new fieldStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.FIELDAXIS, new fieldAxisStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.FIELDRELATIONSHIP, new fieldRelationshipStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.FIXED, new fixedFieldStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.FORNODE, new forStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.FIELDGROUP, new fieldGroupStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.INDEX, new noteIndexStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.INTEGER, new integerFieldStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.LOCATIONORDER, new nullStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.NOTE, new noteStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.NOTES, new notesStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.PARAMETER, new parameterStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.PARAMETERGROUP, new parameterGroupStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.READ, new readStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.READCELL, new readCellStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.REPEAT, new repeatStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.ROOT, new rootStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.SKIPCHAR, new skipCharStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.STRING, new stringFieldStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.STRUCTURE, new structureStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.TAGTOAXIS, new tagToAxisStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.TD0, new dataTagStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.TD1, new dataTagStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.TD2, new dataTagStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.TD3, new dataTagStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.TD4, new dataTagStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.TD5, new dataTagStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.TD6, new dataTagStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.TD7, new dataTagStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.TD8, new dataTagStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.TEXTDELIMITER, new asciiDelimiterStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.UNIT, new unitStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.UNITS, new nullStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.UNITLESS, new nullStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.VALUE, new nullStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.VALUEGROUP, new valueGroupStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.VALUELIST, new valueListStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.VECTOR, new vectorStartElementHandlerFunc()); }
private void initStartHandlerHashtable () { startElementHandlerHashtable.put(XDFNodeName.ARRAY, new arrayStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.AXIS, new axisStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.AXISUNITS, new nullStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.BINARYFLOAT, new binaryFloatFieldStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.BINARYINTEGER, new binaryIntegerFieldStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.DATA, new dataStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.DATAFORMAT, new dataFormatStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.EXPONENT, new exponentFieldStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.FIELD, new fieldStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.FIELDAXIS, new fieldAxisStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.FIELDRELATIONSHIP, new fieldRelationshipStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.FIXED, new fixedFieldStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.FORNODE, new forStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.FIELDGROUP, new fieldGroupStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.INDEX, new noteIndexStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.INTEGER, new integerFieldStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.LOCATIONORDER, new nullStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.NOTE, new noteStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.NOTES, new notesStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.PARAMETER, new parameterStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.PARAMETERGROUP, new parameterGroupStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.READ, new readStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.READCELL, new readCellStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.REPEAT, new repeatStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.ROOT, new rootStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.SKIPCHAR, new skipCharStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.STRING, new stringFieldStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.STRUCTURE, new structureStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.TAGTOAXIS, new tagToAxisStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.TD0, new dataTagStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.TD1, new dataTagStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.TD2, new dataTagStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.TD3, new dataTagStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.TD4, new dataTagStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.TD5, new dataTagStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.TD6, new dataTagStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.TD7, new dataTagStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.TD8, new dataTagStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.TEXTDELIMITER, new asciiDelimiterStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.UNIT, new unitStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.UNITS, new nullStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.UNITLESS, new nullStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.VALUE, new valueStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.VALUEGROUP, new valueGroupStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.VALUELIST, new valueListStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.VECTOR, new vectorStartElementHandlerFunc()); }
10,014
private void createAccessPanel() { accessOptions = new TN5250jMultiSelectList(); if (props.getProperty("emul.accessDigest") != null) accessOptions.setEnabled(false); Vector options = OptionAccessFactory.getInstance().getOptions(); // set up a hashtable of option descriptions to options Hashtable ht = new Hashtable(options.size()); for (int x = 0; x < options.size(); x++) { ht.put(LangTool.getString("key." + options.get(x)), options.get(x)); } // get the sorted descriptions of the options Vector descriptions = OptionAccessFactory.getInstance().getOptionDescriptions(); // set the option descriptions accessOptions.setListData(descriptions); // we now mark the invalid options int num = OptionAccessFactory.getInstance().getNumberOfRestrictedOptions(); int[] si = new int[num]; int i = 0; for (int x = 0; x < descriptions.size(); x++) { if (!OptionAccessFactory .getInstance() .isValidOption((String) ht.get(descriptions.get(x)))) si[i++] = x; } accessOptions.setSelectedIndices(si); accessOptions.setSourceHeader(LangTool.getString("ss.labelActive") ,JLabel.CENTER); accessOptions.setSelectionHeader(LangTool.getString("ss.labelRestricted") ,JLabel.CENTER); // create emulator options panel accessPanel.setLayout(new BorderLayout()); accessPanel.setBorder(BorderFactory.createEmptyBorder(5, 10, 10, 5)); accessPanel.add(accessOptions, BorderLayout.CENTER); JPanel passPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 10, 10)); Action action = new AbstractAction(LangTool.getString("ss.labelSetPass")) { public void actionPerformed(ActionEvent e) { if (password.getPassword().length > 0) { try { DESSHA1 sha = new DESSHA1(); props.setProperty( "emul.accessDigest", sha.digest( new String(password.getPassword()), "tn5205j")); } catch (Exception ex) { } } } }; setPassButton = new JButton(action); setPassButton.setPreferredSize(new Dimension(150, 27)); if (props.getProperty("emul.accessDigest") != null) setPassButton.setEnabled(false); passPanel.add(setPassButton); password = new JPasswordField(15); password.setDocument(new CheckPasswordDocument()); password.setPreferredSize(new Dimension(password.getWidth(), 27)); passPanel.add(password); accessPanel.add(passPanel, BorderLayout.NORTH); }
private void createAccessPanel() { accessOptions = new TN5250jMultiSelectList(); if (props.getProperty("emul.accessDigest") != null) accessOptions.setEnabled(false); Vector options = OptionAccessFactory.getInstance().getOptions(); // set up a hashtable of option descriptions to options Hashtable ht = new Hashtable(options.size()); for (int x = 0; x < options.size(); x++) { ht.put(LangTool.getString("key." + options.get(x)), options.get(x)); } // get the sorted descriptions of the options Vector descriptions = OptionAccessFactory.getInstance().getOptionDescriptions(); // set the option descriptions accessOptions.setListData(descriptions); // we now mark the invalid options int num = OptionAccessFactory.getInstance().getNumberOfRestrictedOptions(); int[] si = new int[num]; int i = 0; for (int x = 0; x < descriptions.size(); x++) { if (!OptionAccessFactory .getInstance() .isValidOption((String) ht.get(descriptions.get(x)))) si[i++] = x; } accessOptions.setSelectedIndices(si); accessOptions.setSourceHeader(LangTool.getString("ss.labelActive") ,JLabel.CENTER); accessOptions.setSelectionHeader(LangTool.getString("ss.labelRestricted") ,JLabel.CENTER); // create emulator options panel accessPanel.setLayout(new BorderLayout()); accessPanel.setBorder(BorderFactory.createEmptyBorder(5, 10, 10, 5)); accessPanel.add(accessOptions, BorderLayout.CENTER); JPanel passPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 10, 10)); Action action = new AbstractAction(LangTool.getString("ss.labelSetPass")) { public void actionPerformed(ActionEvent e) { if (password.getPassword().length > 0) { try { DESSHA1 sha = new DESSHA1(); props.setProperty( "emul.accessDigest", sha.digest( new String(password.getPassword()), "tn5205j")); } catch (Exception ex) { } } } }; setPassButton = new JButton(action); setPassButton.setPreferredSize(new Dimension(150, 27)); if (props.getProperty("emul.accessDigest") != null) setPassButton.setEnabled(false); passPanel.add(setPassButton); password = new JPasswordField(15); password.setDocument(new CheckPasswordDocument()); password.setPreferredSize(new Dimension(password.getWidth(), 27)); passPanel.add(password); accessPanel.add(passPanel, BorderLayout.NORTH); }
10,015
private void createAccessPanel() { accessOptions = new TN5250jMultiSelectList(); if (props.getProperty("emul.accessDigest") != null) accessOptions.setEnabled(false); Vector options = OptionAccessFactory.getInstance().getOptions(); // set up a hashtable of option descriptions to options Hashtable ht = new Hashtable(options.size()); for (int x = 0; x < options.size(); x++) { ht.put(LangTool.getString("key." + options.get(x)), options.get(x)); } // get the sorted descriptions of the options Vector descriptions = OptionAccessFactory.getInstance().getOptionDescriptions(); // set the option descriptions accessOptions.setListData(descriptions); // we now mark the invalid options int num = OptionAccessFactory.getInstance().getNumberOfRestrictedOptions(); int[] si = new int[num]; int i = 0; for (int x = 0; x < descriptions.size(); x++) { if (!OptionAccessFactory .getInstance() .isValidOption((String) ht.get(descriptions.get(x)))) si[i++] = x; } accessOptions.setSelectedIndices(si); accessOptions.setSourceHeader(LangTool.getString("ss.labelActive") ,JLabel.CENTER); accessOptions.setSelectionHeader(LangTool.getString("ss.labelRestricted") ,JLabel.CENTER); // create emulator options panel accessPanel.setLayout(new BorderLayout()); accessPanel.setBorder(BorderFactory.createEmptyBorder(5, 10, 10, 5)); accessPanel.add(accessOptions, BorderLayout.CENTER); JPanel passPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 10, 10)); Action action = new AbstractAction(LangTool.getString("ss.labelSetPass")) { public void actionPerformed(ActionEvent e) { if (password.getPassword().length > 0) { try { DESSHA1 sha = new DESSHA1(); props.setProperty( "emul.accessDigest", sha.digest( new String(password.getPassword()), "tn5205j")); } catch (Exception ex) { } } } }; setPassButton = new JButton(action); setPassButton.setPreferredSize(new Dimension(150, 27)); if (props.getProperty("emul.accessDigest") != null) setPassButton.setEnabled(false); passPanel.add(setPassButton); password = new JPasswordField(15); password.setDocument(new CheckPasswordDocument()); password.setPreferredSize(new Dimension(password.getWidth(), 27)); passPanel.add(password); accessPanel.add(passPanel, BorderLayout.NORTH); }
private void createAccessPanel() { accessOptions = new TN5250jMultiSelectList(); if (props.getProperty("emul.accessDigest") != null) accessOptions.setEnabled(false); Vector options = OptionAccessFactory.getInstance().getOptions(); // set up a hashtable of option descriptions to options Hashtable ht = new Hashtable(options.size()); for (int x = 0; x < options.size(); x++) { ht.put(LangTool.getString("key." + options.get(x)), options.get(x)); } // get the sorted descriptions of the options Vector descriptions = OptionAccessFactory.getInstance().getOptionDescriptions(); // set the option descriptions accessOptions.setListData(descriptions); // we now mark the invalid options int num = OptionAccessFactory.getInstance().getNumberOfRestrictedOptions(); int[] si = new int[num]; int i = 0; for (int x = 0; x < descriptions.size(); x++) { if (!OptionAccessFactory .getInstance() .isValidOption((String) ht.get(descriptions.get(x)))) si[i++] = x; } accessOptions.setSelectedIndices(si); accessOptions.setSourceHeader(LangTool.getString("ss.labelActive") ,JLabel.CENTER); accessOptions.setSelectionHeader(LangTool.getString("ss.labelRestricted") ,JLabel.CENTER); // create emulator options panel accessPanel.setLayout(new BorderLayout()); accessPanel.setBorder(BorderFactory.createEmptyBorder(5, 10, 10, 5)); accessPanel.add(accessOptions, BorderLayout.CENTER); JPanel passPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 10, 10)); Action action = new AbstractAction(LangTool.getString("ss.labelSetPass")) { public void actionPerformed(ActionEvent e) { if (password.getPassword().length > 0) { try { DESSHA1 sha = new DESSHA1(); props.setProperty( "emul.accessDigest", sha.digest( new String(password.getPassword()), "tn5205j")); } catch (Exception ex) { } } } }; setPassButton = new JButton(action); setPassButton.setPreferredSize(new Dimension(150, 27)); if (props.getProperty("emul.accessDigest") != null) setPassButton.setEnabled(false); passPanel.add(setPassButton); password = new JPasswordField(15); password.setDocument(new CheckPasswordDocument()); password.setPreferredSize(new Dimension(password.getWidth(), 27)); passPanel.add(password); accessPanel.add(passPanel, BorderLayout.NORTH); }
10,016
private void createAccessPanel() { accessOptions = new TN5250jMultiSelectList(); if (props.getProperty("emul.accessDigest") != null) accessOptions.setEnabled(false); Vector options = OptionAccessFactory.getInstance().getOptions(); // set up a hashtable of option descriptions to options Hashtable ht = new Hashtable(options.size()); for (int x = 0; x < options.size(); x++) { ht.put(LangTool.getString("key." + options.get(x)), options.get(x)); } // get the sorted descriptions of the options Vector descriptions = OptionAccessFactory.getInstance().getOptionDescriptions(); // set the option descriptions accessOptions.setListData(descriptions); // we now mark the invalid options int num = OptionAccessFactory.getInstance().getNumberOfRestrictedOptions(); int[] si = new int[num]; int i = 0; for (int x = 0; x < descriptions.size(); x++) { if (!OptionAccessFactory .getInstance() .isValidOption((String) ht.get(descriptions.get(x)))) si[i++] = x; } accessOptions.setSelectedIndices(si); accessOptions.setSourceHeader(LangTool.getString("ss.labelActive") ,JLabel.CENTER); accessOptions.setSelectionHeader(LangTool.getString("ss.labelRestricted") ,JLabel.CENTER); // create emulator options panel accessPanel.setLayout(new BorderLayout()); accessPanel.setBorder(BorderFactory.createEmptyBorder(5, 10, 10, 5)); accessPanel.add(accessOptions, BorderLayout.CENTER); JPanel passPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 10, 10)); Action action = new AbstractAction(LangTool.getString("ss.labelSetPass")) { public void actionPerformed(ActionEvent e) { if (password.getPassword().length > 0) { try { DESSHA1 sha = new DESSHA1(); props.setProperty( "emul.accessDigest", sha.digest( new String(password.getPassword()), "tn5205j")); } catch (Exception ex) { } } } }; setPassButton = new JButton(action); setPassButton.setPreferredSize(new Dimension(150, 27)); if (props.getProperty("emul.accessDigest") != null) setPassButton.setEnabled(false); passPanel.add(setPassButton); password = new JPasswordField(15); password.setDocument(new CheckPasswordDocument()); password.setPreferredSize(new Dimension(password.getWidth(), 27)); passPanel.add(password); accessPanel.add(passPanel, BorderLayout.NORTH); }
private void createAccessPanel() { accessOptions = new TN5250jMultiSelectList(); if (props.getProperty("emul.accessDigest") != null) accessOptions.setEnabled(false); Vector options = OptionAccessFactory.getInstance().getOptions(); // set up a hashtable of option descriptions to options Hashtable ht = new Hashtable(options.size()); for (int x = 0; x < options.size(); x++) { ht.put(LangTool.getString("key." + options.get(x)), options.get(x)); } // get the sorted descriptions of the options Vector descriptions = OptionAccessFactory.getInstance().getOptionDescriptions(); // set the option descriptions accessOptions.setListData(descriptions); // we now mark the invalid options int num = OptionAccessFactory.getInstance().getNumberOfRestrictedOptions(); int[] si = new int[num]; int i = 0; for (int x = 0; x < descriptions.size(); x++) { if (!OptionAccessFactory .getInstance() .isValidOption((String) ht.get(descriptions.get(x)))) si[i++] = x; } accessOptions.setSelectedIndices(si); accessOptions.setSourceHeader(LangTool.getString("ss.labelActive") ,JLabel.CENTER); accessOptions.setSelectionHeader(LangTool.getString("ss.labelRestricted") ,JLabel.CENTER); // create emulator options panel accessPanel.setLayout(new BorderLayout()); accessPanel.setBorder(BorderFactory.createEmptyBorder(5, 10, 10, 5)); accessPanel.add(accessOptions, BorderLayout.CENTER); JPanel passPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 10, 10)); Action action = new AbstractAction(LangTool.getString("ss.labelSetPass")) { public void actionPerformed(ActionEvent e) { if (password.getPassword().length > 0) { try { DESSHA1 sha = new DESSHA1(); props.setProperty( "emul.accessDigest", sha.digest( new String(password.getPassword()), "tn5205j")); } catch (Exception ex) { } } } }; setPassButton = new JButton(action); setPassButton.setPreferredSize(new Dimension(150, 27)); if (props.getProperty("emul.accessDigest") != null) setPassButton.setEnabled(false); passPanel.add(setPassButton); password = new JPasswordField(15); password.setDocument(new CheckPasswordDocument()); password.setPreferredSize(new Dimension(password.getWidth(), 27)); passPanel.add(password); accessPanel.add(passPanel, BorderLayout.NORTH); }
10,017
public DataFormat getDatatype() { return (DataFormat) ((XMLAttribute) attribHash.get("datatype")).getAttribValue(); }
public String getDatatype() { return (DataFormat) ((XMLAttribute) attribHash.get("datatype")).getAttribValue(); }
10,018
public DataFormat getDatatype() { return (DataFormat) ((XMLAttribute) attribHash.get("datatype")).getAttribValue(); }
public DataFormat getDatatype() { return (String) ((XMLAttribute) attribHash.get("datatype")).getAttribValue(); }
10,019
private void init() { classXDFNodeName = "parameter"; // order matters! these are in *reverse* order of their // occurence in the XDF DTD attribOrder.add(0,"noteList"); attribOrder.add(0,"valueList"); attribOrder.add(0,"units"); attribOrder.add(0,"datatype"); attribOrder.add(0,"paramIdRef"); attribOrder.add(0,"paramId"); attribOrder.add(0,"description"); attribOrder.add(0,"name"); //set up the attribute hashtable key with the default initial value attribHash.put("noteList", new XMLAttribute(Collections.synchronizedList(new ArrayList()), Constants.LIST_TYPE)); attribHash.put("valueList", new XMLAttribute(Collections.synchronizedList(new ArrayList()), Constants.LIST_TYPE)); attribHash.put("units", new XMLAttribute(null, Constants.OBJECT_TYPE)); attribHash.put("datatype", new XMLAttribute(null, Constants.STRING_TYPE)); attribHash.put("paramIdRef", new XMLAttribute(null, Constants.STRING_TYPE)); //double check k.z. attribHash.put("paramId", new XMLAttribute(null, Constants.STRING_TYPE)); attribHash.put("description", new XMLAttribute(null, Constants.STRING_TYPE)); attribHash.put("name", new XMLAttribute(null, Constants.STRING_TYPE)); };
private void init() { classXDFNodeName = "parameter"; // order matters! these are in *reverse* order of their // occurence in the XDF DTD attribOrder.add(0,"noteList"); attribOrder.add(0,"valueList"); attribOrder.add(0,"units"); attribOrder.add(0,"datatype"); attribOrder.add(0,"paramIdRef"); attribOrder.add(0,"paramId"); attribOrder.add(0,"description"); attribOrder.add(0,"name"); //set up the attribute hashtable key with the default initial value attribHash.put("noteList", new XMLAttribute(Collections.synchronizedList(new ArrayList()), Constants.LIST_TYPE)); attribHash.put("valueList", new XMLAttribute(Collections.synchronizedList(new ArrayList()), Constants.LIST_TYPE)); attribHash.put("units", new XMLAttribute(new Units(), Constants.OBJECT_TYPE)); attribHash.put("datatype", new XMLAttribute(null, Constants.STRING_TYPE)); attribHash.put("paramIdRef", new XMLAttribute(null, Constants.STRING_TYPE)); //double check k.z. attribHash.put("paramId", new XMLAttribute(null, Constants.STRING_TYPE)); attribHash.put("description", new XMLAttribute(null, Constants.STRING_TYPE)); attribHash.put("name", new XMLAttribute(null, Constants.STRING_TYPE)); };
10,020
public DataFormat setDatatype(DataFormat datatype) { return (DataFormat) ((XMLAttribute) attribHash.get("datatype")).setAttribValue(datatype); }
public String setDatatype(String strDatatype) { return (DataFormat) ((XMLAttribute) attribHash.get("datatype")).setAttribValue(datatype); }
10,021
public DataFormat setDatatype(DataFormat datatype) { return (DataFormat) ((XMLAttribute) attribHash.get("datatype")).setAttribValue(datatype); }
public DataFormat setDatatype(DataFormat datatype) { if (Utility.isValidDatatype(strDatatype)) return (String) ((XMLAttribute) attribHash.get("datatype")).setAttribValue(strDatatype); else return null; }
10,022
public static void main(String[] args) { int port = PORT; String iorf = null; try { // Create and initialize the ORB final OrbFunctional orb = new OrbFunctional(); if (args.length > 1) for (int i = 0; i < args.length - 1; i++) { if (args[i].endsWith("ORBInitialPort")) port = Integer.parseInt(args[i + 1]); if (args[i].equals("-ior")) iorf = args[i + 1]; } OrbFunctional.setPort(port); // Create the servant and register it with the ORB NamingContextExt namer = new Ext(new TransientContext()); // Case with the key "NameService". orb.connect(namer, "NameService".getBytes()); // Storing the IOR reference. String ior = orb.object_to_string(namer); IOR iorr = IOR.parse(ior); if (iorf != null) { FileOutputStream f = new FileOutputStream(iorf); PrintStream p = new PrintStream(f); p.print(ior); p.close(); } System.out.println("GNU Classpath transient naming service " + "started at " + iorr.Internet.host + ":" + iorr.Internet.port + " key 'NameService'.\n\n" + "Copyright (C) 2005 Free Software Foundation\n" + "This tool comes with ABSOLUTELY NO WARRANTY. " + "This is free software, and you are\nwelcome to " + "redistribute it under conditions, defined in " + "GNU Classpath license.\n\n" + ior); new Thread() { public void run() { // Wait for invocations from clients. orb.run(); } }.start(); } catch (Exception e) { System.err.println("ERROR: " + e); e.printStackTrace(System.out); } // Restore the default value for allocating ports for the subsequent // objects. OrbFunctional.setPort(OrbFunctional.DEFAULT_INITIAL_PORT); }
public static void main(String[] args) { int port = PORT; String iorf = null; try { // Create and initialize the ORB final OrbFunctional orb = new OrbFunctional(); if (args.length > 1) for (int i = 0; i < args.length - 1; i++) { if (args[i].endsWith("ORBInitialPort")) port = Integer.parseInt(args[i + 1]); if (args[i].equals("-ior")) iorf = args[i + 1]; } OrbFunctional.setPort(port); // Create the servant and register it with the ORB NamingContextExt namer = new Ext(new TransientContext()); // Case with the key "NameService". orb.connect(namer, "NameService".getBytes()); // Storing the IOR reference. String ior = orb.object_to_string(namer); IOR iorr = IOR.parse(ior); if (iorf != null) { FileOutputStream f = new FileOutputStream(iorf); PrintStream p = new PrintStream(f); p.print(ior); p.close(); } System.out.println("GNU Classpath transient naming service " + "started at " + iorr.Internet.host + ":" + iorr.Internet.port + " key 'NameService'.\n\n" + "Copyright (C) 2006 Free Software Foundation\n" + "This tool comes with ABSOLUTELY NO WARRANTY. " + "This is free software, and you are\nwelcome to " + "redistribute it under conditions, defined in " + "GNU Classpath license.\n\n" + ior); new Thread() { public void run() { // Wait for invocations from clients. orb.run(); } }.start(); } catch (Exception e) { System.err.println("ERROR: " + e); e.printStackTrace(System.out); } // Restore the default value for allocating ports for the subsequent // objects. OrbFunctional.setPort(OrbFunctional.DEFAULT_INITIAL_PORT); }
10,023
public void shutdownOutput() { throw new InternalError ("PlainSocketImpl::shutdownOutput not implemented"); }
public void shutdownOutput() throws IOException { throw new InternalError ("PlainSocketImpl::shutdownOutput not implemented"); }
10,033
protected void fireEditingCanceled() { CellEditorListener[] listeners = getCellEditorListeners(); for (int index = 0; index < listeners.length; index++) { listeners [index].editingCanceled (changeEvent); } }
protected void fireEditingCanceled() { CellEditorListener[] listeners = getCellEditorListeners(); for (int index = 0; index < listeners.length; index++) { listeners[index].editingCanceled(changeEvent); } }
10,036
protected void fireEditingStopped() { CellEditorListener[] listeners = getCellEditorListeners(); for (int index = 0; index < listeners.length; index++) { listeners [index].editingStopped (changeEvent); } }
protected void fireEditingStopped() { CellEditorListener[] listeners = getCellEditorListeners(); for (int index = 0; index < listeners.length; index++) { listeners[index].editingStopped(changeEvent); } }
10,037
public void drawCursor(Screen5250 s,int row, int col, int fmWidth, int fmHeight, boolean insertMode, int crossHair, int cursorSize, Color colorCursor, Color colorBg,Color colorWhite, Font font,int botOffset) {// synchronized (lock) { Graphics2D g2 = getDrawingArea();// if (g2 == null)// return;// botOffset = 4; switch (cursorSize) { case 0:// cursor.setRect(// fmWidth * (col),// (fmHeight * (row + 1)),// fmWidth,// 1// ); cursor.setRect( fmWidth * (col), (fmHeight * (row + 1)) - botOffset, fmWidth, 1 ); break; case 1: cursor.setRect( fmWidth * (col), (fmHeight * (row + 1) - fmHeight / 2), fmWidth, (fmHeight / 2) - botOffset ); break; case 2: cursor.setRect( fmWidth * (col), (fmHeight * row), fmWidth, fmHeight - botOffset );// cursor.setRect(// fmWidth * (col),// (fmHeight * row) - lm.getLeading()-5,// fmWidth,// fmHeight// ); break; } if (insertMode && cursorSize != 1) { cursor.setRect( fmWidth * (col), (fmHeight * (row + 1) - fmHeight / 2), fmWidth, (fmHeight / 2) - botOffset ); } Rectangle r = cursor.getBounds(); r.setSize(r.width,r.height); g2.setColor(colorCursor); g2.setXORMode(colorBg); g2.fill(cursor); s.updateImage(r); switch (crossHair) { case 1: // horizontal g2.drawLine(0,(fmHeight * (row + 1))- botOffset,bi.getWidth(null),(fmHeight * (row + 1))- botOffset); s.updateImage(0,fmHeight * (row + 1)- botOffset,bi.getWidth(null),1); break; case 2: // vertical g2.drawLine(r.x,0,r.x,bi.getHeight(null) - fmHeight - fmHeight); s.updateImage(r.x,0,1,bi.getHeight(null) - fmHeight - fmHeight); break; case 3: // horizontal & vertical g2.drawLine(0,(fmHeight * (row + 1))- botOffset,bi.getWidth(null),(fmHeight * (row + 1))- botOffset); g2.drawLine(r.x,0,r.x,bi.getHeight(null) - fmHeight - fmHeight); s.updateImage(0,(fmHeight * (row + 1)) - botOffset,bi.getWidth(null),1); s.updateImage(r.x,0,1,bi.getHeight(null) - fmHeight - fmHeight); break; } g2.dispose(); g2 = getWritingArea(font); g2.setPaint(colorBg); g2.fill(pArea); g2.setColor(colorWhite); g2.drawString((row + 1) + "/" + (col + 1) ,(float)pArea.getX(), (float)pArea.getY() + fmHeight); s.updateImage(pArea.getBounds()); g2.dispose(); // tell waiting threads to wake up// lock.notify();// } }
Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); publicGraphics2D g2 = getDrawingArea(); voidGraphics2D g2 = getDrawingArea(); drawCursor(Screen5250Graphics2D g2 = getDrawingArea(); s,intGraphics2D g2 = getDrawingArea(); row,Graphics2D g2 = getDrawingArea(); intGraphics2D g2 = getDrawingArea(); col,Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); intGraphics2D g2 = getDrawingArea(); fmWidth,Graphics2D g2 = getDrawingArea(); intGraphics2D g2 = getDrawingArea(); fmHeight,Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); booleanGraphics2D g2 = getDrawingArea(); insertMode,Graphics2D g2 = getDrawingArea(); intGraphics2D g2 = getDrawingArea(); crossHair,Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); intGraphics2D g2 = getDrawingArea(); cursorSize,Graphics2D g2 = getDrawingArea(); ColorGraphics2D g2 = getDrawingArea(); colorCursor,Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); ColorGraphics2D g2 = getDrawingArea(); colorBg,ColorGraphics2D g2 = getDrawingArea(); colorWhite,Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); FontGraphics2D g2 = getDrawingArea(); font,intGraphics2D g2 = getDrawingArea(); botOffset)Graphics2D g2 = getDrawingArea(); {//Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); synchronizedGraphics2D g2 = getDrawingArea(); (lock)Graphics2D g2 = getDrawingArea(); {Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2DGraphics2D g2 = getDrawingArea(); g2Graphics2D g2 = getDrawingArea(); =Graphics2D g2 = getDrawingArea(); getDrawingArea();//Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); ifGraphics2D g2 = getDrawingArea(); (g2Graphics2D g2 = getDrawingArea(); ==Graphics2D g2 = getDrawingArea(); null)//Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); return;//Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); botOffsetGraphics2D g2 = getDrawingArea(); =Graphics2D g2 = getDrawingArea(); 4;Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); switchGraphics2D g2 = getDrawingArea(); (cursorSize)Graphics2D g2 = getDrawingArea(); {Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); caseGraphics2D g2 = getDrawingArea(); 0://Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); cursor.setRect(//Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); fmWidthGraphics2D g2 = getDrawingArea(); *Graphics2D g2 = getDrawingArea(); (col),//Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); (fmHeightGraphics2D g2 = getDrawingArea(); *Graphics2D g2 = getDrawingArea(); (rowGraphics2D g2 = getDrawingArea(); +Graphics2D g2 = getDrawingArea(); 1)),//Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); fmWidth,//Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); 1//Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); );Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); cursor.setRect(Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); fmWidthGraphics2D g2 = getDrawingArea(); *Graphics2D g2 = getDrawingArea(); (col),Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); (fmHeightGraphics2D g2 = getDrawingArea(); *Graphics2D g2 = getDrawingArea(); (rowGraphics2D g2 = getDrawingArea(); +Graphics2D g2 = getDrawingArea(); 1))Graphics2D g2 = getDrawingArea(); -Graphics2D g2 = getDrawingArea(); botOffset,Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); fmWidth,Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); 1Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); );Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); break;Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); caseGraphics2D g2 = getDrawingArea(); 1:Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); cursor.setRect(Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); fmWidthGraphics2D g2 = getDrawingArea(); *Graphics2D g2 = getDrawingArea(); (col),Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); (fmHeightGraphics2D g2 = getDrawingArea(); *Graphics2D g2 = getDrawingArea(); (rowGraphics2D g2 = getDrawingArea(); +Graphics2D g2 = getDrawingArea(); 1)Graphics2D g2 = getDrawingArea(); -Graphics2D g2 = getDrawingArea(); fmHeightGraphics2D g2 = getDrawingArea(); /Graphics2D g2 = getDrawingArea(); 2),Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); fmWidth,Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); (fmHeightGraphics2D g2 = getDrawingArea(); /Graphics2D g2 = getDrawingArea(); 2)Graphics2D g2 = getDrawingArea(); -Graphics2D g2 = getDrawingArea(); botOffsetGraphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); );Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); break;Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); caseGraphics2D g2 = getDrawingArea(); 2:Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); cursor.setRect(Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); fmWidthGraphics2D g2 = getDrawingArea(); *Graphics2D g2 = getDrawingArea(); (col),Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); (fmHeightGraphics2D g2 = getDrawingArea(); *Graphics2D g2 = getDrawingArea(); row),Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); fmWidth,Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); fmHeightGraphics2D g2 = getDrawingArea(); -Graphics2D g2 = getDrawingArea(); botOffsetGraphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); );//Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); cursor.setRect(//Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); fmWidthGraphics2D g2 = getDrawingArea(); *Graphics2D g2 = getDrawingArea(); (col),//Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); (fmHeightGraphics2D g2 = getDrawingArea(); *Graphics2D g2 = getDrawingArea(); row)Graphics2D g2 = getDrawingArea(); -Graphics2D g2 = getDrawingArea(); lm.getLeading()-5,//Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); fmWidth,//Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); fmHeight//Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); );Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); break;Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); }Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); ifGraphics2D g2 = getDrawingArea(); (insertModeGraphics2D g2 = getDrawingArea(); &&Graphics2D g2 = getDrawingArea(); cursorSizeGraphics2D g2 = getDrawingArea(); !=Graphics2D g2 = getDrawingArea(); 1)Graphics2D g2 = getDrawingArea(); {Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); cursor.setRect(Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); fmWidthGraphics2D g2 = getDrawingArea(); *Graphics2D g2 = getDrawingArea(); (col),Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); (fmHeightGraphics2D g2 = getDrawingArea(); *Graphics2D g2 = getDrawingArea(); (rowGraphics2D g2 = getDrawingArea(); +Graphics2D g2 = getDrawingArea(); 1)Graphics2D g2 = getDrawingArea(); -Graphics2D g2 = getDrawingArea(); fmHeightGraphics2D g2 = getDrawingArea(); /Graphics2D g2 = getDrawingArea(); 2),Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); fmWidth,Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); (fmHeightGraphics2D g2 = getDrawingArea(); /Graphics2D g2 = getDrawingArea(); 2)Graphics2D g2 = getDrawingArea(); -Graphics2D g2 = getDrawingArea(); botOffsetGraphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); );Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); }Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); RectangleGraphics2D g2 = getDrawingArea(); rGraphics2D g2 = getDrawingArea(); =Graphics2D g2 = getDrawingArea(); cursor.getBounds();Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); r.setSize(r.width,r.height);Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); g2.setColor(colorCursor);Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); g2.setXORMode(colorBg);Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); g2.fill(cursor);Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); s.updateImage(r);Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); switchGraphics2D g2 = getDrawingArea(); (crossHair)Graphics2D g2 = getDrawingArea(); {Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); caseGraphics2D g2 = getDrawingArea(); 1:Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); //Graphics2D g2 = getDrawingArea(); horizontalGraphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); g2.drawLine(0,(fmHeightGraphics2D g2 = getDrawingArea(); *Graphics2D g2 = getDrawingArea(); (rowGraphics2D g2 = getDrawingArea(); +Graphics2D g2 = getDrawingArea(); 1))-Graphics2D g2 = getDrawingArea(); botOffset,bi.getWidth(null),(fmHeightGraphics2D g2 = getDrawingArea(); *Graphics2D g2 = getDrawingArea(); (rowGraphics2D g2 = getDrawingArea(); +Graphics2D g2 = getDrawingArea(); 1))-Graphics2D g2 = getDrawingArea(); botOffset);Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); s.updateImage(0,fmHeightGraphics2D g2 = getDrawingArea(); *Graphics2D g2 = getDrawingArea(); (rowGraphics2D g2 = getDrawingArea(); +Graphics2D g2 = getDrawingArea(); 1)-Graphics2D g2 = getDrawingArea(); botOffset,bi.getWidth(null),1);Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); break;Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); caseGraphics2D g2 = getDrawingArea(); 2:Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); //Graphics2D g2 = getDrawingArea(); verticalGraphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); g2.drawLine(r.x,0,r.x,bi.getHeight(null)Graphics2D g2 = getDrawingArea(); -Graphics2D g2 = getDrawingArea(); fmHeightGraphics2D g2 = getDrawingArea(); -Graphics2D g2 = getDrawingArea(); fmHeight);Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); s.updateImage(r.x,0,1,bi.getHeight(null)Graphics2D g2 = getDrawingArea(); -Graphics2D g2 = getDrawingArea(); fmHeightGraphics2D g2 = getDrawingArea(); -Graphics2D g2 = getDrawingArea(); fmHeight);Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); break;Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); caseGraphics2D g2 = getDrawingArea(); 3:Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); //Graphics2D g2 = getDrawingArea(); horizontalGraphics2D g2 = getDrawingArea(); &Graphics2D g2 = getDrawingArea(); verticalGraphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); g2.drawLine(0,(fmHeightGraphics2D g2 = getDrawingArea(); *Graphics2D g2 = getDrawingArea(); (rowGraphics2D g2 = getDrawingArea(); +Graphics2D g2 = getDrawingArea(); 1))-Graphics2D g2 = getDrawingArea(); botOffset,bi.getWidth(null),(fmHeightGraphics2D g2 = getDrawingArea(); *Graphics2D g2 = getDrawingArea(); (rowGraphics2D g2 = getDrawingArea(); +Graphics2D g2 = getDrawingArea(); 1))-Graphics2D g2 = getDrawingArea(); botOffset);Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); g2.drawLine(r.x,0,r.x,bi.getHeight(null)Graphics2D g2 = getDrawingArea(); -Graphics2D g2 = getDrawingArea(); fmHeightGraphics2D g2 = getDrawingArea(); -Graphics2D g2 = getDrawingArea(); fmHeight);Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); s.updateImage(0,(fmHeightGraphics2D g2 = getDrawingArea(); *Graphics2D g2 = getDrawingArea(); (rowGraphics2D g2 = getDrawingArea(); +Graphics2D g2 = getDrawingArea(); 1))Graphics2D g2 = getDrawingArea(); -Graphics2D g2 = getDrawingArea(); botOffset,bi.getWidth(null),1);Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); s.updateImage(r.x,0,1,bi.getHeight(null)Graphics2D g2 = getDrawingArea(); -Graphics2D g2 = getDrawingArea(); fmHeightGraphics2D g2 = getDrawingArea(); -Graphics2D g2 = getDrawingArea(); fmHeight);Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); break;Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); }Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); g2.dispose();Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); g2Graphics2D g2 = getDrawingArea(); =Graphics2D g2 = getDrawingArea(); getWritingArea(font);Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); g2.setPaint(colorBg);Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); g2.fill(pArea);Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); g2.setColor(colorWhite);Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); g2.drawString((rowGraphics2D g2 = getDrawingArea(); +Graphics2D g2 = getDrawingArea(); 1)Graphics2D g2 = getDrawingArea(); +Graphics2D g2 = getDrawingArea(); "/"Graphics2D g2 = getDrawingArea(); +Graphics2D g2 = getDrawingArea(); (colGraphics2D g2 = getDrawingArea(); +Graphics2D g2 = getDrawingArea(); 1)Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); ,(float)pArea.getX(),Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); (float)pArea.getY()Graphics2D g2 = getDrawingArea(); +Graphics2D g2 = getDrawingArea(); fmHeight);Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); s.updateImage(pArea.getBounds());Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); g2.dispose();Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); //Graphics2D g2 = getDrawingArea(); tellGraphics2D g2 = getDrawingArea(); waitingGraphics2D g2 = getDrawingArea(); threadsGraphics2D g2 = getDrawingArea(); toGraphics2D g2 = getDrawingArea(); wakeGraphics2D g2 = getDrawingArea(); up//Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); lock.notify();//Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); }Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); }
10,040
public void drawCursor(Screen5250 s,int row, int col, int fmWidth, int fmHeight, boolean insertMode, int crossHair, int cursorSize, Color colorCursor, Color colorBg,Color colorWhite, Font font,int botOffset) {// synchronized (lock) { Graphics2D g2 = getDrawingArea();// if (g2 == null)// return;// botOffset = 4; switch (cursorSize) { case 0:// cursor.setRect(// fmWidth * (col),// (fmHeight * (row + 1)),// fmWidth,// 1// ); cursor.setRect( fmWidth * (col), (fmHeight * (row + 1)) - botOffset, fmWidth, 1 ); break; case 1: cursor.setRect( fmWidth * (col), (fmHeight * (row + 1) - fmHeight / 2), fmWidth, (fmHeight / 2) - botOffset ); break; case 2: cursor.setRect( fmWidth * (col), (fmHeight * row), fmWidth, fmHeight - botOffset );// cursor.setRect(// fmWidth * (col),// (fmHeight * row) - lm.getLeading()-5,// fmWidth,// fmHeight// ); break; } if (insertMode && cursorSize != 1) { cursor.setRect( fmWidth * (col), (fmHeight * (row + 1) - fmHeight / 2), fmWidth, (fmHeight / 2) - botOffset ); } Rectangle r = cursor.getBounds(); r.setSize(r.width,r.height); g2.setColor(colorCursor); g2.setXORMode(colorBg); g2.fill(cursor); s.updateImage(r); switch (crossHair) { case 1: // horizontal g2.drawLine(0,(fmHeight * (row + 1))- botOffset,bi.getWidth(null),(fmHeight * (row + 1))- botOffset); s.updateImage(0,fmHeight * (row + 1)- botOffset,bi.getWidth(null),1); break; case 2: // vertical g2.drawLine(r.x,0,r.x,bi.getHeight(null) - fmHeight - fmHeight); s.updateImage(r.x,0,1,bi.getHeight(null) - fmHeight - fmHeight); break; case 3: // horizontal & vertical g2.drawLine(0,(fmHeight * (row + 1))- botOffset,bi.getWidth(null),(fmHeight * (row + 1))- botOffset); g2.drawLine(r.x,0,r.x,bi.getHeight(null) - fmHeight - fmHeight); s.updateImage(0,(fmHeight * (row + 1)) - botOffset,bi.getWidth(null),1); s.updateImage(r.x,0,1,bi.getHeight(null) - fmHeight - fmHeight); break; } g2.dispose(); g2 = getWritingArea(font); g2.setPaint(colorBg); g2.fill(pArea); g2.setColor(colorWhite); g2.drawString((row + 1) + "/" + (col + 1) ,(float)pArea.getX(), (float)pArea.getY() + fmHeight); s.updateImage(pArea.getBounds()); g2.dispose(); // tell waiting threads to wake up// lock.notify();// } }
public void drawCursor(Screen5250 s,int row, int col, int fmWidth, int fmHeight, boolean insertMode, int crossHair, int cursorSize, Color colorCursor, Color colorBg,Color colorWhite, Font font,int botOffset) {// synchronized (lock) { Graphics2D g2 = getDrawingArea();// if (g2 == null)// return;// botOffset = 4; switch (cursorSize) { case 0:// cursor.setRect(// fmWidth * (col),// (fmHeight * (row + 1)),// fmWidth,// 1// ); cursor.setRect( fmWidth * (col), (fmHeight * (row + 1)) - botOffset, fmWidth, 1 ); break; case 1: cursor.setRect( fmWidth * (col), (fmHeight * (row + 1) - fmHeight / 2), fmWidth, (fmHeight / 2) - botOffset ); break; case 2: cursor.setRect( fmWidth * (col), (fmHeight * row), fmWidth, fmHeight - botOffset );// cursor.setRect(// fmWidth * (col),// (fmHeight * row) - lm.getLeading()-5,// fmWidth,// fmHeight// ); break; } if (insertMode && cursorSize != 1) { cursor.setRect( fmWidth * (col), (fmHeight * (row + 1) - fmHeight / 2), fmWidth, (fmHeight / 2) - botOffset ); } Rectangle r = cursor.getBounds(); r.setSize(r.width,r.height); g2.setColor(colorCursor); g2.setXORMode(colorBg); g2.fill(cursor); s.updateImage(r); switch (crossHair) { case 1: // horizontal g2.drawLine(0,(fmHeight * (row + 1))- botOffset,bi.getWidth(null),(fmHeight * (row + 1))- botOffset); s.updateImage(0,fmHeight * (row + 1)- botOffset,bi.getWidth(null),1); break; case 2: // vertical g2.drawLine(r.x,0,r.x,bi.getHeight(null) - fmHeight - fmHeight); s.updateImage(r.x,0,1,bi.getHeight(null) - fmHeight - fmHeight); break; case 3: // horizontal & vertical g2.drawLine(0,(fmHeight * (row + 1))- botOffset,bi.getWidth(null),(fmHeight * (row + 1))- botOffset); g2.drawLine(r.x,0,r.x,bi.getHeight(null) - fmHeight - fmHeight); s.updateImage(0,(fmHeight * (row + 1)) - botOffset,bi.getWidth(null),1); s.updateImage(r.x,0,1,bi.getHeight(null) - fmHeight - fmHeight); break; } g2.dispose(); g2 = getWritingArea(font); g2.setPaint(colorBg); g2.fill(pArea); g2.setColor(colorWhite); g2.drawString((row + 1) + "/" + (col + 1) ,(float)pArea.getX(), (float)pArea.getY() + fmHeight); s.updateImage(pArea.getBounds()); g2.dispose(); // tell waiting threads to wake up// lock.notify();// } }
10,041
public void drawCursor(Screen5250 s,int row, int col, int fmWidth, int fmHeight, boolean insertMode, int crossHair, int cursorSize, Color colorCursor, Color colorBg,Color colorWhite, Font font,int botOffset) {// synchronized (lock) { Graphics2D g2 = getDrawingArea();// if (g2 == null)// return;// botOffset = 4; switch (cursorSize) { case 0:// cursor.setRect(// fmWidth * (col),// (fmHeight * (row + 1)),// fmWidth,// 1// ); cursor.setRect( fmWidth * (col), (fmHeight * (row + 1)) - botOffset, fmWidth, 1 ); break; case 1: cursor.setRect( fmWidth * (col), (fmHeight * (row + 1) - fmHeight / 2), fmWidth, (fmHeight / 2) - botOffset ); break; case 2: cursor.setRect( fmWidth * (col), (fmHeight * row), fmWidth, fmHeight - botOffset );// cursor.setRect(// fmWidth * (col),// (fmHeight * row) - lm.getLeading()-5,// fmWidth,// fmHeight// ); break; } if (insertMode && cursorSize != 1) { cursor.setRect( fmWidth * (col), (fmHeight * (row + 1) - fmHeight / 2), fmWidth, (fmHeight / 2) - botOffset ); } Rectangle r = cursor.getBounds(); r.setSize(r.width,r.height); g2.setColor(colorCursor); g2.setXORMode(colorBg); g2.fill(cursor); s.updateImage(r); switch (crossHair) { case 1: // horizontal g2.drawLine(0,(fmHeight * (row + 1))- botOffset,bi.getWidth(null),(fmHeight * (row + 1))- botOffset); s.updateImage(0,fmHeight * (row + 1)- botOffset,bi.getWidth(null),1); break; case 2: // vertical g2.drawLine(r.x,0,r.x,bi.getHeight(null) - fmHeight - fmHeight); s.updateImage(r.x,0,1,bi.getHeight(null) - fmHeight - fmHeight); break; case 3: // horizontal & vertical g2.drawLine(0,(fmHeight * (row + 1))- botOffset,bi.getWidth(null),(fmHeight * (row + 1))- botOffset); g2.drawLine(r.x,0,r.x,bi.getHeight(null) - fmHeight - fmHeight); s.updateImage(0,(fmHeight * (row + 1)) - botOffset,bi.getWidth(null),1); s.updateImage(r.x,0,1,bi.getHeight(null) - fmHeight - fmHeight); break; } g2.dispose(); g2 = getWritingArea(font); g2.setPaint(colorBg); g2.fill(pArea); g2.setColor(colorWhite); g2.drawString((row + 1) + "/" + (col + 1) ,(float)pArea.getX(), (float)pArea.getY() + fmHeight); s.updateImage(pArea.getBounds()); g2.dispose(); // tell waiting threads to wake up// lock.notify();// } }
public void drawCursor(Screen5250 s,int row, int col, int fmWidth, int fmHeight, boolean insertMode, int crossHair, int cursorSize, Color colorCursor, Color colorBg,Color colorWhite, Font font,int botOffset) {//synchronized (lock) { Graphics2D g2 = getDrawingArea();// if (g2 == null)//return;//botOffset = 4; switch (cursorSize) {case 0:// cursor.setRect(// fmWidth * (col),// (fmHeight * (row + 1)),// fmWidth,// 1// ); cursor.setRect( fmWidth * (col), (fmHeight * (row + 1)) - botOffset, fmWidth, 1 ); break;case 1: cursor.setRect( fmWidth * (col), (fmHeight * (row + 1) - fmHeight / 2), fmWidth, (fmHeight / 2) - botOffset ); break;case 2: cursor.setRect( fmWidth * (col), (fmHeight * row), fmWidth, fmHeight - botOffset );// cursor.setRect(// fmWidth * (col),// (fmHeight * row) - lm.getLeading()-5,// fmWidth,// fmHeight// ); break; } if (insertMode && cursorSize != 1) { cursor.setRect( fmWidth * (col), (fmHeight * (row + 1) - fmHeight / 2), fmWidth, (fmHeight / 2) - botOffset ); } Rectangle r = cursor.getBounds(); r.setSize(r.width,r.height); g2.setColor(colorCursor); g2.setXORMode(colorBg); g2.fill(cursor); s.updateImage(r); switch (crossHair) {case 1: // horizontal g2.drawLine(0,(fmHeight * (row + 1))- botOffset,bi.getWidth(null),(fmHeight * (row + 1))- botOffset); s.updateImage(0,fmHeight * (row + 1)- botOffset,bi.getWidth(null),1); break;case 2: // vertical g2.drawLine(r.x,0,r.x,bi.getHeight(null) - fmHeight - fmHeight); s.updateImage(r.x,0,1,bi.getHeight(null) - fmHeight - fmHeight); break;case 3: // horizontal & vertical g2.drawLine(0,(fmHeight * (row + 1))- botOffset,bi.getWidth(null),(fmHeight * (row + 1))- botOffset); g2.drawLine(r.x,0,r.x,bi.getHeight(null) - fmHeight - fmHeight); s.updateImage(0,(fmHeight * (row + 1)) - botOffset,bi.getWidth(null),1); s.updateImage(r.x,0,1,bi.getHeight(null) - fmHeight - fmHeight); break; } g2.dispose(); g2 = getWritingArea(font); g2.setPaint(colorBg); g2.fill(pArea); g2.setColor(colorWhite); g2.drawString((row + 1) + "/" + (col + 1),(float)pArea.getX(),(float)pArea.getY() + fmHeight); s.updateImage(pArea.getBounds()); g2.dispose(); // tell waiting threads to wake up// lock.notify();//} }
10,042
public void drawCursor(Screen5250 s,int row, int col, int fmWidth, int fmHeight, boolean insertMode, int crossHair, int cursorSize, Color colorCursor, Color colorBg,Color colorWhite, Font font,int botOffset) {// synchronized (lock) { Graphics2D g2 = getDrawingArea();// if (g2 == null)// return;// botOffset = 4; switch (cursorSize) { case 0:// cursor.setRect(// fmWidth * (col),// (fmHeight * (row + 1)),// fmWidth,// 1// ); cursor.setRect( fmWidth * (col), (fmHeight * (row + 1)) - botOffset, fmWidth, 1 ); break; case 1: cursor.setRect( fmWidth * (col), (fmHeight * (row + 1) - fmHeight / 2), fmWidth, (fmHeight / 2) - botOffset ); break; case 2: cursor.setRect( fmWidth * (col), (fmHeight * row), fmWidth, fmHeight - botOffset );// cursor.setRect(// fmWidth * (col),// (fmHeight * row) - lm.getLeading()-5,// fmWidth,// fmHeight// ); break; } if (insertMode && cursorSize != 1) { cursor.setRect( fmWidth * (col), (fmHeight * (row + 1) - fmHeight / 2), fmWidth, (fmHeight / 2) - botOffset ); } Rectangle r = cursor.getBounds(); r.setSize(r.width,r.height); g2.setColor(colorCursor); g2.setXORMode(colorBg); g2.fill(cursor); s.updateImage(r); switch (crossHair) { case 1: // horizontal g2.drawLine(0,(fmHeight * (row + 1))- botOffset,bi.getWidth(null),(fmHeight * (row + 1))- botOffset); s.updateImage(0,fmHeight * (row + 1)- botOffset,bi.getWidth(null),1); break; case 2: // vertical g2.drawLine(r.x,0,r.x,bi.getHeight(null) - fmHeight - fmHeight); s.updateImage(r.x,0,1,bi.getHeight(null) - fmHeight - fmHeight); break; case 3: // horizontal & vertical g2.drawLine(0,(fmHeight * (row + 1))- botOffset,bi.getWidth(null),(fmHeight * (row + 1))- botOffset); g2.drawLine(r.x,0,r.x,bi.getHeight(null) - fmHeight - fmHeight); s.updateImage(0,(fmHeight * (row + 1)) - botOffset,bi.getWidth(null),1); s.updateImage(r.x,0,1,bi.getHeight(null) - fmHeight - fmHeight); break; } g2.dispose(); g2 = getWritingArea(font); g2.setPaint(colorBg); g2.fill(pArea); g2.setColor(colorWhite); g2.drawString((row + 1) + "/" + (col + 1) ,(float)pArea.getX(), (float)pArea.getY() + fmHeight); s.updateImage(pArea.getBounds()); g2.dispose(); // tell waiting threads to wake up// lock.notify();// } }
public void drawCursor(Screen5250 s,int row, int col, int fmWidth, int fmHeight, boolean insertMode, int crossHair, int cursorSize, Color colorCursor, Color colorBg,Color colorWhite, Font font,int botOffset) {//synchronized (lock) { Graphics2D g2 = getDrawingArea();// if (g2 == null)//return;//botOffset = 4; switch (cursorSize) {case 0:// cursor.setRect(// fmWidth * (col),// (fmHeight * (row + 1)),// fmWidth,// 1// ); cursor.setRect( fmWidth * (col), (fmHeight * (row + 1)) - botOffset, fmWidth, 1 ); break;case 1: cursor.setRect( fmWidth * (col), (fmHeight * (row + 1) - fmHeight / 2), fmWidth, (fmHeight / 2) - botOffset ); break;case 2: cursor.setRect( fmWidth * (col), (fmHeight * row), fmWidth, fmHeight - botOffset );// cursor.setRect(// fmWidth * (col),// (fmHeight * row) - lm.getLeading()-5,// fmWidth,// fmHeight// ); break; } if (insertMode && cursorSize != 1) { cursor.setRect( fmWidth * (col), (fmHeight * (row + 1) - fmHeight / 2), fmWidth, (fmHeight / 2) - botOffset ); } Rectangle r = cursor.getBounds(); r.setSize(r.width,r.height); g2.setColor(colorCursor); g2.setXORMode(colorBg); g2.fill(cursor); s.updateImage(r); switch (crossHair) {case 1: // horizontal g2.drawLine(0,(fmHeight * (row + 1))- botOffset,bi.getWidth(null),(fmHeight * (row + 1))- botOffset); s.updateImage(0,fmHeight * (row + 1)- botOffset,bi.getWidth(null),1); break;case 2: // vertical g2.drawLine(r.x,0,r.x,bi.getHeight(null) - fmHeight - fmHeight); s.updateImage(r.x,0,1,bi.getHeight(null) - fmHeight - fmHeight); break;case 3: // horizontal & vertical g2.drawLine(0,(fmHeight * (row + 1))- botOffset,bi.getWidth(null),(fmHeight * (row + 1))- botOffset); g2.drawLine(r.x,0,r.x,bi.getHeight(null) - fmHeight - fmHeight); s.updateImage(0,(fmHeight * (row + 1)) - botOffset,bi.getWidth(null),1); s.updateImage(r.x,0,1,bi.getHeight(null) - fmHeight - fmHeight); break; } g2.dispose(); g2 = getWritingArea(font); g2.setPaint(colorBg); g2.fill(pArea); g2.setColor(colorWhite); g2.drawString((row + 1) + "/" + (col + 1),(float)pArea.getX(),(float)pArea.getY() + fmHeight); s.updateImage(pArea.getBounds()); g2.dispose(); // tell waiting threads to wake up// lock.notify();//} }
10,043
public void drawCursor(Screen5250 s,int row, int col, int fmWidth, int fmHeight, boolean insertMode, int crossHair, int cursorSize, Color colorCursor, Color colorBg,Color colorWhite, Font font,int botOffset) {// synchronized (lock) { Graphics2D g2 = getDrawingArea();// if (g2 == null)// return;// botOffset = 4; switch (cursorSize) { case 0:// cursor.setRect(// fmWidth * (col),// (fmHeight * (row + 1)),// fmWidth,// 1// ); cursor.setRect( fmWidth * (col), (fmHeight * (row + 1)) - botOffset, fmWidth, 1 ); break; case 1: cursor.setRect( fmWidth * (col), (fmHeight * (row + 1) - fmHeight / 2), fmWidth, (fmHeight / 2) - botOffset ); break; case 2: cursor.setRect( fmWidth * (col), (fmHeight * row), fmWidth, fmHeight - botOffset );// cursor.setRect(// fmWidth * (col),// (fmHeight * row) - lm.getLeading()-5,// fmWidth,// fmHeight// ); break; } if (insertMode && cursorSize != 1) { cursor.setRect( fmWidth * (col), (fmHeight * (row + 1) - fmHeight / 2), fmWidth, (fmHeight / 2) - botOffset ); } Rectangle r = cursor.getBounds(); r.setSize(r.width,r.height); g2.setColor(colorCursor); g2.setXORMode(colorBg); g2.fill(cursor); s.updateImage(r); switch (crossHair) { case 1: // horizontal g2.drawLine(0,(fmHeight * (row + 1))- botOffset,bi.getWidth(null),(fmHeight * (row + 1))- botOffset); s.updateImage(0,fmHeight * (row + 1)- botOffset,bi.getWidth(null),1); break; case 2: // vertical g2.drawLine(r.x,0,r.x,bi.getHeight(null) - fmHeight - fmHeight); s.updateImage(r.x,0,1,bi.getHeight(null) - fmHeight - fmHeight); break; case 3: // horizontal & vertical g2.drawLine(0,(fmHeight * (row + 1))- botOffset,bi.getWidth(null),(fmHeight * (row + 1))- botOffset); g2.drawLine(r.x,0,r.x,bi.getHeight(null) - fmHeight - fmHeight); s.updateImage(0,(fmHeight * (row + 1)) - botOffset,bi.getWidth(null),1); s.updateImage(r.x,0,1,bi.getHeight(null) - fmHeight - fmHeight); break; } g2.dispose(); g2 = getWritingArea(font); g2.setPaint(colorBg); g2.fill(pArea); g2.setColor(colorWhite); g2.drawString((row + 1) + "/" + (col + 1) ,(float)pArea.getX(), (float)pArea.getY() + fmHeight); s.updateImage(pArea.getBounds()); g2.dispose(); // tell waiting threads to wake up// lock.notify();// } }
public void drawCursor(Screen5250 s,int row, int col, int fmWidth, int fmHeight, boolean insertMode, int crossHair, int cursorSize, Color colorCursor, Color colorBg,Color colorWhite, Font font,int botOffset) {// synchronized (lock) { Graphics2D g2 = getDrawingArea();// if (g2 == null)//return;//botOffset = 4; switch (cursorSize) {case 0:// cursor.setRect(// fmWidth * (col),// (fmHeight * (row + 1)),// fmWidth,// 1// ); cursor.setRect( fmWidth * (col), (fmHeight * (row + 1)) - botOffset, fmWidth, 1 ); break;case 1: cursor.setRect( fmWidth * (col), (fmHeight * (row + 1) - fmHeight / 2), fmWidth, (fmHeight / 2) - botOffset ); break;case 2: cursor.setRect( fmWidth * (col), (fmHeight * row), fmWidth, fmHeight - botOffset );// cursor.setRect(// fmWidth * (col),// (fmHeight * row) - lm.getLeading()-5,// fmWidth,// fmHeight// ); break; } if (insertMode && cursorSize != 1) { cursor.setRect( fmWidth * (col), (fmHeight * (row + 1) - fmHeight / 2), fmWidth, (fmHeight / 2) - botOffset ); } Rectangle r = cursor.getBounds(); r.setSize(r.width,r.height); g2.setColor(colorCursor); g2.setXORMode(colorBg); g2.fill(cursor); s.updateImage(r); switch (crossHair) {case 1: // horizontal g2.drawLine(0,(fmHeight * (row + 1))- botOffset,bi.getWidth(null),(fmHeight * (row + 1))- botOffset); s.updateImage(0,fmHeight * (row + 1)- botOffset,bi.getWidth(null),1); break;case 2: // vertical g2.drawLine(r.x,0,r.x,bi.getHeight(null) - fmHeight - fmHeight); s.updateImage(r.x,0,1,bi.getHeight(null) - fmHeight - fmHeight); break;case 3: // horizontal & vertical g2.drawLine(0,(fmHeight * (row + 1))- botOffset,bi.getWidth(null),(fmHeight * (row + 1))- botOffset); g2.drawLine(r.x,0,r.x,bi.getHeight(null) - fmHeight - fmHeight); s.updateImage(0,(fmHeight * (row + 1)) - botOffset,bi.getWidth(null),1); s.updateImage(r.x,0,1,bi.getHeight(null) - fmHeight - fmHeight); break; } g2.dispose(); g2 = getWritingArea(font); g2.setPaint(colorBg); g2.fill(pArea); g2.setColor(colorWhite); g2.drawString((row + 1) + "/" + (col + 1),(float)pArea.getX(),(float)pArea.getY() + fmHeight); s.updateImage(pArea.getBounds()); g2.dispose(); // tell waiting threads to wake up// lock.notify();// } }
10,044
public synchronized void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) { /** * @todo this is a hack and should be fixed at the root of the problem */ if (gg2d == null) {// System.out.println(" we got a null graphic object "); return; } synchronized (lock) { gg2d.drawImage(bi.getSubimage(x,y,width,height),null,x,y); // tell waiting threads to wake up lock.notify(); } }
public void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) { /** * @todo this is a hack and should be fixed at the root of the problem */ if (gg2d == null) {// System.out.println(" we got a null graphic object "); return; } synchronized (lock) { gg2d.drawImage(bi.getSubimage(x,y,width,height),null,x,y); // tell waiting threads to wake up lock.notify(); } }
10,045
public synchronized void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) { /** * @todo this is a hack and should be fixed at the root of the problem */ if (gg2d == null) {// System.out.println(" we got a null graphic object "); return; } synchronized (lock) { gg2d.drawImage(bi.getSubimage(x,y,width,height),null,x,y); // tell waiting threads to wake up lock.notify(); } }
System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); publicSystem.out.println(" we got a null graphic object "); synchronizedSystem.out.println(" we got a null graphic object "); voidSystem.out.println(" we got a null graphic object "); drawImageBuffer(Graphics2DSystem.out.println(" we got a null graphic object "); gg2d,intSystem.out.println(" we got a null graphic object "); x,System.out.println(" we got a null graphic object "); intSystem.out.println(" we got a null graphic object "); y,System.out.println(" we got a null graphic object "); intSystem.out.println(" we got a null graphic object "); width,System.out.println(" we got a null graphic object "); intSystem.out.println(" we got a null graphic object "); height)System.out.println(" we got a null graphic object "); {System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); /**System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); *System.out.println(" we got a null graphic object "); @todoSystem.out.println(" we got a null graphic object "); thisSystem.out.println(" we got a null graphic object "); isSystem.out.println(" we got a null graphic object "); aSystem.out.println(" we got a null graphic object "); hackSystem.out.println(" we got a null graphic object "); andSystem.out.println(" we got a null graphic object "); shouldSystem.out.println(" we got a null graphic object "); beSystem.out.println(" we got a null graphic object "); fixedSystem.out.println(" we got a null graphic object "); atSystem.out.println(" we got a null graphic object "); theSystem.out.println(" we got a null graphic object "); rootSystem.out.println(" we got a null graphic object "); ofSystem.out.println(" we got a null graphic object "); theSystem.out.println(" we got a null graphic object "); problemSystem.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); */System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); ifSystem.out.println(" we got a null graphic object "); (gg2dSystem.out.println(" we got a null graphic object "); ==System.out.println(" we got a null graphic object "); null)System.out.println(" we got a null graphic object "); {//System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println("System.out.println(" we got a null graphic object "); weSystem.out.println(" we got a null graphic object "); gotSystem.out.println(" we got a null graphic object "); aSystem.out.println(" we got a null graphic object "); nullSystem.out.println(" we got a null graphic object "); graphicSystem.out.println(" we got a null graphic object "); objectSystem.out.println(" we got a null graphic object "); ");System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); return;System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); }System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); synchronizedSystem.out.println(" we got a null graphic object "); (lock)System.out.println(" we got a null graphic object "); {System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); gg2d.drawImage(bi.getSubimage(x,y,width,height),null,x,y);System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); //System.out.println(" we got a null graphic object "); tellSystem.out.println(" we got a null graphic object "); waitingSystem.out.println(" we got a null graphic object "); threadsSystem.out.println(" we got a null graphic object "); toSystem.out.println(" we got a null graphic object "); wakeSystem.out.println(" we got a null graphic object "); upSystem.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); lock.notify();System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); }System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); }
10,046
public synchronized void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) { /** * @todo this is a hack and should be fixed at the root of the problem */ if (gg2d == null) {// System.out.println(" we got a null graphic object "); return; } synchronized (lock) { gg2d.drawImage(bi.getSubimage(x,y,width,height),null,x,y); // tell waiting threads to wake up lock.notify(); } }
public synchronized void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) { /** * @todo this is a hack and should be fixed at the root of the problem */ if (gg2d == null) {// System.out.println(" we got a null graphic object "); return; } synchronized (lock) { gg2d.drawImage(bi.getSubimage(x,y,width,height),null,x,y); // tell waiting threads to wake up lock.notifyAll(); } }
10,047
public Graphics2D drawOIA (int fmWidth, int fmHeight, int numRows, int numCols, Font font, Color colorBg, Color colorBlue ) { Graphics2D g2d; // get ourselves a global pointer to the graphics g2d = (Graphics2D)bi.getGraphics(); g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2d.setRenderingHint(RenderingHints.KEY_COLOR_RENDERING, RenderingHints.VALUE_COLOR_RENDER_SPEED); g2d.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_SPEED); g2d.setFont(font); g2d.setColor(colorBg); g2d.fillRect(0,0,bi.getWidth(null),bi.getHeight(null)); tArea.setRect(0,0,bi.getWidth(null),(fmHeight * (numRows))); cArea.setRect(0,fmHeight * (numRows + 1),bi.getWidth(null),fmHeight * (numRows + 1)); aArea.setRect(0,0,bi.getWidth(null),bi.getHeight(null)); sArea.setRect(fmWidth * 9,fmHeight * (numRows + 1),fmWidth * 20,fmHeight); pArea.setRect(bi.getWidth(null) - fmWidth * 6,fmHeight * (numRows + 1),fmWidth * 6,fmHeight); mArea.setRect((float)(sArea.getX()+ sArea.getWidth()) + fmWidth + fmWidth, fmHeight * (numRows + 1), fmWidth + fmWidth, fmHeight); kbArea.setRect((float)(sArea.getX()+ sArea.getWidth()) + (20 * fmWidth), fmHeight * (numRows + 1), fmWidth + fmWidth, fmHeight); scriptArea.setRect((float)(sArea.getX()+ sArea.getWidth()) + (16 * fmWidth), fmHeight * (numRows + 1), fmWidth + fmWidth, fmHeight);// cArea = new Rectangle2D.Float(0,fmHeight * (numRows + 1),bi.getWidth(null),fmHeight * (numRows + 1));// aArea = new Rectangle2D.Float(0,0,bi.getWidth(null),bi.getHeight(null));// sArea = new Rectangle2D.Float(fmWidth * 9,fmHeight * (numRows + 1),fmWidth * 20,fmHeight);// pArea = new Rectangle2D.Float(bi.getWidth(null) - fmWidth * 6,fmHeight * (numRows + 1),fmWidth * 6,fmHeight);// mArea = new Rectangle2D.Float((float)(sArea.getX()+ sArea.getWidth()) + fmWidth + fmWidth,// fmHeight * (numRows + 1),// fmWidth + fmWidth,// fmHeight); separatorLine.setLine(0, (fmHeight * (numRows + 1)) - (fmHeight / 2), bi.getWidth(null), (fmHeight * (numRows + 1)) - (fmHeight / 2)); g2d.setColor(colorBlue); g2d.draw(separatorLine); return g2d; }
public Graphics2D drawOIA (int fmWidth, int fmHeight, int numRows, int numCols, Font font, Color colorBg, Color colorBlue ) { Graphics2D g2d; // get ourselves a global pointer to the graphics g2d = getDrawingArea(); g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2d.setRenderingHint(RenderingHints.KEY_COLOR_RENDERING, RenderingHints.VALUE_COLOR_RENDER_SPEED); g2d.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_SPEED); g2d.setFont(font); g2d.setColor(colorBg); g2d.fillRect(0,0,bi.getWidth(null),bi.getHeight(null)); tArea.setRect(0,0,bi.getWidth(null),(fmHeight * (numRows))); cArea.setRect(0,fmHeight * (numRows + 1),bi.getWidth(null),fmHeight * (numRows + 1)); aArea.setRect(0,0,bi.getWidth(null),bi.getHeight(null)); sArea.setRect(fmWidth * 9,fmHeight * (numRows + 1),fmWidth * 20,fmHeight); pArea.setRect(bi.getWidth(null) - fmWidth * 6,fmHeight * (numRows + 1),fmWidth * 6,fmHeight); mArea.setRect((float)(sArea.getX()+ sArea.getWidth()) + fmWidth + fmWidth, fmHeight * (numRows + 1), fmWidth + fmWidth, fmHeight); kbArea.setRect((float)(sArea.getX()+ sArea.getWidth()) + (20 * fmWidth), fmHeight * (numRows + 1), fmWidth + fmWidth, fmHeight); scriptArea.setRect((float)(sArea.getX()+ sArea.getWidth()) + (16 * fmWidth), fmHeight * (numRows + 1), fmWidth + fmWidth, fmHeight);// cArea = new Rectangle2D.Float(0,fmHeight * (numRows + 1),bi.getWidth(null),fmHeight * (numRows + 1));// aArea = new Rectangle2D.Float(0,0,bi.getWidth(null),bi.getHeight(null));// sArea = new Rectangle2D.Float(fmWidth * 9,fmHeight * (numRows + 1),fmWidth * 20,fmHeight);// pArea = new Rectangle2D.Float(bi.getWidth(null) - fmWidth * 6,fmHeight * (numRows + 1),fmWidth * 6,fmHeight);// mArea = new Rectangle2D.Float((float)(sArea.getX()+ sArea.getWidth()) + fmWidth + fmWidth,// fmHeight * (numRows + 1),// fmWidth + fmWidth,// fmHeight); separatorLine.setLine(0, (fmHeight * (numRows + 1)) - (fmHeight / 2), bi.getWidth(null), (fmHeight * (numRows + 1)) - (fmHeight / 2)); g2d.setColor(colorBlue); g2d.draw(separatorLine); return g2d; }
10,048
public Graphics2D getDrawingArea() { try { synchronized (lock) { // wait until there is something to read while (bi == null) lock.wait(); // we have the lock and state we're seeking Graphics2D g2; g2 = bi.createGraphics(); return g2; } } catch (InterruptedException ie) { System.out.println("getDrawingarea : " + ie.getMessage()); return null; } }
public Graphics2D getDrawingArea() { try { synchronized (lock) { // wait until there is something to read while (bi == null) { System.out.println(" bi = null "); lock.wait(); // we have the lock and state we're seeking Graphics2D g2; g2 = bi.createGraphics(); return g2; } } catch (InterruptedException ie) { System.out.println("getDrawingarea : " + ie.getMessage()); return null; } }
10,049
public Graphics2D getDrawingArea() { try { synchronized (lock) { // wait until there is something to read while (bi == null) lock.wait(); // we have the lock and state we're seeking Graphics2D g2; g2 = bi.createGraphics(); return g2; } } catch (InterruptedException ie) { System.out.println("getDrawingarea : " + ie.getMessage()); return null; } }
} } } public} Graphics2D} getDrawingArea()} {} } } } } } try} {} } } } } } } } } synchronized} (lock)} {} } } } } } } } } } } } //} wait} until} there} is} something} to} read} } } } } } } } } } } } while} (bi} ==} null)} } } } } } } } } } } } } } } lock.wait();} } } } } } } } } } } } //} we} have} the} lock} and} state} we're} seeking} } } } } } } } } } } } Graphics2D} g2;} } } } } } } } } } } } g2} =} bi.createGraphics();} } } } } } } } } } } } return} g2;} } } } } } } } } }} } } } } } }} } } } } } catch} (InterruptedException} ie)} {} } } } } } } } } System.out.println("getDrawingarea} :} "} +} ie.getMessage());} } } } } } } } } return} null;} } } } } } }} } } }
10,050
public BufferedImage getImageBuffer(int width, int height) { synchronized (lock) { if (bi == null || bi.getWidth() != width || bi.getHeight() != height) // allocate a buffer Image with appropriate size bi = new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); this.width = width; this.height = height; // tell waiting threads to wake up lock.notify(); } return bi; }
public BufferedImage getImageBuffer(int width, int height) { synchronized (lock) { if (bi == null || bi.getWidth() != width || bi.getHeight() != height) { // allocate a buffer Image with appropriate size bi = new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); this.width = width; this.height = height; // tell waiting threads to wake up lock.notify(); } return bi; }
10,053
public BufferedImage getImageBuffer(int width, int height) { synchronized (lock) { if (bi == null || bi.getWidth() != width || bi.getHeight() != height) // allocate a buffer Image with appropriate size bi = new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); this.width = width; this.height = height; // tell waiting threads to wake up lock.notify(); } return bi; }
public BufferedImage getImageBuffer(int width, int height) { synchronized (lock) { if (bi == null || bi.getWidth() != width || bi.getHeight() != height) // allocate a buffer Image with appropriate size bi = new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); this.width = width; this.height = height; // tell waiting threads to wake up lock.notifyAll(); } return bi; }
10,054
public Graphics2D getWritingArea(Font font) { Graphics2D g2; // we could be in the middle of creating the graphics because of the // threads, resizing etc.... so lets wait until we have one. // If this causes problems we should implement a thresh-hold of sorts // to keep an infinate loop from occurring. So far not problems try { synchronized (lock) { // wait until there is something to read while (bi == null) lock.wait(); // we have the lock and state we're seeking g2 = bi.createGraphics(); if (g2 != null) { g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2.setRenderingHint(RenderingHints.KEY_COLOR_RENDERING, RenderingHints.VALUE_COLOR_RENDER_SPEED); g2.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_SPEED); g2.setFont(font); } return g2; } } catch (InterruptedException ie) { System.out.println("getWritingarea : " + ie.getMessage()); return null; } }
public Graphics2D getWritingArea(Font font) { Graphics2D g2; // we could be in the middle of creating the graphics because of the // threads, resizing etc.... so lets wait until we have one. // If this causes problems we should implement a thresh-hold of sorts // to keep an infinate loop from occurring. So far not problems try { synchronized (lock) { // wait until there is something to read while (bi == null) { System.out.println( " bi = null wa "); lock.wait(); // we have the lock and state we're seeking g2 = bi.createGraphics(); if (g2 != null) { g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2.setRenderingHint(RenderingHints.KEY_COLOR_RENDERING, RenderingHints.VALUE_COLOR_RENDER_SPEED); g2.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_SPEED); g2.setFont(font); } return g2; } } catch (InterruptedException ie) { System.out.println("getWritingarea : " + ie.getMessage()); return null; } }
10,056
public void resize(int width, int height) { if (bi.getWidth() != width || bi.getHeight() != height) { synchronized (lock) { bi = null; bi = new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); this.width = width; this.height = height; // tell waiting threads to wake up lock.notify(); } } }
public void resize(int width, int height) { if (bi.getWidth() != width || bi.getHeight() != height) { synchronized (lock) { bi = null; bi = new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); this.width = width; this.height = height; // tell waiting threads to wake up lock.notifyAll(); } } }
10,058
public void setup(Map attributes) { // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of Diffie-Hellman generation parameters or we shall // use our own? DHGenParameterSpec params = (DHGenParameterSpec) attributes.get(DH_PARAMETERS); // find out the desired sizes if (params != null) { l = params.getPrimeSize(); m = params.getExponentSize(); } else { Integer bi = (Integer) attributes.get(PRIME_SIZE); l = (bi == null ? DEFAULT_PRIME_SIZE : bi.intValue()); bi = (Integer) attributes.get(EXPONENT_SIZE); m = (bi == null ? DEFAULT_EXPONENT_SIZE : bi.intValue()); } // if ((L % 256) != 0 || L < 1024) { if ((l % 256) != 0 || l < DEFAULT_PRIME_SIZE) { throw new IllegalArgumentException("invalid modulus size"); } if ((m % 8) != 0 || m < DEFAULT_EXPONENT_SIZE) { throw new IllegalArgumentException("invalid exponent size"); } if (m > l) { throw new IllegalArgumentException("exponent size > modulus size"); } // what is the preferred encoding format Integer formatID = (Integer) attributes.get(PREFERRED_ENCODING_FORMAT); preferredFormat = formatID == null ? DEFAULT_ENCODING_FORMAT : formatID.intValue(); }
public void setup(Map attributes) { // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of Diffie-Hellman generation parameters or we shall // use our own? Object params = attributes.get(DH_PARAMETERS); // find out the desired sizes if (params != null) { l = params.getPrimeSize(); m = params.getExponentSize(); } else { Integer bi = (Integer) attributes.get(PRIME_SIZE); l = (bi == null ? DEFAULT_PRIME_SIZE : bi.intValue()); bi = (Integer) attributes.get(EXPONENT_SIZE); m = (bi == null ? DEFAULT_EXPONENT_SIZE : bi.intValue()); } // if ((L % 256) != 0 || L < 1024) { if ((l % 256) != 0 || l < DEFAULT_PRIME_SIZE) { throw new IllegalArgumentException("invalid modulus size"); } if ((m % 8) != 0 || m < DEFAULT_EXPONENT_SIZE) { throw new IllegalArgumentException("invalid exponent size"); } if (m > l) { throw new IllegalArgumentException("exponent size > modulus size"); } // what is the preferred encoding format Integer formatID = (Integer) attributes.get(PREFERRED_ENCODING_FORMAT); preferredFormat = formatID == null ? DEFAULT_ENCODING_FORMAT : formatID.intValue(); }
10,059
public void setup(Map attributes) { // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of Diffie-Hellman generation parameters or we shall // use our own? DHGenParameterSpec params = (DHGenParameterSpec) attributes.get(DH_PARAMETERS); // find out the desired sizes if (params != null) { l = params.getPrimeSize(); m = params.getExponentSize(); } else { Integer bi = (Integer) attributes.get(PRIME_SIZE); l = (bi == null ? DEFAULT_PRIME_SIZE : bi.intValue()); bi = (Integer) attributes.get(EXPONENT_SIZE); m = (bi == null ? DEFAULT_EXPONENT_SIZE : bi.intValue()); } // if ((L % 256) != 0 || L < 1024) { if ((l % 256) != 0 || l < DEFAULT_PRIME_SIZE) { throw new IllegalArgumentException("invalid modulus size"); } if ((m % 8) != 0 || m < DEFAULT_EXPONENT_SIZE) { throw new IllegalArgumentException("invalid exponent size"); } if (m > l) { throw new IllegalArgumentException("exponent size > modulus size"); } // what is the preferred encoding format Integer formatID = (Integer) attributes.get(PREFERRED_ENCODING_FORMAT); preferredFormat = formatID == null ? DEFAULT_ENCODING_FORMAT : formatID.intValue(); }
public void setup(Map attributes) { // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of Diffie-Hellman generation parameters or we shall // use our own? DHGenParameterSpec params = (DHGenParameterSpec) attributes.get(DH_PARAMETERS); // find out the desired sizes if (params instanceof DHGenParameterSpec) { l = params.getPrimeSize(); m = params.getExponentSize(); } else { Integer bi = (Integer) attributes.get(PRIME_SIZE); l = (bi == null ? DEFAULT_PRIME_SIZE : bi.intValue()); bi = (Integer) attributes.get(EXPONENT_SIZE); m = (bi == null ? DEFAULT_EXPONENT_SIZE : bi.intValue()); } // if ((L % 256) != 0 || L < 1024) { if ((l % 256) != 0 || l < DEFAULT_PRIME_SIZE) { throw new IllegalArgumentException("invalid modulus size"); } if ((m % 8) != 0 || m < DEFAULT_EXPONENT_SIZE) { throw new IllegalArgumentException("invalid exponent size"); } if (m > l) { throw new IllegalArgumentException("exponent size > modulus size"); } // what is the preferred encoding format Integer formatID = (Integer) attributes.get(PREFERRED_ENCODING_FORMAT); preferredFormat = formatID == null ? DEFAULT_ENCODING_FORMAT : formatID.intValue(); }
10,060
public void setup(Map attributes) { // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of Diffie-Hellman generation parameters or we shall // use our own? DHGenParameterSpec params = (DHGenParameterSpec) attributes.get(DH_PARAMETERS); // find out the desired sizes if (params != null) { l = params.getPrimeSize(); m = params.getExponentSize(); } else { Integer bi = (Integer) attributes.get(PRIME_SIZE); l = (bi == null ? DEFAULT_PRIME_SIZE : bi.intValue()); bi = (Integer) attributes.get(EXPONENT_SIZE); m = (bi == null ? DEFAULT_EXPONENT_SIZE : bi.intValue()); } // if ((L % 256) != 0 || L < 1024) { if ((l % 256) != 0 || l < DEFAULT_PRIME_SIZE) { throw new IllegalArgumentException("invalid modulus size"); } if ((m % 8) != 0 || m < DEFAULT_EXPONENT_SIZE) { throw new IllegalArgumentException("invalid exponent size"); } if (m > l) { throw new IllegalArgumentException("exponent size > modulus size"); } // what is the preferred encoding format Integer formatID = (Integer) attributes.get(PREFERRED_ENCODING_FORMAT); preferredFormat = formatID == null ? DEFAULT_ENCODING_FORMAT : formatID.intValue(); }
public void setup(Map attributes) { // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of Diffie-Hellman generation parameters or we shall // use our own? DHGenParameterSpec params = (DHGenParameterSpec) attributes.get(DH_PARAMETERS); // find out the desired sizes if (params != null) { l = params.getPrimeSize(); m = params.getExponentSize(); } else { Integer bi = (Integer) attributes.get(PRIME_SIZE); l = (bi == null ? DEFAULT_PRIME_SIZE : bi.intValue()); bi = (Integer) attributes.get(EXPONENT_SIZE); m = (bi == null ? DEFAULT_EXPONENT_SIZE : bi.intValue()); } // if ((L % 256) != 0 || L < 1024) { if ((l % 256) != 0 || l < DEFAULT_PRIME_SIZE) { throw new IllegalArgumentException("invalid modulus size"); } if ((m % 8) != 0 || m < DEFAULT_EXPONENT_SIZE) { throw new IllegalArgumentException("invalid exponent size"); } if (m > l) { throw new IllegalArgumentException("exponent size > modulus size"); } // what is the preferred encoding format Integer formatID = (Integer) attributes.get(PREFERRED_ENCODING_FORMAT); preferredFormat = formatID == null ? DEFAULT_ENCODING_FORMAT : formatID.intValue(); }
10,061
public static boolean interrupted() { return currentThread().isInterrupted(); }
public static boolean interrupted() { VmThread current = VmThread.currentThread(); if (current != null) { return current.isInterrupted(true); } else { return false; } }
10,062
public boolean isInterrupted() { return vmThread.isInterrupted(); }
public boolean isInterrupted() { return vmThread.isInterrupted(false); }
10,063