Class SolidColorOp
java.lang.Object
VASSAL.tools.opcache.AbstractOpImpl<BufferedImage>
VASSAL.tools.imageop.AbstractOpImpl
VASSAL.tools.imageop.AbstractTiledOpImpl
VASSAL.build.module.map.boardPicker.board.SolidColorOp
- All Implemented Interfaces:
ImageOp
,Op<BufferedImage>
-
Field Summary
Fields inherited from class VASSAL.tools.imageop.AbstractTiledOpImpl
numXTiles, numYTiles, tiles, tileSize
Fields inherited from class VASSAL.tools.imageop.AbstractOpImpl
cache, size
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ImageOp
createTileOp
(int tileX, int tileY) boolean
eval()
Runs theOp
.protected void
fixSize()
Sets thesize
which is used byAbstractOpImpl.getSize()
,AbstractOpImpl.getHeight()
, andAbstractOpImpl.getWidth()
.protected void
Sets thetileSize
which is used byAbstractTiledOpImpl.getTileSize()
,AbstractTiledOpImpl.getTileHeight()
,AbstractTiledOpImpl.getTileWidth()
,AbstractTiledOpImpl.getNumXTiles()
,AbstractTiledOpImpl.getNumYTiles()
, and all other tile methods.getColor()
Returns a list ofOp
s on which thisOp
depends.getTileOp
(int tileX, int tileY) Returns theImageOp
which produces tile(tileX,tileY)
, creating it if necessary.int
hashCode()
toString()
Methods inherited from class VASSAL.tools.imageop.AbstractTiledOpImpl
getFutureTile, getNumXTiles, getNumYTiles, getTile, getTileHeight, getTileIndices, getTileSize, getTileWidth
Methods inherited from class VASSAL.tools.imageop.AbstractOpImpl
clearCache, getFutureImage, getFutureTile, getHeight, getImage, getImage, getSize, getSizeFromCache, getTile, getTileOp, getWidth
Methods inherited from class VASSAL.tools.opcache.AbstractOpImpl
get, get, getFuture, newKey, update
-
Field Details
-
color
-
hash
protected final int hash
-
-
Constructor Details
-
SolidColorOp
-
-
Method Details
-
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
-
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
- Throws:
Exception
- The operation represented by thisImageOp
could be anything, so any exception may be thrown.
-
fixTileSize
protected void fixTileSize()Description copied from class:AbstractTiledOpImpl
Sets thetileSize
which is used byAbstractTiledOpImpl.getTileSize()
,AbstractTiledOpImpl.getTileHeight()
,AbstractTiledOpImpl.getTileWidth()
,AbstractTiledOpImpl.getNumXTiles()
,AbstractTiledOpImpl.getNumYTiles()
, and all other tile methods.- Overrides:
fixTileSize
in classAbstractTiledOpImpl
-
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
-
getColor
-
getTileOp
Description copied from class:AbstractTiledOpImpl
Returns theImageOp
which produces tile(tileX,tileY)
, creating it if necessary.- Specified by:
getTileOp
in interfaceImageOp
- Overrides:
getTileOp
in classAbstractTiledOpImpl
- Parameters:
tileX
- the x position of the requested tiletileY
- the y position of the requested tile- Returns:
- the
ImageOp
for tile(tileX,tileY)
-
createTileOp
- Specified by:
createTileOp
in classAbstractTiledOpImpl
-
equals
-
hashCode
-
toString
-