ilog.views.svg
Class SVGHREFObjectInteractor

java.lang.Object
  extended by ilog.views.IlvObjectInteractor
      extended by ilog.views.svg.SVGHREFObjectInteractor
All Implemented Interfaces:
Serializable

public class SVGHREFObjectInteractor
extends IlvObjectInteractor

This IlvObjectInteractor subclass allows the SVGInputStream to reproduce the SVG 'a' (hyperlink) element behavior in a JViews IlvManager.

See Also:
IlvObjectInteractor, SVGInputStream, Serialized Form

Nested Class Summary
static interface SVGHREFObjectInteractor.ManagerFactory
          This interface should be implemented to allow the SVGHREFObjectInteractor to correctly manage hyperlinks requiring the creation of a new container.
 
Constructor Summary
SVGHREFObjectInteractor()
          Builds a new instance of SVGHREFObjectInteractor.
 
Method Summary
static SVGHREFObjectInteractor.ManagerFactory GetManagerFactory()
          Returns the ManagerFactory instance.
 boolean processEvent(IlvGraphic obj, AWTEvent event, IlvObjectInteractorContext context)
          Deals with MOUSE_RELEASED events to show the contents of the hyperlink.
static void SetManagerFactory(SVGHREFObjectInteractor.ManagerFactory factory)
          Allows you to set a ManagerFactory implementation instance that will be used to create a new IlvManager when the SVG hyperlink element requires creation of a new container in which to put objects of the linked file.
 
Methods inherited from class ilog.views.IlvObjectInteractor
Get, handleExpose, onEnter, onExit, Put
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SVGHREFObjectInteractor

public SVGHREFObjectInteractor()
Builds a new instance of SVGHREFObjectInteractor.

Method Detail

SetManagerFactory

public static void SetManagerFactory(SVGHREFObjectInteractor.ManagerFactory factory)
Allows you to set a ManagerFactory implementation instance that will be used to create a new IlvManager when the SVG hyperlink element requires creation of a new container in which to put objects of the linked file. This is the case when the SVG 'a' element has the new identifier as a value of the xlink:show attribute.

See Also:
SVGHREFObjectInteractor.ManagerFactory

GetManagerFactory

public static SVGHREFObjectInteractor.ManagerFactory GetManagerFactory()
Returns the ManagerFactory instance.

See Also:
SetManagerFactory(ilog.views.svg.SVGHREFObjectInteractor.ManagerFactory)

processEvent

public boolean processEvent(IlvGraphic obj,
                            AWTEvent event,
                            IlvObjectInteractorContext context)
Deals with MOUSE_RELEASED events to show the contents of the hyperlink.

Specified by:
processEvent in class IlvObjectInteractor
Parameters:
obj - The graphic object.
event - The event to process.
context - The context in which the event occurred.
Returns:
true if the event was handled by this processEvent invocation, false otherwise.
See Also:
IlvObjectInteractor.processEvent(ilog.views.IlvGraphic, java.awt.AWTEvent, ilog.views.IlvObjectInteractorContext)


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.