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: Line Drawer
1.1 Create LineDrawer Class as Subclass of Application
1.1.1 Add Pane as Drawing Board in the Center of BorderPane
1.2 Register Event Handlers to Handle Mouse Events and Key Events
1.2.1 Register Event Handlers Using Convenience Methods
1.3 Properties and Binding in LineDrawer Class
1.3.1 Define Properties to Hold Locations of Mouse Events
1.3.2 Define ObjectProperty<Shape> to Hold a Sketch
1.3.3 Bind Properties for the Ending Point of Line
1.4 Get Key Code of Key Event
1.5 Complete Source Codes of LineDrawer class
1.6 Summary
Chapter 2: Polyline Drawer
2.1 Create PolylineDrawer Class as Subclass of Application
2.1.1 Create an Instance of Polyline
2.1.2 Define ObjectProperty<Line> to Hold a Temperary Line
2.1.3 Implement onMouseDragStarted() method
2.1.4 Implement onMouseDragFinished() method
2.2 Complete Source Codes of PolylineDrawer class
2.3 Summary
Chapter 3: Polygon Drawer
3.1 Create PolygonDrawer Class as Subclass of Application
3.1.1 Create an Instance of Polygon
3.2 Complete Source Codes of PolygonDrawer class
3.3 Summary
Chapter 4: Path Drawer
4.1 Create PathDrawer Class as Subclass of Application
4.1.1 Create an Instance of Path
4.1.2 Implement onMouseDragStarted() Method
4.1.3 Implement OnMouseDragFinished() method
4.2 Complete Source Codes of PathDrawer class
4.3 Summary
Chapter 5: Quadratic Bézier Curve Drawer
5.1 Create BezierCurveDrawer Class as Subclass of Application
5.1.1 Introduce Quadratic Bézier Curves
5.1.2 Register Event Handler of Mouse Dragged Event
5.1.3 Register Event Handler of Mouse Released Event
5.2 Implement handleMouseClicked(Pane pane) method
5.2.1 Add MoveTo Element to Path
5.2.2 Draw Circles to Represent Control Points of a Quadratic Bézier Curve
5.3 Implement onMouseDragStarted(Pane pane) method
5.3.1 Add Straight Line QuadCurveTo Element to Path
5.3.2 Add Normal QuadCurveTo Element to Path
5.4 Implement OnMouseDragFinished(Pane pane) method
5.5 Register Event Handler of Key Pressed Event
5.5.1 Implement deleteLastPathElement(Pane pane, Path path) Method
5.6 The Complete Source Codes of BezierCurveDrawer class
5.7 Summary
Chapter 6: Basic Draw Tool
6.1 Create ShapeDrawer Class
6.1.1 Define Properties
6.1.2 Define Methods
6.1.3 Complete Source Codes of ShapeDrawer class
6.2 Create DrawPane Class
6.2.1 Define Properties
6.2.2 Register Event Handlers inside the Default Constructor
6.2.3 Define drawOnMouseDragged Method
6.2.4 Take Default Actions for ENTER Key, ESCAPE Key and DELETE Key
6.2.5 Define Constructor with a Parameter of Type ShapeDrawer
6.2.6 Complete Source Codes of DrawPane class
6.3 Develop Drawer Applications Using Draw Tool APIs
6.3.1 Create RectangleDrawer Class as Subclass of Application
6.3.2 Create CircleDrawer Class as Subclass of Application
6.3.3 Create EllipseDrawer Class as Subclass of Application
6.4 Summary
Chapter 7: Enhanced Draw Tool with Predefined Drawers
7.1 Enhance ShapeDrawer Class
7.1.1 Define Shape Rendering Properties
7.1.2 Define a Boolean Property polySegment
7.1.3 Complete Source Codes of Enhanced ShapeDrawer class
7.2 Create Subclasses of ShapeDrawer
7.2.1 Implement LineDrawer Class
7.2.2 Implement PolylineDrawer Class
7.2.3 Implement PolygonDrawer Class
7.2.4 Implement PathDrawer Class
7.2.5 Implement BezierCurveDrawer Class
7.2.6 Implement RectangleDrawer Class
7.2.7 Implement CircleDrawer Class
7.2.8 Implement EllipseDrawer Class
7.2.9 Implement ShapeMover Class
7.3 Enhance DrawPane Class
7.4 Summary
Chapter 8: Initial JFXDrawTools Application
8.1 Create Skeleton of JFXDrawTools
8.1.1 Create JFXDrawTools Class as Subclass of Application
8.1.2 Create Status Bar
8.1.3 Create Menu Bar
8.1.4 Set Accelerator for Menu Items
8.1.5 Define Enumeration Type DrawTools
8.1.6 Complete Source Codes of Skeleton of JFXDrawTools
8.2 Create Instances of Shape Drawers
8.2.1 Activate Drawer for a Draw Pane
8.3 Complete Source Codes of JFXDrawTools Class
8.4 Summary
EPILOGUE
← Prev
Back
Next →
← Prev
Back
Next →