org.onebusaway.presentation.impl.resources
Class ImageResourceImpl

java.lang.Object
  extended by org.onebusaway.presentation.impl.resources.ResourcePrototypeImpl
      extended by org.onebusaway.presentation.impl.resources.ImageResourceImpl
All Implemented Interfaces:
com.google.gwt.resources.client.ImageResource, com.google.gwt.resources.client.ResourcePrototype, LocalResource, ResourceWithUrl

public class ImageResourceImpl
extends ResourcePrototypeImpl
implements com.google.gwt.resources.client.ImageResource, ResourceWithUrl, LocalResource


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.google.gwt.resources.client.ImageResource
com.google.gwt.resources.client.ImageResource.ImageOptions, com.google.gwt.resources.client.ImageResource.RepeatStyle
 
Field Summary
 
Fields inherited from class org.onebusaway.presentation.impl.resources.ResourcePrototypeImpl
_context, _initialized, _localFile, _localFileLength, _localUrl, _parentBundle
 
Constructor Summary
ImageResourceImpl(ClientBundleContext context, ClientBundleImpl parentBundle, String name, URL localUrl)
           
 
Method Summary
 int getHeight()
           
 int getLeft()
           
 int getTop()
           
 String getUrl()
           
 String getURL()
           
 int getWidth()
           
 boolean isAnimated()
           
protected  void refresh()
           
 
Methods inherited from class org.onebusaway.presentation.impl.resources.ResourcePrototypeImpl
constructURL, getLastModifiedTime, getLocalUrl, getName, isUpToDate, setLocalFile, setUpToDate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.gwt.resources.client.ResourcePrototype
getName
 
Methods inherited from interface org.onebusaway.presentation.impl.resources.LocalResource
getLastModifiedTime, getLocalUrl
 

Constructor Detail

ImageResourceImpl

public ImageResourceImpl(ClientBundleContext context,
                         ClientBundleImpl parentBundle,
                         String name,
                         URL localUrl)
Method Detail

getUrl

public String getUrl()
Specified by:
getUrl in interface ResourceWithUrl

refresh

protected void refresh()
Overrides:
refresh in class ResourcePrototypeImpl

getHeight

public int getHeight()
Specified by:
getHeight in interface com.google.gwt.resources.client.ImageResource

getLeft

public int getLeft()
Specified by:
getLeft in interface com.google.gwt.resources.client.ImageResource

getTop

public int getTop()
Specified by:
getTop in interface com.google.gwt.resources.client.ImageResource

getURL

public String getURL()
Specified by:
getURL in interface com.google.gwt.resources.client.ImageResource

getWidth

public int getWidth()
Specified by:
getWidth in interface com.google.gwt.resources.client.ImageResource

isAnimated

public boolean isAnimated()
Specified by:
isAnimated in interface com.google.gwt.resources.client.ImageResource


Copyright © 2011 OneBusAway. All Rights Reserved.