Class ColorResolver.Result
java.lang.Object
com.iizix.prop.ColorResolver.Result
- Enclosing class:
ColorResolver
The result of a resolution: the status, the color and, when not resolved, the reason.
- Author:
- Christopher Mindus
Method Details
getStatus
getColor
Gets the color.- Returns:
- The literal or
GColor.INHERITreached,GColor.UNRESOLVEDwhen the status is notColorResolver.Status.RESOLVED. Never null and never a reference.
getDetail
Gets the reason when not resolved.- Returns:
- The reason, phrased to follow "The reference '...'", or null when resolved.
getDepth
public int getDepth()Gets the number of references followed.- Returns:
- The depth, zero for a literal palette color.
isResolved
public boolean isResolved()Checks if the reference resolved.- Returns:
- true for
ColorResolver.Status.RESOLVED.
toString