|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.text.View
javax.swing.text.html.ImageView
eTextReader.applet.CustomImageView
public class CustomImageView
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
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 |
---|
public CustomImageView(javax.swing.text.Element elem, ContentPane contentPane)
elem
- the element representing the imagecontentPane
- the ContentPane loading the document, referenced
to determine if the URL being loaded contained a referenceContentPane.isPageContainedReference()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |