JavaPrintingModel2_JunoYoon.PDF

Size: px
Start display at page:

Download "JavaPrintingModel2_JunoYoon.PDF"

Transcription

1 <JSTORM> 2 JSTORM

2 2 Issued by: < > Revision: <10> <2000/12/21> Document Information Document title: 2 Document file name: Revision number: <10> Issued by: Issue Date: <2000/12/21> Status: JavaPrintingModel2_JunoYoondoc < > junoyoon@orgionet final Audience Abstract Content Information 5 2 Java Printing API Reference Printing in Java, Part 2 ( Benchmark information by Jean-Pierre Dubé JSTORM <2/35>

3 2 Issued by: < > Revision: <10> <2000/12/21> Table of Contents Pageable Books 7, TextLayout 22 TextLayout JSTORM <3/35>

4 2 Issued by: < > Revision: <10> <2000/12/21> 1 1 Printable Pageable 2 Book 2 2D API Sun Java 13 Windows 2000 Linux 1 Printable Pageable Printable Printable Printable Pageable Book 1 Printable 1 2 /** 3 * Class: Example1 <p> 4 * JSTORM <4/35>

5 2 Issued by: < > Revision: <10> <2000/12/21> 5 Jean-Pierre Dube <jpdube@videotronca> Printable 9 */ import javaawt*; 12 import javaawtgeom*; 13 import javaawtprint*; public class Example1 implements Printable { // Private 19 private final double INCH = 72; /** 24 * Constructor: Example1 <p> 25 * 26 */ 27 public Example1 () { //--- printerjob 30 PrinterJob printjob = PrinterJobgetPrinterJob (); //--- Example1 Printable 33 //--- Printable this 34 printjobsetprintable (this); // // // if (printjobprintdialog()) { 40 try { 41 printjobprint(); 42 } catch (Exception PrintException) { 43 PrintExceptionprintStackTrace(); 44 } 45 } } JSTORM <5/35>

6 2 Issued by: < > Revision: <10> <2000/12/21> /** 51 * Method: print <p> 52 * 53 * 54 * 1/2 * 1/2 55 * 56 * 57 g a value of type Graphics 58 pageformat a value of type PageFormat 59 page a value of type int 60 a value of type int 61 */ 62 public int print (Graphics g, PageFormat pageformat, int page) { int i; 65 Graphics2D g2d; 66 Line2DDouble line = new Line2DDouble (); // 69 if (page == 0) { //--- graphic2d 72 g2d = (Graphics2D) g; 73 g2dsetcolor (Colorblack); //--- (0,0) 76 g2dtranslate(pageformatgetimageablex(), pageformatgetimageabley()); // for (i = 0; i < pageformatgetwidth (); i += INCH / 2) { 80 linesetline (i, 0, i, pageformatgetheight ()); 81 g2ddraw (line); 82 } // for (i = 0; i < pageformatgetheight (); i += INCH / 2) { 86 linesetline (0, i, pageformatgetwidth (), i); 87 g2ddraw (line); 88 } 89 JSTORM <6/35>

7 2 Issued by: < > Revision: <10> <2000/12/21> 90 return (PAGE_EXISTS); 91 } 92 else 93 return (NO_SUCH_PAGE); 94 } } //Example1 1 1/2 * 1/ API Printable PrinterJob,,, Printable print() Graphics PAGE_EXIT NO_SUCH_PAGE Pageable Books Printable Printable Pageable Book 1 Book Book (painter) Pageable Book 1 2 /** 3 * Class: Example2 <p> 4 * 5 * Print in Java series for the JavaWorld magazine 6 * JSTORM <7/35>

