|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
com.maryanovsky.map.client.Tile
com.maryanovsky.map.client.tiles.ImageTile
public abstract class ImageTile
A Tile
implementation which uses an image from a specified URL.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
Field Summary | |
---|---|
protected Image |
image
The Image widget we're using to display the tile image. |
protected SizeView |
tileSize
The currently requested size of the tile; null if automatic. |
protected String |
url
The URL of the image of the tile. |
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
protected |
ImageTile(String url)
Creates a new Tile with the specified image url. |
Method Summary | |
---|---|
static ImageTile |
makeImageTile(String url)
Creates a new Tile which will display the image at the
specified URL. |
protected void |
onUnload()
Invoked when the tile is detached from the DOM. |
protected void |
setImageSize(String size)
Sets the image's width and height style attributes to the specified value. |
void |
setTileSizePixels(SizeView tileSize)
Sets the size of the tile image, in pixels. |
Methods inherited from class com.maryanovsky.map.client.Tile |
---|
cancelLoading, isReady, markReady, markUnready, setReadyListener, startLoading |
Methods inherited from class com.google.gwt.user.client.ui.Composite |
---|
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, removeFromParent, setLayoutData, sinkEvents |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final Image image
Image
widget we're using to display the tile image.
protected final String url
protected SizeView tileSize
null
if automatic.
Constructor Detail |
---|
protected ImageTile(String url)
Tile
with the specified image url.
Method Detail |
---|
public static ImageTile makeImageTile(String url)
Tile
which will display the image at the
specified URL.
protected void setImageSize(String size)
public void setTileSizePixels(SizeView tileSize)
null
value
resets it to the default size (the native size of the image at the URL).
setTileSizePixels
in class Tile
protected void onUnload()
onUnload
in class Widget
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |