org.gwtwidgets.client.ui.canvas.impl
Class SafariCanvasFactory
java.lang.Object
org.gwtwidgets.client.ui.canvas.impl.CanvasFactory
org.gwtwidgets.client.ui.canvas.impl.SafariCanvasFactory
public class SafariCanvasFactory
- extends CanvasFactory
Factory for Safari's canvas implementation. This is the simplest canvas implementation
as Safari exhibits no performance penalties for drawing images.
- Author:
- George Georgovassilis g.georgovassilis[at]gmail.com
|
Method Summary |
Canvas |
create(int width,
int height)
Return a canvas implementation for the current browser |
Font |
getFont(java.lang.String bitmapPath,
java.lang.String descriptionPath,
FontLoadListener listener)
Get a font object for use with a canvas. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SafariCanvasFactory
public SafariCanvasFactory()
create
public Canvas create(int width,
int height)
- Description copied from class:
CanvasFactory
- Return a canvas implementation for the current browser
- Specified by:
create in class CanvasFactory
- Returns:
getFont
public Font getFont(java.lang.String bitmapPath,
java.lang.String descriptionPath,
FontLoadListener listener)
- Description copied from class:
CanvasFactory
- Get a font object for use with a canvas. This method is asynchronous and may
issue non blocking requests to the server. Depending on the implementation,
Font objects may be returned that are not yet initialised and an invocation of
onLoad must be expected prior to using the font. Again, depending on the
implementation, cached instanced may be returned immediately, and the onLoad
listener will be invoked before returning the font object.
- Specified by:
getFont in class CanvasFactory
- Parameters:
bitmapPath - Path to the font bitmap.descriptionPath - Path to the font descriptorlistener - Optional listener to invoke after font has been instantiated or when an error occured.
- Returns:
- Font
Copyright © 2009. All Rights Reserved.