1 /*2 Copyright © 2006 Stefano Chizzolini. http://clown.stefanochizzolini.it3 4 Contributors:5 * Stefano Chizzolini (original code developer, info@stefanochizzolini.it):6 contributed code is Copyright © 2006 by Stefano Chizzolini.7 8 This file should be part of the source code distribution of "PDF Clown library"9 (the Program): see the accompanying README files for more info.10 11 This Program is free software; you can redistribute it and/or modify it under12 the terms of the GNU General Public License as published by the Free Software13 Foundation; either version 2 of the License, or (at your option) any later version.14 15 This Program is distributed in the hope that it will be useful, but WITHOUT ANY16 WARRANTY, either expressed or implied; without even the implied warranty of17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License for more details.18 19 You should have received a copy of the GNU General Public License along with this20 Program (see README files); if not, go to the GNU website (http://www.gnu.org/).21 22 Redistribution and use, with or without modification, are permitted provided that such23 redistributions retain the above copyright notice, license and disclaimer, along with24 this list of conditions.25 */26 27 package it.stefanochizzolini.clown.documents.contents;28 29 /**30 Shape to be used at the ends of stroked open subpaths [PDF:1.6:4.3.2].31 */32 public enum LineCapEnum33 {34 // <class>35 // <static>36 // <fields>37 /**38 Truncated line cap.39 */40 Butt(0),41 /**42 Rounded line cap.43 */44 Round(1),45 /**46 Squared-off line cap.47 */48 Square(2);49 // </fields>50 // </static>51 52 // <dynamic>53 // <fields>54 /**55 <h3>Remarks</h3>56 <p>Code MUST be explicitly distinct from the ordinal position of the enum constant57 as they coincide by chance only.</p>58 */59 private int code;60 // </fields>61 62 // <constructors>63 private LineCapEnum(64 int code65 )66 {this.code = code;}67 // </constructors>68 69 // <interface>70 // <public>71 public int getCode(72 )73 {return code;}74 // </public>75 // </interface>76 // </dynamic>77 // </class>78 }