eTextReader.applet
Class CustomImageView

java.lang.Object
  extended by javax.swing.text.View
      extended by javax.swing.text.html.ImageView
          extended by eTextReader.applet.CustomImageView
All Implemented Interfaces:
javax.swing.SwingConstants

public class CustomImageView
extends javax.swing.text.html.ImageView

Extends the standard ImageView class produced by the standard ViewFactory in order to load images synchronously when the URL that was loaded contains a reference. This avoids a race condition between scrolling to a reference and asynchronous image loading

Author:
mcfall

Field Summary
 
Fields inherited from class javax.swing.text.View
BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXIS
 
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Constructor Summary
CustomImageView(javax.swing.text.Element elem, ContentPane contentPane)
          Constructs a new view of the image element elem
 
Method Summary
 
Methods inherited from class javax.swing.text.html.ImageView
changedUpdate, getAlignment, getAltText, getAttributes, getImage, getImageURL, getLoadingImageIcon, getLoadsSynchronously, getNoImageIcon, getPreferredSpan, getStyleSheet, getToolTipText, modelToView, paint, setLoadsSynchronously, setParent, setPropertiesFromAttributes, setSize, viewToModel
 
Methods inherited from class javax.swing.text.View
append, breakView, createFragment, forwardUpdate, forwardUpdateToView, getBreakWeight, getChildAllocation, getContainer, getDocument, getElement, getEndOffset, getGraphics, getMaximumSpan, getMinimumSpan, getNextVisualPositionFrom, getParent, getResizeWeight, getStartOffset, getView, getViewCount, getViewFactory, getViewIndex, getViewIndex, insert, insertUpdate, isVisible, modelToView, modelToView, preferenceChanged, remove, removeAll, removeUpdate, replace, updateChildren, updateLayout, viewToModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomImageView

public CustomImageView(javax.swing.text.Element elem,
                       ContentPane contentPane)
Constructs a new view of the image element elem

Parameters:
elem - the element representing the image
contentPane - the ContentPane loading the document, referenced to determine if the URL being loaded contained a reference
See Also:
ContentPane.isPageContainedReference()