Class Chart
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.DatabaseBlobBean
org.deltava.beans.ImageBean
org.deltava.beans.schedule.Chart
- All Implemented Interfaces:
Serializable, Comparable<Object>, ComboAlias, IDBean, UseCount, ViewEntry, Cacheable
- Direct Known Subclasses:
ExternalChart
A class for storing approach/procedure chart data.
- Since:
- 1.0
- Version:
- 10.6
- Author:
- Luke
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumChart Image type enumeration.static enumChart type enumeration. -
Field Summary
Fields inherited from class DatabaseBlobBean
_buffer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintCompares two Charts by comparing their Airports, then their names.booleanReturn the chart's Airport.Returns the alias to use in the HTML <OPTION> element.Returns the visible name to use in the HTML <OPTION> element.Returns the database image type.Return the chart's image type.booleanReturns whether this is an external chart.Returns the last modification date of the chart.getName()Return the chart name.Returns the CSS class for this object if rendered in a view table.getType()Returns the chart type.intReturns the number of times this chart has been viewed.voidUpdates the Airport.voidSet the chart image format.voidUpdates the last modification date of the chart.voidUpdates the Chart name.voidSet the chart type.voidsetUseCount(int cnt) Updates the number of times this chart has been viewed.toString()Methods inherited from class ImageBean
checkParam, getFormat, getHasImage, getHeight, getSize, getWidth, load, load, setFormat, setHeight, setSize, setWidthMethods inherited from class DatabaseBlobBean
clear, getInputStream, isLoadedMethods inherited from class DatabaseBean
cacheKey, getHexID, getID, hashCode, setID, validateID, validateID
-
Constructor Details
-
Chart
Create a new Chart with a name and an Airport.- Parameters:
name- the chart namea- the airport- Throws:
NullPointerException- if name is null
-
-
Method Details
-
getAirport
Return the chart's Airport.- Returns:
- the Airport bean associated with this chart
- See Also:
-
getName
-
getImgFormat
Return the chart's image type.- Returns:
- the ImageType
- See Also:
-
getImageType
Description copied from class:ImageBeanReturns the database image type.- Specified by:
getImageTypein classImageBean- Returns:
- an ImageType
-
getType
-
getIsExternal
public boolean getIsExternal()Returns whether this is an external chart.- Returns:
- FALSE
-
getUseCount
public int getUseCount()Returns the number of times this chart has been viewed.- Specified by:
getUseCountin interfaceUseCount- Returns:
- the number of views
- See Also:
-
getLastModified
Returns the last modification date of the chart.- Returns:
- the modification date/time
-
setLastModified
Updates the last modification date of the chart.- Parameters:
dt- the modification date/time
-
setName
Updates the Chart name.- Parameters:
name- the new name- Throws:
NullPointerException- if name is null- See Also:
-
setAirport
-
setType
-
setImgFormat
Set the chart image format.- Parameters:
fmt- the ImageFormat- See Also:
-
setUseCount
public void setUseCount(int cnt) Updates the number of times this chart has been viewed.- Parameters:
cnt- the number of views- See Also:
-
compareTo
Compares two Charts by comparing their Airports, then their names.- Specified by:
compareToin interfaceComparable<Object>- Overrides:
compareToin classDatabaseBean
-
getRowClassName
Description copied from interface:ViewEntryReturns the CSS class for this object if rendered in a view table.- Specified by:
getRowClassNamein interfaceViewEntry- Returns:
- the CSS class name, or NULL if none
-
equals
- Overrides:
equalsin classDatabaseBean
-
getComboName
Description copied from interface:ComboAliasReturns the visible name to use in the HTML <OPTION> element.- Specified by:
getComboNamein interfaceComboAlias- Returns:
- The visible name for this entry
-
getComboAlias
Description copied from interface:ComboAliasReturns the alias to use in the HTML <OPTION> element.- Specified by:
getComboAliasin interfaceComboAlias- Returns:
- The alias for this entry
-
toString
-