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 enum
Chart Image type enumeration.static enum
Chart type enumeration. -
Field Summary
Fields inherited from class org.deltava.beans.DatabaseBlobBean
_buffer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Compares two Charts by comparing their Airports, then their names.boolean
Return 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.boolean
Returns 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.int
Returns the number of times this chart has been viewed.void
Updates the Airport.void
Set the chart image format.void
Updates the last modification date of the chart.void
Updates the Chart name.void
Set the chart type.void
setUseCount
(int cnt) Updates the number of times this chart has been viewed.toString()
Methods inherited from class org.deltava.beans.ImageBean
checkParam, getFormat, getHasImage, getHeight, getSize, getWidth, load, load, setFormat, setHeight, setSize, setWidth
Methods inherited from class org.deltava.beans.DatabaseBlobBean
clear, getInputStream, isLoaded
Methods inherited from class org.deltava.beans.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:ImageBean
Returns the database image type.- Specified by:
getImageType
in 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:
getUseCount
in 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:
compareTo
in interfaceComparable<Object>
- Overrides:
compareTo
in classDatabaseBean
-
getRowClassName
Description copied from interface:ViewEntry
Returns the CSS class for this object if rendered in a view table.- Specified by:
getRowClassName
in interfaceViewEntry
- Returns:
- the CSS class name, or NULL if none
-
equals
- Overrides:
equals
in classDatabaseBean
-
getComboName
Description copied from interface:ComboAlias
Returns the visible name to use in the HTML <OPTION> element.- Specified by:
getComboName
in interfaceComboAlias
- Returns:
- The visible name for this entry
-
getComboAlias
Description copied from interface:ComboAlias
Returns the alias to use in the HTML <OPTION> element.- Specified by:
getComboAlias
in interfaceComboAlias
- Returns:
- The alias for this entry
-
toString
-