Class ProxyHttpTile
java.lang.Object
com.codename1.maps.Tile
com.codename1.maps.ProxyHttpTile
This Tile brings the tile image from a given http url.
-
Constructor Summary
ConstructorsConstructorDescriptionProxyHttpTile(Dimension tileSize, BoundingBox bbox, String url) Creates an Http Tile -
Method Summary
Methods inherited from class Tile
dimension, fireReady, getBoundingBox, paint, paintTileLoading, pointPosition, position, setPaintLoading, setsTileReadyListener, setTileLoadingImage, setTileLoadingText, toStringModifier and TypeMethodDescriptionGets the tile dimensionprotected voidinform the TileReadyListener that this tile is ready to be paintedGets the tile bounding box.voidPaints the tile on the Graphics Object translated to the given x, y, This method paints the tile image if available or will call paintTileLoadingvoidThis method paints a "tile loading" on the Graphics if boolean paint(Graphics g) returned false.pointPosition(Coord point) Returns the x, y point of the given coordinate relative to this tileposition(int posX, int posY) Returns the Coordinate of the given x, y position on the tilestatic voidsetPaintLoading(boolean toPaint) This flag indicates if the Tile should paint a Loading image or Text or simply not do any painting if a map image is not ready for paintingvoidsetsTileReadyListener(ActionListener listener) Sets a Listener to be notified when the tile is fireReady to be paintedstatic voidsetTileLoadingImage(Image tileLoadingImage) Sets a static image that will be drawn on the map if the tile image is not available yet.static voidsetTileLoadingText(String tileLoadingText) Sets a static text to paint.toString()Returns a string representation of the object.Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()booleanIndicates whether some other object is "equal to" this one.final ClassgetClass()Returns the runtime class of an object.inthashCode()Returns a hash code value for the object.final voidnotify()Wakes up a single thread that is waiting on this object's monitor.final voidWakes up all threads that are waiting on this object's monitor.final voidwait()Causes current thread to wait until another thread invokes the method or the method for this object.final voidwait(long timeout) Causes current thread to wait until either another thread invokes the method or the method for this object, or a specified amount of time has elapsed.final voidwait(long timeout, int nanos) Causes current thread to wait until another thread invokes the method or the method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
-
Constructor Details
-
ProxyHttpTile
Creates an Http Tile
Parameters
-
tileSize: the tile size -
bbox: the tile bounding box -
url: the url to bring the image from
-
-
-
Method Details
-
paint
-