|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.text.View com.ephox.editlive.java2.editor.views.EphoxView com.ephox.editlive.java2.editor.image.EphoxImageView com.ephox.editlive.common.CustomImageView
public class CustomImageView
A basis for creating views based on an image. The base implementation will provide standard image functionality, and work the same as an img tag. This is the publicly supported API for creating image based views.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.ephox.editlive.java2.editor.image.EphoxImageView |
---|
com.ephox.editlive.java2.editor.image.EphoxImageView.ImageHandler |
Field Summary |
---|
Fields inherited from class com.ephox.editlive.java2.editor.image.EphoxImageView |
---|
broadcaster, CORNER_LENGTH, DEFAULT_HEIGHT, DEFAULT_WIDTH, failed, height, HEIGHT_FLAG, image, imgLoaded, LINK_FLAG, LOADING_FLAG, RELOAD_FLAG, RELOAD_IMAGE_FLAG, state, SYNC_LOAD_FLAG, width, WIDTH_FLAG |
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(Element elem)
|
|
CustomImageView(Element elem,
boolean enableResizer)
|
Method Summary | |
---|---|
URL |
getImageURL()
Get the url for the image. |
float |
getMaximumSpan(int axis)
|
float |
getMinimumSpan(int axis)
|
float |
getPreferredSpan(int axis)
|
void |
paint(Graphics g,
Shape a)
Paint the view. |
void |
preferenceChanged(View child,
boolean width,
boolean height)
|
void |
setPropertiesFromAttributes()
Used to keep a cached version of attributes. |
Methods inherited from class com.ephox.editlive.java2.editor.image.EphoxImageView |
---|
changedUpdate, createBackgroundPainter, createBorderPainter, createResizer, getAlignment, getAltText, getAttributes, getBrokenImage, getCurrentAllocation, getCursorFor, getCursorForView, getImage, getIntAttr, getLoadingImageIcon, getNextVisualPositionFrom, getNextVisualPositionFromWhenNorthOrSouth, getNoImageIcon, getPendingImage, getStyleSheet, getToolTipText, getView, getViewAnnotationManager, isCacheValid, isFloated, isOnLeft, loadImage, paintImage, resetCurrentAllocation, safePreferenceChanged, setCropSelection, setParent, setSize, setViewAnnotationManager, updateAnnotationManager, updateImageSize |
Methods inherited from class com.ephox.editlive.java2.editor.views.EphoxView |
---|
modelToView, viewToModel |
Methods inherited from class javax.swing.text.View |
---|
append, breakView, createFragment, forwardUpdate, forwardUpdateToView, getBreakWeight, getChildAllocation, getContainer, getDocument, getElement, getEndOffset, getGraphics, getParent, getResizeWeight, getStartOffset, getView, getViewCount, getViewFactory, getViewIndex, getViewIndex, insert, insertUpdate, isVisible, modelToView, modelToView, 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(Element elem)
public CustomImageView(Element elem, boolean enableResizer)
Method Detail |
---|
public URL getImageURL()
getImageURL
in class com.ephox.editlive.java2.editor.image.EphoxImageView
public void paint(Graphics g, Shape a)
paint
in class com.ephox.editlive.java2.editor.image.EphoxImageView
View.paint(Graphics, Shape)
public void setPropertiesFromAttributes()
setPropertiesFromAttributes
in class com.ephox.editlive.java2.editor.image.EphoxImageView
public float getMaximumSpan(int axis)
getMaximumSpan
in class View
View.getMaximumSpan(int)
public float getMinimumSpan(int axis)
getMinimumSpan
in class View
View.getMinimumSpan(int)
public float getPreferredSpan(int axis)
getPreferredSpan
in class com.ephox.editlive.java2.editor.image.EphoxImageView
View.getPreferredSpan(int)
public void preferenceChanged(View child, boolean width, boolean height)
preferenceChanged
in class View
View.preferenceChanged(View, boolean, boolean)
|
Copyright (c) 2005-2012 Ephox Pty Ltd. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |