S
- the generic typeNF
- the generic typeFxSpriteFactory<S>
, org.refcodes.checkerboard.SpriteFactory<javafx.scene.Node,S,FxCheckerboardViewer<?,S>>
, org.refcodes.factory.ContextLookupFactory<javafx.scene.Node,S,FxCheckerboardViewer<?,S>>
public abstract class AbstractFxSpriteFactory<S,NF extends AbstractFxSpriteFactory<S,NF>> extends Object implements FxSpriteFactory<S>
Constructor | Description |
---|---|
AbstractFxSpriteFactory() |
Modifier and Type | Method | Description |
---|---|---|
double |
getOpacity() |
Gets the opacity.
|
double |
getScaleFactor() |
Gets the scale factor.
|
protected static double |
getScaleX(javafx.scene.Node aSprite,
FxCheckerboardViewer<?,?> aCheckerboard) |
Gets the scale X.
|
protected static double |
getScaleY(javafx.scene.Node aSprite,
FxCheckerboardViewer<?,?> aCheckerboard) |
Gets the scale Y.
|
protected javafx.scene.Node |
initSprite(javafx.scene.Node aSprite,
FxCheckerboardViewer<?,?> aCheckerboard) |
Inits the sprite.
|
void |
setOpacity(double aOpacity) |
Sets the opacity.
|
void |
setScaleFactor(double aScaleFactor) |
Sets the scale factor.
|
NF |
withOpacity(double aOpacity) |
With opacity.
|
NF |
withScaleFactor(double aScaleFactor) |
With scale factor.
|
public double getScaleFactor()
public void setScaleFactor(double aScaleFactor)
aScaleFactor
- the new scale factorpublic NF withScaleFactor(double aScaleFactor)
aScaleFactor
- the scale factorpublic double getOpacity()
public void setOpacity(double aOpacity)
aOpacity
- the new opacitypublic NF withOpacity(double aOpacity)
aOpacity
- the opacityprotected static double getScaleX(javafx.scene.Node aSprite, FxCheckerboardViewer<?,?> aCheckerboard)
aSprite
- the spriteaCheckerboard
- the checkerboardprotected static double getScaleY(javafx.scene.Node aSprite, FxCheckerboardViewer<?,?> aCheckerboard)
aSprite
- the spriteaCheckerboard
- the checkerboardprotected javafx.scene.Node initSprite(javafx.scene.Node aSprite, FxCheckerboardViewer<?,?> aCheckerboard)
aSprite
- the spriteaCheckerboard
- the checkerboardCopyright © 2018. All rights reserved.