Class ImageItem.BaseOp
java.lang.Object
VASSAL.tools.opcache.AbstractOpImpl<BufferedImage>
VASSAL.tools.imageop.AbstractOpImpl
VASSAL.tools.imageop.AbstractTileOpImpl
VASSAL.build.module.gamepieceimage.ImageItem.BaseOp
- All Implemented Interfaces:
ImageOp,Op<BufferedImage>
- Enclosing class:
- ImageItem
protected static final class ImageItem.BaseOp extends AbstractTileOpImpl
-
Field Summary
Fields inherited from class VASSAL.tools.imageop.AbstractOpImpl
cache, size -
Method Summary
Modifier and Type Method Description BufferedImageeval()Runs theOp.protected voidfixSize()Sets thesizewhich is used byAbstractOpImpl.getSize(),AbstractOpImpl.getHeight(), andAbstractOpImpl.getWidth().intgetHeight()Returns the height of theBufferedImagewhich would be returned byImageOp.getImage().DimensiongetSize()Returns the size of theBufferedImagewhich would be returned byImageOp.getImage().List<Op<?>>getSources()Returns a list ofOps on which thisOpdepends.intgetWidth()Returns the width of theBufferedImagewhich would be returned byImageOp.getImage().Methods inherited from class VASSAL.tools.imageop.AbstractTileOpImpl
getFutureTile, getNumXTiles, getNumYTiles, getTile, getTileHeight, getTileIndices, getTileOp, getTileSize, getTileWidthMethods inherited from class VASSAL.tools.imageop.AbstractOpImpl
clearCache, getFutureImage, getFutureTile, getImage, getImage, getSizeFromCache, getTile, getTileOpMethods inherited from class VASSAL.tools.opcache.AbstractOpImpl
get, get, getFuture, newKey, update
-
Method Details
-
eval
Description copied from class:AbstractOpImplRuns theOp. This method should be called only by the caching framework.- Specified by:
evalin interfaceImageOp- Specified by:
evalin interfaceOp<BufferedImage>- Specified by:
evalin classAbstractOpImpl- Returns:
- the result of running this
Op
-
fixSize
protected void fixSize()Description copied from class:AbstractOpImplSets thesizewhich is used byAbstractOpImpl.getSize(),AbstractOpImpl.getHeight(), andAbstractOpImpl.getWidth().- Specified by:
fixSizein classAbstractOpImpl
-
getSize
Description copied from class:AbstractOpImplReturns the size of theBufferedImagewhich would be returned byImageOp.getImage(). The size is cached so that it need not be recalculated on each call.- Specified by:
getSizein interfaceImageOp- Overrides:
getSizein classAbstractOpImpl- Returns:
- the size of the resulting
BufferedImagein pixels - See Also:
ImageOp.getHeight(),ImageOp.getWidth()
-
getWidth
public int getWidth()Description copied from class:AbstractOpImplReturns the width of theBufferedImagewhich would be returned byImageOp.getImage(). The width is cached so that it need not be recalculated on each call.- Specified by:
getWidthin interfaceImageOp- Overrides:
getWidthin classAbstractOpImpl- Returns:
- the width of the resulting
BufferedImagein pixels - See Also:
ImageOp.getHeight(),ImageOp.getSize()
-
getHeight
public int getHeight()Description copied from class:AbstractOpImplReturns the height of theBufferedImagewhich would be returned byImageOp.getImage(). The height is cached so that it need not be recalculated on each call.- Specified by:
getHeightin interfaceImageOp- Overrides:
getHeightin classAbstractOpImpl- Returns:
- the height of the resulting
BufferedImagein pixels - See Also:
ImageOp.getWidth(),ImageOp.getSize()
-
getSources
Description copied from class:AbstractOpImplReturns a list ofOps on which thisOpdepends.- Specified by:
getSourcesin interfaceOp<BufferedImage>- Specified by:
getSourcesin classAbstractOpImpl<BufferedImage>- Returns:
- the
Ops on which thisOpdepends
-