public class ImageTranscoder extends ScalableTranscoder
Modifier and Type | Class and Description |
---|---|
protected static class |
ImageTranscoder.ImageInfo |
scaleGridBottom, scaleGridLeft, scaleGridRight, scaleGridTop, scaling
baseClassQName, byteArrayNamePostfix, CORE_PACKAGE, data, source, swcSource, UTILS_PACKAGE, workspace
Constructor and Description |
---|
ImageTranscoder(EmbedData data,
Workspace workspace)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
analyze(ISourceLocation location,
Collection<ICompilerProblem> problems)
Analyze the attributes
|
protected Map<String,ICharacterTag> |
doTranscode(Collection<ITag> tags,
Collection<ICompilerProblem> problems)
Transcode the embedded asset
|
boolean |
equals(Object o) |
protected ImageTranscoder.ImageInfo |
getImageInfo(byte[] bytes,
Collection<ICompilerProblem> problems) |
int |
hashCode() |
protected boolean |
setAttribute(EmbedAttribute attribute)
Stores the supported attribute of the transcoder
|
buildScalingGrid, buildSprite, checkAttributeValues
buildABC, buildAST, buildBinaryDataTag, getBaseClassName, getBaseClassQName, getDataBytes, getDataStream, getTags
public boolean analyze(ISourceLocation location, Collection<ICompilerProblem> problems)
TranscoderBase
analyze
in class TranscoderBase
location
- Source location from where the embed came fromproblems
- Any problems discovered in the EmbedNodeprotected boolean setAttribute(EmbedAttribute attribute)
TranscoderBase
setAttribute
in class ScalableTranscoder
protected Map<String,ICharacterTag> doTranscode(Collection<ITag> tags, Collection<ICompilerProblem> problems)
TranscoderBase
doTranscode
in class TranscoderBase
tags
- The collection of transcoded asset tagsproblems
- The collection of compiler problems to which this method will add problems.protected ImageTranscoder.ImageInfo getImageInfo(byte[] bytes, Collection<ICompilerProblem> problems) throws Exception
Exception
public boolean equals(Object o)
equals
in class ScalableTranscoder
public int hashCode()
hashCode
in class ScalableTranscoder
Copyright © 2016 The Apache Software Foundation. All rights reserved.