Package com.iizix.urn.image
Class ImageURN
java.lang.Object
com.iizix.urn.URN
com.iizix.urn.URNResource
com.iizix.urn.file.FileURN
com.iizix.urn.image.ImageURN
- All Implemented Interfaces:
- Serializable,- Cloneable
Image Uniform Resource Naming (URN) instance class, with optional scaling along with options for square or circle display, all processed and cached on the server side. In case of a circle, the image is made transparent as a PNG.
- Author:
- Christopher Mindus
- See Also:
- Field Summary- Fields inherited from class com.iizix.urn.URNResource- id, type
- Method SummaryModifier and TypeMethodDescription- final booleanChecks if another URN is equal to this one.- final StringGets the parameter string for the- URN.toString()method.- final int- hashCode()Gets the hash code of the instance.- boolean- isCircle()Returns if the image is a transparent circle image.- Methods inherited from class com.iizix.urn.file.FileURN- fromExternalFile, fromExternalFile, fromExternalFile, fromFileResource, getURL- Methods inherited from class com.iizix.urn.URNResource- asURNResource, getID, getImageTarget, getType, isImageTargetSupported, isURNResource- Methods inherited from class com.iizix.urn.URN- from, getURNString, toString
- Method Details- isCirclepublic boolean isCircle()Returns if the image is a transparent circle image.- Returns:
- The circle flag.
 
- hashCodepublic final int hashCode()Gets the hash code of the instance. The original URN string is not used for this hash code, rather the URN 'NID' and the parameters.
- equalsChecks if another URN is equal to this one. The original URN string is not used for this comparison, rather the URN 'NID' and the parameters.
- getParamStringGets the parameter string for the- URN.toString()method.- Overrides:
- getParamStringin class- FileURN
- Returns:
- The parameter string, always non-null.