
ViewFactory f) Invoked when the Elements attributes have changed. Public void changedUpdate( DocumentEvent e, Overrides: setParent in class View Parameters: parent - the new parent, or null if the view is Seize this moment to cache the AWT Container I'm in. Public void setParent( View parent) Establishes the parent view for this view.
Imageviewer 4.0 update#
Protected void setPropertiesFromAttributes() Update any cached values that come from attributes. Overrides: getToolTipText in class View See Also: JTextComponent.getToolTipText() Shape allocation) For images the tooltip text comes from text specified with theĪLT attribute. Implemented to multiplex the attributes specified in the Public AttributeSet getAttributes() Fetches the attributes to use when rendering. Protected StyleSheet getStyleSheet() Convenience method to get the StyleSheet. Public boolean getLoadsSynchronously() Returns true if the image should be loaded when first asked for. That is to load the image asynchronously. The default is to not load synchronously, The image we be loaded when first asked for, otherwise it willīe loaded asynchronously. Public void setLoadsSynchronously(boolean newValue) Sets how the image is loaded. Public Image getImage() Returns the image to render. Public Icon getLoadingImageIcon() Returns the icon to use while in the process of loading the image. Public Icon getNoImageIcon() Returns the icon to use if the image couldn't be found. Public URL getImageURL() Return a URL for the image source, Obtained from the Elements attribute set with the attribute name Public String getAltText() Returns the text to display if the image can't be loaded. Parameters: elem - the element to create a view for Method Detail Public ImageView( Element elem) Creates a new view that represents an IMG element. ObjectĬlone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait ViewĪppend, 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 Provides a mapping from the view coordinate space to the logical Update any cached values that come from attributes. To the coordinate space of the view mapped to it.Įstablishes the parent view for this view. Provides a mapping from the document model coordinate space Returns the icon to use if the image couldn't be found.ĭetermines the preferred span for this view along anĬonvenience method to get the StyleSheet.įor images the tooltip text comes from text specified with the Returns true if the image should be loaded when first asked for. Returns the icon to use while in the process of loading the image. Returns the text to display if the image can't be loaded.įetches the attributes to use when rendering.

Invoked when the Elements attributes have changed.ĭetermines the desired alignment for this view along an SwingConstantsīOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WESTĬreates a new view that represents an IMG element. ViewīadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXISįields inherited from interface javax.swing. While this class has been part of swing for a while now, it is publicįields inherited from class. If the image is unable to be loaded any text specified via the Supports scaling via the HEIGHT and WIDTH attributes of the tag. View of an Image, intended to support the HTML tag. +- .ImageView All Implemented Interfaces: SwingConstants SUMMARY: NESTED | FIELD | CONSTR | METHOD
