edu.umd.cfar.lamp.viper.examples
Class InsertIframesDescriptor

java.lang.Object
  extended byedu.umd.cfar.lamp.viper.examples.InsertIframesDescriptor

public class InsertIframesDescriptor
extends java.lang.Object

A helper class which inserts an 'iframe' descriptor into the currently loaded file. This is useful for editing purposes, and for only evaluating on the iframe. Requires a mediator to be loaded with a viperdata file, and for the dataplayer to properly implement the getImageType method.


Constructor Summary
InsertIframesDescriptor()
           
 
Method Summary
 javax.swing.Action getAddIframeDescriptorAction()
           
 ViperViewMediator getMediator()
           
 void insertIFrameDescriptor()
          Inserts a new I-Frame descriptor into the currently selected file, using the mediator's current DataPlayer object to find where the iframes are.
 Config insertIFrameDescriptorConfig()
          Creates a new type of descriptor, called 'I-Frames', if it doesn't already exist.
 void setMediator(ViperViewMediator mediator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InsertIframesDescriptor

public InsertIframesDescriptor()
Method Detail

insertIFrameDescriptorConfig

public Config insertIFrameDescriptorConfig()
Creates a new type of descriptor, called 'I-Frames', if it doesn't already exist. Otherwise, locates it.

Returns:
the I-Frame descriptor config information

insertIFrameDescriptor

public void insertIFrameDescriptor()
Inserts a new I-Frame descriptor into the currently selected file, using the mediator's current DataPlayer object to find where the iframes are.


getMediator

public ViperViewMediator getMediator()
Returns:
Returns the mediator.

setMediator

public void setMediator(ViperViewMediator mediator)
Parameters:
mediator - The mediator to set.

getAddIframeDescriptorAction

public javax.swing.Action getAddIframeDescriptorAction()
Returns:
Returns the addIframeDescriptorActionListener.