Class GridOp
java.lang.Object
VASSAL.tools.opcache.AbstractOpImpl<BufferedImage>
VASSAL.tools.imageop.AbstractOpImpl
VASSAL.tools.imageop.AbstractTiledOpImpl
VASSAL.build.module.map.boardPicker.board.GridOp
- All Implemented Interfaces:
ImageOp,Op<BufferedImage>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected MapGridprotected intprotected RenderingHintsprotected booleanprotected doubleprotected ImageOpFields inherited from class VASSAL.tools.imageop.AbstractTiledOpImpl
numXTiles, numYTiles, tiles, tileSizeFields inherited from class VASSAL.tools.imageop.AbstractOpImpl
cache, size -
Constructor Summary
ConstructorsConstructorDescriptionGridOp(ImageOp sop, MapGrid grid, double scale, boolean reversed, RenderingHints hints) -
Method Summary
Modifier and TypeMethodDescriptionprotected ImageOpcreateTileOp(int tileX, int tileY)booleaneval()Runs theOp.protected voidfixSize()Sets thesizewhich is used byAbstractOpImpl.getSize(),AbstractOpImpl.getHeight(), andAbstractOpImpl.getWidth().getGrid()getHints()booleandoublegetScale()Returns a list ofOps on which thisOpdepends.inthashCode()toString()Methods inherited from class VASSAL.tools.imageop.AbstractTiledOpImpl
fixTileSize, getFutureTile, getNumXTiles, getNumYTiles, getTile, getTileHeight, getTileIndices, getTileOp, getTileSize, getTileWidthMethods inherited from class VASSAL.tools.imageop.AbstractOpImpl
clearCache, getFutureImage, getFutureTile, getHeight, getImage, getImage, getSize, getSizeFromCache, getTile, getTileOp, getWidthMethods inherited from class VASSAL.tools.opcache.AbstractOpImpl
get, get, getFuture, newKey, update
-
Field Details
-
sop
-
grid
-
scale
protected final double scale -
reversed
protected final boolean reversed -
hints
-
hash
protected final int hash
-
-
Constructor Details
-
GridOp
-
-
Method Details
-
getGrid
-
getScale
public double getScale() -
getReversed
public boolean getReversed() -
getHints
-
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
-
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 - Throws:
Exception- The operation represented by thisImageOpcould be anything, so any exception may be thrown.
-
fixSize
protected void fixSize()Description copied from class:AbstractOpImplSets thesizewhich is used byAbstractOpImpl.getSize(),AbstractOpImpl.getHeight(), andAbstractOpImpl.getWidth().- Specified by:
fixSizein classAbstractOpImpl
-
createTileOp
- Specified by:
createTileOpin classAbstractTiledOpImpl
-
equals
-
hashCode
public int hashCode() -
toString
-