Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Title
Copyright
Table of Contents
ABOUT THE AUTHORS
ACKNOWLEDGMENT
PREFACE
How this book is organized
Why Choose This Book
What You Need for This Book
INTRODUCTION
Chapter 1: Basic Image Viewer
1.1 Create ImageViewer Class as Subclass of Application
1.1.1 JavaFX Application Thread vs. Java Launcher Thread
1.1.2 Catch Resize Event of Image Rendering Area
1.2 Create Menu Bar
1.2.1 Add File Menu to Menu Bar
1.2.2 Select Image File from File Open Dialog and Display Image on StackPane
1.3 Create Option Menu and View Submenu
1.3.1 Create Toggle Group, Radio Menu Items and Add Listener for selectedToggle Property
1.4 Implement Fit Width, Fit Height and Original Size Viewing Options
1.4.1 Approach One: Bind ImageView's fitWidth/fitHeight Properties to Scene's width/height Properties Respectively
1.4.2 Approach Two: Change Values for fitWidth Property and fitHeight property
1.5 Summary
Chapter 2: Enhanced Image Viewer with Browsing Buttons
2.1 Add Next Button
2.1.1 Use Group as Parent Container
2.1.2 Use Shape Class for Rendering 2D Geometric Primitives
2.1.3 Use Rectangle Shape as Bounding Box of Custom-Made Button
2.1.4 Paint Background and Border of Shape
2.1.5 Set Value of arcHeight and arcWidth Properties to Render Rounded Rectangle
2.1.6 Use Polygon Shape as Visual Sign of Next Icon
2.1.7 Set Value of Cursor Property for Node
2.1.8 Use Convenience Methods to Register Event Handlers to Handle Mouse Events
2.1.9 Complete Source Codes of createNextButton() Method
2.1.10 Install Tooltip for Node
2.2 Adjust Next Button's Default Position in StackPane
2.3 Add Previous Button and Adjust Its Position in StackPane
2.4 Implement On Mouse Clicked Event Handlers
2.4.1 Configure FileChooser
2.4.2 Create List Iterator to Iterate Existing Files in the Current Directory
2.4.3 Define Properties in ImageViewer Class
2.5 Complete Source Codes of Image Viewer V1.1
2.5.1 Complete Source Codes of FileUtils Class
2.5.2 Complete Source Codes of ImageViewer Class
2.6 Summary
Chapter 3: Enhanced Image Viewer with Slide Show Capacity
3.1 Add Status Bar at the Bottom of BorderPane
3.1.1 Create HBox Pane as Status Bar and Text Node to Show Image Name
3.1.2 Set Value of imageName Property
3.2 Improve Button's Reaction Aspect
3.2.1 Disable Button to Indicate No More Image to Open
3.2.2 Change Button Appearance When Mouse Is Pressed
3.3 Add Slide Show Capabilities
3.3.1 Add Start Slideshow and Stop Slideshow Menu Items
3.3.2 Execute Slide Show on Another Thread
3.3.3 The Complete start(Stage stage) Method of ImageViewer Application
3.3.4 Coordinate with Event Handlers of Load Menu Item and Previous Button
3.4 Add Fade Transition between Slides
3.4.1 Complete Source Codes of SlideshowService Class
3.5 Complete Source Codes of Image Viewer V1.2
3.6 Summary
EPILOGUE
← Prev
Back
Next →
← Prev
Back
Next →