com.xpn.xwiki.plugin.image
Class ImagePluginAPI

java.lang.Object
  extended by com.xpn.xwiki.api.Api
      extended by com.xpn.xwiki.plugin.PluginApi<ImagePlugin>
          extended by 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 $

Field Summary
 
Fields inherited from class com.xpn.xwiki.api.Api
context
 
Constructor Summary
ImagePluginAPI(ImagePlugin imagePlugin, XWikiContext context)
          Deprecated. Creates a new instance of this plugin API.
 
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 com.xpn.xwiki.plugin.PluginApi
getInternalPlugin, getProtectedPlugin, setPlugin
 
Methods inherited from class com.xpn.xwiki.api.Api
convert, convert, getXWikiContext, hasAccessLevel, hasAdminRights, hasProgrammingRights, hasWikiAdminRights
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 API
context - the XWiki context
Method Detail

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 page
attachmentName - 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 page
attachmentName - the name of an image attached to the specified page
Returns:
the width of the specified image


Copyright © 2004-2013 XWiki. All Rights Reserved.