public class DepthGuard extends java.lang.Object implements RenderGuard
| Constructor and Description |
|---|
DepthGuard(int minDepthIn,
int maxDepthIn)
Public constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRender(int depth)
Returns true if we are allowed to render at the given depth.
|
boolean |
canRender(NavNode node,
int depth)
method called to decide if to render
|
public DepthGuard(int minDepthIn,
int maxDepthIn)
minDepthIn - the minimum render depthmaxDepthIn - the maximum render depthpublic boolean canRender(int depth)
depth - depth in the tree to determine if it is renderable.public boolean canRender(NavNode node, int depth)
canRender in interface RenderGuardnode - the current NavNodedepth - the current depth