org.fcrepo.client.objecteditor
Class SVGContentViewer

java.lang.Object
  extended by org.fcrepo.client.objecteditor.ContentViewer
      extended by org.fcrepo.client.objecteditor.SVGContentViewer

public class SVGContentViewer
extends ContentViewer

Views content of SVG images in a JComponent.


Constructor Summary
SVGContentViewer()
           
 
Method Summary
 JComponent getComponent()
          Get the JComponent.
 String[] getTypes()
          Returns a list of content types that this component can handle.
 void init(String type, InputStream data, boolean viewOnly)
          Initializes the handler.
 void setContent(InputStream data)
          Re-initializes the handler given new input data.
 
Methods inherited from class org.fcrepo.client.objecteditor.ContentViewer
isEditor, newInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SVGContentViewer

public SVGContentViewer()
Method Detail

getComponent

public JComponent getComponent()
Get the JComponent.

Specified by:
getComponent in class ContentViewer

getTypes

public String[] getTypes()
Returns a list of content types that this component can handle. This will usually be a list of MIME Types, but may also include other notions of type known to be understood by the users of ContentHandlerFactory.

Specified by:
getTypes in class ContentViewer

init

public void init(String type,
                 InputStream data,
                 boolean viewOnly)
          throws IOException
Initializes the handler. This should only be called once per instance, and is guaranteed to have been called when this component is provided by the ContentHandlerFactory. The viewOnly parameter signals to ContentEditor implementations that editing capabilities are not desired by the caller.

Specified by:
init in class ContentViewer
Throws:
IOException

setContent

public void setContent(InputStream data)
                throws IOException
Re-initializes the handler given new input data. The old data can be discarded.

Specified by:
setContent in class ContentViewer
Throws:
IOException


Copyright © 2012 DuraSpace. All Rights Reserved.