jigcell.compare.ui
Class HTMLComponentDescription

java.lang.Object
  extended by jigcell.compare.ui.HTMLComponentDescription
All Implemented Interfaces:
IComponentDescription

public class HTMLComponentDescription
extends java.lang.Object
implements IComponentDescription

Description for one of the Comparator components. The description is loaded from an URL and displayed as HTML text.

This code is licensed under the DARPA BioCOMP Open Source License. See LICENSE for more details.

Author:
Nicholas Allen

Field Summary
protected  java.net.URL location
          Location of the component description
protected  java.lang.String resource
          Cached copy of the description
protected  int width
          Width of the HTML viewer
 
Constructor Summary
HTMLComponentDescription(java.lang.String resource, int width)
          Creates a new component description.
HTMLComponentDescription(java.net.URL location, int width)
          Creates a new component description.
 
Method Summary
 java.lang.Object createDisplay()
          Creates a display for the component description.
 java.net.URL getLocation()
          The location of the component description.
 void setLocation(java.net.URL location)
          Sets the location of the component description.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

width

protected int width
Width of the HTML viewer


resource

protected java.lang.String resource
Cached copy of the description


location

protected java.net.URL location
Location of the component description

Constructor Detail

HTMLComponentDescription

public HTMLComponentDescription(java.lang.String resource,
                                int width)
Creates a new component description.

Parameters:
resource - Description resource
width - Width of HTML viewer

HTMLComponentDescription

public HTMLComponentDescription(java.net.URL location,
                                int width)
Creates a new component description.

Parameters:
location - URL for resource
width - Width of HTML viewer
Method Detail

createDisplay

public java.lang.Object createDisplay()
Creates a display for the component description.

Specified by:
createDisplay in interface IComponentDescription

getLocation

public java.net.URL getLocation()
The location of the component description.


setLocation

public void setLocation(java.net.URL location)
Sets the location of the component description.

Parameters:
location - Location