Package adams.data.conversion.mapobject
Class AbstractReportMapRectangleGenerator
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.conversion.mapobject.AbstractReportMapObjectGenerator<org.openstreetmap.gui.jmapviewer.interfaces.MapRectangle>
-
- adams.data.conversion.mapobject.AbstractReportMapRectangleGenerator
-
- All Implemented Interfaces:
adams.core.Destroyable
,adams.core.GlobalInfoSupporter
,adams.core.logging.LoggingLevelHandler
,adams.core.logging.LoggingSupporter
,adams.core.option.OptionHandler
,adams.core.QuickInfoSupporter
,adams.core.SizeOfHandler
,Serializable
- Direct Known Subclasses:
SimpleReportRectangleGenerator
public abstract class AbstractReportMapRectangleGenerator extends AbstractReportMapObjectGenerator<org.openstreetmap.gui.jmapviewer.interfaces.MapRectangle>
Ancestor for generators that generateMapRectangle
objects.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected adams.data.report.Field
m_BottomRightLatitude
the field of the bottomright latitude.protected adams.data.report.Field
m_BottomRightLongitude
the field of the bottomright longitude.protected adams.data.report.Field
m_TopLeftLatitude
the field of the topleft latitude.protected adams.data.report.Field
m_TopLeftLongitude
the field of the topleft longitude.-
Fields inherited from class adams.data.conversion.mapobject.AbstractReportMapObjectGenerator
m_AdditionalAttributes, m_DateFormat, m_DateTimeFormat, m_Layer, m_Timestamp
-
-
Constructor Summary
Constructors Constructor Description AbstractReportMapRectangleGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
bottomRightLatitudeTipText()
Returns the tip text for this property.String
bottomRightLongitudeTipText()
Returns the tip text for this property.protected void
check(adams.data.report.Report report)
Checks the report and throws an exception if it fails.void
defineOptions()
Adds options to the internal list of options.Class
generates()
Returns the type of data the generator creates.adams.data.report.Field
getBottomRightLatitude()
Returns the field containing the latitude of the bottom-right corner.adams.data.report.Field
getBottomRightLongitude()
Returns the field containing the longitude of the bottom-right corner.String
getQuickInfo()
Returns a quick info about the object, which can be displayed in the GUI.adams.data.report.Field
getTopLeftLatitude()
Returns the field containing the latitude of the top-left corner.adams.data.report.Field
getTopLeftLongitude()
Returns the field containing the longitude of the top-left corner.void
setBottomRightLatitude(adams.data.report.Field value)
Sets the field containing the latitude of the bottom-right corner.void
setBottomRightLongitude(adams.data.report.Field value)
Sets the field containing the longitude of the bottom-right corner.void
setTopLeftLatitude(adams.data.report.Field value)
Sets the field containing the latitude of the top-left corner.void
setTopLeftLongitude(adams.data.report.Field value)
Sets the field containing the longitude of the top-left corner.String
topLeftLatitudeTipText()
Returns the tip text for this property.String
topLeftLongitudeTipText()
Returns the tip text for this property.-
Methods inherited from class adams.data.conversion.mapobject.AbstractReportMapObjectGenerator
additionalAttributesTipText, addMetaData, addTimestamp, doGenerate, generate, getAdditionalAttributes, getDefaultLayer, getLayer, getNumericValue, getTimestamp, initialize, layerTipText, postProcess, setAdditionalAttributes, setLayer, setTimestamp, shallowCopy, shallowCopy, timestampTipText
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, globalInfo, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
m_TopLeftLatitude
protected adams.data.report.Field m_TopLeftLatitude
the field of the topleft latitude.
-
m_TopLeftLongitude
protected adams.data.report.Field m_TopLeftLongitude
the field of the topleft longitude.
-
m_BottomRightLatitude
protected adams.data.report.Field m_BottomRightLatitude
the field of the bottomright latitude.
-
m_BottomRightLongitude
protected adams.data.report.Field m_BottomRightLongitude
the field of the bottomright longitude.
-
-
Method Detail
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptions
in interfaceadams.core.option.OptionHandler
- Overrides:
defineOptions
in classAbstractReportMapObjectGenerator<org.openstreetmap.gui.jmapviewer.interfaces.MapRectangle>
-
setTopLeftLatitude
public void setTopLeftLatitude(adams.data.report.Field value)
Sets the field containing the latitude of the top-left corner.- Parameters:
value
- the field
-
getTopLeftLatitude
public adams.data.report.Field getTopLeftLatitude()
Returns the field containing the latitude of the top-left corner.- Returns:
- the field
-
topLeftLatitudeTipText
public String topLeftLatitudeTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setTopLeftLongitude
public void setTopLeftLongitude(adams.data.report.Field value)
Sets the field containing the longitude of the top-left corner.- Parameters:
value
- the field
-
getTopLeftLongitude
public adams.data.report.Field getTopLeftLongitude()
Returns the field containing the longitude of the top-left corner.- Returns:
- the field
-
topLeftLongitudeTipText
public String topLeftLongitudeTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setBottomRightLatitude
public void setBottomRightLatitude(adams.data.report.Field value)
Sets the field containing the latitude of the bottom-right corner.- Parameters:
value
- the field
-
getBottomRightLatitude
public adams.data.report.Field getBottomRightLatitude()
Returns the field containing the latitude of the bottom-right corner.- Returns:
- the field
-
bottomRightLatitudeTipText
public String bottomRightLatitudeTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setBottomRightLongitude
public void setBottomRightLongitude(adams.data.report.Field value)
Sets the field containing the longitude of the bottom-right corner.- Parameters:
value
- the field
-
getBottomRightLongitude
public adams.data.report.Field getBottomRightLongitude()
Returns the field containing the longitude of the bottom-right corner.- Returns:
- the field
-
bottomRightLongitudeTipText
public String bottomRightLongitudeTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
generates
public Class generates()
Returns the type of data the generator creates.- Specified by:
generates
in classAbstractReportMapObjectGenerator<org.openstreetmap.gui.jmapviewer.interfaces.MapRectangle>
- Returns:
- the data type(s)
-
getQuickInfo
public String getQuickInfo()
Returns a quick info about the object, which can be displayed in the GUI.- Specified by:
getQuickInfo
in interfaceadams.core.QuickInfoSupporter
- Overrides:
getQuickInfo
in classAbstractReportMapObjectGenerator<org.openstreetmap.gui.jmapviewer.interfaces.MapRectangle>
- Returns:
- null if no info available, otherwise short string
-
check
protected void check(adams.data.report.Report report)
Checks the report and throws an exception if it fails.- Overrides:
check
in classAbstractReportMapObjectGenerator<org.openstreetmap.gui.jmapviewer.interfaces.MapRectangle>
- Parameters:
report
- the report to check
-
-