com.xpn.xwiki.plugin.image
Class ImagePluginAPI
java.lang.Object
com.xpn.xwiki.api.Api
com.xpn.xwiki.plugin.PluginApi<ImagePlugin>
com.xpn.xwiki.plugin.image.ImagePluginAPI
Deprecated. the plugin technology is deprecated, consider rewriting as components
@Deprecated
public class ImagePluginAPI
- extends PluginApi<ImagePlugin>
- Version:
- $Id: d13fe1271d465aba63c90e9c214e999260a4d57d $
Fields inherited from class com.xpn.xwiki.api.Api |
context |
Method Summary |
int |
getHeight(String pageName,
String attachmentName)
Deprecated. Detects the height of an image attached to a wiki page. |
int |
getWidth(String pageName,
String attachmentName)
Deprecated. Detects the width of an image attached to a wiki page. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImagePluginAPI
public ImagePluginAPI(ImagePlugin imagePlugin,
XWikiContext context)
- Deprecated.
- Creates a new instance of this plugin API.
- Parameters:
imagePlugin
- the underlying image plugin that is exposed by this APIcontext
- the XWiki context
getHeight
public int getHeight(String pageName,
String attachmentName)
- Deprecated.
- Detects the height of an image attached to a wiki page.
- Parameters:
pageName
- the name of a wiki pageattachmentName
- the name of an image attached to the specified page
- Returns:
- the height of the specified image
getWidth
public int getWidth(String pageName,
String attachmentName)
- Deprecated.
- Detects the width of an image attached to a wiki page.
- Parameters:
pageName
- the name of a wiki pageattachmentName
- the name of an image attached to the specified page
- Returns:
- the width of the specified image
Copyright © 2004–2014 XWiki. All rights reserved.