This panel is designed to show tiny triangles at the edges of the DisplayLabel. More...
Public Member Functions | |
| MiniPanel (boolean left) | |
| The constructor. | |
| void | paintComponent (java.awt.Graphics graphics) |
| This does the work of drawing or redrawing the panel. | |
Package Functions | |
| void | setIlluminated (boolean illuminated) |
| Set whether or not the panel is illuminated. | |
Private Attributes | |
| boolean | illuminated |
| final boolean | left |
| Denotes whether this panel is a left panel or a right one. | |
Static Private Attributes | |
| static final long | serialVersionUID = 1L |
This panel is designed to show tiny triangles at the edges of the DisplayLabel.
| jscicalc.MiniPanel.MiniPanel | ( | boolean | left | ) |
The constructor.
Set the parameter to false for the panel on the right of the DisplayLabel
| left | Indicates whether panel is on left (true) or right (false) |
References jscicalc.MiniPanel.setIlluminated().
| void jscicalc.MiniPanel.paintComponent | ( | java.awt.Graphics | graphics | ) |
This does the work of drawing or redrawing the panel.
| graphics | The graphics context required. |
References jscicalc.MiniPanel.illuminated, and jscicalc.MiniPanel.left.
| void jscicalc.MiniPanel.setIlluminated | ( | boolean | illuminated | ) | [package] |
Set whether or not the panel is illuminated.
If it is illuminated, it will show a small grey triamngle.
| illuminated | Takes the values true or false according as panel is to be illuminated. Denotes whether or not this panel is illuminated (triangle shows). |
Referenced by jscicalc.MiniPanel.MiniPanel(), and jscicalc.DisplayPanel.update().
boolean jscicalc.MiniPanel.illuminated [private] |
Referenced by jscicalc.MiniPanel.paintComponent().
final boolean jscicalc.MiniPanel.left [private] |
Denotes whether this panel is a left panel or a right one.
Referenced by jscicalc.MiniPanel.paintComponent().
final long jscicalc.MiniPanel.serialVersionUID = 1L [static, private] |
1.7.1