public class DefaultOptimizationRule extends java.lang.Object implements OptimizationRule
min(width,height)
to optimize,e.g., to decide whether to
visualize the children of the pane (see OptimizableContentPane
).Type | Property and Description |
---|---|
javafx.beans.property.BooleanProperty |
attachNodes |
javafx.beans.property.DoubleProperty |
minSceneArea |
javafx.beans.property.DoubleProperty |
minSceneDimension |
Constructor and Description |
---|
DefaultOptimizationRule() |
Modifier and Type | Method and Description |
---|---|
boolean |
attached(OptimizableContentPane p,
javafx.scene.transform.Transform t)
Indicates whether the children of the pane shall be attached to the scene graph.
|
javafx.beans.property.BooleanProperty |
attachNodesProperty() |
double |
getMinSceneArea()
Returns the minimum scene area.
|
double |
getMinSceneDimension()
Returns the minimum scene dimension.
|
boolean |
isAttachNodes()
Indicates whether this optimization shall attach/detach nodes from the
scene graph.
|
javafx.beans.property.DoubleProperty |
minSceneAreaProperty() |
javafx.beans.property.DoubleProperty |
minSceneDimensionProperty() |
void |
setAttachNodes(boolean attach)
Defines whether this optimization shall attach/detach nodes from the
scene graph.
|
void |
setMinSceneArea(double s)
Defines the minimum scene area.
|
void |
setMinSceneDimension(double d)
Defines the minimum scene dimension.
|
boolean |
visible(OptimizableContentPane p,
javafx.scene.transform.Transform t)
Indicates whether the children of the pane shall be visualized.
|
public boolean visible(OptimizableContentPane p, javafx.scene.transform.Transform t)
OptimizationRule
visible
in interface OptimizationRule
p
- panet
- current transformationtrue
if the children shall be
visible; false
otherwisepublic boolean attached(OptimizableContentPane p, javafx.scene.transform.Transform t)
OptimizationRule
attached
in interface OptimizationRule
p
- panet
- current transformationtrue
if the children shall be
attached to the scene graph; false
otherwisepublic javafx.beans.property.DoubleProperty minSceneAreaProperty()
public void setMinSceneArea(double s)
s
- public double getMinSceneArea()
public javafx.beans.property.DoubleProperty minSceneDimensionProperty()
public void setMinSceneDimension(double d)
min(width,height)
is less than the specified vaule the
children of the pane will be invisible.d
- minimum scene dimensionpublic double getMinSceneDimension()
public javafx.beans.property.BooleanProperty attachNodesProperty()
public void setAttachNodes(boolean attach)
attach
- the state to setpublic boolean isAttachNodes()
true
if nodes shall be attached/detached;
false
otherwise