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:
java.io.Serializable
,java.lang.Cloneable
public class ImageURN extends FileURN
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:
- Serialized Form
Field Summary
Fields inherited from class com.iizix.urn.URNResource
id, type
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Checks if another URN is equal to this one.java.lang.String
getParamString()
Gets the parameter string for theURN.toString()
method.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 Detail
isCircle
public boolean isCircle()
Returns if the image is a transparent circle image.- Returns:
- The circle flag.
hashCode
public 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.
equals
public final boolean equals(java.lang.Object obj)
Checks 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.
getParamString
public final java.lang.String getParamString()
Gets the parameter string for theURN.toString()
method.- Overrides:
getParamString
in classFileURN
- Returns:
- The parameter string, always
non-null
.