jscicalc.ReadOnlyDisplayPanel Interface Reference

An interface for DisplayPanel so that we can read the state in classes that don’t need to change the state. More...

Inheritance diagram for jscicalc.ReadOnlyDisplayPanel:

jscicalc.DisplayPanel

List of all members.

Public Member Functions

boolean getOn ()
 This function tells us if the display is switched on or not.
ReadOnlyCalculatorApplet getApplet ()
 Get a read-only interface for the CalculatorApplet.
boolean hasCaret (final ScrollableLabel scrollableLabel)
 Find if scrollableLabel has the Caret.


Detailed Description

An interface for DisplayPanel so that we can read the state in classes that don’t need to change the state.

Author:
J. D. Lamb
Version:
Revision
1.5

Member Function Documentation

boolean jscicalc.ReadOnlyDisplayPanel.getOn (  ) 

This function tells us if the display is switched on or not.

Probably it is redundant because the state should always match CalculatorPanel.

Returns:
true whenever the display is switched on

Implemented in jscicalc.DisplayPanel.

Referenced by jscicalc.ExtraPanel.paintComponent().

ReadOnlyCalculatorApplet jscicalc.ReadOnlyDisplayPanel.getApplet (  ) 

Get a read-only interface for the CalculatorApplet.

Useful because view classes should never change the CalculatorApplet state

Returns:
A read-only interface to the controller

Implemented in jscicalc.DisplayPanel.

Referenced by jscicalc.DisplayLabel.getBase(), jscicalc.ExtraPanel.paintComponent(), jscicalc.DisplayLabel.setExpression(), jscicalc.DisplayLabel.setNewExpression(), jscicalc.EntryLabel.update(), and jscicalc.DisplayLabel.update().

boolean jscicalc.ReadOnlyDisplayPanel.hasCaret ( final ScrollableLabel  scrollableLabel  ) 

Find if scrollableLabel has the Caret.

This allows us to query the interface and find whether EntryPanel or DisplayPanel has permission to display a Caret

Parameters:
scrollableLabel The Scrollable label we wish to know about
Returns:
true or false according as scrollableLabel has or has not permission to show a Caret

Implemented in jscicalc.DisplayPanel.

Referenced by jscicalc.ScrollableLabel.updateCaretVisibility().


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

Generated on Sun Jun 1 08:57:45 2008 for Java Scientific Calculator by  doxygen 1.5.5