راهنمای توسعهدهنده جاوا افایکس
JavaFX Developer's Guide
معرفی کتاب «راهنمای توسعهدهنده جاوا افایکس» (با عنوان لاتین JavaFX Developer's Guide) نوشتهٔ Kim Topley، منتشرشده توسط نشر Addison-Wesley Professional در سال 2010. این کتاب در فرمت pdf، زبان انگلیسی ارائه شده است.
********Updated for JavaFX 1.3******** The JavaFX platform makes it possible to write applications that can be deployed across devices ranging from cell phones to desktops, with little or no change required. JavaFX applications are written using JavaFX Script, a new and easy-to-use scripting language. Kim Topley’s **__**JavaFXTM Developer’s Guide**__** thoroughly covers the JavaFX language and its core libraries and shows you step by step how to develop and deliver JavaFX applications for the desktop and for mobile devices. It provides complete coverage of all aspects of the language, including * Language syntax * Tools you can use to develop, debug, and deploy JavaFX applications * User interface classes * Animation * How to play audio and video * How to use RESTful Web services and databases to retrieve the data for your application * How to create custom components * Transformations * User interface basics, attributes, events,and controls * JavaFX and networking * JavaFX development with NetBeans and Eclipse * Packaging and deployment Topley highlights critical topics that other books gloss over, presents detailed examples that stretch JavaFX to its limits, and shows you exactly how to build on the skills you already have. Whether you’ve been focused on HTML/XML/CSS Web development or Java Swing, this book will help you get outstanding results with JavaFX. Table of Contents......Page 8 About the Author......Page 25 Preface......Page 26 I: Introduction to JavaFX......Page 41 The JavaFX Platform......Page 43 The JavaFX Script Language......Page 45 The JavaFX Runtime......Page 49 JavaFX Development Tools......Page 53 Deployment......Page 54 Source File Structure......Page 57 Comments......Page 58 The import Statement......Page 60 Other JavaFX Statements......Page 63 JavaFX Keywords and Reserved Words......Page 67 Script Execution and Arguments......Page 68 Predefined Variables......Page 71 Compiling and Running JavaFX Code......Page 73 Documentation in JavaFX Source Code......Page 83 4 A Simple JavaFX Application......Page 85 Building the SnowStorm Application......Page 86 SnowStorm on the Web, a Phone, and TV......Page 105 Debugging the SnowStorm Application......Page 112 Profiling the SnowStorm Application......Page 117 Source Code for the SnowStorm Application......Page 122 II: The JavaFX Script Language......Page 127 Variable Declarations......Page 129 Object Types......Page 134 Basic Data Types......Page 137 Type Inference......Page 157 Visibility of Variables......Page 159 Expressions and Operations......Page 161 JavaFX Functions......Page 174 Object Literals......Page 187 Sequence Creation......Page 193 The String Form of a Sequence......Page 195 Range Notation......Page 196 Sequence Equality and Copying......Page 197 Querying Sequences......Page 198 Modifying Sequences......Page 202 Operations on Sequences......Page 207 Java Arrays......Page 214 The if Statement......Page 219 The while Statement......Page 221 The for Statement......Page 224 Exception Handling......Page 233 Binding to Variables and Expressions......Page 235 Binding and Functions......Page 247 Binding and Sequences......Page 257 Triggers on Simple Variables......Page 261 Triggers and Sequences......Page 269 Triggers and Instance Variables......Page 276 11 JavaFX Script Classes......Page 279 JavaFX Class Declaration......Page 280 Subclassing and Abstract Classes......Page 289 Using Bound Functions......Page 298 Variable Overrides......Page 299 Class Initialization......Page 301 Classes and Script Files......Page 305 Mixins......Page 306 Built-In Functions......Page 325 Arguments and System Properties......Page 327 Application Shutdown......Page 332 Deferring Operations......Page 334 Functions for Internationalization......Page 335 Local Storage......Page 338 Conditional Features......Page 347 Context and Classes......Page 349 Types and Values......Page 354 Variables and Functions......Page 360 Using Reflection......Page 368 III: User Interfaces with JavaFX......Page 379 14 User Interface Basics......Page 381 The Stage Class......Page 382 The Scene Class......Page 398 Nodes......Page 400 Alerts......Page 409 3D Features......Page 412 Cursors......Page 415 Colors......Page 418 Events......Page 441 Shapes......Page 473 Stroking and Filling Shapes......Page 496 The Text Class......Page 506 Fonts......Page 512 Groups and Custom Nodes......Page 522 Images......Page 526 Transforms......Page 543 Combining Transforms......Page 557 Clipping......Page 563 Coordinates and Bounds......Page 567 Node Layout......Page 578 SnowStorm Revisited......Page 619 Coordinates and Screens......Page 625 Timelines......Page 631 Controlling a Timeline......Page 645 Transitions......Page 653 19 Video and Audio......Page 667 The Media Class......Page 668 The MediaPlayer Class......Page 670 The MediaView Class......Page 679 Effects Overview......Page 691 The JavaFX Effects Classes......Page 696 Blending......Page 726 Lighting......Page 730 The JavaFX Production Suite......Page 743 Using Adobe Illustrator and Photoshop Graphics......Page 745 Importing SVG Graphics......Page 773 Controls Overview......Page 777 The Label Control......Page 778 Button Controls......Page 789 The TextBox Control......Page 801 The PasswordBox Control......Page 811 The ListView Control......Page 813 The ChoiceBox Control......Page 826 The ScrollBar Control......Page 827 The ScrollView Control......Page 834 The Slider Control......Page 837 The ProgressIndicator and ProgressBar Controls......Page 844 The Separator Control......Page 847 Tooltips......Page 848 Style Sheet Basics......Page 851 Style Sheet Property Specifications......Page 864 Swing Component Wrappers......Page 869 Labels......Page 873 Text Input......Page 879 Buttons......Page 883 The SwingList Class......Page 889 The SwingScrollPane Class......Page 892 The SwingComboBox Class......Page 894 The SwingSlider Class......Page 897 Using Other Swing Components......Page 900 Custom Nodes......Page 905 The CoordinateGrid Node......Page 906 Custom Containers......Page 909 Custom Controls......Page 927 Chart Basics......Page 951 Pie Charts......Page 954 Bar Charts......Page 959 Line Charts......Page 966 Area Charts......Page 970 Scatter Charts......Page 972 Bubble Charts......Page 974 Chart Interaction......Page 976 Common Customizations......Page 977 IV: Miscellaneous......Page 987 27 Using External Data Sources......Page 989 The HttpRequest Class......Page 990 Using RESTful Web Services......Page 1014 RSS and Atom Feeds......Page 1035 Tasks and Progress Monitoring......Page 1048 Asynchronous Operations and Database Access......Page 1054 28 Packaging and Deployment......Page 1065 Packaging and Deployment for the Desktop......Page 1066 Packaging and Deployment for Mobile Devices......Page 1085 Development Using Command-Line Tools......Page 1089 Generating Documentation from JavaFX Source......Page 1095 Properties Applicable to Nodes......Page 1101 Properties Applicable to Shapes......Page 1103 Properties Applicable to Containers......Page 1104 Properties Applicable to Controls......Page 1107 Index......Page 1111 A......Page 1112 B......Page 1114 C......Page 1115 D......Page 1120 E......Page 1122 F......Page 1123 G......Page 1126 H......Page 1127 I......Page 1128 J......Page 1129 K......Page 1131 L......Page 1132 M......Page 1133 N......Page 1135 O......Page 1136 P......Page 1137 R......Page 1139 S......Page 1141 T......Page 1146 V......Page 1148 W......Page 1149 Z......Page 1150
دانلود کتاب راهنمای توسعهدهنده جاوا افایکس