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
-
Field Summary
Fields inherited from class VASSAL.tools.imageop.AbstractOpImpl
cache, size
-
Method Summary
Modifier and TypeMethodDescriptioneval()
Runs theOp
.protected void
fixSize()
Sets thesize
which is used byAbstractOpImpl.getSize()
,AbstractOpImpl.getHeight()
, andAbstractOpImpl.getWidth()
.int
Returns the height of theBufferedImage
which would be returned byImageOp.getImage()
.getSize()
Returns the size of theBufferedImage
which would be returned byImageOp.getImage()
.Returns a list ofOp
s on which thisOp
depends.int
getWidth()
Returns the width of theBufferedImage
which would be returned byImageOp.getImage()
.Methods inherited from class VASSAL.tools.imageop.AbstractTileOpImpl
getFutureTile, getNumXTiles, getNumYTiles, getTile, getTileHeight, getTileIndices, getTileOp, getTileSize, getTileWidth
Methods inherited from class VASSAL.tools.imageop.AbstractOpImpl
clearCache, getFutureImage, getFutureTile, getImage, getImage, getSizeFromCache, getTile, getTileOp
Methods inherited from class VASSAL.tools.opcache.AbstractOpImpl
get, get, getFuture, newKey, update
-
Method Details
-
eval
Description copied from class:AbstractOpImpl
Runs theOp
. This method should be called only by the caching framework.- Specified by:
eval
in interfaceImageOp
- Specified by:
eval
in interfaceOp<BufferedImage>
- Specified by:
eval
in classAbstractOpImpl
- Returns:
- the result of running this
Op
-
fixSize
protected void fixSize()Description copied from class:AbstractOpImpl
Sets thesize
which is used byAbstractOpImpl.getSize()
,AbstractOpImpl.getHeight()
, andAbstractOpImpl.getWidth()
.- Specified by:
fixSize
in classAbstractOpImpl
-
getSize
Description copied from class:AbstractOpImpl
Returns the size of theBufferedImage
which would be returned byImageOp.getImage()
. The size is cached so that it need not be recalculated on each call.- Specified by:
getSize
in interfaceImageOp
- Overrides:
getSize
in classAbstractOpImpl
- Returns:
- the size of the resulting
BufferedImage
in pixels - See Also:
-
getWidth
public int getWidth()Description copied from class:AbstractOpImpl
Returns the width of theBufferedImage
which would be returned byImageOp.getImage()
. The width is cached so that it need not be recalculated on each call.- Specified by:
getWidth
in interfaceImageOp
- Overrides:
getWidth
in classAbstractOpImpl
- Returns:
- the width of the resulting
BufferedImage
in pixels - See Also:
-
getHeight
public int getHeight()Description copied from class:AbstractOpImpl
Returns the height of theBufferedImage
which would be returned byImageOp.getImage()
. The height is cached so that it need not be recalculated on each call.- Specified by:
getHeight
in interfaceImageOp
- Overrides:
getHeight
in classAbstractOpImpl
- Returns:
- the height of the resulting
BufferedImage
in pixels - See Also:
-
getSources
Description copied from class:AbstractOpImpl
Returns a list ofOp
s on which thisOp
depends.- Specified by:
getSources
in interfaceOp<BufferedImage>
- Specified by:
getSources
in classAbstractOpImpl<BufferedImage>
- Returns:
- the
Op
s on which thisOp
depends
-