8 2 Issued by: < > Revision: <10> <2000/12/21> 7 Jean-Pierre Dube <jpdube@videotronca> */ import javaawt*; 13 import javaawtfont*; 14 import javaawtgeom*; 15 import javaawtprint*; public class Example2 { //--- Private 21 private final static int POINTS_PER_INCH = 72; /** 25 * Constructor: Example2 <p> 26 * 27 */ 28 public Example2 () { //--- PrinterJob 31 PrinterJob printjob = PrinterJobgetPrinterJob (); //--- (page) book 34 Book book = new Book (); //--- Job 37 bookappend (new IntroPage (), printjobdefaultpage ()); //--- (document) 40 PageFormat documentpageformat = new PageFormat (); 41 documentpageformatsetorientation (PageFormatLANDSCAPE); 42 bookappend (new Document (), documentpageformat); //--- printjob Pageable Book 45 printjobsetpageable (book); //--- print 48 //--- cancel 49 //--- JSTORM <8/35>

9 2 Issued by: < > Revision: <10> <2000/12/21> 50 if (printjobprintdialog()) { 51 try { 52 printjobprint(); 53 } catch (Exception PrintException) { 54 PrintExceptionprintStackTrace(); 55 } 56 } 57 } /** 61 * Class: IntroPage <p> 62 * 63 * Printable 64 * (cover page) (painter) <p> 65 * 66 Jean-Pierre Dube <jpdube@videotronca> Printable 70 */ 71 private class IntroPage implements Printable { /** 75 * Method: print <p> 76 * 77 g a value of type Graphics 78 pageformat a value of type PageFormat 79 page a value of type int 80 a value of type int 81 */ 82 public int print (Graphics g, PageFormat pageformat, int page) { //--- Graphics2D 85 Graphics2D g2d = (Graphics2D) g; //--- (0, 0) ( ) 88 g2dtranslate (pageformatgetimageablex (), pageformatgetimageabley ()); // g2dsetpaint (Colorblack); JSTORM <9/35>

10 2 Issued by: < > Revision: <10> <2000/12/21> // Rectangle2DDouble border = new Rectangle2DDouble (0, 95 0, 96 pageformatgetimageablewidth (), 97 pageformatgetimageableheight ()); 98 g2ddraw (border); // String titletext = "Printing in Java Part 2"; 102 Font titlefont = new Font ("helvetica", FontBOLD, 36); 103 g2dsetfont (titlefont); // FontMetrics fontmetrics = g2dgetfontmetrics (); 107 double titlex = (pageformatgetimageablewidth () / 2) - (fontmetricsstringwidth (titletext) / 2); 108 double titley = 3 * POINTS_PER_INCH; 109 g2ddrawstring (titletext, (int) titlex, (int) titley); return (PAGE_EXISTS); 112 } 113 } /** 118 * Class: Document <p> 119 * 120 * document <p> 121 * 122 * 123 Jean-Pierre Dube <jpdube@videotronca> Printable 127 */ 128 private class Document implements Printable { /** 132 * Method: print <p> 133 * JSTORM <10/35>

11 2 Issued by: < > Revision: <10> <2000/12/21> 134 g a value of type Graphics 135 pageformat a value of type PageFormat 136 page a value of type int 137 a value of type int 138 */ 139 public int print (Graphics g, PageFormat pageformat, int page) { //--- Graphics2D 143 Graphics2D g2d = (Graphics2D) g; //--- (0, 0) ( ) 146 g2dtranslate (pageformatgetimageablex (), pageformatgetimageabley ()); // g2dsetpaint (Colorblack); // g2dsetstroke (new BasicStroke (12)); 153 Rectangle2DDouble border = new Rectangle2DDouble (0, 154 0, 155 pageformatgetimageablewidth (), 156 pageformatgetimageableheight ()); g2ddraw (border); // g2ddrawstring ("This the content page", POINTS_PER_INCH, POINTS_PER_INCH); //--- Validate 164 return (PAGE_EXISTS); } 167 } } // Example2 (cover) (document) JSTORM <11/35>

12 2 Issued by: < > Revision: <10> <2000/12/21> /** 4 * Class: Example3 <p> 5 * 6 Jean-Pierre Dube <jpdube@videotronca> */ import javaawt*; 12 import javaawtfont*; 13 import javaawtgeom*; 14 import javaawtprint*; public class Example3 { //--- Private 20 private final static int POINTS_PER_INCH = 72; /** 24 * Constructor: Example3 <p> 25 * 26 */ 27 public Example3 () { //--- PrinterJob 30 PrinterJob printjob = PrinterJobgetPrinterJob (); //--- Book 33 Book book = new Book (); //--- printjob 36 bookappend (new IntroPage (), printjobdefaultpage ()); //--- document 39 PageFormat documentpageformat = new PageFormat (); 40 documentpageformatsetorientation (PageFormatLANDSCAPE); 41 bookappend (new Document (), documentpageformat); JSTORM <12/35>

13 2 Issued by: < > Revision: <10> <2000/12/21> //--- painter 44 bookappend (new Document (), documentpageformat); //--- printjob Pageable Book 47 printjobsetpageable (book); // //--- cancel 51 // if (printjobprintdialog()) { 53 try { 54 printjobprint(); 55 } catch (Exception PrintException) { 56 PrintExceptionprintStackTrace(); 57 } 58 } } /** 63 * Class: IntroPage <p> 64 * 65 * Printable 66 * <p> 67 * 68 Jean-Pierre Dube <jpdube@videotronca> Printable 72 */ 73 private class IntroPage implements Printable { /** 77 * Method: print <p> 78 * 79 g a value of type Graphics 80 pageformat a value of type PageFormat 81 page a value of type int 82 a value of type int 83 */ 84 public int print (Graphics g, PageFormat pageformat, int page) { JSTORM <13/35>

14 2 Issued by: < > Revision: <10> <2000/12/21> //--- Graphics2D 87 Graphics2D g2d = (Graphics2D) g; //--- ( ) (0,0) 90 g2dtranslate (pageformatgetimageablex (), pageformatgetimageabley ()); // g2dsetpaint (Colorblack); // Rectangle2DDouble border = new Rectangle2DDouble (0, 97 0, 98 pageformatgetimageablewidth (), 99 pageformatgetimageableheight ()); 100 g2ddraw (border); // String titletext = "Printing in Java Part 2"; 104 Font titlefont = new Font ("helvetica", FontBOLD, 36); 105 g2dsetfont (titlefont); // FontMetrics fontmetrics = g2dgetfontmetrics (); 109 double titlex = (pageformatgetimageablewidth () / 2) - (fontmetricsstringwidth (titletext) / 2); 110 double titley = 3 * POINTS_PER_INCH; 111 g2ddrawstring (titletext, (int) titlex, (int) titley); return (PAGE_EXISTS); 114 } 115 } /** 120 * Class: Document <p> 121 * 122 * document <p> 123 * 124 * 125 Jean-Pierre Dube <jpdube@videotronca> JSTORM <14/35>

15 2 Issued by: < > Revision: <10> <2000/12/21> Printable 129 */ 130 private class Document implements Printable { /** 134 * Method: print <p> 135 * 136 g a value of type Graphics 137 pageformat a value of type PageFormat 138 page a value of type int 139 a value of type int 140 */ 141 public int print (Graphics g, PageFormat pageformat, int page) { //--- Graphics2D 145 Graphics2D g2d = (Graphics2D) g; //--- ( ) (0, 0) 148 g2dtranslate (pageformatgetimageablex (), pageformatgetimageabley ()); // g2dsetpaint (Colorblack); // g2dsetstroke (new BasicStroke (12)); 155 Rectangle2DDouble border = new Rectangle2DDouble (0, 156 0, 157 pageformatgetimageablewidth (), 158 pageformatgetimageableheight ()); g2ddraw (border); // if (page == 1) { 165 // g2ddrawstring ("This the content page of page: " + page, POINTS_PER_INCH, POINTS_PER_INCH); JSTORM <15/35>

16 2 Issued by: < > Revision: <10> <2000/12/21> 167 return (PAGE_EXISTS); 168 } // else if (page == 2) { 172 // g2ddrawstring ("This the content of the second page: " + page, POINTS_PER_INCH, POINTS_PER_INCH); 174 return (PAGE_EXISTS); 175 } //--- Validate 179 return (NO_SUCH_PAGE); } 182 } } // Example if API API 2, 12 (print job) OS 1 JSTORM <16/35>

17 2 Issued by: < > Revision: <10> <2000/12/21> if (printjobprintdialog()) { try { printjobprint(); } catch (Exception PrintException) { PrintExceptionprintStackTrace(); } } PrinterJob printdialog Boolean Print printdialog() true cancel false printdialog() Boolean (interact) PrinterJob page 2 JSTORM <17/35>

18 2 Issued by: < > Revision: <10> <2000/12/21>,,, PageForamt PageFormat documentpageformat = new PageFormat (); documentpageformat = printjobpagedialog (documentpageformat); bookappend (new Document (), documentpageformat); OK pagedialog() PageFormat (clone) Cancel PageFormat JSTORM <18/35>

19 2 Issued by: < > Revision: <10> <2000/12/21> CR/LF 2 CR/LF 3 baseline ascend baseline baseline descend leading 2 height ascend leading descend string advance Arial text Lucida text baseline y text x 4 JSTORM <19/35>

20 2 Issued by: < > Revision: <10> <2000/12/21> 2 Serif Times New Roman serif ABCD Sans serif Arial sans serif (monospaced) (proportional) monospaced monospaced proportional proportional Apple Lisa (WORA) (font family) 8 : Serif, Sans Serif, Dialog, Dialog Input, Lucida Sans, Lucida Sans Typewriter, Lucida Bright Monospace WORA JDK jre/lib/fontproperties Serif JSTORM <20/35>

21 2 Issued by: < > Revision: <10> <2000/12/21> fontproperties = Serif Times New Roman Arial, Courier, Times Roman Lucida Arial Arial Bold, Arial Italic Arial Regular Arial java -Djavaawtfonts=[fonts directory] Type1( ) javaawtfonts jar API Class FontMetrix Class abstract (Abstract) GraphicsgetFontMetrics descend, ascend, leading, advance FontMetric (Rule) Class (Rule) JSTORM <21/35>

22 2 Issued by: < > Revision: <10> <2000/12/21> JDK (proportional) TexLayout LineBreakMeasurer TextLayout TextLayout TextLayout TextLayout LineBreakMeasurer LineBreakMeasurer (wrap) (break) LineBreakMeasurer FontRenderContext FontRenderContext (targeted device), TextLayout AttributedString This is a Bold attribute AttributedString, GraphicsdrawString() JSTORM <22/35>

23 2 Issued by: < > Revision: <10> <2000/12/21> Font normalfont = new Font ("serif", FontPLAIN, 12); Font boldfont = new Font ("serif", FontBOLD, 12); g2setfont (normalfont); g2drawstring ("This is a "); g2setfont (boldfont); g2drawstring ("bold "); g2setfont (normalfont); g2drawstring ("attribute", 72, 72);? Attributed String AttributedString String Attribute attribute AttributedString AttributedString attributedstring = new AttributedString ("This is a Bold attribute"); attributedstringaddattribute (TextAttributeWEIGHT, TextAttributeWEIGHT_BOLD, 11, 14); g2drawstring (attributestringgetiterator (), 72, 72); Bold addattribute() TextAttributeWEIGHT weight TextAttributeWEIGHT t WEIGHT_DEMIBOLD, WEIGHT_DEMILIGHT, WEIGHT_EXTRA_LIGHT, WEIGHT_EXTRABOLD, WEIGHT_HEAVY, WEIGHT_LIGHT, WEIGHT_MEDIUM, WEIGHT_REGULAR, WEIGHT_SEMIBOLD WEIGHT_ULTRABOLD, 5 Attribute dstring JSTORM <23/35>

24 2 Issued by: < > Revision: <10> <2000/12/21> TextLayout TextLayout Example4 TextLayout List 4 75 TextLayout /** 119 * Class: Document <p> 120 * 121 * (document) <p> 122 * 123 * 124 Jean-Pierre Dube <jpdube@videotronca> Printable 128 */ 129 private class Document implements Printable { /** 133 * Method: print <p> 134 * 135 g a value of type Graphics 136 pageformat a value of type PageFormat 137 page a value of type int 138 a value of type int 139 */ 140 public int print (Graphics g, PageFormat pageformat, int page) { //--- Graphics2D 144 Graphics2D g2d = (Graphics2D) g; // g2dtranslate (pageformatgetimageablex (), pageformatgetimageabley ()); //--- JSTORM <24/35>

25 2 Issued by: < > Revision: <10> <2000/12/21> 150 g2dsetpaint (Colorblack); // g2dsetstroke (new BasicStroke (4)); 154 Rectangle2DDouble border = new Rectangle2DDouble (0, 155 0, 156 pageformatgetimageablewidth (), 157 pageformatgetimageableheight ()); g2ddraw (border); // String text = new String (); 164 text += "Manipulating raw fonts would be too complicated to render paragraphs of "; 165 text += "text Trying to write an algorithm to fully justify text using "; 166 text += "proportional fonts is not trivial Adding support for international "; 167 text += "characters adds to the complexity That's why we will use the "; 168 text += "TextLayout and the LineBreakMeasurer class to "; 169 text += "render text The TextLayout class offers a lot of "; 170 text += "functionality to render high quality text This class is capable of "; 171 text += "rendering bidirectional text such as Japanese text where the alignment "; 172 text += "is from right to left instead of the North American style which is left "; 173 text += "to right The TextLayout class offers some additional "; 174 text += "functionalities that we will not use in the course of this "; 175 text += "series Features such as text input, caret positioning and hit "; 176 text += "testing will not be of much use when printing documents, but it's good "; 177 text += "to know that this functionality exists "; text += "The TextLayout class will be used to layout "; 180 text += "paragraphs The TextLayout class does not work alone To "; 181 text += "layout text within a specified width it needs the help of the "; 182 text += "LineBreakMeasurer class This class will wrap a string of "; 183 text += "text to fit a predefined width Since it's a multi-lingual class, it "; 184 text += "knows exactly where to break a line of text according to the rules "; 185 text += "of the language Then again the LineBreakMeasurer does "; 186 text += "not work alone It needs information from the "; JSTORM <25/35>

26 2 Issued by: < > Revision: <10> <2000/12/21> 187 text += "FontRenderContext class This class' main function is to "; 188 text += "return accurate font metrics To measure text effectively, this class "; 189 text += "needs to know the rendering hints for the targeted device and the font "; 190 text += "type being used "; //--- TextLayout point 194 Point2DDouble pen = new Point2DDouble (025 * POINTS_PER_INCH, 025 * POINTS_PER_INCH); //--- TextLayout 197 double width = 75 * POINTS_PER_INCH; //--- attributed string LineBreakMesurer 201 //--- Iterator attributed string 202 // 203 AttributedString paragraphtext = new AttributedString (text); // paragraphtextaddattribute (TextAttributeFONT, new Font ("serif", FontPLAIN, 12)); //--- LineBreakMeasurer TextLayout 209 //--- FontRendereContext 210 //--- 2 true 211 //--- usefractionalmetrics true 212 LineBreakMeasurer linebreaker = new LineBreakMeasurer (paragraphtextgetiterator(), 213 new FontRenderContext (null, true, true)); //--- TextLayout 216 TextLayout layout; //--- LineBreakMeasurer width 219 //--- TextLayout 220 while ((layout = linebreakernextlayout ((float) width))!= null) { //--- Y ascend font ascending 223 //--- (0, 0) 1 JSTORM <26/35>

27 2 Issued by: < > Revision: <10> <2000/12/21> 224 peny += layoutgetascent (); // layoutdraw (g2d, (float) penx, (float) peny); //--- y descent leading peny += layoutgetdescent () + layoutgetleading (); 232 } //--- page Validate 235 return (PAGE_EXISTS); 236 } 237 } } // Example4 4 AttributedString addattribute() AttributedString iterator FontRenderContext 2 LineBreakMeasurer LineBreakMeasurer TextLaout y=0 baseline descend leading 1 Listing 5 Example5 120 /** 121 * Class: Document <p> 122 * 123 * (document) 124 * 125 * <p> 126 * 127 * 128 Jean-Pierre Dube <jpdube@videotronca> JSTORM <27/35>

28 2 Issued by: < > Revision: <10> <2000/12/21> Printable 132 */ 133 private class Document implements Printable { /** 137 * Method: print <p> 138 * 139 g a value of type Graphics 140 pageformat a value of type PageFormat 141 page a value of type int 142 a value of type int 143 */ 144 public int print (Graphics g, PageFormat pageformat, int page) { //--- Graphics2D 148 Graphics2D g2d = (Graphics2D) g; //--- ( ) 0,0 151 g2dtranslate (pageformatgetimageablex (), pageformatgetimageabley ()); // g2dsetpaint (Colorblack); // g2dsetstroke (new BasicStroke (4)); 158 Rectangle2DDouble border = new Rectangle2DDouble (0, 159 0, 160 pageformatgetimageablewidth (), 161 pageformatgetimageableheight ()); g2ddraw (border); // String text = new String (); 168 text += "Manipulating raw fonts would be too complicated to render paragraphs of "; 169 text += "text Trying to write an algorithm to fully justify text using "; 170 text += "proportional fonts is not trivial Adding support for international JSTORM <28/35>

29 2 Issued by: < > Revision: <10> <2000/12/21> "; 171 text += "characters adds to the complexity That's why we will use the "; 172 text += "TextLayout and the LineBreakMeasurer class to "; 173 text += "render text The TextLayout class offers a lot of "; 174 text += "functionality to render high quality text This class is capable of "; 175 text += "rendering bidirectional text such as Japanese text where the alignment "; 176 text += "is from right to left instead of the North American style which is left "; 177 text += "to right The TextLayout class offers some additional "; 178 text += "functionalities that we will not use in the course of this "; 179 text += "series Features such as text input, caret positioning and hit "; 180 text += "testing will not be of much use when printing documents, but it's good "; 181 text += "to know that this functionality exists "; text += "The TextLayout class will be used to layout "; 184 text += "paragraphs The TextLayout class does not work alone To "; 185 text += "layout text within a specified width it needs the help of the "; 186 text += "LineBreakMeasurer class This class will wrap a string of "; 187 text += "text to fit a predefined width Since it's a multi-lingual class, it "; 188 text += "knows exactly where to break a line of text according to the rules "; 189 text += "of the language Then again the LineBreakMeasurer does "; 190 text += "not work alone It needs information from the "; 191 text += "FontRenderContext class This class' main function is to "; 192 text += "return accurate font metrics To measure text effectively, this class "; 193 text += "needs to know the rendering hints for the targeted device and the font "; 194 text += "type being used "; //--- TextLayout point 198 Point2DDouble pen = new Point2DDouble (025 * POINTS_PER_INCH, 025 * POINTS_PER_INCH); //--- TextLayout 201 double width = 8 * POINTS_PER_INCH; //--- attributed LineBreakMeasurer 205 //--- Iterator attributed string JSTORM <29/35>

30 2 Issued by: < > Revision: <10> <2000/12/21> 206 // AttributedString paragraphtext = new AttributedString (text); // paragraphtextaddattribute (TextAttributeFONT, new Font ("serif", FontPLAIN, 12)); //--- TextLayout text LineBreakMeasurer 213 //--- FontContext 214 //--- true antialised //--- usefractionalmetrics true 216 LineBreakMeasurer linebreaker = new LineBreakMeasurer (paragraphtextgetiterator(), 217 new FontRenderContext (null, true, true)); //--- TextLayouts 220 TextLayout layout; 221 TextLayout justifylayout; //--- Vector 224 Vector lines = new Vector (); //--- LineBreakMeasurer Vector 227 while ((layout = linebreakernextlayout ((float) width))!= null) { 228 linesadd (layout); } // for (int i = 0; i < linessize (); i++) { // layout = (TextLayout) linesget (i); // // if (i!= linessize () - 1) 241 justifylayout = layoutgetjustifiedlayout ((float) width); 242 else 243 justifylayout = layout; //--- Y ascend ascend (0,0) 246 //--- 1 JSTORM <30/35>

31 2 Issued by: < > Revision: <10> <2000/12/21> 247 peny += justifylayoutgetascent (); // justifylayoutdraw (g2d, (float) penx, (float) peny); //--- descend leading 253 // peny += justifylayoutgetdescent () + justifylayoutgetleading (); } //--- validation 259 return (PAGE_EXISTS); 260 } 261 } } // Example TextLayout LineBreakMeasurer Vector for getj ustifiedlayout() Image Graphics2DdrawImage() /** 121 * Class: Document <p> 122 * 123 * 124 * <p> JSTORM <31/35>

32 2 Issued by: < > Revision: <10> <2000/12/21> 125 * 126 * 127 Jean-Pierre Dube <jpdube@videotronca> Printable 131 */ 132 private class Document extends Component implements Printable { /** 136 * Method: print <p> 137 * 138 g a value of type Graphics 139 pageformat a value of type PageFormat 140 page a value of type int 141 a value of type int 142 */ 143 public int print (Graphics g, PageFormat pageformat, int page) { //--- Graphics2D 147 Graphics2D g2d = (Graphics2D) g; //--- ( ) (0,0) 150 g2dtranslate (pageformatgetimageablex (), pageformatgetimageabley ()); // g2dsetpaint (Colorblack); // g2dsetstroke (new BasicStroke (4)); 157 Rectangle2DDouble border = new Rectangle2DDouble (0, 158 0, 159 pageformatgetimageablewidth (), 160 pageformatgetimageableheight ()); g2ddraw (border); //--- Media Tracker URL 166 MediaTracker mt = new MediaTracker (this); JSTORM <32/35>

33 2 Issued by: < > Revision: <10> <2000/12/21> 167 URL imageurl = null; //--- URL 170 //--- NOTE: 171 //--- NOTE: JPEG, GIF, PNG imageurl = new URL ("file:///c:/softdev/java/articles/javaworld/printing/part_2/ss2jpg"); 175 } 176 catch (MalformedURLException me) { 177 meprintstacktrace (); 178 } // Image image = ToolkitgetDefaultToolkit()getImage (imageurl); 182 mtaddimage (image, 0); 183 try { 184 mtwaitforid (0); 185 } 186 catch (InterruptedException e) { 187 } // g2ddrawimage (image, 191 (int) (025 * POINTS_PER_INCH), 192 (int) (025 * POINTS_PER_INCH), 193 (int) (85 * POINTS_PER_INCH), 194 (int) (6 * POINTS_PER_INCH), 195 this); //--- Validate 198 return (PAGE_EXISTS); 199 } 200 } } // Example6 3 URL MediaTracker GIF, JPEG PNG Advance Imaging API Graphics2D drawimage() JSTORM <33/35>

34 2 Issued by: < > Revision: <10> <2000/12/21> drawimage() 6 Image ImageObserver Document Component Component ImageObserver 3 JavaSoft Advanced Imaging API WORA OS SuSe Linux 64 Sun Java 13 Windows 2000 HP 5L OS, Windows Linux SuSe APS HP 5L 600 dpi 300 dpi 600 dpi Linux, 6 7 JSTORM <34/35>

35 2 Issued by: < > Revision: <10> <2000/12/21> OS X Max OS 2 API (?) API,,, API 3 3 ~ JSTORM <35/35>

rmi_박준용_final.PDF

rmi_박준용_final.PDF (RMI) - JSTORM http://wwwjstormpekr (RMI)- Document title: Document file name: Revision number: Issued by: Document Information (RMI)- rmi finaldoc Issue Date: Status:

More information

MasoJava4_Dongbin.PDF

MasoJava4_Dongbin.PDF JSTORM http://wwwjstormpekr Issued by: < > Revision: Document Information Document title: Document file name: MasoJava4_Dongbindoc Revision number: Issued by: < > SI, dbin@handysoftcokr

More information

JMF3_심빈구.PDF

JMF3_심빈구.PDF JMF JSTORM http://wwwjstormpekr Issued by: < > Revision: Document Information Document title: Document file name: Revision number: Issued by: JMF3_ doc Issue Date:

More information

JMF2_심빈구.PDF

JMF2_심빈구.PDF JMF JSTORM http://wwwjstormpekr Issued by: < > Document Information Document title: Document file name: Revision number: Issued by: JMF2_ doc Issue Date: Status: < > raica@nownurinet

More information

fundamentalOfCommandPattern_calmglow_pattern_jstorm_1.0_f…

fundamentalOfCommandPattern_calmglow_pattern_jstorm_1.0_f… Command JSTORM http://www.jstorm.pe.kr Command Issued by: < > Revision: Document Information Document title: Command Document file name: Revision number: Issued by: Issue

More information

자바GUI실전프로그래밍2_장대원.PDF

자바GUI실전프로그래밍2_장대원.PDF JAVA GUI - 2 JSTORM http://wwwjstormpekr JAVA GUI - 2 Issued by: < > Document Information Document title: JAVA GUI - 2 Document file name: Revision number: Issued by: Issue Date:

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 @ Lesson 2... ( ). ( ). @ vs. logic data method variable behavior attribute method field Flow (Type), ( ) member @ () : C program Method A ( ) Method B ( ) Method C () program : Java, C++, C# data @ Program

More information

01-OOPConcepts(2).PDF

01-OOPConcepts(2).PDF Object-Oriented Programming Concepts Tel: 02-824-5768 E-mail: hhcho@selabsoongsilackr? OOP (Object) (Encapsulation) (Message) (Class) (Inheritance) (Polymorphism) (Abstract Class) (Interface) 2 1 + = (Dependency)

More information

05-class.key

05-class.key 5 : 2 (method) (public) (private) (interface) 5.1 (Method), (public method) (private method) (constructor), 3 4 5.2 (client). (receiver)., System.out.println("Hello"); (client object) (receiver object)

More information

02 C h a p t e r Java

02 C h a p t e r Java 02 C h a p t e r Java Bioinformatics in J a va,, 2 1,,,, C++, Python, (Java),,, (http://wwwbiojavaorg),, 13, 3D GUI,,, (Java programming language) (Sun Microsystems) 1995 1990 (green project) TV 22 CHAPTER

More information

Orcad Capture 9.x

Orcad Capture 9.x OrCAD Capture Workbook (Ver 10.xx) 0 Capture 1 2 3 Capture for window 4.opj ( OrCAD Project file) Design file Programe link file..dsn (OrCAD Design file) Design file..olb (OrCAD Library file) file..upd

More information

<4D F736F F F696E74202D20C1A63233C0E520B1D7B7A1C7C820C7C1B7CEB1D7B7A1B9D628B0ADC0C729205BC8A3C8AF20B8F0B5E55D>

<4D F736F F F696E74202D20C1A63233C0E520B1D7B7A1C7C820C7C1B7CEB1D7B7A1B9D628B0ADC0C729205BC8A3C8AF20B8F0B5E55D> Power Java 제 23 장그래픽프로그래밍 이번장에서학습할내용 자바에서의그래픽 기초사항 기초도형그리기 색상 폰트 Java 2D Java 2D를이용한그리기 Java 2D 를이용한채우기 도형회전과평행이동 자바를이용하여서화면에그림을그려봅시다. 자바그래픽데모 자바그래픽의두가지방법 자바그래픽 AWT Java 2D AWT를사용하면기본적인도형들을쉽게그릴수있다. 어디서나잘실행된다.

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 @ Lesson 3 if, if else, if else if, switch case for, while, do while break, continue : System.in, args, JOptionPane for (,, ) @ vs. logic data method variable Data Data Flow (Type), ( ) @ Member field

More information

12-file.key

12-file.key 11 (String).. java.lang.stringbuffer. s String s = "abcd"; s = s + "e"; a b c d e a b c d e ,., "910359,, " "910359" " " " " (token) (token),, (delimiter). java.util.stringtokenizer String s = "910359,,

More information

Page 2 of 5 아니다 means to not be, and is therefore the opposite of 이다. While English simply turns words like to be or to exist negative by adding not,

Page 2 of 5 아니다 means to not be, and is therefore the opposite of 이다. While English simply turns words like to be or to exist negative by adding not, Page 1 of 5 Learn Korean Ep. 4: To be and To exist Of course to be and to exist are different verbs, but they re often confused by beginning students when learning Korean. In English we sometimes use the

More information

Ext JS À¥¾ÖÇø®ÄÉÀ̼ǰ³¹ß-³¹Àå.PDF

Ext JS À¥¾ÖÇø®ÄÉÀ̼ǰ³¹ß-³¹Àå.PDF CHAPTER 2 (interaction) Ext JS., HTML, onready, MessageBox get.. Ext JS HTML CSS Ext JS.1. Ext JS. Ext.Msg: : Ext Ext.get: DOM 22 CHAPTER 2 (config). Ext JS.... var test = new TestFunction( 'three', 'fixed',

More information

Microsoft PowerPoint - 04-UDP Programming.ppt

Microsoft PowerPoint - 04-UDP Programming.ppt Chapter 4. UDP Dongwon Jeong djeong@kunsan.ac.kr http://ist.kunsan.ac.kr/ Dept. of Informatics & Statistics 목차 UDP 1 1 UDP 개념 자바 UDP 프로그램작성 클라이언트와서버모두 DatagramSocket 클래스로생성 상호간통신은 DatagramPacket 클래스를이용하여

More information

11 템플릿적용 - Java Program Performance Tuning (김명호기술이사)

11 템플릿적용 - Java Program Performance Tuning (김명호기술이사) Java Program Performance Tuning ( ) n (Primes0) static List primes(int n) { List primes = new ArrayList(n); outer: for (int candidate = 2; n > 0; candidate++) { Iterator iter = primes.iterator(); while

More information

자바 프로그래밍

자바 프로그래밍 5 (kkman@mail.sangji.ac.kr) (Class), (template) (Object) public, final, abstract [modifier] class ClassName { // // (, ) Class Circle { int radius, color ; int x, y ; float getarea() { return 3.14159

More information

09-interface.key

09-interface.key 9 Database insert(record r): boolean find(key k): Record 1 Record getkey(): Key * Record Key Database.? Key equals(key y): boolean Database insert(record r): boolean find(key k): Record * Database OK 1

More information

Modern Javascript

Modern Javascript ES6 - Arrow Function Class Template String Destructuring Default, Rest, Spread let, const for..of Promises Module System Map, Set * Generator * Symbol * * https://babeljs.io/ Babel is a JavaScript compiler.

More information

Lab10

Lab10 Lab 10: Map Visualization 2015 Fall human-computer interaction + design lab. Joonhwan Lee Map Visualization Shape Shape (.shp): ESRI shp http://sgis.kostat.go.kr/html/index.html 3 d3.js SVG, GeoJSON, TopoJSON

More information

신림프로그래머_클린코드.key

신림프로그래머_클린코드.key CLEAN CODE 6 11st Front Dev. Team 6 1. 2. 3. checked exception 4. 5. 6. 11 : 2 4 : java (50%), javascript (35%), SQL/PL-SQL (15%) : Spring, ibatis, Oracle, jquery ? , (, ) ( ) 클린코드를 무시한다면 . 6 1. ,,,!

More information

07 자바의 다양한 클래스.key

07 자바의 다양한 클래스.key [ 07 ] . java.lang Object, Math, String, StringBuffer Byte, Short, Integer, Long, Float, Double, Boolean, Character. java.util Random, StringTokenizer Calendar, GregorianCalendar, Date. Collection, List,

More information

비긴쿡-자바 00앞부속

비긴쿡-자바 00앞부속 IT COOKBOOK 14 Java P r e f a c e Stay HungryStay Foolish 3D 15 C 3 16 Stay HungryStay Foolish CEO 2005 L e c t u r e S c h e d u l e 1 14 PPT API C A b o u t T h i s B o o k IT CookBook for Beginner Chapter

More information

자바로

자바로 ! from Yongwoo s Park ZIP,,,,,,,??!?, 1, 1 1, 1 (Snow Ball), /,, 5,,,, 3, 3, 5, 7,,,,,,! ,, ZIP, ZIP, images/logojpg : images/imageszip :, backgroundjpg, shadowgif, fallgif, ballgif, sf1gif, sf2gif, sf3gif,

More information

Analytics > Log & Crash Search > Unity ios SDK [Deprecated] Log & Crash Unity ios SDK. TOAST SDK. Log & Crash Unity SDK Log & Crash Search. Log & Cras

Analytics > Log & Crash Search > Unity ios SDK [Deprecated] Log & Crash Unity ios SDK. TOAST SDK. Log & Crash Unity SDK Log & Crash Search. Log & Cras Analytics > Log & Crash Search > Unity ios SDK [Deprecated] Log & Crash Unity ios SDK. TOAST SDK. Log & Crash Unity SDK Log & Crash Search. Log & Crash Unity SDK... Log & Crash Search. - Unity3D v4.0 ios

More information

ch09

ch09 9 Chapter CHAPTER GOALS B I G J A V A 436 CHAPTER CONTENTS 9.1 436 Syntax 9.1 441 Syntax 9.2 442 Common Error 9.1 442 9.2 443 Syntax 9.3 445 Advanced Topic 9.1 445 9.3 446 9.4 448 Syntax 9.4 454 Advanced

More information

1

1 1 1....6 1.1...6 2. Java Architecture...7 2.1 2SDK(Software Development Kit)...8 2.2 JRE(Java Runtime Environment)...9 2.3 (Java Virtual Machine, JVM)...10 2.4 JVM...11 2.5 (runtime)jvm...12 2.5.1 2.5.2

More information

5장.key

5장.key JAVA Programming 1 (inheritance) 2!,!! 4 3 4!!!! 5 public class Person {... public class Student extends Person { // Person Student... public class StudentWorker extends Student { // Student StudentWorker...!

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 @ Lesson 4 (Object) (Class) (Instance) (Method) (Constructor) Memory 1 UML 1 @ & 1 (Real World) (Software World) @ &.. () () @ & 2 (Real World) (Software World) OOA/ Modeling Abstraction Instantiation

More information

10-Java Applet

10-Java Applet JAVA Programming Language JAVA Applet Java Applet >APPLET< >PARAM< HTML JAR 2 JAVA APPLET HTML HTML main( ). public Applet 3 (HelloWorld.html) Applet

More information

Interstage5 SOAP서비스 설정 가이드

Interstage5 SOAP서비스 설정 가이드 Interstage 5 Application Server ( Solaris ) SOAP Service Internet Sample Test SOAP Server Application SOAP Client Application CORBA/SOAP Server Gateway CORBA/SOAP Gateway Client INTERSTAGE SOAP Service

More information

Microsoft PowerPoint - java1-lab5-ImageProcessorTestOOP.pptx

Microsoft PowerPoint - java1-lab5-ImageProcessorTestOOP.pptx 2018 학년도 1 학기 JAVA 프로그래밍 II 514760-1 2018 년봄학기 5/10/2018 박경신 Lab#1 (ImageTest) Lab#1 은영상파일 (Image) 을읽어서정보를출력 Java Tutorials Lesson: Working with Images https://docs.oracle.com/javase/tutorial/2d/images/index.html

More information

example code are examined in this stage The low pressure pressurizer reactor trip module of the Plant Protection System was programmed as subject for

example code are examined in this stage The low pressure pressurizer reactor trip module of the Plant Protection System was programmed as subject for 2003 Development of the Software Generation Method using Model Driven Software Engineering Tool,,,,, Hoon-Seon Chang, Jae-Cheon Jung, Jae-Hack Kim Hee-Hwan Han, Do-Yeon Kim, Young-Woo Chang Wang Sik, Moon

More information

강의10

강의10 Computer Programming gdb and awk 12 th Lecture 김현철컴퓨터공학부서울대학교 순서 C Compiler and Linker 보충 Static vs Shared Libraries ( 계속 ) gdb awk Q&A Shared vs Static Libraries ( 계속 ) Advantage of Using Libraries Reduced

More information

untitled

untitled Push... 2 Push... 4 Push... 5 Push... 13 Push... 15 1 FORCS Co., LTD A Leader of Enterprise e-business Solution Push (Daemon ), Push Push Observer. Push., Observer. Session. Thread Thread. Observer ID.

More information

step 1-1

step 1-1 Written by Dr. In Ku Kim-Marshall STEP BY STEP Korean 1 through 15 Action Verbs Table of Contents Unit 1 The Korean Alphabet, hangeul Unit 2 Korean Sentences with 15 Action Verbs Introduction Review Exercises

More information

Chap12

Chap12 12 12Java RMI 121 RMI 2 121 RMI 3 - RMI, CORBA 121 RMI RMI RMI (remote object) 4 - ( ) UnicastRemoteObject, 121 RMI 5 class A - class B - ( ) class A a() class Bb() 121 RMI 6 RMI / 121 RMI RMI 1 2 ( 7)

More information

Eclipse 와 Firefox 를이용한 Javascript 개발 발표자 : 문경대 11 년 10 월 26 일수요일

Eclipse 와 Firefox 를이용한 Javascript 개발 발표자 : 문경대 11 년 10 월 26 일수요일 Eclipse 와 Firefox 를이용한 Javascript 개발 발표자 : 문경대 Introduce Me!!! Job Jeju National University Student Ubuntu Korean Jeju Community Owner E-Mail: ned3y2k@hanmail.net Blog: http://ned3y2k.wo.tc Facebook: http://www.facebook.com/gyeongdae

More information

9장.key

9장.key JAVA Programming 1 GUI(Graphical User Interface) 2 GUI!,! GUI! GUI, GUI GUI! GUI AWT Swing AWT - java.awt Swing - javax.swing AWT Swing 3 AWT(Abstract Windowing Toolkit)! GUI! java.awt! AWT (Heavy weight

More information

Something that can be seen, touched or otherwise sensed

Something that can be seen, touched or otherwise sensed Something that can be seen, touched or otherwise sensed Things about an object Weight Height Material Things an object does Pen writes Book stores words Water have Fresh water Rivers Oceans have

More information

초보자를 위한 자바 2 21일 완성 - 최신개정판

초보자를 위한 자바 2 21일 완성 - 최신개정판 .,,.,. 7. Sun Microsystems.,,. Sun Bill Joy.. 15... ( ), ( )... 4600. .,,,,,., 5 Java 2 1.4. C++, Perl, Visual Basic, Delphi, Microsoft C#. WebGain Visual Cafe, Borland JBuilder, Sun ONE Studio., Sun Java

More information

DIY 챗봇 - LangCon

DIY 챗봇 - LangCon without Chatbot Builder & Deep Learning bage79@gmail.com Chatbot Builder (=Dialogue Manager),. We need different chatbot builders for various chatbot services. Chatbot builders can t call some external

More information

ilist.add(new Integer(1))과 같이 사용하지 않고 ilist.add(1)과 같이 사용한 것은 자바 5.0에 추가된 기본 자료형과 해당 객체 자료 형과의 오토박싱/언박싱 기능을 사용한 것으로 오토박싱이란 자바 컴파일러가 객체를 요구하는 곳에 기본 자료형

ilist.add(new Integer(1))과 같이 사용하지 않고 ilist.add(1)과 같이 사용한 것은 자바 5.0에 추가된 기본 자료형과 해당 객체 자료 형과의 오토박싱/언박싱 기능을 사용한 것으로 오토박싱이란 자바 컴파일러가 객체를 요구하는 곳에 기본 자료형 바에 제네릭스(generics)를 도입하기 위한 연구는 이미 8년 전인 1996년부터라고 한다. 실제로 자바에 제네릭스를 도입하 는 몇 가지 방안들이 논문으로 나오기 시작한 것이 1998년 초임을 감 안하면 무려 8년이 지난 후에야 자바 5.0에 전격 채택되었다는 것은 이것이 얼마나 어려운 일이었나 하는 것을 보여준다. 자바의 스펙을 결정하는 표준화 절차인

More information

I T C o t e n s P r o v i d e r h t t p : / / w w w. h a n b i t b o o k. c o. k r

I T C o t e n s P r o v i d e r h t t p : / / w w w. h a n b i t b o o k. c o. k r I T C o t e n s P r o v i d e r h t t p : / / w w w. h a n b i t b o o k. c o. k r I T C o t e n s P r o v i d e r h t t p : / / w w w. h a n b i t b o o k. c o. k r Jakarta is a Project of the Apache

More information

프로그램을 학교 등지에서 조금이라도 배운 사람들을 위한 프로그래밍 노트 입니다. 저 역시 그 사람들 중 하나 입니다. 중고등학교 시절 학교 도서관, 새로 생긴 시립 도서관 등을 다니며 책을 보 고 정리하며 어느정도 독학으르 공부하긴 했지만, 자주 안하다 보면 금방 잊어

프로그램을 학교 등지에서 조금이라도 배운 사람들을 위한 프로그래밍 노트 입니다. 저 역시 그 사람들 중 하나 입니다. 중고등학교 시절 학교 도서관, 새로 생긴 시립 도서관 등을 다니며 책을 보 고 정리하며 어느정도 독학으르 공부하긴 했지만, 자주 안하다 보면 금방 잊어 개나리 연구소 C 언어 노트 (tyback.egloos.com) 프로그램을 학교 등지에서 조금이라도 배운 사람들을 위한 프로그래밍 노트 입니다. 저 역시 그 사람들 중 하나 입니다. 중고등학교 시절 학교 도서관, 새로 생긴 시립 도서관 등을 다니며 책을 보 고 정리하며 어느정도 독학으르 공부하긴 했지만, 자주 안하다 보면 금방 잊어먹고 하더라구요. 그래서,

More information

<4D6963726F736F667420576F7264202D20495420C1A6BEC8BCAD20C0DBBCBAB0FA20C7C1B8AEC1A8C5D7C0CCBCC720B1E2B9FD2E646F63>

<4D6963726F736F667420576F7264202D20495420C1A6BEC8BCAD20C0DBBCBAB0FA20C7C1B8AEC1A8C5D7C0CCBCC720B1E2B9FD2E646F63> IT 제안서 작성과 프리젠테이션 기법 프리젠테이션은 현장에서 고객의 반응을 쉽게 파악할 수 있다는 장점이 있다. 하지만 프리젠테이션을 위해 자료를 준비하고 발표하는 작업은 그리 쉽지 않아 프리젠터는 부단한 노력이 필요하다. 이번 강좌에서는 제안서와 프리젠테이션의 차이점을 살펴보고 성공적인 프리젠테이션 절차와 방법을 알아본다. 고홍식 넷모어정보통신 교육센터 대표이사

More information

MAX+plus II Getting Started - 무작정따라하기

MAX+plus II Getting Started - 무작정따라하기 무작정 따라하기 2001 10 4 / Version 20-2 0 MAX+plus II Digital, Schematic Capture MAX+plus II, IC, CPLD FPGA (Logic) ALTERA PLD FLEX10K Series EPF10K10QC208-4 MAX+plus II Project, Schematic, Design Compilation,

More information

Mobile Service > IAP > Android SDK [ ] IAP SDK TOAST SDK. IAP SDK. Android Studio IDE Android SDK Version (API Level 10). Name Reference V

Mobile Service > IAP > Android SDK [ ] IAP SDK TOAST SDK. IAP SDK. Android Studio IDE Android SDK Version (API Level 10). Name Reference V Mobile Service > IAP > Android SDK IAP SDK TOAST SDK. IAP SDK. Android Studio IDE 2.3.3 Android SDK Version 2.3.3 (API Level 10). Name Reference Version License okhttp http://square.github.io/okhttp/ 1.5.4

More information

03장

03장 CHAPTER3 ( ) Gallery 67 68 CHAPTER 3 Intent ACTION_PICK URI android provier MediaStore Images Media EXTERNAL_CONTENT_URI URI SD MediaStore Intent choosepictureintent = new Intent(Intent.ACTION_PICK, ë

More information

본문01

본문01 Ⅱ 논술 지도의 방법과 실제 2. 읽기에서 논술까지 의 개발 배경 읽기에서 논술까지 자료집 개발의 본래 목적은 초 중 고교 학교 평가에서 서술형 평가 비중이 2005 학년도 30%, 2006학년도 40%, 2007학년도 50%로 확대 되고, 2008학년도부터 대학 입시에서 논술 비중이 커지면서 논술 교육은 학교가 책임진다. 는 풍토 조성으로 공교육의 신뢰성과

More information

DocsPin_Korean.pages

DocsPin_Korean.pages Unity Localize Script Service, Page 1 Unity Localize Script Service Introduction Application Game. Unity. Google Drive Unity.. Application Game. -? ( ) -? -?.. 준비사항 Google Drive. Google Drive.,.. - Google

More information

Secure Programming Lecture1 : Introduction

Secure Programming Lecture1 : Introduction Malware and Vulnerability Analysis Lecture3-2 Malware Analysis #3-2 Agenda 안드로이드악성코드분석 악성코드분석 안드로이드악성코드정적분석 APK 추출 #1 adb 명령 안드로이드에설치된패키지리스트추출 adb shell pm list packages v0nui-macbook-pro-2:lecture3 v0n$

More information

C++-¿Ïº®Çؼ³10Àå

C++-¿Ïº®Çؼ³10Àå C C++. (preprocessor directives), C C++ C/C++... C++, C. C++ C. C C++. C,, C++, C++., C++.,.. #define #elif #else #error #if #itdef #ifndef #include #line #pragma #undef #.,.,. #include #include

More information

28 THE ASIAN JOURNAL OF TEX [2] ko.tex [5]

28 THE ASIAN JOURNAL OF TEX [2] ko.tex [5] The Asian Journal of TEX, Volume 3, No. 1, June 2009 Article revision 2009/5/7 KTS THE KOREAN TEX SOCIETY SINCE 2007 2008 ko.tex Installing TEX Live 2008 and ko.tex under Ubuntu Linux Kihwang Lee * kihwang.lee@ktug.or.kr

More information

Java ~ Java program: main() class class» public static void main(string args[])» First.java (main class ) /* The first simple program */ public class

Java ~ Java program: main() class class» public static void main(string args[])» First.java (main class ) /* The first simple program */ public class Linux JAVA 1. http://java.sun.com/j2se/1.4.2/download.html J2SE 1.4.2 SDK 2. Linux RPM ( 9 ) 3. sh j2sdk-1_4_2_07-linux-i586-rpm.bin 4. rpm Uvh j2sdk-1_4_2_07-linux-i586-rpm 5. PATH JAVA 1. vi.bash_profile

More information

Polly_with_Serverless_HOL_hyouk

Polly_with_Serverless_HOL_hyouk { } "Version":"2012-10-17", "Statement":[ { "Effect":"Allow", "Action":[ "polly:synthesizespeech", "dynamodb:query", "dynamodb:scan", "dynamodb:putitem", "dynamodb:updateitem", "sns:publish", "s3:putobject",

More information

FD¾ØÅÍÇÁ¶óÀÌÁî(Àå¹Ù²Þ)-ÀÛ¾÷Áß

FD¾ØÅÍÇÁ¶óÀÌÁî(Àå¹Ù²Þ)-ÀÛ¾÷Áß Copyright (c) 1999-2002 FINAL DATA INC. All right reserved Table of Contents 6 Enterprise for Windows 7 8 Enterprise for Windows 10 Enterprise for Windows 11 12 Enterprise for Windows 13 14 Enterprise

More information

Contents. 1. PMD ㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍ 2. Metrics ㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍ 3. FindBugs ㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍ 4. ㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍ

Contents. 1. PMD ㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍ 2. Metrics ㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍ 3. FindBugs ㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍ 4. ㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍ 정적분석서 - 영단어수집왕 - Team.# 3 과목명 소프트웨어모델링및분석 담당교수 유준범교수님 201011320 김용현 팀원 201111360 손준익 201111347 김태호 제출일자 2015-06-09 1 Contents. 1. PMD ㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍ 2. Metrics

More information

교육2 ? 그림

교육2 ? 그림 Interstage 5 Apworks EJB Application Internet Revision History Edition Date Author Reviewed by Remarks 1 2002/10/11 2 2003/05/19 3 2003/06/18 EJB 4 2003/09/25 Apworks5.1 [ Stateless Session Bean ] ApworksJava,

More information

Java

Java Java http://cafedaumnet/pway Chapter 1 1 public static String format4(int targetnum){ String strnum = new String(IntegertoString(targetNum)); StringBuffer resultstr = new StringBuffer(); for(int i = strnumlength();

More information

Page 2 of 6 Here are the rules for conjugating Whether (or not) and If when using a Descriptive Verb. The only difference here from Action Verbs is wh

Page 2 of 6 Here are the rules for conjugating Whether (or not) and If when using a Descriptive Verb. The only difference here from Action Verbs is wh Page 1 of 6 Learn Korean Ep. 13: Whether (or not) and If Let s go over how to say Whether and If. An example in English would be I don t know whether he ll be there, or I don t know if he ll be there.

More information

11장.key

11장.key JAVA Programming 1 GUI 2 2 1. GUI! GUI! GUI.! GUI! GUI 2. GUI!,,,!! GUI! GUI 11 : GUI 12 : GUI 3 4, JComponent 11-1 :, JComponent 5 import java.awt.*; import java.awt.event.*; import javax.swing.*; public

More information

untitled

untitled - -, (insert) (delete) - - (insert) (delete) (top ) - - (insert) (rear) (delete) (front) A A B top A B C top push(a) push(b) push(c) A B top pop() top A B D push(d) top #define MAX_STACK_SIZE 100 int

More information

Javascript.pages

Javascript.pages JQuery jquery part1 JavaScript : e-mail:leseraphina@naver.com http://www.webhard.co.kr I.? 2 ......,,. : : html5 ; ; .

More information

Remote UI Guide

Remote UI Guide Remote UI KOR Remote UI Remote UI PDF Adobe Reader/Adobe Acrobat Reader. Adobe Reader/Adobe Acrobat Reader Adobe Systems Incorporated.. Canon. Remote UI GIF Adobe Systems Incorporated Photoshop. ..........................................................

More information

2009년 국제법평론회 동계학술대회 일정

2009년 국제법평론회 동계학술대회 일정 한국경제연구원 대외세미나 인터넷전문은행 도입과제와 캐시리스사회 전환 전략 일시 2016년 3월 17일 (목) 14:00 ~17:30 장소 전경련회관 컨퍼런스센터 2층 토파즈룸 주최 한국경제연구원 한국금융ICT융합학회 PROGRAM 시 간 내 용 13:30~14:00 등 록 14:00~14:05 개회사 오정근 (한국금융ICT융합학회 회장) 14:05~14:10

More information

09권오설_ok.hwp

09권오설_ok.hwp (JBE Vol. 19, No. 5, September 2014) (Regular Paper) 19 5, 2014 9 (JBE Vol. 19, No. 5, September 2014) http://dx.doi.org/10.5909/jbe.2014.19.5.656 ISSN 2287-9137 (Online) ISSN 1226-7953 (Print) a) Reduction

More information

K&R2 Reference Manual 번역본

K&R2 Reference Manual 번역본 typewriter structunion struct union if-else if if else if if else if if if if else else ; auto register static extern typedef void char short int long float double signed unsigned const volatile { } struct

More information

Java XPath API (한글)

Java XPath API (한글) XML : Elliotte Rusty Harold, Adjunct Professor, Polytechnic University 2006 9 04 2006 10 17 문서옵션 제안및의견 XPath Document Object Model (DOM). XML XPath. Java 5 XPath XML - javax.xml.xpath.,? "?"? ".... 4.

More information

Spring Boot/JDBC JdbcTemplate/CRUD 예제

Spring Boot/JDBC JdbcTemplate/CRUD 예제 Spring Boot/JDBC JdbcTemplate/CRUD 예제 오라클자바커뮤니티 (ojc.asia, ojcedu.com) Spring Boot, Gradle 과오픈소스인 MariaDB 를이용해서 EMP 테이블을만들고 JdbcTemplate, SimpleJdbcTemplate 을이용하여 CRUD 기능을구현해보자. 마리아 DB 설치는다음 URL 에서확인하자.

More information

10X56_NWG_KOR.indd

10X56_NWG_KOR.indd 디지털 프로젝터 X56 네트워크 가이드 이 제품을 구입해 주셔서 감사합니다. 본 설명서는 네트워크 기능 만을 설명하기 위한 것입니다. 본 제품을 올바르게 사 용하려면 이 취급절명저와 본 제품의 다른 취급절명저를 참조하시기 바랍니다. 중요한 주의사항 이 제품을 사용하기 전에 먼저 이 제품에 대한 모든 설명서를 잘 읽어 보십시오. 읽은 뒤에는 나중에 필요할 때

More information

C 프로그래밍 언어 입문 C 프로그래밍 언어 입문 김명호저 숭실대학교 출판국 머리말..... C, C++, Java, Fortran, Python, Ruby,.. C. C 1972. 40 C.. C. 1999 C99. C99. C. C. C., kmh ssu.ac.kr.. ,. 2013 12 Contents 1장 프로그래밍 시작 1.1 C 10 1.2 12

More information

VZ94-한글매뉴얼

VZ94-한글매뉴얼 KOREAN / KOREAN VZ9-4 #1 #2 #3 IR #4 #5 #6 #7 ( ) #8 #9 #10 #11 IR ( ) #12 #13 IR ( ) #14 ( ) #15 #16 #17 (#6) #18 HDMI #19 RGB #20 HDMI-1 #21 HDMI-2 #22 #23 #24 USB (WLAN ) #25 USB ( ) #26 USB ( ) #27

More information

Connection 8 22 UniSQLConnection / / 9 3 UniSQL OID SET

Connection 8 22 UniSQLConnection / / 9 3 UniSQL OID SET 135-080 679-4 13 02-3430-1200 1 2 11 2 12 2 2 8 21 Connection 8 22 UniSQLConnection 8 23 8 24 / / 9 3 UniSQL 11 31 OID 11 311 11 312 14 313 16 314 17 32 SET 19 321 20 322 23 323 24 33 GLO 26 331 GLO 26

More information

교육자료

교육자료 THE SYS4U DODUMENT Java Reflection & Introspection 2012.08.21 김진아사원 2012 SYS4U I&C All rights reserved. 목차 I. 개념 1. Reflection 이란? 2. Introspection 이란? 3. Reflection 과 Introspection 의차이점 II. 실제사용예 1. Instance의생성

More information

04장

04장 20..29 1: PM ` 199 ntech4 C9600 2400DPI 175LPI T CHAPTER 4 20..29 1: PM ` 200 ntech4 C9600 2400DPI 175LPI T CHAPTER 4.1 JSP (Comment) HTML JSP 3 home index jsp HTML JSP 15 16 17 18 19 20

More information

2015 경제ㆍ재정수첩

2015 경제ㆍ재정수첩 Contents 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 Part 01 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 Part 02 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62

More information

T100MD+

T100MD+ User s Manual 100% ) ( x b a a + 1 RX+ TX+ DTR GND TX+ RX+ DTR GND RX+ TX+ DTR GND DSR RX+ TX+ DTR GND DSR [ DCE TYPE ] [ DCE TYPE ] RS232 Format Baud 1 T100MD+

More information

( )부록

( )부록 A ppendix 1 2010 5 21 SDK 2.2. 2.1 SDK. DevGuide SDK. 2.2 Frozen Yoghurt Froyo. Donut, Cupcake, Eclair 1. Froyo (Ginger Bread) 2010. Froyo Eclair 0.1.. 2.2. UI,... 2.2. PC 850 CPU Froyo......... 2. 2.1.

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 @ Lesson 1,..... @ 1 Green Project 1991 Oak Java 1995. 5 December '90 by Patrick Naughton, Mike Sheridan and James Gosling Embedded in various consumer electronic device 1992. 9. 3 Star 7 1993 www portability

More information

歯Writing_Enterprise_Applications_2_JunoYoon.PDF

歯Writing_Enterprise_Applications_2_JunoYoon.PDF Writing Enterprise Applications with Java 2 Platform, Enterprise Edition - part2 JSTORM http//wwwjstormpekr Revision Document Information Document title Writing Enterprise Applications

More information

Microsoft Word - P02.doc

Microsoft Word - P02.doc 전자제품 설계를 위한 가독성 평가 Legibility evaluation for the letter sizing of an electronic product 박세진 *, 이준수 *, 강덕희 *, 이현자 ** * 한국표준과학연구원, ** ACE침대 교신저자: 박세진(sjpark@kriss.re.kr) ABSTRACT Size of suitable letter

More information

Contents Contents 2 1 Abstract 3 2 Infer Checkers Eradicate Infer....

Contents Contents 2 1 Abstract 3 2 Infer Checkers Eradicate Infer.... SV2016 정적분석보고서 201214262 라가영 201313250 서지혁 June 9, 2016 1 Contents Contents 2 1 Abstract 3 2 Infer 3 2.1 Checkers................................ 3 2.2 Eradicate............................... 3 2.3 Infer..................................

More information

Microsoft PowerPoint - 14주차 강의자료

Microsoft PowerPoint - 14주차 강의자료 Java 로만드는 Monster 잡기게임예제이해 2014. 12. 2 게임화면및게임방법 기사초기위치 : (0,0) 아이템 10 개랜덤생성 몬스터 10 놈랜덤생성 Frame 하단에기사위치와기사파워출력방향키로기사이동아이템과몬스터는고정종료버튼클릭하면종료 Project 구성 GameMain.java GUI 환경설정, Main Method 게임객체램덤위치에생성 Event

More information

8장.그래픽 프로그래밍

8장.그래픽 프로그래밍 윈도우프레임 도형그리기색과폰트이미지그리기그리기응용 2 윈도우프레임 제목표시줄을갖는윈도우를의미 생성과정 1 JFrame 객체생성 2 프레임의크기설정 3 프레임의제목설정 4 기본닫힘연산지정 5 프레임이보이도록만듦. 3 윈도우프레임예제 [ 예제 8.1 - EmptyFrameViewer.java] import javax.swing.*; public class EmptyFrameViewer

More information

CD-RW_Advanced.PDF

CD-RW_Advanced.PDF HP CD-Writer Program User Guide - - Ver. 2.0 HP CD-RW Adaptec Easy CD Creator Copier, Direct CD. HP CD-RW,. Easy CD Creator 3.5C, Direct CD 3.0., HP. HP CD-RW TEAM ( 02-3270-0803 ) < > 1. CD...3 CD...5

More information

쉽게 풀어쓴 C 프로그래밍

쉽게 풀어쓴 C 프로그래밍 CHAPTER 7. HTML 와 CSS 로웹사이트만들 기 웹사이트작성 웹사이트구축과정 내비게이션구조도 홈페이지레이아웃 헤더 web Shop 내비게이션메뉴

More information

uFOCS

uFOCS 1 기 : 기 UF_D_V250_002 기 기 기 품 ufocs 기 v2.5.0 히기기기기기기기기기 기 Manual 기 version 기 3.2 기품 2011.7.29 히기 345-13 1 Tel : 02-857-3051 Fax : 02-3142-0319 : http://www.satu.co.kr 2010 SAT information Co., Ltd. All

More information

Solaris Express Developer Edition

Solaris Express Developer Edition Solaris Express Developer Edition : 2008 1 Solaris TM Express Developer Edition Solaris OS. Sun / Solaris, Java, Web 2.0,,. Developer Solaris Express Developer Edition System Requirements. 768MB. SPARC

More information

CAD 화면상에 동그란 원형 도형이 생성되었습니다. 화면상에 나타난 원형은 반지름 500인 도형입니다. 하지만 반지름이 500이라는 것은 작도자만 알고 있는 사실입니다. 반지름이 500이라는 것을 클라이언트와 작업자들에게 알려주기 위 해서는 반드시 치수가 필요하겠죠?

CAD 화면상에 동그란 원형 도형이 생성되었습니다. 화면상에 나타난 원형은 반지름 500인 도형입니다. 하지만 반지름이 500이라는 것은 작도자만 알고 있는 사실입니다. 반지름이 500이라는 것을 클라이언트와 작업자들에게 알려주기 위 해서는 반드시 치수가 필요하겠죠? 실무 인테리어를 위한 CAD 프로그램 활용 인테리어 도면 작도에 꼭 필요한 명령어 60개 Ⅷ 이번 호에서는 DIMRADIUS, DIMANGULAR, DIMTEDIT, DIMSTYLE, QLEADER, 5개의 명령어를 익히도록 하겠다. 라경모 온라인 설계 서비스 업체 '도면창고' 대 표를 지낸 바 있으며, 현재 나인슈타인 을 설립해 대표 를맡고있다. E-Mail

More information

chap10.PDF

chap10.PDF 10 C++ Hello!! C C C++ C++ C++ 2 C++ 1980 Bell Bjarne Stroustrup C++ C C++ C, C++ C C 3 C C++ (prototype) (type checking) C C++ : C++ 4 C C++ (prototype) (type checking) [ 10-1] #include extern

More information

03-JAVA Syntax(2).PDF

03-JAVA Syntax(2).PDF JAVA Programming Language Syntax of JAVA (literal) (Variable and data types) (Comments) (Arithmetic) (Comparisons) (Operators) 2 HelloWorld application Helloworldjava // class HelloWorld { //attribute

More information

歯9장.PDF

歯9장.PDF 9 Hello!! C printf() scanf() getchar() putchar() gets() puts() fopen() fclose() fprintf() fscant() fgetc() fputs() fgets() gputs() fread() fwrite() fseek() ftell() I/O 2 (stream) C (text stream) : `/n'

More information

4. #include <stdio.h> #include <stdlib.h> int main() { functiona(); } void functiona() { printf("hihi\n"); } warning: conflicting types for functiona

4. #include <stdio.h> #include <stdlib.h> int main() { functiona(); } void functiona() { printf(hihi\n); } warning: conflicting types for functiona 이름 : 학번 : A. True or False: 각각항목마다 True 인지 False 인지적으세요. 1. (Python:) randint 함수를사용하려면, random 모듈을 import 해야한다. 2. (Python:) '' (single quote) 는한글자를표현할때, (double quote) 는문자열을표현할때사용한다. B. 다음에러를수정하는방법을적으세요.

More information

DioPen 6.0 사용 설명서

DioPen 6.0 사용 설명서 1. DioPen 6.0...1 1.1...1 DioPen 6.0...1...1...2 1.2...2...2...13 2. DioPen 6.0...17 2.1 DioPen 6.0...17...18...20...22...24...25 2.2 DioPen 6.0...25 DioPen 6.0...25...25...25...25 (1)...26 (2)...26 (3)

More information