APIdia Launch Partner
Top Inners Fields Constructors Methods
javafx.scene.shape

pack-priv final Class PredefinedMeshManager

extends Object
Class Inheritance
Imports
java.util.HashMap, .Map, java.lang.ref.SoftReference, javafx.scene.shape.Shape3D.Key

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
private static class
private static class

Field Summary

Modifier and TypeField and Description
private PredefinedMeshManager.TriangleMeshCache
private PredefinedMeshManager.TriangleMeshCache
private static final int
private static final PredefinedMeshManager
private static final float
private PredefinedMeshManager.TriangleMeshCache

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv synchronized void
pack-priv synchronized TriangleMesh
getBoxMesh(float w, float h, float d, Shape3D.Key key)

pack-priv synchronized TriangleMesh
getCylinderMesh(float h, float r, int div, Shape3D.Key key)

pack-priv static PredefinedMeshManager
pack-priv synchronized TriangleMesh
getSphereMesh(float r, int div, Shape3D.Key key)

pack-priv synchronized void
pack-priv synchronized void
pack-priv synchronized void
pack-priv synchronized void
pack-priv void
test_clearCaches()

Note

The only user of this method is in unit test: PredefinedMeshManagerTest.

pack-priv int
test_getBoxCacheSize()

Note

The only user of this method is in unit test: PredefinedMeshManagerTest.

pack-priv int
test_getCylinderCacheSize()

Note

The only user of this method is in unit test: PredefinedMeshManagerTest.

pack-priv int
test_getSphereCacheSize()

Note

The only user of this method is in unit test: PredefinedMeshManagerTest.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

boxCacheback to summary
private PredefinedMeshManager.TriangleMeshCache boxCache
cylinderCacheback to summary
private PredefinedMeshManager.TriangleMeshCache cylinderCache
INITAL_CAPACITYback to summary
private static final int INITAL_CAPACITY
INSTANCEback to summary
private static final PredefinedMeshManager INSTANCE
LOAD_FACTORback to summary
private static final float LOAD_FACTOR
sphereCacheback to summary
private PredefinedMeshManager.TriangleMeshCache sphereCache

Constructor Detail

PredefinedMeshManagerback to summary
private PredefinedMeshManager()

Method Detail

disposeback to summary
pack-priv synchronized void dispose()
getBoxMeshback to summary
pack-priv synchronized TriangleMesh getBoxMesh(float w, float h, float d, Shape3D.Key key)
getCylinderMeshback to summary
pack-priv synchronized TriangleMesh getCylinderMesh(float h, float r, int div, Shape3D.Key key)
getInstanceback to summary
pack-priv static PredefinedMeshManager getInstance()
getSphereMeshback to summary
pack-priv synchronized TriangleMesh getSphereMesh(float r, int div, Shape3D.Key key)
invalidateBoxMeshback to summary
pack-priv synchronized void invalidateBoxMesh(Shape3D.Key key)
invalidateCylinderMeshback to summary
pack-priv synchronized void invalidateCylinderMesh(Shape3D.Key key)
invalidateSphereMeshback to summary
pack-priv synchronized void invalidateSphereMesh(Shape3D.Key key)
printStatsback to summary
pack-priv synchronized void printStats()
test_clearCachesback to summary
pack-priv void test_clearCaches()

Note

The only user of this method is in unit test: PredefinedMeshManagerTest.

test_getBoxCacheSizeback to summary
pack-priv int test_getBoxCacheSize()

Note

The only user of this method is in unit test: PredefinedMeshManagerTest.

test_getCylinderCacheSizeback to summary
pack-priv int test_getCylinderCacheSize()

Note

The only user of this method is in unit test: PredefinedMeshManagerTest.

test_getSphereCacheSizeback to summary
pack-priv int test_getSphereCacheSize()

Note

The only user of this method is in unit test: PredefinedMeshManagerTest.

javafx.scene.shape back to summary

private final Class PredefinedMeshManager.BoxCacheLoader

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final PredefinedMeshManager.TriangleMeshCache

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
private static final PredefinedMeshManager.TriangleMeshCache INSTANCE

Constructor Detail

BoxCacheLoaderback to summary
private BoxCacheLoader()
javafx.scene.shape back to summary

private final Class PredefinedMeshManager.CylinderCacheLoader

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final PredefinedMeshManager.TriangleMeshCache

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
private static final PredefinedMeshManager.TriangleMeshCache INSTANCE

Constructor Detail

CylinderCacheLoaderback to summary
private CylinderCacheLoader()
javafx.scene.shape back to summary

private final Class PredefinedMeshManager.SphereCacheLoader

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final PredefinedMeshManager.TriangleMeshCache

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
private static final PredefinedMeshManager.TriangleMeshCache INSTANCE

Constructor Detail

SphereCacheLoaderback to summary
private SphereCacheLoader()
javafx.scene.shape back to summary

private Class PredefinedMeshManager.TriangleMeshCache

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv Map<Shape3D.Key, SoftReference<TriangleMesh>>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private void
private void
private TriangleMesh
private void
private void
private void
private int
size()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cacheback to summary
pack-priv Map<Shape3D.Key, SoftReference<TriangleMesh>> cache

Constructor Detail

TriangleMeshCacheback to summary
private TriangleMeshCache()

Method Detail

cleanCacheback to summary
private void cleanCache()
clearback to summary
private void clear()
getback to summary
private TriangleMesh get(Shape3D.Key key)
invalidateMeshback to summary
private void invalidateMesh(Shape3D.Key key)
printStatsback to summary
private void printStats(String name)
putback to summary
private void put(Shape3D.Key key, TriangleMesh mesh)
sizeback to summary
private int size()