Package VASSAL.counters
Class Labeler.LabelOp
java.lang.Object
VASSAL.tools.opcache.AbstractOpImpl<BufferedImage>
VASSAL.tools.imageop.AbstractOpImpl
VASSAL.tools.imageop.AbstractTileOpImpl
VASSAL.counters.Labeler.LabelOp
- All Implemented Interfaces:
ImageOp
,Op<BufferedImage>
- Direct Known Subclasses:
Labeler.HTMLLabelOp
- Enclosing class:
Labeler
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Color
protected final Color
protected final Font
protected final int
protected final String
Fields inherited from class VASSAL.tools.imageop.AbstractOpImpl
cache, size
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Dimension
boolean
eval()
Runs theOp
.protected void
fixSize()
Sets thesize
which is used byAbstractOpImpl.getSize()
,AbstractOpImpl.getHeight()
, andAbstractOpImpl.getWidth()
.Returns a list ofOp
s on which thisOp
depends.int
hashCode()
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, getHeight, getImage, getImage, getSize, getSizeFromCache, getTile, getTileOp, getWidth
Methods inherited from class VASSAL.tools.opcache.AbstractOpImpl
get, get, getFuture, newKey, update
-
Field Details
-
txt
-
font
-
fg
-
bg
-
hash
protected final int hash
-
-
Constructor Details
-
LabelOp
-
-
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.
-
buildDimensions
-
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
-
equals
-
hashCode
-