Class BaseProxy.Panel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable
Enclosing class:
BaseProxy

public class BaseProxy.Panel extends Container
A standard base class for graphical proxy objects. A graphical proxy provides a user interface to itself which can be displayed at the receiving VM. It is implemented as an inner class of BaseProxy, to allow its subclass implementations access to its outer object's private and protected members and methods. This is critical because all public methods of BaseProxy can be invoked by remote objects, just like with local objects.
Version:
1.0, 01-Nov-99 Initial release
See Also:
  • Constructor Details

    • Panel

      public Panel()
      Nothing is performed in the constructor. Construction and configuration are generally performed by a builder application.
  • Method Details

    • update

      public final void update(Graphics g)
      The update method is overridden to directly invoke the paint method. It makes drawing faster, and cleaner, but also means that the panel background will not be cleared on a size change.
      Overrides:
      update in class Container
    • paint

      public final void paint(Graphics g)
      The paint method is overridden to directly paint its components. It makes drawing faster, and cleaner, but also means that the panel has no default appearance.
      Overrides:
      paint in class Container
    • getPreferredSize

      public final Dimension getPreferredSize()
      This method simply returns the actual size of the component. This method returns the result of the getSize() method meaning that subclasses should set the panel size before sending it to the host.
      Overrides:
      getPreferredSize in class Container