HiRISE

HiRISE.HiReport.form
Class ImageExpandForm

java.lang.Object
  extended by org.apache.struts.action.ActionForm
      extended by HiRISE.HiReport.form.ImageExpandForm
All Implemented Interfaces:
Serializable

public class ImageExpandForm
extends org.apache.struts.action.ActionForm

Author:
guym
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
ImageExpandForm()
           
 
Method Summary
 double[] getBox()
          Get the box for output
 double getHeight()
           
 double getLeft()
           
 double getMpx()
          Get the pixel count
 String getName()
           
 double getTop()
          Get the top of the output box
 String getType()
           
 String[] getTypes()
           
 int getVersion()
           
 double getWidth()
           
 void setHeight(double height)
           
 void setLeft(double left)
           
 void setMpx(double mpx)
          Set the pixel count
 void setName(String name)
           
 void setTop(double top)
          Set the top of the output box
 void setType(String type)
           
 void setVersion(int version)
           
 void setWidth(double width)
           
 org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping map, javax.servlet.http.HttpServletRequest req)
          Validate the form input
 
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, reset, setMultipartRequestHandler, setServlet, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageExpandForm

public ImageExpandForm()
Method Detail

getMpx

public double getMpx()
Get the pixel count

Returns:
megapixels

setMpx

public void setMpx(double mpx)
Set the pixel count

Parameters:
mpx - megapixels

getType

public String getType()

setType

public void setType(String type)

getName

public String getName()

setName

public void setName(String name)

getVersion

public int getVersion()

setVersion

public void setVersion(int version)

getTop

public double getTop()
Get the top of the output box

Returns:
fraction of height

setTop

public void setTop(double top)
Set the top of the output box

Parameters:
top - fraction of height

getLeft

public double getLeft()

setLeft

public void setLeft(double left)

getWidth

public double getWidth()

setWidth

public void setWidth(double width)

getHeight

public double getHeight()

setHeight

public void setHeight(double height)

getTypes

public String[] getTypes()

getBox

public double[] getBox()
Get the box for output

Returns:
fractional image coordinates (top, left, height, width)

validate

public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping map,
                                                      javax.servlet.http.HttpServletRequest req)
Validate the form input

Overrides:
validate in class org.apache.struts.action.ActionForm

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona