Class ExternalChart
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.DatabaseBlobBean
org.deltava.beans.ImageBean
org.deltava.beans.schedule.Chart
org.deltava.beans.schedule.ExternalChart
- All Implemented Interfaces:
Serializable, Comparable<Object>, ComboAlias, IDBean, UseCount, ViewEntry, Cacheable
A bean to store data about an externally hosted Chart. These typically have a
reflector URL that redirects the user to the "real" URL for the chart.
- Since:
- 4.0
- Version:
- 5.0
- Author:
- Luke
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Chart
Chart.ImageFormat, Chart.TypeModifier 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 TypeMethodDescriptionReturns the external provider's ID for the chart.final booleanReturns whether this is an external chart.Returns the source of the chart.getURL()Returns the URL to the chart.voidsetExternalID(String id) Updates the external provider's ID for the chart.voidUpdates the source of the chart.voidUpdates the URL to the chart.Methods inherited from class Chart
compareTo, equals, getAirport, getComboAlias, getComboName, getImageType, getImgFormat, getLastModified, getName, getRowClassName, getType, getUseCount, setAirport, setImgFormat, setLastModified, setName, setType, setUseCount, toStringModifier 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.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, setWidthModifier and TypeMethodDescriptionprotected static voidcheckParam(int param, String msg) Helper method to check for negative numeric parameters.Returns the type of image.booleanQueries if the bean has an associated Image.intReturns the height of the image.intgetSize()Returns the size of the image.intgetWidth()Returns the width of the image.final voidload(byte[] buffer) Updates the image buffer.final voidload(InputStream is) Loads an image into the buffer.voidUpdates the image format.voidsetHeight(int y) Updates the height of this image.voidsetSize(int newSize) Updates the size of this image.voidsetWidth(int x) Updates the width of this image.Methods inherited from class DatabaseBlobBean
clear, getInputStream, isLoadedMethods inherited from class DatabaseBean
cacheKey, getHexID, getID, hashCode, setID, validateID, validateIDModifier and TypeMethodDescriptioncacheKey()Returns the cache key for this object.getHexID()Returns the hexadecimal database ID of this object.intgetID()Returns the database ID of this object.inthashCode()voidsetID(int id) Update the database row ID of this bean.static voidvalidateID(int oldID, int newID) Validates a database ID.static voidvalidateID(int oldID, int newID, boolean allowZero) Validates a database ID.
-
Constructor Details
-
ExternalChart
-
-
Method Details
-
getIsExternal
public final boolean getIsExternal()Returns whether this is an external chart.- Overrides:
getIsExternalin classChart- Returns:
- TRUE
-
getURL
-
getSource
-
getExternalID
Returns the external provider's ID for the chart.- Returns:
- id the provider chart ID
-
setURL
-
setSource
-
setExternalID
Updates the external provider's ID for the chart.- Parameters:
id- the provider chart ID
-