bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
protected Container createContentPane() { JPanel p = new JPanel(); p.setName(this.getName() + ".contentPane"); p.setLayout(new BorderLayout()); return p; }
protected Container createContentPane() { JPanel p = new JPanel(); p.setName(this.getName() + ".contentPane"); p.setLayout(new BorderLayout()); return p; }
4,078
protected Component createGlassPane() { JPanel p = new JPanel(); p.setName(this.getName() + ".glassPane"); p.setLayout(new BorderLayout()); p.setVisible(false); p.setOpaque(false); return p; }
protected Component createGlassPane() { JPanel p = new JPanel(); p.setName(this.getName() + ".glassPane"); p.setLayout(new BorderLayout()); p.setVisible(false); p.setOpaque(false); return p; }
4,079
protected Component createGlassPane() { JPanel p = new JPanel(); p.setName(this.getName() + ".glassPane"); p.setLayout(new BorderLayout()); p.setVisible(false); p.setOpaque(false); return p; }
protected Component createGlassPane() { JPanel p = new JPanel(); p.setName(this.getName() + ".glassPane"); p.setLayout(new BorderLayout()); p.setVisible(false); p.setOpaque(false); return p; }
4,080
protected Component createGlassPane() { JPanel p = new JPanel(); p.setName(this.getName() + ".glassPane"); p.setLayout(new BorderLayout()); p.setVisible(false); p.setOpaque(false); return p; }
protected Component createGlassPane() { JPanel p = new JPanel(); p.setName(this.getName() + ".glassPane"); p.setLayout(new BorderLayout()); p.setVisible(false); p.setOpaque(false); return p; }
4,081
protected JLayeredPane createLayeredPane() { JLayeredPane l = new JLayeredPane(); l.setLayout(null); return l; }
protected JLayeredPane createLayeredPane() { JLayeredPane l = new JLayeredPane(); l.setLayout(null); return l; }
4,082
protected LayoutManager createRootLayout() { return new RootLayout(); }
protected LayoutManager createRootLayout() { return new RootLayout(); }
4,083
public Container getContentPane() { if (contentPane == null) setContentPane(createContentPane()); return contentPane; }
public Container getContentPane() { if (contentPane == null) setContentPane(createContentPane()); return contentPane; }
4,084
public Component getGlassPane() { if (glassPane == null) setGlassPane(createGlassPane()); return glassPane; }
public Component getGlassPane() { if (glassPane == null) setGlassPane(createGlassPane()); return glassPane; }
4,085
public JLayeredPane getLayeredPane() { if (layeredPane == null) setLayeredPane(createLayeredPane()); return layeredPane; }
public JLayeredPane getLayeredPane() { if (layeredPane == null) setLayeredPane(createLayeredPane()); return layeredPane; }
4,086
public void setContentPane(Container p) { contentPane = p; getLayeredPane().add(contentPane, JLayeredPane.FRAME_CONTENT_LAYER); }
public void setContentPane(Container p) { contentPane = p; getLayeredPane().add(contentPane, JLayeredPane.FRAME_CONTENT_LAYER); }
4,087
public void setGlassPane(Component f) { if (glassPane != null) remove(glassPane); glassPane = f; glassPane.setVisible(false); add(glassPane, 0); }
public void setGlassPane(Component f) { if (glassPane != null) remove(glassPane); glassPane = f; glassPane.setVisible(false); add(glassPane, 0); }
4,088
public void setGlassPane(Component f) { if (glassPane != null) remove(glassPane); glassPane = f; glassPane.setVisible(false); add(glassPane, 0); }
public void setGlassPane(Component f) { if (glassPane != null) remove(glassPane); glassPane = f; glassPane.setVisible(false); add(glassPane, 0); }
4,089
public void setGlassPane(Component f) { if (glassPane != null) remove(glassPane); glassPane = f; glassPane.setVisible(false); add(glassPane, 0); }
public void setGlassPane(Component f) { if (glassPane != null) remove(glassPane); glassPane = f; glassPane.setVisible(false); add(glassPane, 0); }
4,090
public void setJMenuBar(JMenuBar m) { JLayeredPane jlPane = getLayeredPane(); if (menuBar != null) jlPane.remove(menuBar); menuBar = m; if (menuBar != null) jlPane.add(menuBar, JLayeredPane.FRAME_CONTENT_LAYER); }
public void setJMenuBar(JMenuBar m) { JLayeredPane jlPane = getLayeredPane(); if (menuBar != null) jlPane.remove(menuBar); menuBar = m; if (menuBar != null) jlPane.add(menuBar, JLayeredPane.FRAME_CONTENT_LAYER); }
4,091
public void setJMenuBar(JMenuBar m) { JLayeredPane jlPane = getLayeredPane(); if (menuBar != null) jlPane.remove(menuBar); menuBar = m; if (menuBar != null) jlPane.add(menuBar, JLayeredPane.FRAME_CONTENT_LAYER); }
public void setJMenuBar(JMenuBar m) { JLayeredPane jlPane = getLayeredPane(); if (menuBar != null) jlPane.remove(menuBar); menuBar = m; if (menuBar != null) jlPane.add(menuBar, JLayeredPane.FRAME_CONTENT_LAYER); }
4,092
public void setJMenuBar(JMenuBar m) { JLayeredPane jlPane = getLayeredPane(); if (menuBar != null) jlPane.remove(menuBar); menuBar = m; if (menuBar != null) jlPane.add(menuBar, JLayeredPane.FRAME_CONTENT_LAYER); }
public void setJMenuBar(JMenuBar m) { JLayeredPane jlPane = getLayeredPane(); if (menuBar != null) jlPane.remove(menuBar); menuBar = m; if (menuBar != null) jlPane.add(menuBar, JLayeredPane.FRAME_CONTENT_LAYER); }
4,093
public void setLayeredPane(JLayeredPane f) { if (layeredPane != null) remove(layeredPane); layeredPane = f; add(f, -1); }
public void setLayeredPane(JLayeredPane f) { if (layeredPane != null) remove(layeredPane); layeredPane = f; add(f, -1); }
4,094
public void setWindowDecorationStyle(int style) { if (style != NONE && style != FRAME && style != INFORMATION_DIALOG && style != ERROR_DIALOG && style != COLOR_CHOOSER_DIALOG && style != FILE_CHOOSER_DIALOG && style != QUESTION_DIALOG && style != WARNING_DIALOG && style != PLAIN_DIALOG) throw new IllegalArgumentException("invalid style"); int oldStyle = windowDecorationStyle; windowDecorationStyle = style; firePropertyChange("windowDecorationStyle", oldStyle, style); }
public void setWindowDecorationStyle(int style) { if (style != NONE && style != FRAME && style != INFORMATION_DIALOG && style != ERROR_DIALOG && style != COLOR_CHOOSER_DIALOG && style != FILE_CHOOSER_DIALOG && style != QUESTION_DIALOG && style != WARNING_DIALOG && style != PLAIN_DIALOG) throw new IllegalArgumentException("invalid style"); int oldStyle = windowDecorationStyle; windowDecorationStyle = style; firePropertyChange("windowDecorationStyle", oldStyle, style); }
4,095
public VmCompiledCode( NativeCodeCompiler compiler, VmByteCode bytecode, Address nativeCode, Object compiledCode, int size, VmCompiledExceptionHandler[] eTable, Address defaultExceptionHandler, VmAddressMap addressTable) { this.compiler = compiler; this.magic = compiler.getMagic(); this.bytecode = bytecode; this.nativeCode = nativeCode; this.compiledCode1 = compiledCode; this.eTable = eTable; this.nativeCodeSize1 = size; this.defaultExceptionHandler = defaultExceptionHandler; this.addressTable = addressTable; if (bytecode != null) { bytecode.lock(); } if (addressTable != null) { addressTable.lock(); } }
public VmCompiledCode( NativeCodeCompiler compiler, VmByteCode bytecode, Address nativeCode, Object compiledCode, int size, VmCompiledExceptionHandler[] eTable, Address defaultExceptionHandler, VmAddressMap addressTable) { this.compiler = compiler; this.magic = compiler.getMagic(); this.bytecode = bytecode; this.nativeCode = nativeCode; this.compiledCode1 = compiledCode; this.eTable = eTable; this.nativeCodeSize1 = size; this.defaultExceptionHandler = defaultExceptionHandler; this.addressTable = addressTable; if (bytecode != null) { bytecode.lock(); } if (addressTable != null) { addressTable.lock(); } }
4,096
public static CannotProceed extract(Any a) { try { return ((CannotProceedHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { throw new BAD_OPERATION(); } }
public static CannotProceed extract(Any a) { try { return ((CannotProceedHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { BAD_OPERATION bad = new BAD_OPERATION(); bad.initCause(ex); bad.minor = Minor.Any; throw bad; } }
4,100
public ProgressMonitor(Component component, Object message, String note, int minimum, int maximum) { // Set Data this.component = component; this.message = message; this.note = note; this.minimum = minimum; this.maximum = maximum; // TODO } // ProgressMonitor()
public ProgressMonitor(Component component, Object message, String note, int minimum, int maximum) { // Set Data this.component = component; this.message = message; this.note = note; this.minimum = minimum; this.maximum = maximum; // TODO } // ProgressMonitor()
4,101
public ProgressMonitor(Component component, Object message, String note, int minimum, int maximum) { // Set Data this.component = component; this.message = message; this.note = note; this.minimum = minimum; this.maximum = maximum; // TODO } // ProgressMonitor()
public ProgressMonitor(Component component, Object message, String note, int minimum, int maximum) { // Set Data this.component = component; this.message = message; this.note = note; this.minimum = minimum; this.maximum = maximum; // TODO } // ProgressMonitor()
4,102
public void close() { // TODO } // close()
public void close() { // TODO } // close()
4,103
public int getMaximum() { return maximum; // TODO } // getMaximum()
public int getMaximum() { return maximum; // TODO } // getMaximum()
4,104
public int getMillisToDecideToPopup() { return millisToDecideToPopup; // TODO } // getMillisToDecideToPopup()
public int getMillisToDecideToPopup() { return millisToDecideToPopup; // TODO } // getMillisToDecideToPopup()
4,105
public int getMillisToPopup() { return millisToPopup; // TODO } // getMillisToPopup()
public int getMillisToPopup() { return millisToPopup; // TODO } // getMillisToPopup()
4,106
public int getMinimum() { return minimum; // TODO } // getMinimum()
public int getMinimum() { return minimum; // TODO } // getMinimum()
4,107
public String getNote() { return note; // TODO } // getNote()
public String getNote() { return note; // TODO } // getNote()
4,108
public boolean isCanceled() { return false; // TODO } // isCanceled()
public boolean isCanceled() { return false; // TODO } // isCanceled()
4,109
public void setMaximum(int maximum) { this.maximum = maximum; // TODO } // setMaximum()
public void setMaximum(int maximum) { this.maximum = maximum; // TODO } // setMaximum()
4,110
public void setMillisToDecideToPopup(int time) { millisToDecideToPopup = time; // TODO } // setMillisToDecideToPopup()
public void setMillisToDecideToPopup(int time) { millisToDecideToPopup = time; // TODO } // setMillisToDecideToPopup()
4,111
public void setMillisToPopup(int time) { millisToPopup = time; // TODO } // setMillisToPopup()
public void setMillisToPopup(int time) { millisToPopup = time; // TODO } // setMillisToPopup()
4,112
public void setMinimum(int minimum) { this.minimum = minimum; // TODO } // setMinimum()
public void setMinimum(int minimum) { this.minimum = minimum; // TODO } // setMinimum()
4,113
public void setNote(String note) { this.note = note; // TODO } // setNote()
public void setNote(String note) { this.note = note; // TODO } // setNote()
4,114
public void setProgress(int progress) { // TODO } // setProgress()
public void setProgress(int progress) { // TODO } // setProgress()
4,115
public void setSelected(ButtonModel m, boolean b) { if ((sel != m || b) && (! b || sel == m)) return; if (b && sel != m) { ButtonModel old = sel; sel = m; if (old != null) old.setSelected(false); AbstractButton button = FindButton(old); if (button != null) button.repaint(); } else if (! b && sel == m) m.setSelected(true); }
public void setSelected(ButtonModel m, boolean b) { if ((sel != m || b) && (! b || sel == m)) return; if (b && sel != m) { ButtonModel old = sel; sel = m; if (old != null) old.setSelected(false); AbstractButton button = FindButton(old); if (button != null) button.repaint(); } else if (!b && sel == m) m.setSelected(true); }
4,117
public CharHolder(char initial_value) { value = initial_value; }
public CharHolder() { value = initial_value; }
4,118
public CharHolder(char initial_value) { value = initial_value; }
public CharHolder(char initial_value) { }
4,119
public void loadPlugins(PluginRegistry piRegistry) { if (jarFile == null) { return; } final InitJarPluginLoader loader = new InitJarPluginLoader(); for (Enumeration e = jarFile.entries(); e.hasMoreElements();) { final JarEntry entry = (JarEntry) e.nextElement(); if (entry.getName().endsWith(".jar")) { try { // Load it loader.setIs(jarFile.getInputStream(entry)); piRegistry.loadPlugin(loader, "", "", false); } catch (IOException ex) { BootLog.error("Cannot load " + entry.getName(), ex); } catch (PluginException ex) { BootLog.error("Cannot load " + entry.getName(), ex); } } } }
public void loadPlugins(PluginRegistry piRegistry) { if (jarFile == null) { return; } final InitJarPluginLoader loader = new InitJarPluginLoader(); for (Enumeration e = jarFile.entries(); e.hasMoreElements();) { final JarEntry entry = (JarEntry) e.nextElement(); if (entry.getName().endsWith(".jar")) { try { // Load it loader.setIs(jarFile.getInputStream(entry)); piRegistry.loadPlugin(loader, "", "", false); } catch (IOException ex) { BootLog.error("Cannot load " + entry.getName(), ex); } catch (PluginException ex) { BootLog.error("Cannot load " + entry.getName(), ex); } } } }
4,120
public void loadPlugins(PluginRegistry piRegistry) { if (jarFile == null) { return; } final InitJarPluginLoader loader = new InitJarPluginLoader(); for (Enumeration e = jarFile.entries(); e.hasMoreElements();) { final JarEntry entry = (JarEntry) e.nextElement(); if (entry.getName().endsWith(".jar")) { try { // Load it loader.setIs(jarFile.getInputStream(entry)); piRegistry.loadPlugin(loader, "", "", false); } catch (IOException ex) { BootLog.error("Cannot load " + entry.getName(), ex); } catch (PluginException ex) { BootLog.error("Cannot load " + entry.getName(), ex); } } } }
public void loadPlugins(PluginRegistry piRegistry) { if (jarFile == null) { return; } final InitJarPluginLoader loader = new InitJarPluginLoader(); for (Enumeration e = jarFile.entries(); e.hasMoreElements();) { final JarEntry entry = (JarEntry) e.nextElement(); if (entry.getName().endsWith(".jar")) { try { // Load it loader.setIs(jarFile.getInputStream(entry)); piRegistry.loadPlugin(loader, "", "", false); } catch (IOException ex) { BootLog.error("Cannot load " + entry.getName(), ex); } catch (PluginException ex) { BootLog.error("Cannot load " + entry.getName(), ex); } } } }
4,121
public void loadPlugins(PluginRegistry piRegistry) { if (jarFile == null) { return; } final InitJarPluginLoader loader = new InitJarPluginLoader(); for (Enumeration e = jarFile.entries(); e.hasMoreElements();) { final JarEntry entry = (JarEntry) e.nextElement(); if (entry.getName().endsWith(".jar")) { try { // Load it loader.setIs(jarFile.getInputStream(entry)); piRegistry.loadPlugin(loader, "", "", false); } catch (IOException ex) { BootLog.error("Cannot load " + entry.getName(), ex); } catch (PluginException ex) { BootLog.error("Cannot load " + entry.getName(), ex); } } } }
public void loadPlugins(PluginRegistry piRegistry) { if (jarFile == null) { return; } final InitJarPluginLoader loader = new InitJarPluginLoader(); for (Enumeration e = jarFile.entries(); e.hasMoreElements();) { final JarEntry entry = (JarEntry) e.nextElement(); if (entry.getName().endsWith(".jar")) { try { // Load it loader.setIs(jarFile.getInputStream(entry)); piRegistry.loadPlugin(loader, "", "", false); } catch (IOException ex) { BootLog.error("Cannot load " + entry.getName(), ex); } catch (PluginException ex) { BootLog.error("Cannot load " + entry.getName(), ex); } } } }
4,122
public final void drawChar(Graphics2D g, int pos, int row, int col) { Screen5250 s = screen; ScreenPlanes planes = s.planes;// int attr = planes.getCharAttr(pos); int attr = updateRect.attr[pos]; sChar[0] = updateRect.text[pos]; setDrawAttr(pos); boolean attributePlace = planes.isAttributePlace(s.getPos(row,col)); //attributePlace = true; int whichGui = updateRect.graphic[pos]; boolean useGui = whichGui == 0 ? false : true; csArea = modelToView(row, col, csArea); int x = csArea.x; int y = csArea.y; int cy = (int)(y + rowHeight - (s.lm.getDescent() + s.lm.getLeading()));// int x = sc.x;// int y = sc.y;// int cy = sc.cy; if (attributePlace && s.isShowHex()) {// if ((sc.sChar[0] == 0x20 || sc.sChar[0] == 0x0 || nonDisplay) && s.isShowHex()) { Font f = g.getFont(); Font k = f.deriveFont(f.getSize2D()/2); g.setFont(k); g.setColor(s.colorHexAttr); char[] a = Integer.toHexString(attr).toCharArray(); g.drawChars(a, 0, 1, x, y + (int)(rowHeight /2)); g.drawChars(a, 1, 1, x+(int)(columnWidth/2), (int)(y + rowHeight - (s.lm.getDescent() + s.lm.getLeading())-2)); g.setFont(f);//return; } if(!nonDisplay && !attributePlace) { if (!useGui) { g.setColor(bg); g.fill(csArea); } else { if (bg == s.colorBg && whichGui >= FIELD_LEFT && whichGui <= FIELD_ONE) g.setColor(s.colorGUIField); else g.setColor(bg); g.fill(csArea); } if (useGui && (whichGui < FIELD_LEFT)) { int w = 0; g.setColor(fg); switch (whichGui) { case UPPER_LEFT: if (sChar[0] == '.') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinUpperLeft(g, GUIGraphicsUtils.WINDOW_GRAPHIC, s.colorBlue, x,y,columnWidth,rowHeight); } else { GUIGraphicsUtils.drawWinUpperLeft(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); } } break; case UPPER: if (sChar[0] == '.') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinUpper(g, GUIGraphicsUtils.WINDOW_GRAPHIC, s.colorBlue, x,y,columnWidth,rowHeight); } else { GUIGraphicsUtils.drawWinUpper(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); } } break; case UPPER_RIGHT: if (sChar[0] == '.') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinUpperRight(g, GUIGraphicsUtils.WINDOW_GRAPHIC, s.colorBlue, x,y,columnWidth,rowHeight); } else { GUIGraphicsUtils.drawWinUpperRight(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); } } break; case GUI_LEFT: if (sChar[0] == ':') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinLeft(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,columnWidth,rowHeight); } else { GUIGraphicsUtils.drawWinLeft(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); g.drawLine(x + columnWidth / 2, y, x + columnWidth / 2, y + rowHeight); } } break; case GUI_RIGHT: if (sChar[0] == ':') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinRight(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,columnWidth,rowHeight); } else { GUIGraphicsUtils.drawWinRight(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); } } break; case LOWER_LEFT: if (sChar[0] == ':') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinLowerLeft(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,columnWidth,rowHeight); } else { GUIGraphicsUtils.drawWinLowerLeft(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); } } break; case BOTTOM: if (sChar[0] == '.') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinBottom(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,columnWidth,rowHeight); } else { GUIGraphicsUtils.drawWinBottom(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); } } break; case LOWER_RIGHT: if (sChar[0] == ':') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinLowerRight(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,columnWidth,rowHeight); } else { GUIGraphicsUtils.drawWinLowerRight(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); } } break; } } else { if (sChar[0] != 0x0) { // use this until we define colors for gui stuff if ((useGui && whichGui < BUTTON_LEFT) && (fg == s.colorGUIField)) g.setColor(Color.black); else g.setColor(fg); try { if (useGui) if (sChar[0] == 0x1C) g.drawChars(dupChar, 0, 1, x+1, cy -2); else g.drawChars(sChar, 0, 1, x+1, cy -2); else if (sChar[0] == 0x1C) g.drawChars(dupChar, 0, 1, x, cy -2); else g.drawChars(sChar, 0, 1, x, cy -2); } catch (IllegalArgumentException iae) { System.out.println(" ScreenChar iae " + iae.getMessage()); } } if(underLine ) { if (!useGui || s.guiShowUnderline) { g.setColor(fg);// g.drawLine(x, cy -2, (int)(x + columnWidth), cy -2);// g.drawLine(x, (int)(y + (rowHeight - s.lm.getLeading()-5)), (int)(x + columnWidth), (int)(y + (rowHeight - s.lm.getLeading())-5)); g.drawLine(x, (int)(y + (rowHeight - (s.lm.getLeading() + s.lm.getDescent()))), (int)(x + columnWidth), (int)(y + (rowHeight -(s.lm.getLeading() + s.lm.getDescent())))); } } if(colSep) { g.setColor(s.colorSep); switch (s.getColSepLine()) { case 0: // line g.drawLine(x, y, x, y + rowHeight - 1); g.drawLine(x + columnWidth - 1, y, x + columnWidth - 1, y + rowHeight); break; case 1: // short line g.drawLine(x, y + rowHeight - (int)s.lm.getLeading()-4, x, y + rowHeight); g.drawLine(x + columnWidth - 1, y + rowHeight - (int)s.lm.getLeading()-4, x + columnWidth - 1, y + rowHeight); break; case 2: // dot g.drawLine(x, y + rowHeight - (int)s.lm.getLeading()-3, x, y + rowHeight - (int)s.lm.getLeading()-4); g.drawLine(x + columnWidth - 1, y + rowHeight - (int)s.lm.getLeading()-3, x + columnWidth - 1, y + rowHeight - (int)s.lm.getLeading()-4); break; case 3: // hide break; } } } } if (useGui & (whichGui >= FIELD_LEFT)) { int w = 0; switch (whichGui) { case FIELD_LEFT: GUIGraphicsUtils.draw3DLeft(g, GUIGraphicsUtils.INSET, x,y, columnWidth,rowHeight); break; case FIELD_MIDDLE: GUIGraphicsUtils.draw3DMiddle(g, GUIGraphicsUtils.INSET, x,y, columnWidth,rowHeight); break; case FIELD_RIGHT: GUIGraphicsUtils.draw3DRight(g, GUIGraphicsUtils.INSET, x,y, columnWidth,rowHeight); break; case FIELD_ONE: GUIGraphicsUtils.draw3DOne(g, GUIGraphicsUtils.INSET, x,y, columnWidth,rowHeight); break; case BUTTON_LEFT: case BUTTON_LEFT_UP: case BUTTON_LEFT_DN: case BUTTON_LEFT_EB: GUIGraphicsUtils.draw3DLeft(g, GUIGraphicsUtils.RAISED, x,y, columnWidth,rowHeight); break; case BUTTON_MIDDLE: case BUTTON_MIDDLE_UP: case BUTTON_MIDDLE_DN: case BUTTON_MIDDLE_EB: GUIGraphicsUtils.draw3DMiddle(g, GUIGraphicsUtils.RAISED, x,y, columnWidth,rowHeight); break; case BUTTON_RIGHT: case BUTTON_RIGHT_UP: case BUTTON_RIGHT_DN: case BUTTON_RIGHT_EB: GUIGraphicsUtils.draw3DRight(g, GUIGraphicsUtils.RAISED, x,y, columnWidth,rowHeight); break; // scroll bar case BUTTON_SB_UP: GUIGraphicsUtils.drawScrollBar(g, GUIGraphicsUtils.RAISED, 1, x,y, columnWidth,rowHeight, s.colorWhite,s.colorBg); break; // scroll bar case BUTTON_SB_DN: GUIGraphicsUtils.drawScrollBar(g, GUIGraphicsUtils.RAISED, 2, x,y, columnWidth,rowHeight, s.colorWhite,s.colorBg); break; // scroll bar case BUTTON_SB_GUIDE: GUIGraphicsUtils.drawScrollBar(g, GUIGraphicsUtils.INSET, 0,x,y, columnWidth,rowHeight, s.colorWhite,s.colorBg); break; // scroll bar case BUTTON_SB_THUMB: GUIGraphicsUtils.drawScrollBar(g, GUIGraphicsUtils.INSET, 3,x,y, columnWidth,rowHeight, s.colorWhite,s.colorBg); break; } } }
publicfinalvoiddrawChar(Graphics2Dg,intpos,introw,intcol){Screen5250s=screen;ScreenPlanesplanes=s.planes;//intattr=planes.getCharAttr(pos);intattr=updateRect.attr[pos];sChar[0]=updateRect.text[pos];setDrawAttr(pos);booleanattributePlace=planes.isAttributePlace(s.getPos(row,col));//attributePlace=true;intwhichGui=updateRect.graphic[pos];booleanuseGui=whichGui==0?false:true;csArea=modelToView(row,col,csArea);intx=csArea.x;inty=csArea.y;intcy=(int)(y+rowHeight-(s.lm.getDescent()+s.lm.getLeading()));//intx=sc.x;//inty=sc.y;//intcy=sc.cy;if(attributePlace&&s.isShowHex()){//if((sc.sChar[0]==0x20||sc.sChar[0]==0x0||nonDisplay)&&s.isShowHex()){Fontf=g.getFont();Fontk=f.deriveFont(f.getSize2D()/2);g.setFont(k);g.setColor(s.colorHexAttr);char[]a=Integer.toHexString(attr).toCharArray();g.drawChars(a,0,1,x,y+(int)(rowHeight/2));g.drawChars(a,1,1,x+(int)(columnWidth/2),(int)(y+rowHeight-(s.lm.getDescent()+s.lm.getLeading())-2));g.setFont(f);//return;}if(!nonDisplay&&!attributePlace){if(!useGui){g.setColor(bg);g.fill(csArea);}else{if(bg==s.colorBg&&whichGui>=FIELD_LEFT&&whichGui<=FIELD_ONE)g.setColor(s.colorGUIField);elseg.setColor(bg);g.fill(csArea);}if(useGui&&(whichGui<FIELD_LEFT)){intw=0;g.setColor(fg);switch(whichGui){caseUPPER_LEFT:if(sChar[0]=='.'){if(s.isUsingGuiInterface()){GUIGraphicsUtils.drawWinUpperLeft(g,GUIGraphicsUtils.WINDOW_GRAPHIC,s.colorBlue,x,y,columnWidth,rowHeight);}else{GUIGraphicsUtils.drawWinUpperLeft(g,GUIGraphicsUtils.WINDOW_NORMAL,fg,x,y,columnWidth,rowHeight);}}break;caseUPPER:if(sChar[0]=='.'){if(s.isUsingGuiInterface()){GUIGraphicsUtils.drawWinUpper(g,GUIGraphicsUtils.WINDOW_GRAPHIC,s.colorBlue,x,y,columnWidth,rowHeight);}else{GUIGraphicsUtils.drawWinUpper(g,GUIGraphicsUtils.WINDOW_NORMAL,fg,x,y,columnWidth,rowHeight);}}break;caseUPPER_RIGHT:if(sChar[0]=='.'){if(s.isUsingGuiInterface()){GUIGraphicsUtils.drawWinUpperRight(g,GUIGraphicsUtils.WINDOW_GRAPHIC,s.colorBlue,x,y,columnWidth,rowHeight);}else{GUIGraphicsUtils.drawWinUpperRight(g,GUIGraphicsUtils.WINDOW_NORMAL,fg,x,y,columnWidth,rowHeight);}}break;caseGUI_LEFT:if(sChar[0]==':'){if(s.isUsingGuiInterface()){GUIGraphicsUtils.drawWinLeft(g,GUIGraphicsUtils.WINDOW_GRAPHIC,bg,x,y,columnWidth,rowHeight);}else{GUIGraphicsUtils.drawWinLeft(g,GUIGraphicsUtils.WINDOW_NORMAL,fg,x,y,columnWidth,rowHeight);g.drawLine(x+columnWidth/2,y,x+columnWidth/2,y+rowHeight);}}break;caseGUI_RIGHT:if(sChar[0]==':'){if(s.isUsingGuiInterface()){GUIGraphicsUtils.drawWinRight(g,GUIGraphicsUtils.WINDOW_GRAPHIC,bg,x,y,columnWidth,rowHeight);}else{GUIGraphicsUtils.drawWinRight(g,GUIGraphicsUtils.WINDOW_NORMAL,fg,x,y,columnWidth,rowHeight);}}break;caseLOWER_LEFT:if(sChar[0]==':'){if(s.isUsingGuiInterface()){GUIGraphicsUtils.drawWinLowerLeft(g,GUIGraphicsUtils.WINDOW_GRAPHIC,bg,x,y,columnWidth,rowHeight);}else{GUIGraphicsUtils.drawWinLowerLeft(g,GUIGraphicsUtils.WINDOW_NORMAL,fg,x,y,columnWidth,rowHeight);}}break;caseBOTTOM:if(sChar[0]=='.'){if(s.isUsingGuiInterface()){GUIGraphicsUtils.drawWinBottom(g,GUIGraphicsUtils.WINDOW_GRAPHIC,bg,x,y,columnWidth,rowHeight);}else{GUIGraphicsUtils.drawWinBottom(g,GUIGraphicsUtils.WINDOW_NORMAL,fg,x,y,columnWidth,rowHeight);}}break;caseLOWER_RIGHT:if(sChar[0]==':'){if(s.isUsingGuiInterface()){GUIGraphicsUtils.drawWinLowerRight(g,GUIGraphicsUtils.WINDOW_GRAPHIC,bg,x,y,columnWidth,rowHeight);}else{GUIGraphicsUtils.drawWinLowerRight(g,GUIGraphicsUtils.WINDOW_NORMAL,fg,x,y,columnWidth,rowHeight);}}break;}}else{if(sChar[0]!=0x0){//usethisuntilwedefinecolorsforguistuffif((useGui&&whichGui<BUTTON_LEFT)&&(fg==s.colorGUIField))g.setColor(Color.black);elseg.setColor(fg);try{if(useGui)if(sChar[0]==0x1C)g.drawChars(dupChar,0,1,x+1,cy-2);elseg.drawChars(sChar,0,1,x+1,cy-2);elseif(sChar[0]==0x1C)g.drawChars(dupChar,0,1,x,cy-2);elseg.drawChars(sChar,0,1,x,cy-2);}catch(IllegalArgumentExceptioniae){System.out.println("ScreenChariae"+iae.getMessage());}}if(underLine){if(!useGui||s.guiShowUnderline){g.setColor(fg);//g.drawLine(x,cy-2,(int)(x+columnWidth),cy-2);//g.drawLine(x,(int)(y+(rowHeight-s.lm.getLeading()-5)),(int)(x+columnWidth),(int)(y+(rowHeight-s.lm.getLeading())-5));g.drawLine(x,(int)(y+(rowHeight-(s.lm.getLeading()+s.lm.getDescent()))),(int)(x+columnWidth),(int)(y+(rowHeight-(s.lm.getLeading()+s.lm.getDescent()))));}}if(colSep){g.setColor(s.colorSep);switch(s.getColSepLine()){case0://lineg.drawLine(x,y,x,y+rowHeight-1);g.drawLine(x+columnWidth-1,y,x+columnWidth-1,y+rowHeight);break;case1://shortlineg.drawLine(x,y+rowHeight-(int)s.lm.getLeading()-4,x,y+rowHeight);g.drawLine(x+columnWidth-1,y+rowHeight-(int)s.lm.getLeading()-4,x+columnWidth-1,y+rowHeight);break;case2://dotg.drawLine(x,y+rowHeight-(int)s.lm.getLeading()-3,x,y+rowHeight-(int)s.lm.getLeading()-4);g.drawLine(x+columnWidth-1,y+rowHeight-(int)s.lm.getLeading()-3,x+columnWidth-1,y+rowHeight-(int)s.lm.getLeading()-4);break;case3://hidebreak;}}}}if(useGui&(whichGui>=FIELD_LEFT)){intw=0;switch(whichGui){caseFIELD_LEFT:GUIGraphicsUtils.draw3DLeft(g,GUIGraphicsUtils.INSET,x,y,columnWidth,rowHeight);break;caseFIELD_MIDDLE:GUIGraphicsUtils.draw3DMiddle(g,GUIGraphicsUtils.INSET,x,y,columnWidth,rowHeight);break;caseFIELD_RIGHT:GUIGraphicsUtils.draw3DRight(g,GUIGraphicsUtils.INSET,x,y,columnWidth,rowHeight);break;caseFIELD_ONE:GUIGraphicsUtils.draw3DOne(g,GUIGraphicsUtils.INSET,x,y,columnWidth,rowHeight);break;caseBUTTON_LEFT:caseBUTTON_LEFT_UP:caseBUTTON_LEFT_DN:caseBUTTON_LEFT_EB:GUIGraphicsUtils.draw3DLeft(g,GUIGraphicsUtils.RAISED,x,y,columnWidth,rowHeight);break;caseBUTTON_MIDDLE:caseBUTTON_MIDDLE_UP:caseBUTTON_MIDDLE_DN:caseBUTTON_MIDDLE_EB:GUIGraphicsUtils.draw3DMiddle(g,GUIGraphicsUtils.RAISED,x,y,columnWidth,rowHeight);break;caseBUTTON_RIGHT:caseBUTTON_RIGHT_UP:caseBUTTON_RIGHT_DN:caseBUTTON_RIGHT_EB:GUIGraphicsUtils.draw3DRight(g,GUIGraphicsUtils.RAISED,x,y,columnWidth,rowHeight);break;//scrollbarcaseBUTTON_SB_UP:GUIGraphicsUtils.drawScrollBar(g,GUIGraphicsUtils.RAISED,1,x,y,columnWidth,rowHeight,s.colorWhite,s.colorBg);break;//scrollbarcaseBUTTON_SB_DN:GUIGraphicsUtils.drawScrollBar(g,GUIGraphicsUtils.RAISED,2,x,y,columnWidth,rowHeight,s.colorWhite,s.colorBg);break;//scrollbarcaseBUTTON_SB_GUIDE:GUIGraphicsUtils.drawScrollBar(g,GUIGraphicsUtils.INSET,0,x,y,columnWidth,rowHeight,s.colorWhite,s.colorBg);break;//scrollbarcaseBUTTON_SB_THUMB:GUIGraphicsUtils.drawScrollBar(g,GUIGraphicsUtils.INSET,3,x,y,columnWidth,rowHeight,s.colorWhite,s.colorBg);break;}}}
4,124
public final void drawChar(Graphics2D g, int pos, int row, int col) { Screen5250 s = screen; ScreenPlanes planes = s.planes;// int attr = planes.getCharAttr(pos); int attr = updateRect.attr[pos]; sChar[0] = updateRect.text[pos]; setDrawAttr(pos); boolean attributePlace = planes.isAttributePlace(s.getPos(row,col)); //attributePlace = true; int whichGui = updateRect.graphic[pos]; boolean useGui = whichGui == 0 ? false : true; csArea = modelToView(row, col, csArea); int x = csArea.x; int y = csArea.y; int cy = (int)(y + rowHeight - (s.lm.getDescent() + s.lm.getLeading()));// int x = sc.x;// int y = sc.y;// int cy = sc.cy; if (attributePlace && s.isShowHex()) {// if ((sc.sChar[0] == 0x20 || sc.sChar[0] == 0x0 || nonDisplay) && s.isShowHex()) { Font f = g.getFont(); Font k = f.deriveFont(f.getSize2D()/2); g.setFont(k); g.setColor(s.colorHexAttr); char[] a = Integer.toHexString(attr).toCharArray(); g.drawChars(a, 0, 1, x, y + (int)(rowHeight /2)); g.drawChars(a, 1, 1, x+(int)(columnWidth/2), (int)(y + rowHeight - (s.lm.getDescent() + s.lm.getLeading())-2)); g.setFont(f);//return; } if(!nonDisplay && !attributePlace) { if (!useGui) { g.setColor(bg); g.fill(csArea); } else { if (bg == s.colorBg && whichGui >= FIELD_LEFT && whichGui <= FIELD_ONE) g.setColor(s.colorGUIField); else g.setColor(bg); g.fill(csArea); } if (useGui && (whichGui < FIELD_LEFT)) { int w = 0; g.setColor(fg); switch (whichGui) { case UPPER_LEFT: if (sChar[0] == '.') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinUpperLeft(g, GUIGraphicsUtils.WINDOW_GRAPHIC, s.colorBlue, x,y,columnWidth,rowHeight); } else { GUIGraphicsUtils.drawWinUpperLeft(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); } } break; case UPPER: if (sChar[0] == '.') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinUpper(g, GUIGraphicsUtils.WINDOW_GRAPHIC, s.colorBlue, x,y,columnWidth,rowHeight); } else { GUIGraphicsUtils.drawWinUpper(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); } } break; case UPPER_RIGHT: if (sChar[0] == '.') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinUpperRight(g, GUIGraphicsUtils.WINDOW_GRAPHIC, s.colorBlue, x,y,columnWidth,rowHeight); } else { GUIGraphicsUtils.drawWinUpperRight(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); } } break; case GUI_LEFT: if (sChar[0] == ':') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinLeft(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,columnWidth,rowHeight); } else { GUIGraphicsUtils.drawWinLeft(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); g.drawLine(x + columnWidth / 2, y, x + columnWidth / 2, y + rowHeight); } } break; case GUI_RIGHT: if (sChar[0] == ':') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinRight(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,columnWidth,rowHeight); } else { GUIGraphicsUtils.drawWinRight(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); } } break; case LOWER_LEFT: if (sChar[0] == ':') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinLowerLeft(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,columnWidth,rowHeight); } else { GUIGraphicsUtils.drawWinLowerLeft(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); } } break; case BOTTOM: if (sChar[0] == '.') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinBottom(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,columnWidth,rowHeight); } else { GUIGraphicsUtils.drawWinBottom(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); } } break; case LOWER_RIGHT: if (sChar[0] == ':') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinLowerRight(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,columnWidth,rowHeight); } else { GUIGraphicsUtils.drawWinLowerRight(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); } } break; } } else { if (sChar[0] != 0x0) { // use this until we define colors for gui stuff if ((useGui && whichGui < BUTTON_LEFT) && (fg == s.colorGUIField)) g.setColor(Color.black); else g.setColor(fg); try { if (useGui) if (sChar[0] == 0x1C) g.drawChars(dupChar, 0, 1, x+1, cy -2); else g.drawChars(sChar, 0, 1, x+1, cy -2); else if (sChar[0] == 0x1C) g.drawChars(dupChar, 0, 1, x, cy -2); else g.drawChars(sChar, 0, 1, x, cy -2); } catch (IllegalArgumentException iae) { System.out.println(" ScreenChar iae " + iae.getMessage()); } } if(underLine ) { if (!useGui || s.guiShowUnderline) { g.setColor(fg);// g.drawLine(x, cy -2, (int)(x + columnWidth), cy -2);// g.drawLine(x, (int)(y + (rowHeight - s.lm.getLeading()-5)), (int)(x + columnWidth), (int)(y + (rowHeight - s.lm.getLeading())-5)); g.drawLine(x, (int)(y + (rowHeight - (s.lm.getLeading() + s.lm.getDescent()))), (int)(x + columnWidth), (int)(y + (rowHeight -(s.lm.getLeading() + s.lm.getDescent())))); } } if(colSep) { g.setColor(s.colorSep); switch (s.getColSepLine()) { case 0: // line g.drawLine(x, y, x, y + rowHeight - 1); g.drawLine(x + columnWidth - 1, y, x + columnWidth - 1, y + rowHeight); break; case 1: // short line g.drawLine(x, y + rowHeight - (int)s.lm.getLeading()-4, x, y + rowHeight); g.drawLine(x + columnWidth - 1, y + rowHeight - (int)s.lm.getLeading()-4, x + columnWidth - 1, y + rowHeight); break; case 2: // dot g.drawLine(x, y + rowHeight - (int)s.lm.getLeading()-3, x, y + rowHeight - (int)s.lm.getLeading()-4); g.drawLine(x + columnWidth - 1, y + rowHeight - (int)s.lm.getLeading()-3, x + columnWidth - 1, y + rowHeight - (int)s.lm.getLeading()-4); break; case 3: // hide break; } } } } if (useGui & (whichGui >= FIELD_LEFT)) { int w = 0; switch (whichGui) { case FIELD_LEFT: GUIGraphicsUtils.draw3DLeft(g, GUIGraphicsUtils.INSET, x,y, columnWidth,rowHeight); break; case FIELD_MIDDLE: GUIGraphicsUtils.draw3DMiddle(g, GUIGraphicsUtils.INSET, x,y, columnWidth,rowHeight); break; case FIELD_RIGHT: GUIGraphicsUtils.draw3DRight(g, GUIGraphicsUtils.INSET, x,y, columnWidth,rowHeight); break; case FIELD_ONE: GUIGraphicsUtils.draw3DOne(g, GUIGraphicsUtils.INSET, x,y, columnWidth,rowHeight); break; case BUTTON_LEFT: case BUTTON_LEFT_UP: case BUTTON_LEFT_DN: case BUTTON_LEFT_EB: GUIGraphicsUtils.draw3DLeft(g, GUIGraphicsUtils.RAISED, x,y, columnWidth,rowHeight); break; case BUTTON_MIDDLE: case BUTTON_MIDDLE_UP: case BUTTON_MIDDLE_DN: case BUTTON_MIDDLE_EB: GUIGraphicsUtils.draw3DMiddle(g, GUIGraphicsUtils.RAISED, x,y, columnWidth,rowHeight); break; case BUTTON_RIGHT: case BUTTON_RIGHT_UP: case BUTTON_RIGHT_DN: case BUTTON_RIGHT_EB: GUIGraphicsUtils.draw3DRight(g, GUIGraphicsUtils.RAISED, x,y, columnWidth,rowHeight); break; // scroll bar case BUTTON_SB_UP: GUIGraphicsUtils.drawScrollBar(g, GUIGraphicsUtils.RAISED, 1, x,y, columnWidth,rowHeight, s.colorWhite,s.colorBg); break; // scroll bar case BUTTON_SB_DN: GUIGraphicsUtils.drawScrollBar(g, GUIGraphicsUtils.RAISED, 2, x,y, columnWidth,rowHeight, s.colorWhite,s.colorBg); break; // scroll bar case BUTTON_SB_GUIDE: GUIGraphicsUtils.drawScrollBar(g, GUIGraphicsUtils.INSET, 0,x,y, columnWidth,rowHeight, s.colorWhite,s.colorBg); break; // scroll bar case BUTTON_SB_THUMB: GUIGraphicsUtils.drawScrollBar(g, GUIGraphicsUtils.INSET, 3,x,y, columnWidth,rowHeight, s.colorWhite,s.colorBg); break; } } }
publicfinalvoiddrawChar(Graphics2Dg,intpos,introw,intcol){Screen5250s=screen;ScreenPlanesplanes=s.planes;//intattr=planes.getCharAttr(pos);intattr=updateRect.attr[pos];sChar[0]=updateRect.text[pos];setDrawAttr(pos);booleanattributePlace=planes.isAttributePlace(s.getPos(row,col));//attributePlace=true;intwhichGui=updateRect.graphic[pos];booleanuseGui=whichGui==0?false:true;csArea=modelToView(row,col,csArea);intx=csArea.x;inty=csArea.y;intcy=(int)(y+rowHeight-(s.lm.getDescent()+s.lm.getLeading()));//intx=sc.x;//inty=sc.y;//intcy=sc.cy;if(attributePlace&&s.isShowHex()){//if((sc.sChar[0]==0x20||sc.sChar[0]==0x0||nonDisplay)&&s.isShowHex()){Fontf=g.getFont();Fontk=f.deriveFont(f.getSize2D()/2);g.setFont(k);g.setColor(s.colorHexAttr);char[]a=Integer.toHexString(attr).toCharArray();g.drawChars(a,0,1,x,y+(int)(rowHeight/2));g.drawChars(a,1,1,x+(int)(columnWidth/2),(int)(y+rowHeight-(s.lm.getDescent()+s.lm.getLeading())-2));g.setFont(f);//return;}if(!nonDisplay&&!attributePlace){if(!useGui){g.setColor(bg);g.fill(csArea);}else{if(bg==s.colorBg&&whichGui>=FIELD_LEFT&&whichGui<=FIELD_ONE)g.setColor(s.colorGUIField);elseg.setColor(bg);g.fill(csArea);}if(useGui&&(whichGui<FIELD_LEFT)){intw=0;g.setColor(fg);switch(whichGui){caseUPPER_LEFT:if(sChar[0]=='.'){if(s.isUsingGuiInterface()){GUIGraphicsUtils.drawWinUpperLeft(g,GUIGraphicsUtils.WINDOW_GRAPHIC,s.colorBlue,x,y,columnWidth,rowHeight);}else{GUIGraphicsUtils.drawWinUpperLeft(g,GUIGraphicsUtils.WINDOW_NORMAL,fg,x,y,columnWidth,rowHeight);}}break;caseUPPER:if(sChar[0]=='.'){if(s.isUsingGuiInterface()){GUIGraphicsUtils.drawWinUpper(g,GUIGraphicsUtils.WINDOW_GRAPHIC,s.colorBlue,x,y,columnWidth,rowHeight);}else{GUIGraphicsUtils.drawWinUpper(g,GUIGraphicsUtils.WINDOW_NORMAL,fg,x,y,columnWidth,rowHeight);}}break;caseUPPER_RIGHT:if(sChar[0]=='.'){if(s.isUsingGuiInterface()){GUIGraphicsUtils.drawWinUpperRight(g,GUIGraphicsUtils.WINDOW_GRAPHIC,s.colorBlue,x,y,columnWidth,rowHeight);}else{GUIGraphicsUtils.drawWinUpperRight(g,GUIGraphicsUtils.WINDOW_NORMAL,fg,x,y,columnWidth,rowHeight);}}break;caseGUI_LEFT:if(sChar[0]==':'){if(s.isUsingGuiInterface()){GUIGraphicsUtils.drawWinLeft(g,GUIGraphicsUtils.WINDOW_GRAPHIC,bg,x,y,columnWidth,rowHeight);}else{GUIGraphicsUtils.drawWinLeft(g,GUIGraphicsUtils.WINDOW_NORMAL,fg,x,y,columnWidth,rowHeight);g.drawLine(x+columnWidth/2,y,x+columnWidth/2,y+rowHeight);}}break;caseGUI_RIGHT:if(sChar[0]==':'){if(s.isUsingGuiInterface()){GUIGraphicsUtils.drawWinRight(g,GUIGraphicsUtils.WINDOW_GRAPHIC,bg,x,y,columnWidth,rowHeight);}else{GUIGraphicsUtils.drawWinRight(g,GUIGraphicsUtils.WINDOW_NORMAL,fg,x,y,columnWidth,rowHeight);}}break;caseLOWER_LEFT:if(sChar[0]==':'){if(s.isUsingGuiInterface()){GUIGraphicsUtils.drawWinLowerLeft(g,GUIGraphicsUtils.WINDOW_GRAPHIC,bg,x,y,columnWidth,rowHeight);}else{GUIGraphicsUtils.drawWinLowerLeft(g,GUIGraphicsUtils.WINDOW_NORMAL,fg,x,y,columnWidth,rowHeight);}}break;caseBOTTOM:if(sChar[0]=='.'){if(s.isUsingGuiInterface()){GUIGraphicsUtils.drawWinBottom(g,GUIGraphicsUtils.WINDOW_GRAPHIC,bg,x,y,columnWidth,rowHeight);}else{GUIGraphicsUtils.drawWinBottom(g,GUIGraphicsUtils.WINDOW_NORMAL,fg,x,y,columnWidth,rowHeight);}}break;caseLOWER_RIGHT:if(sChar[0]==':'){if(s.isUsingGuiInterface()){GUIGraphicsUtils.drawWinLowerRight(g,GUIGraphicsUtils.WINDOW_GRAPHIC,bg,x,y,columnWidth,rowHeight);}else{GUIGraphicsUtils.drawWinLowerRight(g,GUIGraphicsUtils.WINDOW_NORMAL,fg,x,y,columnWidth,rowHeight);}}break;}}else{if(sChar[0]!=0x0){//usethisuntilwedefinecolorsforguistuffif((useGui&&whichGui<BUTTON_LEFT)&&(fg==s.colorGUIField))g.setColor(Color.black);elseg.setColor(fg);try{if(useGui)if(sChar[0]==0x1C)g.drawChars(dupChar,0,1,x+1,cy-2);elseg.drawChars(sChar,0,1,x+1,cy-2);elseif(sChar[0]==0x1C)g.drawChars(dupChar,0,1,x,cy-2);elseg.drawChars(sChar,0,1,x,cy-2);}catch(IllegalArgumentExceptioniae){System.out.println("ScreenChariae"+iae.getMessage());}}if(underLine){if(!useGui||s.guiShowUnderline){g.setColor(fg);//g.drawLine(x,cy-2,(int)(x+columnWidth),cy-2);//g.drawLine(x,(int)(y+(rowHeight-s.lm.getLeading()-5)),(int)(x+columnWidth),(int)(y+(rowHeight-s.lm.getLeading())-5));g.drawLine(x,(int)(y+(rowHeight-(s.lm.getLeading()+s.lm.getDescent()))),(int)(x+columnWidth),(int)(y+(rowHeight-(s.lm.getLeading()+s.lm.getDescent()))));}}if(colSep){g.setColor(s.colorSep);switch(s.getColSepLine()){case0://lineg.drawLine(x,y,x,y+rowHeight-1);g.drawLine(x+columnWidth-1,y,x+columnWidth-1,y+rowHeight);break;case1://shortlineg.drawLine(x,y+rowHeight-(int)s.lm.getLeading()-4,x,y+rowHeight);g.drawLine(x+columnWidth-1,y+rowHeight-(int)s.lm.getLeading()-4,x+columnWidth-1,y+rowHeight);break;case2://dotg.drawLine(x,y+rowHeight-(int)s.lm.getLeading()-3,x,y+rowHeight-(int)s.lm.getLeading()-4);g.drawLine(x+columnWidth-1,y+rowHeight-(int)s.lm.getLeading()-3,x+columnWidth-1,y+rowHeight-(int)s.lm.getLeading()-4);break;case3://hidebreak;}}}}if(useGui&(whichGui>=FIELD_LEFT)){intw=0;switch(whichGui){caseFIELD_LEFT:GUIGraphicsUtils.draw3DLeft(g,GUIGraphicsUtils.INSET,x,y,columnWidth,rowHeight);break;caseFIELD_MIDDLE:GUIGraphicsUtils.draw3DMiddle(g,GUIGraphicsUtils.INSET,x,y,columnWidth,rowHeight);break;caseFIELD_RIGHT:GUIGraphicsUtils.draw3DRight(g,GUIGraphicsUtils.INSET,x,y,columnWidth,rowHeight);break;caseFIELD_ONE:GUIGraphicsUtils.draw3DOne(g,GUIGraphicsUtils.INSET,x,y,columnWidth,rowHeight);break;caseBUTTON_LEFT:caseBUTTON_LEFT_UP:caseBUTTON_LEFT_DN:caseBUTTON_LEFT_EB:GUIGraphicsUtils.draw3DLeft(g,GUIGraphicsUtils.RAISED,x,y,columnWidth,rowHeight);break;caseBUTTON_MIDDLE:caseBUTTON_MIDDLE_UP:caseBUTTON_MIDDLE_DN:caseBUTTON_MIDDLE_EB:GUIGraphicsUtils.draw3DMiddle(g,GUIGraphicsUtils.RAISED,x,y,columnWidth,rowHeight);break;caseBUTTON_RIGHT:caseBUTTON_RIGHT_UP:caseBUTTON_RIGHT_DN:caseBUTTON_RIGHT_EB:GUIGraphicsUtils.draw3DRight(g,GUIGraphicsUtils.RAISED,x,y,columnWidth,rowHeight);break;//scrollbarcaseBUTTON_SB_UP:GUIGraphicsUtils.drawScrollBar(g,GUIGraphicsUtils.RAISED,1,x,y,columnWidth,rowHeight,s.colorWhite,s.colorBg);break;//scrollbarcaseBUTTON_SB_DN:GUIGraphicsUtils.drawScrollBar(g,GUIGraphicsUtils.RAISED,2,x,y,columnWidth,rowHeight,s.colorWhite,s.colorBg);break;//scrollbarcaseBUTTON_SB_GUIDE:GUIGraphicsUtils.drawScrollBar(g,GUIGraphicsUtils.INSET,0,x,y,columnWidth,rowHeight,s.colorWhite,s.colorBg);break;//scrollbarcaseBUTTON_SB_THUMB:GUIGraphicsUtils.drawScrollBar(g,GUIGraphicsUtils.INSET,3,x,y,columnWidth,rowHeight,s.colorWhite,s.colorBg);break;}}}
4,125
public final void drawChar(Graphics2D g, int pos, int row, int col) { Screen5250 s = screen; ScreenPlanes planes = s.planes;// int attr = planes.getCharAttr(pos); int attr = updateRect.attr[pos]; sChar[0] = updateRect.text[pos]; setDrawAttr(pos); boolean attributePlace = planes.isAttributePlace(s.getPos(row,col)); //attributePlace = true; int whichGui = updateRect.graphic[pos]; boolean useGui = whichGui == 0 ? false : true; csArea = modelToView(row, col, csArea); int x = csArea.x; int y = csArea.y; int cy = (int)(y + rowHeight - (s.lm.getDescent() + s.lm.getLeading()));// int x = sc.x;// int y = sc.y;// int cy = sc.cy; if (attributePlace && s.isShowHex()) {// if ((sc.sChar[0] == 0x20 || sc.sChar[0] == 0x0 || nonDisplay) && s.isShowHex()) { Font f = g.getFont(); Font k = f.deriveFont(f.getSize2D()/2); g.setFont(k); g.setColor(s.colorHexAttr); char[] a = Integer.toHexString(attr).toCharArray(); g.drawChars(a, 0, 1, x, y + (int)(rowHeight /2)); g.drawChars(a, 1, 1, x+(int)(columnWidth/2), (int)(y + rowHeight - (s.lm.getDescent() + s.lm.getLeading())-2)); g.setFont(f);//return; } if(!nonDisplay && !attributePlace) { if (!useGui) { g.setColor(bg); g.fill(csArea); } else { if (bg == s.colorBg && whichGui >= FIELD_LEFT && whichGui <= FIELD_ONE) g.setColor(s.colorGUIField); else g.setColor(bg); g.fill(csArea); } if (useGui && (whichGui < FIELD_LEFT)) { int w = 0; g.setColor(fg); switch (whichGui) { case UPPER_LEFT: if (sChar[0] == '.') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinUpperLeft(g, GUIGraphicsUtils.WINDOW_GRAPHIC, s.colorBlue, x,y,columnWidth,rowHeight); } else { GUIGraphicsUtils.drawWinUpperLeft(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); } } break; case UPPER: if (sChar[0] == '.') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinUpper(g, GUIGraphicsUtils.WINDOW_GRAPHIC, s.colorBlue, x,y,columnWidth,rowHeight); } else { GUIGraphicsUtils.drawWinUpper(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); } } break; case UPPER_RIGHT: if (sChar[0] == '.') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinUpperRight(g, GUIGraphicsUtils.WINDOW_GRAPHIC, s.colorBlue, x,y,columnWidth,rowHeight); } else { GUIGraphicsUtils.drawWinUpperRight(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); } } break; case GUI_LEFT: if (sChar[0] == ':') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinLeft(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,columnWidth,rowHeight); } else { GUIGraphicsUtils.drawWinLeft(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); g.drawLine(x + columnWidth / 2, y, x + columnWidth / 2, y + rowHeight); } } break; case GUI_RIGHT: if (sChar[0] == ':') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinRight(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,columnWidth,rowHeight); } else { GUIGraphicsUtils.drawWinRight(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); } } break; case LOWER_LEFT: if (sChar[0] == ':') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinLowerLeft(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,columnWidth,rowHeight); } else { GUIGraphicsUtils.drawWinLowerLeft(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); } } break; case BOTTOM: if (sChar[0] == '.') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinBottom(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,columnWidth,rowHeight); } else { GUIGraphicsUtils.drawWinBottom(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); } } break; case LOWER_RIGHT: if (sChar[0] == ':') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinLowerRight(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,columnWidth,rowHeight); } else { GUIGraphicsUtils.drawWinLowerRight(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); } } break; } } else { if (sChar[0] != 0x0) { // use this until we define colors for gui stuff if ((useGui && whichGui < BUTTON_LEFT) && (fg == s.colorGUIField)) g.setColor(Color.black); else g.setColor(fg); try { if (useGui) if (sChar[0] == 0x1C) g.drawChars(dupChar, 0, 1, x+1, cy -2); else g.drawChars(sChar, 0, 1, x+1, cy -2); else if (sChar[0] == 0x1C) g.drawChars(dupChar, 0, 1, x, cy -2); else g.drawChars(sChar, 0, 1, x, cy -2); } catch (IllegalArgumentException iae) { System.out.println(" ScreenChar iae " + iae.getMessage()); } } if(underLine ) { if (!useGui || s.guiShowUnderline) { g.setColor(fg);// g.drawLine(x, cy -2, (int)(x + columnWidth), cy -2);// g.drawLine(x, (int)(y + (rowHeight - s.lm.getLeading()-5)), (int)(x + columnWidth), (int)(y + (rowHeight - s.lm.getLeading())-5)); g.drawLine(x, (int)(y + (rowHeight - (s.lm.getLeading() + s.lm.getDescent()))), (int)(x + columnWidth), (int)(y + (rowHeight -(s.lm.getLeading() + s.lm.getDescent())))); } } if(colSep) { g.setColor(s.colorSep); switch (s.getColSepLine()) { case 0: // line g.drawLine(x, y, x, y + rowHeight - 1); g.drawLine(x + columnWidth - 1, y, x + columnWidth - 1, y + rowHeight); break; case 1: // short line g.drawLine(x, y + rowHeight - (int)s.lm.getLeading()-4, x, y + rowHeight); g.drawLine(x + columnWidth - 1, y + rowHeight - (int)s.lm.getLeading()-4, x + columnWidth - 1, y + rowHeight); break; case 2: // dot g.drawLine(x, y + rowHeight - (int)s.lm.getLeading()-3, x, y + rowHeight - (int)s.lm.getLeading()-4); g.drawLine(x + columnWidth - 1, y + rowHeight - (int)s.lm.getLeading()-3, x + columnWidth - 1, y + rowHeight - (int)s.lm.getLeading()-4); break; case 3: // hide break; } } } } if (useGui & (whichGui >= FIELD_LEFT)) { int w = 0; switch (whichGui) { case FIELD_LEFT: GUIGraphicsUtils.draw3DLeft(g, GUIGraphicsUtils.INSET, x,y, columnWidth,rowHeight); break; case FIELD_MIDDLE: GUIGraphicsUtils.draw3DMiddle(g, GUIGraphicsUtils.INSET, x,y, columnWidth,rowHeight); break; case FIELD_RIGHT: GUIGraphicsUtils.draw3DRight(g, GUIGraphicsUtils.INSET, x,y, columnWidth,rowHeight); break; case FIELD_ONE: GUIGraphicsUtils.draw3DOne(g, GUIGraphicsUtils.INSET, x,y, columnWidth,rowHeight); break; case BUTTON_LEFT: case BUTTON_LEFT_UP: case BUTTON_LEFT_DN: case BUTTON_LEFT_EB: GUIGraphicsUtils.draw3DLeft(g, GUIGraphicsUtils.RAISED, x,y, columnWidth,rowHeight); break; case BUTTON_MIDDLE: case BUTTON_MIDDLE_UP: case BUTTON_MIDDLE_DN: case BUTTON_MIDDLE_EB: GUIGraphicsUtils.draw3DMiddle(g, GUIGraphicsUtils.RAISED, x,y, columnWidth,rowHeight); break; case BUTTON_RIGHT: case BUTTON_RIGHT_UP: case BUTTON_RIGHT_DN: case BUTTON_RIGHT_EB: GUIGraphicsUtils.draw3DRight(g, GUIGraphicsUtils.RAISED, x,y, columnWidth,rowHeight); break; // scroll bar case BUTTON_SB_UP: GUIGraphicsUtils.drawScrollBar(g, GUIGraphicsUtils.RAISED, 1, x,y, columnWidth,rowHeight, s.colorWhite,s.colorBg); break; // scroll bar case BUTTON_SB_DN: GUIGraphicsUtils.drawScrollBar(g, GUIGraphicsUtils.RAISED, 2, x,y, columnWidth,rowHeight, s.colorWhite,s.colorBg); break; // scroll bar case BUTTON_SB_GUIDE: GUIGraphicsUtils.drawScrollBar(g, GUIGraphicsUtils.INSET, 0,x,y, columnWidth,rowHeight, s.colorWhite,s.colorBg); break; // scroll bar case BUTTON_SB_THUMB: GUIGraphicsUtils.drawScrollBar(g, GUIGraphicsUtils.INSET, 3,x,y, columnWidth,rowHeight, s.colorWhite,s.colorBg); break; } } }
public final void drawChar(Graphics2D g, int pos, int row, int col) { Screen5250 s = screen; ScreenPlanes planes = s.planes;// int attr = planes.getCharAttr(pos); int attr = updateRect.attr[pos]; sChar[0] = updateRect.text[pos]; setDrawAttr(pos); boolean attributePlace = planes.isAttributePlace(s.getPos(row,col)); //attributePlace = true; int whichGui = updateRect.graphic[pos]; boolean useGui = whichGui == 0 ? false : true; csArea = modelToView(row, col, csArea);int x = csArea.x; int y = csArea.y; int cy = (int)(y + rowHeight - (s.lm.getDescent() + s.lm.getLeading()));// int x = sc.x;// int y = sc.y;// int cy = sc.cy; if (attributePlace && s.isShowHex()) {// if ((sc.sChar[0] == 0x20 || sc.sChar[0] == 0x0 || nonDisplay) && s.isShowHex()) { Font f = g.getFont(); Font k = f.deriveFont(f.getSize2D()/2); g.setFont(k); g.setColor(s.colorHexAttr); char[] a = Integer.toHexString(attr).toCharArray(); g.drawChars(a, 0, 1, x, y + (int)(rowHeight /2)); g.drawChars(a, 1, 1, x+(int)(columnWidth/2),(int)(y + rowHeight - (s.lm.getDescent() + s.lm.getLeading())-2)); g.setFont(f);//return; } if(!nonDisplay && !attributePlace) { if (!useGui) {g.setColor(bg);g.fill(csArea); } else {if (bg == s.colorBg && whichGui >= FIELD_LEFT && whichGui <= FIELD_ONE) g.setColor(s.colorGUIField);else g.setColor(bg);g.fill(csArea); } if (useGui && (whichGui < FIELD_LEFT)) {int w = 0;g.setColor(fg);switch (whichGui) { case UPPER_LEFT: if (sChar[0] == '.') { if (s.isUsingGuiInterface()) {GUIGraphicsUtils.drawWinUpperLeft(g, GUIGraphicsUtils.WINDOW_GRAPHIC, s.colorBlue, x,y,columnWidth,rowHeight); } else {GUIGraphicsUtils.drawWinUpperLeft(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); } } break; case UPPER: if (sChar[0] == '.') { if (s.isUsingGuiInterface()) {GUIGraphicsUtils.drawWinUpper(g, GUIGraphicsUtils.WINDOW_GRAPHIC, s.colorBlue, x,y,columnWidth,rowHeight); } else {GUIGraphicsUtils.drawWinUpper(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); } } break; case UPPER_RIGHT: if (sChar[0] == '.') { if (s.isUsingGuiInterface()) {GUIGraphicsUtils.drawWinUpperRight(g, GUIGraphicsUtils.WINDOW_GRAPHIC, s.colorBlue, x,y,columnWidth,rowHeight); } else {GUIGraphicsUtils.drawWinUpperRight(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); } } break; case GUI_LEFT: if (sChar[0] == ':') { if (s.isUsingGuiInterface()) {GUIGraphicsUtils.drawWinLeft(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,columnWidth,rowHeight); } else {GUIGraphicsUtils.drawWinLeft(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight);g.drawLine(x + columnWidth / 2,y,x + columnWidth / 2,y + rowHeight); } } break; case GUI_RIGHT: if (sChar[0] == ':') { if (s.isUsingGuiInterface()) {GUIGraphicsUtils.drawWinRight(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,columnWidth,rowHeight); } else {GUIGraphicsUtils.drawWinRight(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); } } break; case LOWER_LEFT: if (sChar[0] == ':') { if (s.isUsingGuiInterface()) {GUIGraphicsUtils.drawWinLowerLeft(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,columnWidth,rowHeight); } else {GUIGraphicsUtils.drawWinLowerLeft(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); } } break; case BOTTOM: if (sChar[0] == '.') { if (s.isUsingGuiInterface()) {GUIGraphicsUtils.drawWinBottom(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,columnWidth,rowHeight); } else {GUIGraphicsUtils.drawWinBottom(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); } } break; case LOWER_RIGHT: if (sChar[0] == ':') { if (s.isUsingGuiInterface()) {GUIGraphicsUtils.drawWinLowerRight(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,columnWidth,rowHeight); } else {GUIGraphicsUtils.drawWinLowerRight(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); } } break;} } else {if (sChar[0] != 0x0) {// use this until we define colors for gui stuff if ((useGui && whichGui < BUTTON_LEFT) && (fg == s.colorGUIField)) g.setColor(Color.black); else g.setColor(fg); try { if (useGui)if (sChar[0] == 0x1C) g.drawChars(dupChar, 0, 1, x+1, cy -2);else g.drawChars(sChar, 0, 1, x+1, cy -2); elseif (sChar[0] == 0x1C) g.drawChars(dupChar, 0, 1, x, cy -2);else g.drawChars(sChar, 0, 1, x, cy -2); } catch (IllegalArgumentException iae) { System.out.println(" ScreenChar iae " + iae.getMessage()); }}if(underLine ) { if (!useGui || s.guiShowUnderline) { g.setColor(fg);// g.drawLine(x, cy -2, (int)(x + columnWidth), cy -2);// g.drawLine(x, (int)(y + (rowHeight - s.lm.getLeading()-5)), (int)(x + columnWidth), (int)(y + (rowHeight - s.lm.getLeading())-5)); g.drawLine(x, (int)(y + (rowHeight - (s.lm.getLeading() + s.lm.getDescent()))), (int)(x + columnWidth), (int)(y + (rowHeight -(s.lm.getLeading() + s.lm.getDescent())))); }}if(colSep) { g.setColor(s.colorSep); switch (s.getColSepLine()) { case 0: // line g.drawLine(x, y, x, y + rowHeight - 1); g.drawLine(x + columnWidth - 1, y, x + columnWidth - 1, y + rowHeight); break; case 1: // short line g.drawLine(x, y + rowHeight - (int)s.lm.getLeading()-4, x, y + rowHeight); g.drawLine(x + columnWidth - 1, y + rowHeight - (int)s.lm.getLeading()-4, x + columnWidth - 1, y + rowHeight); break; case 2: // dot g.drawLine(x, y + rowHeight - (int)s.lm.getLeading()-3, x, y + rowHeight - (int)s.lm.getLeading()-4); g.drawLine(x + columnWidth - 1, y + rowHeight - (int)s.lm.getLeading()-3, x + columnWidth - 1, y + rowHeight - (int)s.lm.getLeading()-4); break; case 3: // hide break; }} } } if (useGui & (whichGui >= FIELD_LEFT)) {int w = 0;switch (whichGui) { case FIELD_LEFT: GUIGraphicsUtils.draw3DLeft(g, GUIGraphicsUtils.INSET, x,y, columnWidth,rowHeight); break; case FIELD_MIDDLE: GUIGraphicsUtils.draw3DMiddle(g, GUIGraphicsUtils.INSET, x,y, columnWidth,rowHeight); break; case FIELD_RIGHT: GUIGraphicsUtils.draw3DRight(g, GUIGraphicsUtils.INSET, x,y, columnWidth,rowHeight); break; case FIELD_ONE: GUIGraphicsUtils.draw3DOne(g, GUIGraphicsUtils.INSET, x,y, columnWidth,rowHeight); break; case BUTTON_LEFT: case BUTTON_LEFT_UP: case BUTTON_LEFT_DN: case BUTTON_LEFT_EB: GUIGraphicsUtils.draw3DLeft(g, GUIGraphicsUtils.RAISED, x,y, columnWidth,rowHeight); break; case BUTTON_MIDDLE: case BUTTON_MIDDLE_UP: case BUTTON_MIDDLE_DN: case BUTTON_MIDDLE_EB: GUIGraphicsUtils.draw3DMiddle(g, GUIGraphicsUtils.RAISED, x,y, columnWidth,rowHeight); break; case BUTTON_RIGHT: case BUTTON_RIGHT_UP: case BUTTON_RIGHT_DN: case BUTTON_RIGHT_EB: GUIGraphicsUtils.draw3DRight(g, GUIGraphicsUtils.RAISED, x,y, columnWidth,rowHeight); break; // scroll bar case BUTTON_SB_UP: GUIGraphicsUtils.drawScrollBar(g, GUIGraphicsUtils.RAISED, 1, x,y, columnWidth,rowHeight, s.colorWhite,s.colorBg); break; // scroll bar case BUTTON_SB_DN: GUIGraphicsUtils.drawScrollBar(g, GUIGraphicsUtils.RAISED, 2, x,y, columnWidth,rowHeight, s.colorWhite,s.colorBg); break; // scroll bar case BUTTON_SB_GUIDE: GUIGraphicsUtils.drawScrollBar(g, GUIGraphicsUtils.INSET, 0,x,y, columnWidth,rowHeight, s.colorWhite,s.colorBg); break; // scroll bar case BUTTON_SB_THUMB: GUIGraphicsUtils.drawScrollBar(g, GUIGraphicsUtils.INSET, 3,x,y, columnWidth,rowHeight, s.colorWhite,s.colorBg); break;} } }
4,126
public final void drawChar(Graphics2D g, int pos, int row, int col) { Screen5250 s = screen; ScreenPlanes planes = s.planes;// int attr = planes.getCharAttr(pos); int attr = updateRect.attr[pos]; sChar[0] = updateRect.text[pos]; setDrawAttr(pos); boolean attributePlace = planes.isAttributePlace(s.getPos(row,col)); //attributePlace = true; int whichGui = updateRect.graphic[pos]; boolean useGui = whichGui == 0 ? false : true; csArea = modelToView(row, col, csArea); int x = csArea.x; int y = csArea.y; int cy = (int)(y + rowHeight - (s.lm.getDescent() + s.lm.getLeading()));// int x = sc.x;// int y = sc.y;// int cy = sc.cy; if (attributePlace && s.isShowHex()) {// if ((sc.sChar[0] == 0x20 || sc.sChar[0] == 0x0 || nonDisplay) && s.isShowHex()) { Font f = g.getFont(); Font k = f.deriveFont(f.getSize2D()/2); g.setFont(k); g.setColor(s.colorHexAttr); char[] a = Integer.toHexString(attr).toCharArray(); g.drawChars(a, 0, 1, x, y + (int)(rowHeight /2)); g.drawChars(a, 1, 1, x+(int)(columnWidth/2), (int)(y + rowHeight - (s.lm.getDescent() + s.lm.getLeading())-2)); g.setFont(f);//return; } if(!nonDisplay && !attributePlace) { if (!useGui) { g.setColor(bg); g.fill(csArea); } else { if (bg == s.colorBg && whichGui >= FIELD_LEFT && whichGui <= FIELD_ONE) g.setColor(s.colorGUIField); else g.setColor(bg); g.fill(csArea); } if (useGui && (whichGui < FIELD_LEFT)) { int w = 0; g.setColor(fg); switch (whichGui) { case UPPER_LEFT: if (sChar[0] == '.') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinUpperLeft(g, GUIGraphicsUtils.WINDOW_GRAPHIC, s.colorBlue, x,y,columnWidth,rowHeight); } else { GUIGraphicsUtils.drawWinUpperLeft(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); } } break; case UPPER: if (sChar[0] == '.') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinUpper(g, GUIGraphicsUtils.WINDOW_GRAPHIC, s.colorBlue, x,y,columnWidth,rowHeight); } else { GUIGraphicsUtils.drawWinUpper(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); } } break; case UPPER_RIGHT: if (sChar[0] == '.') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinUpperRight(g, GUIGraphicsUtils.WINDOW_GRAPHIC, s.colorBlue, x,y,columnWidth,rowHeight); } else { GUIGraphicsUtils.drawWinUpperRight(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); } } break; case GUI_LEFT: if (sChar[0] == ':') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinLeft(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,columnWidth,rowHeight); } else { GUIGraphicsUtils.drawWinLeft(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); g.drawLine(x + columnWidth / 2, y, x + columnWidth / 2, y + rowHeight); } } break; case GUI_RIGHT: if (sChar[0] == ':') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinRight(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,columnWidth,rowHeight); } else { GUIGraphicsUtils.drawWinRight(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); } } break; case LOWER_LEFT: if (sChar[0] == ':') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinLowerLeft(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,columnWidth,rowHeight); } else { GUIGraphicsUtils.drawWinLowerLeft(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); } } break; case BOTTOM: if (sChar[0] == '.') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinBottom(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,columnWidth,rowHeight); } else { GUIGraphicsUtils.drawWinBottom(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); } } break; case LOWER_RIGHT: if (sChar[0] == ':') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinLowerRight(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,columnWidth,rowHeight); } else { GUIGraphicsUtils.drawWinLowerRight(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,columnWidth,rowHeight); } } break; } } else { if (sChar[0] != 0x0) { // use this until we define colors for gui stuff if ((useGui && whichGui < BUTTON_LEFT) && (fg == s.colorGUIField)) g.setColor(Color.black); else g.setColor(fg); try { if (useGui) if (sChar[0] == 0x1C) g.drawChars(dupChar, 0, 1, x+1, cy -2); else g.drawChars(sChar, 0, 1, x+1, cy -2); else if (sChar[0] == 0x1C) g.drawChars(dupChar, 0, 1, x, cy -2); else g.drawChars(sChar, 0, 1, x, cy -2); } catch (IllegalArgumentException iae) { System.out.println(" ScreenChar iae " + iae.getMessage()); } } if(underLine ) { if (!useGui || s.guiShowUnderline) { g.setColor(fg);// g.drawLine(x, cy -2, (int)(x + columnWidth), cy -2);// g.drawLine(x, (int)(y + (rowHeight - s.lm.getLeading()-5)), (int)(x + columnWidth), (int)(y + (rowHeight - s.lm.getLeading())-5)); g.drawLine(x, (int)(y + (rowHeight - (s.lm.getLeading() + s.lm.getDescent()))), (int)(x + columnWidth), (int)(y + (rowHeight -(s.lm.getLeading() + s.lm.getDescent())))); } } if(colSep) { g.setColor(s.colorSep); switch (s.getColSepLine()) { case 0: // line g.drawLine(x, y, x, y + rowHeight - 1); g.drawLine(x + columnWidth - 1, y, x + columnWidth - 1, y + rowHeight); break; case 1: // short line g.drawLine(x, y + rowHeight - (int)s.lm.getLeading()-4, x, y + rowHeight); g.drawLine(x + columnWidth - 1, y + rowHeight - (int)s.lm.getLeading()-4, x + columnWidth - 1, y + rowHeight); break; case 2: // dot g.drawLine(x, y + rowHeight - (int)s.lm.getLeading()-3, x, y + rowHeight - (int)s.lm.getLeading()-4); g.drawLine(x + columnWidth - 1, y + rowHeight - (int)s.lm.getLeading()-3, x + columnWidth - 1, y + rowHeight - (int)s.lm.getLeading()-4); break; case 3: // hide break; } } } } if (useGui & (whichGui >= FIELD_LEFT)) { int w = 0; switch (whichGui) { case FIELD_LEFT: GUIGraphicsUtils.draw3DLeft(g, GUIGraphicsUtils.INSET, x,y, columnWidth,rowHeight); break; case FIELD_MIDDLE: GUIGraphicsUtils.draw3DMiddle(g, GUIGraphicsUtils.INSET, x,y, columnWidth,rowHeight); break; case FIELD_RIGHT: GUIGraphicsUtils.draw3DRight(g, GUIGraphicsUtils.INSET, x,y, columnWidth,rowHeight); break; case FIELD_ONE: GUIGraphicsUtils.draw3DOne(g, GUIGraphicsUtils.INSET, x,y, columnWidth,rowHeight); break; case BUTTON_LEFT: case BUTTON_LEFT_UP: case BUTTON_LEFT_DN: case BUTTON_LEFT_EB: GUIGraphicsUtils.draw3DLeft(g, GUIGraphicsUtils.RAISED, x,y, columnWidth,rowHeight); break; case BUTTON_MIDDLE: case BUTTON_MIDDLE_UP: case BUTTON_MIDDLE_DN: case BUTTON_MIDDLE_EB: GUIGraphicsUtils.draw3DMiddle(g, GUIGraphicsUtils.RAISED, x,y, columnWidth,rowHeight); break; case BUTTON_RIGHT: case BUTTON_RIGHT_UP: case BUTTON_RIGHT_DN: case BUTTON_RIGHT_EB: GUIGraphicsUtils.draw3DRight(g, GUIGraphicsUtils.RAISED, x,y, columnWidth,rowHeight); break; // scroll bar case BUTTON_SB_UP: GUIGraphicsUtils.drawScrollBar(g, GUIGraphicsUtils.RAISED, 1, x,y, columnWidth,rowHeight, s.colorWhite,s.colorBg); break; // scroll bar case BUTTON_SB_DN: GUIGraphicsUtils.drawScrollBar(g, GUIGraphicsUtils.RAISED, 2, x,y, columnWidth,rowHeight, s.colorWhite,s.colorBg); break; // scroll bar case BUTTON_SB_GUIDE: GUIGraphicsUtils.drawScrollBar(g, GUIGraphicsUtils.INSET, 0,x,y, columnWidth,rowHeight, s.colorWhite,s.colorBg); break; // scroll bar case BUTTON_SB_THUMB: GUIGraphicsUtils.drawScrollBar(g, GUIGraphicsUtils.INSET, 3,x,y, columnWidth,rowHeight, s.colorWhite,s.colorBg); break; } } }
publicfinalvoiddrawChar(Graphics2Dg,intpos,introw,intcol){Screen5250s=screen;ScreenPlanesplanes=s.planes;//intattr=planes.getCharAttr(pos);intattr=updateRect.attr[pos];sChar[0]=updateRect.text[pos];setDrawAttr(pos);booleanattributePlace=planes.isAttributePlace(s.getPos(row,col));//attributePlace=true;intwhichGui=updateRect.graphic[pos];booleanuseGui=whichGui==0?false:true;csArea=modelToView(row,col,csArea);intx=csArea.x;inty=csArea.y;intcy=(int)(y+rowHeight-(s.lm.getDescent()+s.lm.getLeading()));//intx=sc.x;//inty=sc.y;//intcy=sc.cy;if(attributePlace&&s.isShowHex()){//if((sc.sChar[0]==0x20||sc.sChar[0]==0x0||nonDisplay)&&s.isShowHex()){Fontf=g.getFont();Fontk=f.deriveFont(f.getSize2D()/2);g.setFont(k);g.setColor(s.colorHexAttr);char[]a=Integer.toHexString(attr).toCharArray();g.drawChars(a,0,1,x,y+(int)(rowHeight/2));g.drawChars(a,1,1,x+(int)(columnWidth/2),(int)(y+rowHeight-(s.lm.getDescent()+s.lm.getLeading())-2));g.setFont(f);//return;}if(!nonDisplay&&!attributePlace){if(!useGui){g.setColor(bg);g.fill(csArea);}else{if(bg==s.colorBg&&whichGui>=FIELD_LEFT&&whichGui<=FIELD_ONE)g.setColor(s.colorGUIField);elseg.setColor(bg);g.fill(csArea);}if(useGui&&(whichGui<FIELD_LEFT)){intw=0;g.setColor(fg);switch(whichGui){caseUPPER_LEFT:if(sChar[0]=='.'){if(s.isUsingGuiInterface()){GUIGraphicsUtils.drawWinUpperLeft(g,GUIGraphicsUtils.WINDOW_GRAPHIC,s.colorBlue,x,y,columnWidth,rowHeight);}else{GUIGraphicsUtils.drawWinUpperLeft(g,GUIGraphicsUtils.WINDOW_NORMAL,fg,x,y,columnWidth,rowHeight);}}break;caseUPPER:if(sChar[0]=='.'){if(s.isUsingGuiInterface()){GUIGraphicsUtils.drawWinUpper(g,GUIGraphicsUtils.WINDOW_GRAPHIC,s.colorBlue,x,y,columnWidth,rowHeight);}else{GUIGraphicsUtils.drawWinUpper(g,GUIGraphicsUtils.WINDOW_NORMAL,fg,x,y,columnWidth,rowHeight);}}break;caseUPPER_RIGHT:if(sChar[0]=='.'){if(s.isUsingGuiInterface()){GUIGraphicsUtils.drawWinUpperRight(g,GUIGraphicsUtils.WINDOW_GRAPHIC,s.colorBlue,x,y,columnWidth,rowHeight);}else{GUIGraphicsUtils.drawWinUpperRight(g,GUIGraphicsUtils.WINDOW_NORMAL,fg,x,y,columnWidth,rowHeight);}}break;caseGUI_LEFT:if(sChar[0]==':'){if(s.isUsingGuiInterface()){GUIGraphicsUtils.drawWinLeft(g,GUIGraphicsUtils.WINDOW_GRAPHIC,bg,x,y,columnWidth,rowHeight);}else{GUIGraphicsUtils.drawWinLeft(g,GUIGraphicsUtils.WINDOW_NORMAL,fg,x,y,columnWidth,rowHeight);g.drawLine(x+columnWidth/2,y,x+columnWidth/2,y+rowHeight);}}break;caseGUI_RIGHT:if(sChar[0]==':'){if(s.isUsingGuiInterface()){GUIGraphicsUtils.drawWinRight(g,GUIGraphicsUtils.WINDOW_GRAPHIC,bg,x,y,columnWidth,rowHeight);}else{GUIGraphicsUtils.drawWinRight(g,GUIGraphicsUtils.WINDOW_NORMAL,fg,x,y,columnWidth,rowHeight);}}break;caseLOWER_LEFT:if(sChar[0]==':'){if(s.isUsingGuiInterface()){GUIGraphicsUtils.drawWinLowerLeft(g,GUIGraphicsUtils.WINDOW_GRAPHIC,bg,x,y,columnWidth,rowHeight);}else{GUIGraphicsUtils.drawWinLowerLeft(g,GUIGraphicsUtils.WINDOW_NORMAL,fg,x,y,columnWidth,rowHeight);}}break;caseBOTTOM:if(sChar[0]=='.'){if(s.isUsingGuiInterface()){GUIGraphicsUtils.drawWinBottom(g,GUIGraphicsUtils.WINDOW_GRAPHIC,bg,x,y,columnWidth,rowHeight);}else{GUIGraphicsUtils.drawWinBottom(g,GUIGraphicsUtils.WINDOW_NORMAL,fg,x,y,columnWidth,rowHeight);}}break;caseLOWER_RIGHT:if(sChar[0]==':'){if(s.isUsingGuiInterface()){GUIGraphicsUtils.drawWinLowerRight(g,GUIGraphicsUtils.WINDOW_GRAPHIC,bg,x,y,columnWidth,rowHeight);}else{GUIGraphicsUtils.drawWinLowerRight(g,GUIGraphicsUtils.WINDOW_NORMAL,fg,x,y,columnWidth,rowHeight);}}break;}}else{if(sChar[0]!=0x0){//usethisuntilwedefinecolorsforguistuffif((useGui&&whichGui<BUTTON_LEFT)&&(fg==s.colorGUIField))g.setColor(Color.black);elseg.setColor(fg);try{if(useGui)if(sChar[0]==0x1C)g.drawChars(dupChar,0,1,x+1,cy-2);elseg.drawChars(sChar,0,1,x+1,cy-2);elseif(sChar[0]==0x1C)g.drawChars(dupChar,0,1,x,cy-2);elseg.drawChars(sChar,0,1,x,cy-2);}catch(IllegalArgumentExceptioniae){System.out.println("ScreenChariae"+iae.getMessage());}}if(underLine){if(!useGui||s.guiShowUnderline){g.setColor(fg);//g.drawLine(x,cy-2,(int)(x+columnWidth),cy-2);//g.drawLine(x,(int)(y+(rowHeight-s.lm.getLeading()-5)),(int)(x+columnWidth),(int)(y+(rowHeight-s.lm.getLeading())-5));g.drawLine(x,(int)(y+(rowHeight-(s.lm.getLeading()+s.lm.getDescent()))),(int)(x+columnWidth),(int)(y+(rowHeight-(s.lm.getLeading()+s.lm.getDescent()))));}}if(colSep){g.setColor(s.colorSep);switch(s.getColSepLine()){case0://lineg.drawLine(x,y,x,y+rowHeight-1);g.drawLine(x+columnWidth-1,y,x+columnWidth-1,y+rowHeight);break;case1://shortlineg.drawLine(x,y+rowHeight-(int)s.lm.getLeading()-4,x,y+rowHeight);g.drawLine(x+columnWidth-1,y+rowHeight-(int)s.lm.getLeading()-4,x+columnWidth-1,y+rowHeight);break;case2://dotg.drawLine(x,y+rowHeight-(int)s.lm.getLeading()-3,x,y+rowHeight-(int)s.lm.getLeading()-4);g.drawLine(x+columnWidth-1,y+rowHeight-(int)s.lm.getLeading()-3,x+columnWidth-1,y+rowHeight-(int)s.lm.getLeading()-4);break;case3://hidebreak;}}}}if(useGui&(whichGui>=FIELD_LEFT)){intw=0;switch(whichGui){caseFIELD_LEFT:GUIGraphicsUtils.draw3DLeft(g,GUIGraphicsUtils.INSET,x,y,columnWidth,rowHeight);break;caseFIELD_MIDDLE:GUIGraphicsUtils.draw3DMiddle(g,GUIGraphicsUtils.INSET,x,y,columnWidth,rowHeight);break;caseFIELD_RIGHT:GUIGraphicsUtils.draw3DRight(g,GUIGraphicsUtils.INSET,x,y,columnWidth,rowHeight);break;caseFIELD_ONE:GUIGraphicsUtils.draw3DOne(g,GUIGraphicsUtils.INSET,x,y,columnWidth,rowHeight);break;caseBUTTON_LEFT:caseBUTTON_LEFT_UP:caseBUTTON_LEFT_DN:caseBUTTON_LEFT_EB:GUIGraphicsUtils.draw3DLeft(g,GUIGraphicsUtils.RAISED,x,y,columnWidth,rowHeight);break;caseBUTTON_MIDDLE:caseBUTTON_MIDDLE_UP:caseBUTTON_MIDDLE_DN:caseBUTTON_MIDDLE_EB:GUIGraphicsUtils.draw3DMiddle(g,GUIGraphicsUtils.RAISED,x,y,columnWidth,rowHeight);break;caseBUTTON_RIGHT:caseBUTTON_RIGHT_UP:caseBUTTON_RIGHT_DN:caseBUTTON_RIGHT_EB:GUIGraphicsUtils.draw3DRight(g,GUIGraphicsUtils.RAISED,x,y,columnWidth,rowHeight);break;//scrollbarcaseBUTTON_SB_UP:GUIGraphicsUtils.drawScrollBar(g,GUIGraphicsUtils.RAISED,1,x,y,columnWidth,rowHeight,s.colorWhite,s.colorBg);break;//scrollbarcaseBUTTON_SB_DN:GUIGraphicsUtils.drawScrollBar(g,GUIGraphicsUtils.RAISED,2,x,y,columnWidth,rowHeight,s.colorWhite,s.colorBg);break;//scrollbarcaseBUTTON_SB_GUIDE:GUIGraphicsUtils.drawScrollBar(g,GUIGraphicsUtils.INSET,0,x,y,columnWidth,rowHeight,s.colorWhite,s.colorBg);break;//scrollbarcaseBUTTON_SB_THUMB:GUIGraphicsUtils.drawScrollBar(g,GUIGraphicsUtils.INSET,3,x,y,columnWidth,rowHeight,s.colorWhite,s.colorBg);break;}}}
4,127
protected final boolean isAttributePlace(int pos) { return screenIsAttr[pos]; }
protected final boolean isAttributePlace(int pos) { return screenIsAttr[pos] == '1' ? true : false; }
4,128
private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from 0), when"+ " INode contains only "+blockCount+" blocks"); log.debug("registering block #"+blockNr); setDirty(true); //the direct blocks (0; 11) if(i<12) { Ext2Utils.set32(data, 40+(int)i*4, blockNr); return; } //see the indirect blocks (12; indirectCount-1) i-=12; if(i<indirectCount) { long indirectBlockNr; //the 12th index points to the indirect block if(i==0) { //need to reserve the indirect block itself, as this is the //first time it is used indirectBlockNr = findFreeBlock(allocatedBlocks++); Ext2Utils.set32(data, 40+12*4, indirectBlockNr); //log.debug("reserved indirect block: "+indirectBlockNr); //need to blank the block so that e2fsck does not complain byte[] zeroes=new byte[fs.getBlockSize()]; //blank the block Arrays.fill(zeroes, 0, fs.getBlockSize(), (byte)0); fs.writeBlock(indirectBlockNr, zeroes, false); } else //the indirect block has already been used indirectBlockNr = Ext2Utils.get32(data,40+12*4); indirectWrite( indirectBlockNr, i, allocatedBlocks, blockNr, 1 ); return; } //see the double indirect blocks (indirectCount; doubleIndirectCount-1) i-=indirectCount; final int doubleIndirectCount = indirectCount * indirectCount; if(i<doubleIndirectCount) { long doubleIndirectBlockNr; //the 13th index points to the double indirect block if(i==0) { //need to reserve the double indirect block itself doubleIndirectBlockNr = findFreeBlock(allocatedBlocks++); Ext2Utils.set32(data, 40+13*4, doubleIndirectBlockNr); //log.debug("reserved double indirect block: "+doubleIndirectBlockNr); //need to blank the block so that e2fsck does not complain byte[] zeroes=new byte[fs.getBlockSize()]; //blank the block Arrays.fill(zeroes, 0, fs.getBlockSize(), (byte)0); fs.writeBlock(doubleIndirectBlockNr, zeroes, false); } else doubleIndirectBlockNr = Ext2Utils.get32(data, 40+13*4); indirectWrite( doubleIndirectBlockNr, i, allocatedBlocks, blockNr, 2 ); return; } //see the triple indirect blocks (doubleIndirectCount; tripleIndirectCount-1) final int tripleIndirectCount = indirectCount * indirectCount * indirectCount; i-=doubleIndirectCount; if(i<tripleIndirectCount) { long tripleIndirectBlockNr; //the 14th index points to the triple indirect block if(i==0) { //need to reserve the triple indirect block itself tripleIndirectBlockNr = findFreeBlock(allocatedBlocks++); Ext2Utils.set32(data, 40+13*4, tripleIndirectBlockNr);log.info("reserved triple indirect block: "+tripleIndirectBlockNr); //need to blank the block so that e2fsck does not complain byte[] zeroes=new byte[fs.getBlockSize()]; //blank the block Arrays.fill(zeroes, 0, fs.getBlockSize(), (byte)0); fs.writeBlock(tripleIndirectBlockNr, zeroes, false); } else tripleIndirectBlockNr = Ext2Utils.get32(data, 40+14*4); indirectWrite( tripleIndirectBlockNr, i, allocatedBlocks, blockNr, 3 ); return; } //shouldn't get here throw new FileSystemException("Internal FS exception: getDataBlockIndex(i="+i+")"); }
private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from 0), when"+ " INode contains only "+blockCount+" blocks"); log.debug("registering block #"+blockNr); setDirty(true); //the direct blocks (0; 11) if(i<12) { Ext2Utils.set32(data, 40+(int)i*4, blockNr); return; } //see the indirect blocks (12; indirectCount-1) i-=12; if(i<indirectCount) { long indirectBlockNr; //the 12th index points to the indirect block if(i==0) { //need to reserve the indirect block itself, as this is the //first time it is used indirectBlockNr = findFreeBlock(allocatedBlocks++); Ext2Utils.set32(data, 40+12*4, indirectBlockNr); //log.debug("reserved indirect block: "+indirectBlockNr); //need to blank the block so that e2fsck does not complain byte[] zeroes=new byte[fs.getBlockSize()]; //blank the block Arrays.fill(zeroes, 0, fs.getBlockSize(), (byte)0); fs.writeBlock(indirectBlockNr, zeroes, false); } else //the indirect block has already been used indirectBlockNr = Ext2Utils.get32(data,40+12*4); indirectWrite( indirectBlockNr, i, allocatedBlocks, blockNr, 1 ); return; } //see the double indirect blocks (indirectCount; doubleIndirectCount-1) i-=indirectCount; final int doubleIndirectCount = indirectCount * indirectCount; if(i<doubleIndirectCount) { long doubleIndirectBlockNr; //the 13th index points to the double indirect block if(i==0) { //need to reserve the double indirect block itself doubleIndirectBlockNr = findFreeBlock(allocatedBlocks++); Ext2Utils.set32(data, 40+13*4, doubleIndirectBlockNr); //log.debug("reserved double indirect block: "+doubleIndirectBlockNr); //need to blank the block so that e2fsck does not complain byte[] zeroes=new byte[fs.getBlockSize()]; //blank the block Arrays.fill(zeroes, 0, fs.getBlockSize(), (byte)0); fs.writeBlock(doubleIndirectBlockNr, zeroes, false); } else doubleIndirectBlockNr = Ext2Utils.get32(data, 40+13*4); indirectWrite( doubleIndirectBlockNr, i, allocatedBlocks, blockNr, 2 ); return; } //see the triple indirect blocks (doubleIndirectCount; tripleIndirectCount-1) final int tripleIndirectCount = indirectCount * indirectCount * indirectCount; i-=doubleIndirectCount; if(i<tripleIndirectCount) { long tripleIndirectBlockNr; //the 14th index points to the triple indirect block if(i==0) { //need to reserve the triple indirect block itself tripleIndirectBlockNr = findFreeBlock(allocatedBlocks++); Ext2Utils.set32(data, 40+13*4, tripleIndirectBlockNr);log.info("reserved triple indirect block: "+tripleIndirectBlockNr); //need to blank the block so that e2fsck does not complain byte[] zeroes=new byte[fs.getBlockSize()]; //blank the block Arrays.fill(zeroes, 0, fs.getBlockSize(), (byte)0); fs.writeBlock(tripleIndirectBlockNr, zeroes, false); } else tripleIndirectBlockNr = Ext2Utils.get32(data, 40+14*4); indirectWrite( tripleIndirectBlockNr, i, allocatedBlocks, blockNr, 3 ); return; } //shouldn't get here throw new FileSystemException("Internal FS exception: getDataBlockIndex(i="+i+")"); }
4,131
Certificate[] getCertificates() { return entry.getCertificates(); }
Certificate[] getCertificates() { return ((JarEntry) ((JarURLLoader) loader).jarfile.getEntry(name)) .getCertificates(); }
4,142
protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; Resource resource = findURLResource(resourceName); if (resource == null) throw new ClassNotFoundException(className + " not found in " + urls); // Try to read the class data, create the CodeSource, Package and // construct the class (and watch out for those nasty IOExceptions) try { byte[] data; InputStream in = resource.getInputStream(); try { int length = resource.getLength(); if (length != -1) { // We know the length of the data. // Just try to read it in all at once data = new byte[length]; int pos = 0; while (length - pos > 0) { int len = in.read(data, pos, length - pos); if (len == -1) throw new EOFException("Not enough data reading from: " + in); pos += len; } } else { // We don't know the data length. // Have to read it in chunks. ByteArrayOutputStream out = new ByteArrayOutputStream(4096); byte[] b = new byte[4096]; int l = 0; while (l != -1) { l = in.read(b); if (l != -1) out.write(b, 0, l); } data = out.toByteArray(); } } finally { in.close(); } final byte[] classData = data; // Now get the CodeSource final CodeSource source = resource.getCodeSource(); // Find out package name String packageName = null; int lastDot = className.lastIndexOf('.'); if (lastDot != -1) packageName = className.substring(0, lastDot); if (packageName != null && getPackage(packageName) == null) { // define the package Manifest manifest = resource.loader.getManifest(); if (manifest == null) definePackage(packageName, null, null, null, null, null, null, null); else definePackage(packageName, manifest, resource.loader.baseURL); } // And finally construct the class! SecurityManager sm = System.getSecurityManager(); if (sm != null && securityContext != null) { return (Class)AccessController.doPrivileged (new PrivilegedAction() { public Object run() { return defineClass(className, classData, 0, classData.length, source); } }, securityContext); } else return defineClass(className, classData, 0, classData.length, source); } catch (IOException ioe) { throw new ClassNotFoundException(className, ioe); } }
protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; Resource resource = findURLResource(resourceName); if (resource == null) throw new ClassNotFoundException(className + " not found in " + urls); // Try to read the class data, create the CodeSource, Package and // construct the class (and watch out for those nasty IOExceptions) try { byte[] data; InputStream in = resource.getInputStream(); try { int length = resource.getLength(); if (length != -1) { // We know the length of the data. // Just try to read it in all at once data = new byte[length]; int pos = 0; while (length - pos > 0) { int len = in.read(data, pos, length - pos); if (len == -1) throw new EOFException("Not enough data reading from: " + in); pos += len; } } else { // We don't know the data length. // Have to read it in chunks. ByteArrayOutputStream out = new ByteArrayOutputStream(4096); byte[] b = new byte[4096]; int l = 0; while (l != -1) { l = in.read(b); if (l != -1) out.write(b, 0, l); } data = out.toByteArray(); } } finally { in.close(); } final byte[] classData = data; // Now get the CodeSource final CodeSource source = resource.getCodeSource(); // Find out package name String packageName = null; int lastDot = className.lastIndexOf('.'); if (lastDot != -1) packageName = className.substring(0, lastDot); if (packageName != null && getPackage(packageName) == null) { // define the package Manifest manifest = resource.loader.getManifest(); if (manifest == null) definePackage(packageName, null, null, null, null, null, null, null); else definePackage(packageName, manifest, resource.loader.baseURL); } // And finally construct the class! SecurityManager sm = System.getSecurityManager(); if (sm != null && securityContext != null) { return (Class)AccessController.doPrivileged (new PrivilegedAction() { public Object run() { return defineClass(className, classData, 0, classData.length, source); } }, securityContext); } else return defineClass(className, classData, 0, classData.length, source); } catch (IOException ioe) { throw new ClassNotFoundException(className, ioe); } }
4,143
protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; Resource resource = findURLResource(resourceName); if (resource == null) throw new ClassNotFoundException(className + " not found in " + urls); // Try to read the class data, create the CodeSource, Package and // construct the class (and watch out for those nasty IOExceptions) try { byte[] data; InputStream in = resource.getInputStream(); try { int length = resource.getLength(); if (length != -1) { // We know the length of the data. // Just try to read it in all at once data = new byte[length]; int pos = 0; while (length - pos > 0) { int len = in.read(data, pos, length - pos); if (len == -1) throw new EOFException("Not enough data reading from: " + in); pos += len; } } else { // We don't know the data length. // Have to read it in chunks. ByteArrayOutputStream out = new ByteArrayOutputStream(4096); byte[] b = new byte[4096]; int l = 0; while (l != -1) { l = in.read(b); if (l != -1) out.write(b, 0, l); } data = out.toByteArray(); } } finally { in.close(); } final byte[] classData = data; // Now get the CodeSource final CodeSource source = resource.getCodeSource(); // Find out package name String packageName = null; int lastDot = className.lastIndexOf('.'); if (lastDot != -1) packageName = className.substring(0, lastDot); if (packageName != null && getPackage(packageName) == null) { // define the package Manifest manifest = resource.loader.getManifest(); if (manifest == null) definePackage(packageName, null, null, null, null, null, null, null); else definePackage(packageName, manifest, resource.loader.baseURL); } // And finally construct the class! SecurityManager sm = System.getSecurityManager(); if (sm != null && securityContext != null) { return (Class)AccessController.doPrivileged (new PrivilegedAction() { public Object run() { return defineClass(className, classData, 0, classData.length, source); } }, securityContext); } else return defineClass(className, classData, 0, classData.length, source); } catch (IOException ioe) { throw new ClassNotFoundException(className, ioe); } }
protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; Resource resource = findURLResource(resourceName); if (resource == null) throw new ClassNotFoundException(className + " not found in " + urls); // Try to read the class data, create the CodeSource, Package and // construct the class (and watch out for those nasty IOExceptions) try { byte[] data; InputStream in = resource.getInputStream(); try { int length = resource.getLength(); if (length != -1) { // We know the length of the data. // Just try to read it in all at once data = new byte[length]; int pos = 0; while (length - pos > 0) { int len = in.read(data, pos, length - pos); if (len == -1) throw new EOFException("Not enough data reading from: " + in); pos += len; } } else { // We don't know the data length. // Have to read it in chunks. ByteArrayOutputStream out = new ByteArrayOutputStream(4096); byte[] b = new byte[4096]; int l = 0; while (l != -1) { l = in.read(b); if (l != -1) out.write(b, 0, l); } data = out.toByteArray(); } } finally { in.close(); } final byte[] classData = data; // Now get the CodeSource final CodeSource source = resource.getCodeSource(); // Find out package name String packageName = null; int lastDot = className.lastIndexOf('.'); if (lastDot != -1) packageName = className.substring(0, lastDot); if (packageName != null && getPackage(packageName) == null) { // define the package Manifest manifest = resource.loader.getManifest(); if (manifest == null) definePackage(packageName, null, null, null, null, null, null, null); else definePackage(packageName, manifest, resource.loader.baseURL); } // And finally construct the class! SecurityManager sm = System.getSecurityManager(); if (sm != null && securityContext != null) { return (Class)AccessController.doPrivileged (new PrivilegedAction() { public Object run() { return defineClass(className, classData, 0, classData.length, source); } }, securityContext); } else result = defineClass(className, classData, 0, classData.length, source); super.setSigners(result, resource.getCertificates()); return result; } catch (IOException ioe) { throw new ClassNotFoundException(className, ioe); } }
4,144
public static Icon getMenuItemCheckIcon() { return new DummyIcon(); }
public static Icon getMenuItemCheckIcon() { return new Icon() { public int getIconHeight() { return 13; } public int getIconWidth() { return 13; } public void paintIcon(Component c, Graphics g, int x, int y) { Color saved = g.getColor(); g.setColor(Color.BLACK); g.drawLine(3 + x, 5 + y, 3 + x, 9 + y); g.drawLine(4 + x, 5 + y, 4 + x, 9 + y); g.drawLine(5 + x, 7 + y, 9 + x, 3 + y); g.drawLine(5 + x, 8 + y, 9 + x, 4 + y); g.setColor(saved); } }; }
4,146
void paintBackingStore(Graphics g) { // If we have no backing store image yet or the size of the component has // changed, we need to rebuild the backing store. if (backingStoreImage == null || sizeChanged) { backingStoreImage = createImage(getWidth(), getHeight()); sizeChanged = false; Graphics g2 = backingStoreImage.getGraphics(); paintSimple(g2); g2.dispose(); } // Otherwise we can perform the blitting on the backing store image: // First we move the part that remains visible after scrolling, then // we only need to paint the bit that becomes newly visible. else { Graphics g2 = backingStoreImage.getGraphics(); Point viewPosition = getViewPosition(); int dx = viewPosition.x - lastPaintPosition.x; int dy = viewPosition.y - lastPaintPosition.y; boolean canBlit = computeBlit(dx, dy, cachedBlitFrom, cachedBlitTo, cachedBlitSize, cachedBlitPaint); if (canBlit) { // Copy the part that remains visible during scrolling. g2.copyArea(cachedBlitFrom.x, cachedBlitFrom.y, cachedBlitSize.width, cachedBlitSize.height, cachedBlitTo.x - cachedBlitFrom.x, cachedBlitTo.y - cachedBlitFrom.y); // Now paint the part that becomes newly visible. g2.setClip(cachedBlitPaint.x, cachedBlitPaint.y, cachedBlitPaint.width, cachedBlitPaint.height); paintSimple(g2); } // If blitting is not possible for some reason, fall back to repainting // everything. else { // If the image has not been scrolled at all, only the changed // clip must be updated in the buffer. if (dx==0 && dy==0) g2.setClip(g.getClip()); paintSimple(g2); } g2.dispose(); } // Actually draw the backingstore image to the graphics context. g.drawImage(backingStoreImage, 0, 0, this); // Update the lastPaintPosition so that we know what is already drawn when // we paint the next time. lastPaintPosition.setLocation(getViewPosition()); }
void paintBackingStore(Graphics g) { // If we have no backing store image yet or the size of the component has // changed, we need to rebuild the backing store. if (backingStoreImage == null || sizeChanged) { backingStoreImage = createImage(getWidth(), getHeight()); sizeChanged = false; Graphics g2 = backingStoreImage.getGraphics(); paintSimple(g2); g2.dispose(); } // Otherwise we can perform the blitting on the backing store image: // First we move the part that remains visible after scrolling, then // we only need to paint the bit that becomes newly visible. else { Graphics g2 = backingStoreImage.getGraphics(); Point viewPosition = getViewPosition(); int dx = viewPosition.x - lastPaintPosition.x; int dy = viewPosition.y - lastPaintPosition.y; boolean canBlit = computeBlit(dx, dy, cachedBlitFrom, cachedBlitTo, cachedBlitSize, cachedBlitPaint); if (canBlit) { // Copy the part that remains visible during scrolling. g2.copyArea(cachedBlitFrom.x, cachedBlitFrom.y, cachedBlitSize.width, cachedBlitSize.height, cachedBlitTo.x - cachedBlitFrom.x, cachedBlitTo.y - cachedBlitFrom.y); // Now paint the part that becomes newly visible. g2.setClip(cachedBlitPaint.x, cachedBlitPaint.y, cachedBlitPaint.width, cachedBlitPaint.height); paintSimple(g2); } // If blitting is not possible for some reason, fall back to repainting // everything. else { // If the image has not been scrolled at all, only the changed // clip must be updated in the buffer. if (dx == 0 && dy == 0) g2.setClip(g.getClip()); paintSimple(g2); } g2.dispose(); } // Actually draw the backingstore image to the graphics context. g.drawImage(backingStoreImage, 0, 0, this); // Update the lastPaintPosition so that we know what is already drawn when // we paint the next time. lastPaintPosition.setLocation(getViewPosition()); }
4,147
protected void paintBorder(Graphics graphics) { Border border = getBorder(); if (paintBorder && border != null) border.paintBorder(this, graphics, 0, 0, getWidth(), getHeight()); }
protected void paintBorder(Graphics graphics) { Border border = getBorder(); if (paintBorder && border != null) border.paintBorder(this, graphics, 0, 0, getWidth(), getHeight()); }
4,148
public static org.omg.CORBA.Object extract(Any a) { try { return ((ObjectHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { throw new BAD_OPERATION("CORBA object expected"); } }
public static org.omg.CORBA.Object extract(Any a) { try { return ((ObjectHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { BAD_OPERATION bad = new BAD_OPERATION("CORBA object expected"); bad.minor = Minor.Any; throw bad; } }
4,150
private void checkLegacy() { // we check if the sessions file already exists in the directory // if it does exist we are working with an old install so we // need to set the settings directory to the users directory File ses = new File("sessions"); if(ses.exists()) { settings.setProperty("emulator.settingsDirectory", System.getProperty("user.dir") + File.separator); } else { settings.setProperty("emulator.settingsDirectory", System.getProperty("user.home") + File.separator + ".tn5250j" + File.separator); } }
private void checkLegacy() { // we check if the sessions file already exists in the directory // if it does exist we are working with an old install so we // need to set the settings directory to the users directory File ses = new File("sessions"); if(ses.exists()) { settings.setProperty("emulator.settingsDirectory", System.getProperty("user.dir") + File.separator); } else { settings.setProperty("emulator.settingsDirectory", System.getProperty("user.home") + File.separator + ".tn5250j" + File.separator); } }
4,151
private void checkLegacy() { // we check if the sessions file already exists in the directory // if it does exist we are working with an old install so we // need to set the settings directory to the users directory File ses = new File("sessions"); if(ses.exists()) { settings.setProperty("emulator.settingsDirectory", System.getProperty("user.dir") + File.separator); } else { settings.setProperty("emulator.settingsDirectory", System.getProperty("user.home") + File.separator + ".tn5250j" + File.separator); } }
private void checkLegacy() { // we check if the sessions file already exists in the directory // if it does exist we are working with an old install so we // need to set the settings directory to the users directory File ses = new File("sessions"); if(ses.exists()) { settings.setProperty("emulator.settingsDirectory", System.getProperty("user.dir") + File.separator); } else { settings.setProperty("emulator.settingsDirectory", System.getProperty("user.home") + File.separator + ".tn5250j" + File.separator); } }
4,152
private void checkLegacy() { // we check if the sessions file already exists in the directory // if it does exist we are working with an old install so we // need to set the settings directory to the users directory File ses = new File("sessions"); if(ses.exists()) { settings.setProperty("emulator.settingsDirectory", System.getProperty("user.dir") + File.separator); } else { settings.setProperty("emulator.settingsDirectory", System.getProperty("user.home") + File.separator + ".tn5250j" + File.separator); } }
private void checkLegacy() { // we check if the sessions file already exists in the directory // if it does exist we are working with an old install so we // need to set the settings directory to the users directory File ses = new File("sessions"); if(ses.exists()) { settings.setProperty("emulator.settingsDirectory", System.getProperty("user.dir") + File.separator); } else { settings.setProperty("emulator.settingsDirectory", System.getProperty("user.home") + File.separator + ".tn5250j" + File.separator); } }
4,153
private void initialize() { loadSettings(); loadSessions(); loadMacros(); loadKeyStrokes(); }
private void initialize() { loadSettings(); loadSessions(); loadMacros(); loadKeyStrokes(); }
4,154
private void loadKeyStrokes() {// FileInputStream in = null;// Properties keystrokes = new Properties();//// try {// in = new FileInputStream(settingssDirectory()// + KEYMAP);// keystrokes.load(in);// }// catch (FileNotFoundException fnfe) {System.out.println(fnfe.getMessage());}// catch (IOException ioe) {System.out.println(ioe.getMessage());}// catch (SecurityException se) {// System.out.println(se.getMessage());// }//// if (keystrokes != null) {// registry.put(KEYMAP,keystrokes);// } getProperties(KEYMAP,KEYMAP,true,"",true); }
private void loadKeyStrokes() {// FileInputStream in = null;// Properties keystrokes = new Properties();//// try {// in = new FileInputStream(settingssDirectory()// + KEYMAP);// keystrokes.load(in);// }// catch (FileNotFoundException fnfe) {System.out.println(fnfe.getMessage());}// catch (IOException ioe) {System.out.println(ioe.getMessage());}// catch (SecurityException se) {// System.out.println(se.getMessage());// }//// if (keystrokes != null) {// registry.put(KEYMAP,keystrokes);// } getProperties(KEYMAP,KEYMAP,true,"",true); }
4,155
private void loadMacros() {// FileInputStream in = null;// Properties macs = new Properties();//// try {// in = new FileInputStream(settingssDirectory()// + MACROS);// macs.load(in);// }// catch (FileNotFoundException fnfe) {System.out.println(fnfe.getMessage());}// catch (IOException ioe) {System.out.println(ioe.getMessage());}// catch (SecurityException se) {// System.out.println(se.getMessage());// }//// if (macs != null) {// registry.put(MACROS,macs);// } getProperties(MACROS,MACROS,true,"",true); }
private void loadMacros() {// FileInputStream in = null;// Properties macs = new Properties();//// try {// in = new FileInputStream(settingssDirectory()// + MACROS);// macs.load(in);// }// catch (FileNotFoundException fnfe) {System.out.println(fnfe.getMessage());}// catch (IOException ioe) {System.out.println(ioe.getMessage());}// catch (SecurityException se) {// System.out.println(se.getMessage());// }//// if (macs != null) {// registry.put(MACROS,macs);// } getProperties(MACROS,MACROS,true,"",true); }
4,156
private void loadSessions() {// FileInputStream in = null;// Properties sessions = new Properties();//// try {// in = new FileInputStream(settingssDirectory() + SESSIONS);// sessions.load(in);//// }// catch (FileNotFoundException fnfe) {// System.out.println(" Information Message: " + fnfe.getMessage()// + ". Default sessions file will"// + " be created for first time use.");// }// catch (IOException ioe) {System.out.println(ioe.getMessage());}//// if (sessions != null) {//// registry.put(SESSIONS,sessions);// } getProperties(SESSIONS,SESSIONS,true,"",true); }
private void loadSessions() {// FileInputStream in = null;// Properties sessions = new Properties();//// try {// in = new FileInputStream(settingssDirectory() + SESSIONS);// sessions.load(in);//// }// catch (FileNotFoundException fnfe) {// System.out.println(" Information Message: " + fnfe.getMessage()// + ". Default sessions file will"// + " be created for first time use.");// }// catch (IOException ioe) {System.out.println(ioe.getMessage());}//// if (sessions != null) {//// registry.put(SESSIONS,sessions);// } getProperties(SESSIONS,SESSIONS,true,"",true); }
4,157
private void loadSettings() { FileInputStream in = null; settings = new Properties(); try { in = new FileInputStream("tn5250jsettings.cfg"); settings.load(in); } catch (FileNotFoundException fnfe) { System.out.println(" Information Message: " + fnfe.getMessage() + ". The file tn5250jsettings.cfg will" + " be created for first time use."); checkLegacy(); saveSettings(); } catch (IOException ioe) { System.out.println("IO Exception accessing File tn5250jsettings.cfg for the following reason : " + ioe.getMessage()); } catch (SecurityException se) { System.out.println("Security Exception for file tn5250jsettings.cfg. This file can not be " + "accessed because : " + se.getMessage()); } // we now check to see if the settings directory is a directory. If not then we create it File sd = new File(settings.getProperty("emulator.settingsDirectory")); if (!sd.isDirectory()) sd.mkdirs(); }
private void loadSettings() { FileInputStream in = null; settings = new Properties(); try { in = new FileInputStream(settingsFile); settings.load(in); } catch (FileNotFoundException fnfe) { System.out.println(" Information Message: " + fnfe.getMessage() + ". The file tn5250jsettings.cfg will" + " be created for first time use."); checkLegacy(); saveSettings(); } catch (IOException ioe) { System.out.println("IO Exception accessing File tn5250jsettings.cfg for the following reason : " + ioe.getMessage()); } catch (SecurityException se) { System.out.println("Security Exception for file tn5250jsettings.cfg. This file can not be " + "accessed because : " + se.getMessage()); } // we now check to see if the settings directory is a directory. If not then we create it File sd = new File(settings.getProperty("emulator.settingsDirectory")); if (!sd.isDirectory()) sd.mkdirs(); }
4,158
private void loadSettings() { FileInputStream in = null; settings = new Properties(); try { in = new FileInputStream("tn5250jsettings.cfg"); settings.load(in); } catch (FileNotFoundException fnfe) { System.out.println(" Information Message: " + fnfe.getMessage() + ". The file tn5250jsettings.cfg will" + " be created for first time use."); checkLegacy(); saveSettings(); } catch (IOException ioe) { System.out.println("IO Exception accessing File tn5250jsettings.cfg for the following reason : " + ioe.getMessage()); } catch (SecurityException se) { System.out.println("Security Exception for file tn5250jsettings.cfg. This file can not be " + "accessed because : " + se.getMessage()); } // we now check to see if the settings directory is a directory. If not then we create it File sd = new File(settings.getProperty("emulator.settingsDirectory")); if (!sd.isDirectory()) sd.mkdirs(); }
private void loadSettings() { FileInputStream in = null; settings = new Properties(); try { in = new FileInputStream("tn5250jsettings.cfg"); settings.load(in); } catch (FileNotFoundException fnfe) { System.out.println(" Information Message: " + fnfe.getMessage() + ". The file tn5250jsettings.cfg will" + " be created for first time use."); checkLegacy(); saveSettings(); } catch (IOException ioe) { System.out.println("IO Exception accessing File tn5250jsettings.cfg for the following reason : " + ioe.getMessage()); } catch (SecurityException se) { System.out.println("Security Exception for file tn5250jsettings.cfg. This file can not be " + "accessed because : " + se.getMessage()); } // we now check to see if the settings directory is a directory. If not then we create it File sd = new File(settings.getProperty("emulator.settingsDirectory")); if (!sd.isDirectory()) sd.mkdirs(); }
4,159
private void loadSettings() { FileInputStream in = null; settings = new Properties(); try { in = new FileInputStream("tn5250jsettings.cfg"); settings.load(in); } catch (FileNotFoundException fnfe) { System.out.println(" Information Message: " + fnfe.getMessage() + ". The file tn5250jsettings.cfg will" + " be created for first time use."); checkLegacy(); saveSettings(); } catch (IOException ioe) { System.out.println("IO Exception accessing File tn5250jsettings.cfg for the following reason : " + ioe.getMessage()); } catch (SecurityException se) { System.out.println("Security Exception for file tn5250jsettings.cfg. This file can not be " + "accessed because : " + se.getMessage()); } // we now check to see if the settings directory is a directory. If not then we create it File sd = new File(settings.getProperty("emulator.settingsDirectory")); if (!sd.isDirectory()) sd.mkdirs(); }
private void loadSettings() { FileInputStream in = null; settings = new Properties(); try { in = new FileInputStream("tn5250jsettings.cfg"); settings.load(in); } catch (FileNotFoundException fnfe) { System.out.println(" Information Message: " + fnfe.getMessage() + ". The file tn5250jsettings.cfg will" + " be created for first time use."); checkLegacy(); saveSettings(); } catch (IOException ioe) { System.out.println("IO Exception accessing File " + settingsFile + " for the following reason : " + ioe.getMessage()); } catch (SecurityException se) { System.out.println("Security Exception for file tn5250jsettings.cfg. This file can not be " + "accessed because : " + se.getMessage()); } // we now check to see if the settings directory is a directory. If not then we create it File sd = new File(settings.getProperty("emulator.settingsDirectory")); if (!sd.isDirectory()) sd.mkdirs(); }
4,160
private void loadSettings() { FileInputStream in = null; settings = new Properties(); try { in = new FileInputStream("tn5250jsettings.cfg"); settings.load(in); } catch (FileNotFoundException fnfe) { System.out.println(" Information Message: " + fnfe.getMessage() + ". The file tn5250jsettings.cfg will" + " be created for first time use."); checkLegacy(); saveSettings(); } catch (IOException ioe) { System.out.println("IO Exception accessing File tn5250jsettings.cfg for the following reason : " + ioe.getMessage()); } catch (SecurityException se) { System.out.println("Security Exception for file tn5250jsettings.cfg. This file can not be " + "accessed because : " + se.getMessage()); } // we now check to see if the settings directory is a directory. If not then we create it File sd = new File(settings.getProperty("emulator.settingsDirectory")); if (!sd.isDirectory()) sd.mkdirs(); }
private void loadSettings() { FileInputStream in = null; settings = new Properties(); try { in = new FileInputStream("tn5250jsettings.cfg"); settings.load(in); } catch (FileNotFoundException fnfe) { System.out.println(" Information Message: " + fnfe.getMessage() + ". The file tn5250jsettings.cfg will" + " be created for first time use."); checkLegacy(); saveSettings(); } catch (IOException ioe) { System.out.println("IO Exception accessing File tn5250jsettings.cfg for the following reason : " + ioe.getMessage()); } catch (SecurityException se) { System.out.println("Security Exception for file tn5250jsettings.cfg. This file can not be " + "accessed because : " + se.getMessage()); } // we now check to see if the settings directory is a directory. If not then we create it File sd = new File(settings.getProperty("emulator.settingsDirectory")); if (!sd.isDirectory()) sd.mkdirs(); }
4,161
private void loadSettings() { FileInputStream in = null; settings = new Properties(); try { in = new FileInputStream("tn5250jsettings.cfg"); settings.load(in); } catch (FileNotFoundException fnfe) { System.out.println(" Information Message: " + fnfe.getMessage() + ". The file tn5250jsettings.cfg will" + " be created for first time use."); checkLegacy(); saveSettings(); } catch (IOException ioe) { System.out.println("IO Exception accessing File tn5250jsettings.cfg for the following reason : " + ioe.getMessage()); } catch (SecurityException se) { System.out.println("Security Exception for file tn5250jsettings.cfg. This file can not be " + "accessed because : " + se.getMessage()); } // we now check to see if the settings directory is a directory. If not then we create it File sd = new File(settings.getProperty("emulator.settingsDirectory")); if (!sd.isDirectory()) sd.mkdirs(); }
private void loadSettings() { FileInputStream in = null; settings = new Properties(); try { in = new FileInputStream("tn5250jsettings.cfg"); settings.load(in); } catch (FileNotFoundException fnfe) { System.out.println(" Information Message: " + fnfe.getMessage() + ". The file tn5250jsettings.cfg will" + " be created for first time use."); checkLegacy(); saveSettings(); } catch (IOException ioe) { System.out.println("IO Exception accessing File tn5250jsettings.cfg for the following reason : " + ioe.getMessage()); } catch (SecurityException se) { System.out.println("Security Exception for file tn5250jsettings.cfg. This file can not be " + "accessed because : " + se.getMessage()); } // we now check to see if the settings directory is a directory. If not then we create it File sd = new File(settings.getProperty("emulator.settingsDirectory")); if (!sd.isDirectory()) sd.mkdirs(); }
4,162
public void saveSettings() { try { FileOutputStream out = new FileOutputStream("tn5250jsettings.cfg"); settings.store(out,"----------------- tn5250j Global Settings --------------"); } catch (FileNotFoundException fnfe) {} catch (IOException ioe) {} }
public void saveSettings() { try { FileOutputStream out = new FileOutputStream("tn5250jsettings.cfg"); settings.store(out,"----------------- tn5250j Global Settings --------------"); } catch (FileNotFoundException fnfe) {} catch (IOException ioe) {} }
4,163
private String settingsDirectory() { //System.out.println(settings.getProperty("emulator.settingsDirectory")); return settings.getProperty("emulator.settingsDirectory"); }
private String settingsDirectory() { //System.out.println(settings.getProperty("emulator.settingsDirectory")); return settings.getProperty("emulator.settingsDirectory"); }
4,164
public void drawString(String text, int x, int y) { System.out.println("drawText():" + text); if(this.font != null) ((JNodeToolkit)Toolkit.getDefaultToolkit()).getFontManager().drawText(this,text,font,x,y); }
public void drawString(String text, int x, int y) { System.out.println("drawText():" + text); if(this.font != null) ((JNodeToolkit)Toolkit.getDefaultToolkit()).getFontManager().drawText(this,text,font,x,y); }
4,165
public cObject get(byte[] key) { synchronized (objects) { return (cObject) objects.get(key); } }
public cObject get(byte[] key) { synchronized (objects) { return (cObject) objects.get(key); } } }
4,166
public cObject get(byte[] key) { synchronized (objects) { return (cObject) objects.get(key); } }
public cObject get(byte[] key) { synchronized (objects) { return (cObject) objects.get(key); }
4,167
public cObject getKey(org.omg.CORBA.Object stored_object) { synchronized (objects) { Map.Entry item; Iterator iter = objects.entrySet().iterator(); cObject ref; while (iter.hasNext()) { item = (Map.Entry) iter.next(); ref = (cObject) item.getValue(); if (stored_object.equals(ref.object) || stored_object._is_equivalent(ref.object) ) return ref; } } return null; }
public cObject getKey(org.omg.CORBA.Object stored_object) { synchronized (objects) { Map.Entry item; Iterator iter = objects.entrySet().iterator(); cObject ref; while (iter.hasNext()) { item = (Map.Entry) iter.next(); ref = (cObject) item.getValue(); if (stored_object.equals(ref.object) || stored_object._is_equivalent(ref.object) ) return ref; } } return null; }
4,168
public cObject getKey(org.omg.CORBA.Object stored_object) { synchronized (objects) { Map.Entry item; Iterator iter = objects.entrySet().iterator(); cObject ref; while (iter.hasNext()) { item = (Map.Entry) iter.next(); ref = (cObject) item.getValue(); if (stored_object.equals(ref.object) || stored_object._is_equivalent(ref.object) ) return ref; } } return null; }
public cObject getKey(org.omg.CORBA.Object stored_object) { synchronized (objects) { Map.Entry item; Iterator iter = objects.entrySet().iterator(); cObject ref; while (iter.hasNext()) { item = (Map.Entry) iter.next(); ref = (cObject) item.getValue(); if (stored_object.equals(ref.object) || stored_object._is_equivalent(ref.object) ) return ref; } } return null; }
4,169
public cObject getKey(org.omg.CORBA.Object stored_object) { synchronized (objects) { Map.Entry item; Iterator iter = objects.entrySet().iterator(); cObject ref; while (iter.hasNext()) { item = (Map.Entry) iter.next(); ref = (cObject) item.getValue(); if (stored_object.equals(ref.object) || stored_object._is_equivalent(ref.object) ) return ref; } } return null; }
public cObject getKey(org.omg.CORBA.Object stored_object) { synchronized (objects) { Map.Entry item; Iterator iter = objects.entrySet().iterator(); cObject ref; while (iter.hasNext()) { item = (Map.Entry) iter.next(); ref = (cObject) item.getValue(); if (stored_object.equals(ref.object) || stored_object._is_equivalent(ref.object) ) return ref; } } return null; }
4,170
public void remove(org.omg.CORBA.Object object) { synchronized (objects) { cObject ref = getKey(object); if (ref != null) objects.remove(ref.key); } }
public void remove(org.omg.CORBA.Object object) { synchronized (objects) { cObject ref = getKey(object); if (ref != null) objects.remove(ref.key); } }
4,171
public void remove(org.omg.CORBA.Object object) { synchronized (objects) { cObject ref = getKey(object); if (ref != null) objects.remove(ref.key); } }
public void remove(org.omg.CORBA.Object object) { synchronized (objects) { cObject ref = getKey(object); if (ref != null) objects.remove(ref.key); }
4,172
public static Constant getInstance(Object value) { return new ReferenceConstant(value); }
public static Constant getInstance(Object value) { return new ReferenceConstant(value); }
4,173
public boolean containsKey(Integer key) { boolean result = super.containsKey(key); if(result) Ext2Debugger.debug("CACHE HIT, size:"+size(),4); else Ext2Debugger.debug("CACHE MISS",4); return result; }
public boolean containsKey(Integer key) { boolean result = super.containsKey(key); if(result) Ext2Debugger.debug("CACHE HIT, size:"+size(),4); else Ext2Debugger.debug("CACHE MISS",4); return result; }
4,174
public boolean containsKey(Integer key) { boolean result = super.containsKey(key); if(result) Ext2Debugger.debug("CACHE HIT, size:"+size(),4); else Ext2Debugger.debug("CACHE MISS",4); return result; }
public boolean containsKey(Integer key) { boolean result = super.containsKey(key); if(result) Ext2Debugger.debug("CACHE HIT, size:"+size(),4); else Ext2Debugger.debug("CACHE MISS",4); return result; }
4,175
public boolean getDragEnabled() throws NotImplementedException { // FIXME: Implement return false; }
public boolean getDragEnabled() { // FIXME: Implement return false; }
4,176
public boolean getDragEnabled() throws NotImplementedException { // FIXME: Implement return false; }
public boolean getDragEnabled() throws NotImplementedException { // FIXME: Implement return dragEnabled; }
4,177
protected String paramString() { return "JFileChooser"; }
protected String paramString() { StringBuffer sb = new StringBuffer(super.paramString()); sb.append(",approveButtonText="); if (approveButtonText != null) sb.append(approveButtonText); sb.append(",currentDirectory="); if (currentDir != null) sb.append(currentDir); sb.append(",dialogTitle="); if (dialogTitle != null) sb.append(dialogTitle); sb.append(",dialogType="); if (dialogType == OPEN_DIALOG) sb.append("OPEN_DIALOG"); if (dialogType == SAVE_DIALOG) sb.append("SAVE_DIALOG"); if (dialogType == CUSTOM_DIALOG) sb.append("CUSTOM_DIALOG"); sb.append(",fileSelectionMode="); if (fileSelectionMode == FILES_ONLY) sb.append("FILES_ONLY"); if (fileSelectionMode == DIRECTORIES_ONLY) sb.append("DIRECTORIES_ONLY"); if (fileSelectionMode == FILES_AND_DIRECTORIES) sb.append("FILES_AND_DIRECTORIES"); sb.append(",returnValue="); if (retval == APPROVE_OPTION) sb.append("APPROVE_OPTION"); if (retval == CANCEL_OPTION) sb.append("CANCEL_OPTION"); if (retval == ERROR_OPTION) sb.append("ERROR_OPTION"); sb.append(",selectedFile="); if (selectedFile != null) sb.append(selectedFile); sb.append(",useFileHiding=").append(fileHiding); return sb.toString(); }
4,178
public void setDragEnabled(boolean b) throws NotImplementedException { // FIXME: Implement }
public void setDragEnabled(boolean b) { // FIXME: Implement }
4,179
public void setDragEnabled(boolean b) throws NotImplementedException { // FIXME: Implement }
if (b && GraphicsEnvironment.isHeadless()) throw new HeadlessException(); dragEnabled = b; if (b && GraphicsEnvironment.isHeadless()) throw new HeadlessException(); dragEnabled = b; publicif (b && GraphicsEnvironment.isHeadless()) throw new HeadlessException(); dragEnabled = b; voidif (b && GraphicsEnvironment.isHeadless()) throw new HeadlessException(); dragEnabled = b; setDragEnabled(booleanif (b && GraphicsEnvironment.isHeadless()) throw new HeadlessException(); dragEnabled = b; b)if (b && GraphicsEnvironment.isHeadless()) throw new HeadlessException(); dragEnabled = b; if (b && GraphicsEnvironment.isHeadless()) throw new HeadlessException(); dragEnabled = b; if (b && GraphicsEnvironment.isHeadless()) throw new HeadlessException(); dragEnabled = b; if (b && GraphicsEnvironment.isHeadless()) throw new HeadlessException(); dragEnabled = b; throwsif (b && GraphicsEnvironment.isHeadless()) throw new HeadlessException(); dragEnabled = b; NotImplementedExceptionif (b && GraphicsEnvironment.isHeadless()) throw new HeadlessException(); dragEnabled = b; if (b && GraphicsEnvironment.isHeadless()) throw new HeadlessException(); dragEnabled = b; {if (b && GraphicsEnvironment.isHeadless()) throw new HeadlessException(); dragEnabled = b; if (b && GraphicsEnvironment.isHeadless()) throw new HeadlessException(); dragEnabled = b; if (b && GraphicsEnvironment.isHeadless()) throw new HeadlessException(); dragEnabled = b; if (b && GraphicsEnvironment.isHeadless()) throw new HeadlessException(); dragEnabled = b; //if (b && GraphicsEnvironment.isHeadless()) throw new HeadlessException(); dragEnabled = b; FIXME:if (b && GraphicsEnvironment.isHeadless()) throw new HeadlessException(); dragEnabled = b; Implementif (b && GraphicsEnvironment.isHeadless()) throw new HeadlessException(); dragEnabled = b; if (b && GraphicsEnvironment.isHeadless()) throw new HeadlessException(); dragEnabled = b; }
4,180
public void addActionListener(ActionListener l) { // FIXME: Need to implement }
editor.addActionListener(l); editor.addActionListener(l); publiceditor.addActionListener(l); voideditor.addActionListener(l); addActionListener(ActionListenereditor.addActionListener(l); l)editor.addActionListener(l); editor.addActionListener(l); {editor.addActionListener(l); editor.addActionListener(l); editor.addActionListener(l); editor.addActionListener(l); //editor.addActionListener(l); FIXME:editor.addActionListener(l); Neededitor.addActionListener(l); toeditor.addActionListener(l); implementeditor.addActionListener(l); editor.addActionListener(l); }
4,181
public void removeActionListener(ActionListener l) { // FIXME: Need to implement }
editor.removeActionListener(l); editor.removeActionListener(l); publiceditor.removeActionListener(l); voideditor.removeActionListener(l); removeActionListener(ActionListenereditor.removeActionListener(l); l)editor.removeActionListener(l); editor.removeActionListener(l); {editor.removeActionListener(l); editor.removeActionListener(l); editor.removeActionListener(l); editor.removeActionListener(l); //editor.removeActionListener(l); FIXME:editor.removeActionListener(l); Neededitor.removeActionListener(l); toeditor.removeActionListener(l); implementeditor.removeActionListener(l); editor.removeActionListener(l); }
4,182
public ICC_ColorSpace(ICC_Profile profile) { super(CS_sRGB, profile.getNumComponents()); thisProfile = profile; }
public ICC_ColorSpace(ICC_Profile profile) { super(profile.getColorSpaceType(), profile.getNumComponents()); converter = getConverter(profile); thisProfile = profile; }
4,183
public float[] fromCIEXYZ(float[] colorvalue) { // FIXME: Not implemented throw new UnsupportedOperationException(); }
public float[] fromCIEXYZ(float[] colorvalue) { // FIXME: Not implemented return converter.fromCIEXYZ(colorvalue); }
4,185
public float[] fromRGB(float[] rgbvalue) { if (rgbvalue.length < 3) throw new IllegalArgumentException (); // FIXME: Always assumes sRGB: return rgbvalue; }
public float[] fromRGB(float[] rgbvalue) { if (rgbvalue.length < 3) throw new IllegalArgumentException (); // FIXME: Always assumes sRGB: return rgbvalue; }
4,186
public float getMaxValue(int idx) { if (type == TYPE_XYZ && idx >= 0 && idx <= 2) return 1 + 32767 / 32768f; else if (type == TYPE_Lab) { if (idx == 0) return 100; if (idx == 1 || idx == 2) return 127; } if (idx < 0 || idx >= numComponents) throw new IllegalArgumentException(); return 1; }
public float getMaxValue(int idx) { if (type == ColorSpace.TYPE_XYZ && idx >= 0 && idx <= 2) return 1 + 32767 / 32768f; else if (type == TYPE_Lab) { if (idx == 0) return 100; if (idx == 1 || idx == 2) return 127; } if (idx < 0 || idx >= numComponents) throw new IllegalArgumentException(); return 1; }
4,187
public float getMaxValue(int idx) { if (type == TYPE_XYZ && idx >= 0 && idx <= 2) return 1 + 32767 / 32768f; else if (type == TYPE_Lab) { if (idx == 0) return 100; if (idx == 1 || idx == 2) return 127; } if (idx < 0 || idx >= numComponents) throw new IllegalArgumentException(); return 1; }
public float getMaxValue(int idx) { if (type == TYPE_XYZ && idx >= 0 && idx <= 2) return 1 + 32767 / 32768f; else if (type == ColorSpace.TYPE_Lab) { if (idx == 0) return 100; if (idx == 1 || idx == 2) return 127; } if (idx < 0 || idx >= numComponents) throw new IllegalArgumentException(); return 1; }
4,188
public float getMaxValue(int idx) { if (type == TYPE_XYZ && idx >= 0 && idx <= 2) return 1 + 32767 / 32768f; else if (type == TYPE_Lab) { if (idx == 0) return 100; if (idx == 1 || idx == 2) return 127; } if (idx < 0 || idx >= numComponents) throw new IllegalArgumentException(); return 1; }
public float getMaxValue(int idx) { if (type == TYPE_XYZ && idx >= 0 && idx <= 2) return 1 + 32767 / 32768f; else if (type == TYPE_Lab) { if (idx == 0) return 100; if (idx == 1 || idx == 2) return 127; } if (idx < 0 || idx >= nComponents) throw new IllegalArgumentException(); return 1; }
4,189
public float getMinValue(int idx) { if (type == TYPE_Lab && (idx == 1 || idx == 2)) return -128; if (idx < 0 || idx >= numComponents) throw new IllegalArgumentException(); return 0; }
public float getMinValue(int idx) { if (type == TYPE_Lab && (idx == 1 || idx == 2)) return -128; if (idx < 0 || idx >= numComponents) throw new IllegalArgumentException(); return 0; }
4,190
public float[] toCIEXYZ(float[] colorvalue) { // FIXME: Not implemented throw new UnsupportedOperationException(); }
public float[] toCIEXYZ(float[] colorvalue) { // FIXME: Not implemented return converter.toCIEXYZ(colorvalue); }
4,191
public float[] toRGB(float[] colorvalue) { if (colorvalue.length < numComponents) throw new IllegalArgumentException (); // FIXME: Always assumes sRGB: return colorvalue; }
public float[] toRGB(float[] colorvalue) { if (colorvalue.length < numComponents) throw new IllegalArgumentException (); // FIXME: Always assumes sRGB: return colorvalue; }
4,192
public int getColorSpaceType() { throw new Error("not implemented"); }
public int getColorSpaceType() { return header.getColorSpace(); }
4,193
public int getNumComponents() { switch (profileID) { case ColorSpace.CS_sRGB: case ColorSpace.CS_LINEAR_RGB: case ColorSpace.CS_CIEXYZ: return 3; case ColorSpace.CS_GRAY: return 1; case ColorSpace.CS_PYCC: // have no clue about this one default: throw new UnsupportedOperationException("profile not implemented"); } }
public int getNumComponents() { switch (profileID) { case ColorSpace.CS_sRGB: case ColorSpace.CS_LINEAR_RGB: case ColorSpace.CS_CIEXYZ: return 3; case ColorSpace.CS_GRAY: return 1; case ColorSpace.CS_PYCC: // have no clue about this one default: throw new UnsupportedOperationException("profile not implemented"); } }
4,194
public ArrayIndexOutOfBoundsException(String s) { super(s); }
public ArrayIndexOutOfBoundsException() { super(s); }
4,195
public ArrayIndexOutOfBoundsException(String s) { super(s); }
public ArrayIndexOutOfBoundsException(String s) { super(s); }
4,196
public DefaultFocusManager() { // TODO } // DefaultFocusManager()
public DefaultFocusManager() { // TODO } // DefaultFocusManager()
4,197