Public Member Functions | |
| InkPanel () | |
| Default Catmull-Rom method. | |
| InkPanel (InkRenderer inkRenderer, Color bgColor) | |
| Choose your own renderer. | |
| void | addInk (Ink ink) |
| Ink | addNewInk () |
| void | clear () |
| Remove all the ink from the ink panel. | |
| void | displayInvertedInkColor () |
| List< Ink > | getAllInk () |
| double | getScale () |
| void | removeLastBatchOfInk () |
| Used to remove the most-recently added ink object. | |
| void | setAllInk (List< Ink > theInk) |
| void | setRenderer (InkRenderer r) |
| void | setScale (double theScale) |
Protected Member Functions | |
| Override void | paintComponent (Graphics g) |
| Redraw the ink strokes. | |
Protected Attributes | |
| List< Ink > | inkWell = Collections.synchronizedList(new LinkedList<Ink>()) |
| A collection of ink objects that have been added to this JPanel. | |
This software is distributed under the BSD License.
Definition at line 30 of file InkPanel.java.
| InkPanel | ( | InkRenderer | inkRenderer, | |
| Color | bgColor | |||
| ) |
Choose your own renderer.
| inkRenderer | ||
| bgColor |
Definition at line 65 of file InkPanel.java.
| void addInk | ( | Ink | ink | ) |
| ink |
Definition at line 73 of file InkPanel.java.
References InkPanel.inkWell.
Referenced by GestureDatabase.display().
| Ink addNewInk | ( | ) |
Definition at line 82 of file InkPanel.java.
References InkPanel.inkWell.
Referenced by PenSimulator.mouseReleased().
| List<Ink> getAllInk | ( | ) |
Definition at line 107 of file InkPanel.java.
References InkPanel.inkWell.
| Override void paintComponent | ( | Graphics | g | ) | [protected] |
Redraw the ink strokes.
Definition at line 121 of file InkPanel.java.
References InkPanel.inkWell, InkRenderer.renderToG2D(), InkRenderer.setInk(), and InkRenderer.useInvertedInkColors().
| void setAllInk | ( | List< Ink > | theInk | ) |
| void setRenderer | ( | InkRenderer | r | ) |
| void setScale | ( | double | theScale | ) |
A collection of ink objects that have been added to this JPanel.
Feel free to access it, if you are a subclass. Make sure to call repaint though!
Definition at line 43 of file InkPanel.java.
Referenced by InkPanel.addInk(), InkPanel.addNewInk(), InkPanel.clear(), InkPanel.getAllInk(), InkPanel.paintComponent(), InkPanel.removeLastBatchOfInk(), and InkPanel.setAllInk().
1.4.7