jpl.mipl.mars.viewer.image
Class RdrImageOverlayFactory
java.lang.Object
jpl.mipl.mars.viewer.image.RdrImageOverlayFactory
public class RdrImageOverlayFactory
- extends Object
Purpose:
Factory class for vending RdrImageOverlay objects.
Supported special types: disp, xyz, xxx, yyy, zzz,
rough, reach, normal, range,
mask, I-Over-P, slope,
solar energy, slope rover,
slope magnitude, slope heading,
and approximate versions of above.
All other formats return the default type.
Copyright 2006, California Institute of Technology.
ALL RIGHTS RESERVED.
U.S. Government Sponsorship acknowledge. 2006.
============================================================================
Modification History :
----------------------
Date Who What
----------------------------------------------------------------------------
10/01/2003 Nick Initial Release
12/05/2003 Nick Added Mask file type
04/07/2004 Nick Added ARG,ARL,ZAX,ZAL,XAX,XAL,YAX,YAL,
AXZ,AXL filetypes.
04/14/2004 Nick Added IEP,IEL,AEP,AEL,IET,IEN,AET,AEN.
05/07/2004 Nick Added Slope type: SLP,SLL,SLT,SLN
07/17/2004 Nick Added Solar Energy type: SEP,SEL,SET,SEN
07/19/2004 Nick Added Slope Rover - SRD,SRD,SRT,SRN
11/11/2004 Nick Added Slope Magnitude - SMP,SML,SMT,SMN
11/11/2004 Nick Added Slope Heading - SHP,SHL,SHT,SHN
12/20/2005 Nick Decoupled from app model, now use
PropertyManager for properties.
04/23/2007 Nick New type: XYZ Masked - XMZ,XML,XMT,XMN
04/23/2007 Nick New type: Slope Normal - USW,USL,UST,USN
04/23/2007 Nick Retrofitted to utilize image.config package
to dynamically load image info
============================================================================
- Version:
- $Id: RdrImageOverlayFactory.java,v 1.11 2008/03/21 22:32:11 ntt Exp $
- Author:
- Nicholas Toole (Nicholas.T.Toole@jpl.nasa.gov)
Method Summary |
protected static RdrImageOverlay |
buildOverlay(RenderedImage formattedImage,
RenderedImage unformattedImage,
RenderedImage sourceImage,
PropertyManager model,
String type,
String overlayClassname)
Reflection-based instantiation of RdrImageOverlay instances based
on the overlayClassname parameter. |
static RdrImageOverlay |
create(String type,
RenderedOp formattedImage,
RenderedOp unformattedImage,
RenderedOp sourceImage,
PropertyManager model)
|
protected static boolean |
isOfType(String given,
String check)
|
protected static void |
loadImageInfo()
|
protected static ImagePreferenceElement |
propertiesToPreferenceElement(String name,
Properties properties)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RdrImageOverlayFactory
public RdrImageOverlayFactory()
loadImageInfo
protected static void loadImageInfo()
create
public static RdrImageOverlay create(String type,
RenderedOp formattedImage,
RenderedOp unformattedImage,
RenderedOp sourceImage,
PropertyManager model)
buildOverlay
protected static RdrImageOverlay buildOverlay(RenderedImage formattedImage,
RenderedImage unformattedImage,
RenderedImage sourceImage,
PropertyManager model,
String type,
String overlayClassname)
- Reflection-based instantiation of RdrImageOverlay instances based
on the overlayClassname parameter. If class in not found,
constructor is not found, or an error occurs during instantiation,
then
null
will be returned.
- Parameters:
filename
- Image file nametype
- Image file typemodel
- Instance of property model, ussually application modeloverlayClassname
- Fully-qualified class name of RdrImageOverlay
implementation this method will instantiateoverlayProps
- Properties defining type fields, can be empty
isOfType
protected static boolean isOfType(String given,
String check)
propertiesToPreferenceElement
protected static ImagePreferenceElement propertiesToPreferenceElement(String name,
Properties properties)