Public Member Functions | Package Functions | Private Attributes | Static Private Attributes

jscicalc.MiniPanel Class Reference

This panel is designed to show tiny triangles at the edges of the DisplayLabel. More...

List of all members.

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

Detailed Description

This panel is designed to show tiny triangles at the edges of the DisplayLabel.

Author:
J. D. Lamb
Version:
Revision:
1.2

Constructor & Destructor Documentation

jscicalc.MiniPanel.MiniPanel ( boolean  left  ) 

The constructor.

Set the parameter to false for the panel on the right of the DisplayLabel

Parameters:
left Indicates whether panel is on left (true) or right (false)

References jscicalc.MiniPanel.setIlluminated().


Member Function Documentation

void jscicalc.MiniPanel.paintComponent ( java.awt.Graphics  graphics  ) 

This does the work of drawing or redrawing the panel.

Parameters:
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.

Parameters:
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().


Member Data Documentation

boolean jscicalc.MiniPanel.illuminated [private]
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]

The documentation for this class was generated from the following file: