diagapplet.utils
Class URLLoadInfoPanel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Panel
              extended by diagapplet.utils.URLLoadInfoPanel
All Implemented Interfaces:
URLLoadInfoPanelInterface, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible

public class URLLoadInfoPanel
extends java.awt.Panel
implements URLLoadInfoPanelInterface

AWT Panel for displaying progress while loading a URL.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
 int bytes_read
           
 int content_length
           
static boolean debug_on
           
static boolean ignore_repaint_requests
           
 java.lang.String URLname
           
 boolean use_color
           
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
URLLoadInfoPanel()
           
URLLoadInfoPanel(int pref_width, int pref_height)
           
 
Method Summary
 void force_repaint(int max_tries)
           
 int get_bytes_read()
           
 int get_content_length()
           
 java.lang.String get_URLname()
           
 java.awt.Dimension getMinimumSize()
           
 java.awt.Dimension getPreferredSize()
           
 void inc_bytes_read(int _bytes_read_inc)
           
 void paint(java.awt.Graphics g)
           
 void set_bytes_read(int _bytes_read)
           
 void set_content_length(int _content_length)
           
 void set_URLname(java.lang.String _URLname)
           
 java.lang.String toString()
           
 void updateDisplay()
           
 
Methods inherited from class java.awt.Panel
addNotify, getAccessibleContext
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface diagapplet.utils.URLLoadInfoPanelInterface
repaint
 

Field Detail

ignore_repaint_requests

public static boolean ignore_repaint_requests

use_color

public boolean use_color

URLname

public java.lang.String URLname

content_length

public int content_length

bytes_read

public int bytes_read

debug_on

public static boolean debug_on
Constructor Detail

URLLoadInfoPanel

public URLLoadInfoPanel()

URLLoadInfoPanel

public URLLoadInfoPanel(int pref_width,
                        int pref_height)
Method Detail

set_bytes_read

public void set_bytes_read(int _bytes_read)
Specified by:
set_bytes_read in interface URLLoadInfoPanelInterface

get_bytes_read

public int get_bytes_read()
Specified by:
get_bytes_read in interface URLLoadInfoPanelInterface

set_content_length

public void set_content_length(int _content_length)
Specified by:
set_content_length in interface URLLoadInfoPanelInterface

get_content_length

public int get_content_length()
Specified by:
get_content_length in interface URLLoadInfoPanelInterface

set_URLname

public void set_URLname(java.lang.String _URLname)
Specified by:
set_URLname in interface URLLoadInfoPanelInterface

get_URLname

public java.lang.String get_URLname()
Specified by:
get_URLname in interface URLLoadInfoPanelInterface

toString

public java.lang.String toString()
Overrides:
toString in class java.awt.Component

getPreferredSize

public java.awt.Dimension getPreferredSize()
Overrides:
getPreferredSize in class java.awt.Container

getMinimumSize

public java.awt.Dimension getMinimumSize()
Overrides:
getMinimumSize in class java.awt.Container

updateDisplay

public void updateDisplay()
Specified by:
updateDisplay in interface URLLoadInfoPanelInterface

force_repaint

public void force_repaint(int max_tries)
Specified by:
force_repaint in interface URLLoadInfoPanelInterface

paint

public void paint(java.awt.Graphics g)
Overrides:
paint in class java.awt.Container

inc_bytes_read

public void inc_bytes_read(int _bytes_read_inc)
Specified by:
inc_bytes_read in interface URLLoadInfoPanelInterface