S - the generic typeNF - the generic typepublic abstract class AbstractFxSpriteFactory<S,NF extends AbstractFxSpriteFactory<S,NF>> extends Object implements FxSpriteFactory<S>
| Constructor and Description |
|---|
AbstractFxSpriteFactory() |
| Modifier and Type | Method and 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 a scale factorpublic double getOpacity()
public void setOpacity(double aOpacity)
aOpacity - the new opacitypublic NF withOpacity(double aOpacity)
aOpacity - the a opacityprotected static double getScaleX(javafx.scene.Node aSprite,
FxCheckerboardViewer<?,?> aCheckerboard)
aSprite - the a spriteaCheckerboard - the a checkerboardprotected static double getScaleY(javafx.scene.Node aSprite,
FxCheckerboardViewer<?,?> aCheckerboard)
aSprite - the a spriteaCheckerboard - the a checkerboardprotected javafx.scene.Node initSprite(javafx.scene.Node aSprite,
FxCheckerboardViewer<?,?> aCheckerboard)
aSprite - the a spriteaCheckerboard - the a checkerboardCopyright © 2018. All rights reserved.