Kanzi Java API
Scene Class Reference
Inheritance diagram for Scene:
[legend]
Collaboration diagram for Scene:
[legend]

Static Public Member Functions

static Scene create (Domain domain, String name)
 Constructs a Scene node. More...
 
static Metaclass getStaticMetaclass ()
 Returns the metaclass of this class. More...
 
- Static Public Member Functions inherited from Node3D
static Metaclass getStaticMetaclass ()
 Returns the metaclass of this class. More...
 
static boolean isUnboundedLayoutSize (Vector3 layoutSize)
 Indicates whether a layout size is an unbound layout size. More...
 
static boolean isValidLayoutSize (Vector3 size)
 Indicates whether a size is valid layout size. More...
 
static float layoutUp ()
 
static Vector3 replaceUnboundedLayoutSize (Vector3 layoutSize, Vector3 resetSize)
 Replaces any element of a layout size with appropriate element of the reset size if it is unbounded and returns the size. More...
 
static Vector3 replaceUnboundedLayoutSizeWithZero (Vector3 layoutSize)
 Replaces any element of a layout size with zero if it is unbounded and returns the size. More...
 
static Vector3 unboundedLayoutSize ()
 Returns an unbounded layout size. More...
 
- Static Public Member Functions inherited from Node
static Metaclass getStaticMetaclass ()
 Returns the metaclass of this class. More...
 
- Static Public Member Functions inherited from KanziObject
static Metaclass getStaticMetaclass ()
 Returns the metaclass of this class. More...
 

Additional Inherited Members

- Public Member Functions inherited from Node3D
void addChild (Node3D node)
 Adds a child node. More...
 
void arrange ()
 Arranges this node.
 
void centeredArrange (Vector3 actualSize)
 Default implementation of arrange for a layout that accommodates all children at its center.
 
Vector3 centeredMeasure (Vector3 availableSize)
 Default implementation of measure for a layout that accommodates all children at its center.
 
void close ()
 
Vector3 getActualSize ()
 Gets actual size. More...
 
Vector3 getAllocatedOffset ()
 Get allocated offset of an object.
 
Vector3 getAllocatedSize ()
 Gets allocated size. More...
 
Matrix4x4 getArrangeTransform ()
 Get arrange transform. More...
 
Node3D getChild (int index)
 Returns a child from given index from node. More...
 
int getChildCount ()
 Gets the number of children of the node. More...
 
int getChildIndex (Node child)
 Returns the index of a child in a node. More...
 
Vector3 getCoreDesiredSize ()
 Get core desired size of an object. More...
 
Vector3 getDesiredSize ()
 Gets desired size. More...
 
Node3D getFaceToCameraTarget ()
 
Matrix4x4 getFinalTransformation ()
 Gets the value of #FinalTransformationProperty. More...
 
Vector3 getLayoutBoundingBoxMax ()
 Get bounding box size max corner for an object.
 
Vector3 getLayoutBoundingBoxMin ()
 Get bounding box size min corner for an object.
 
SRTValue3D getLayoutTransformation ()
 Gets the value of #LayoutTransformationProperty. More...
 
Node3D getLookAtTarget ()
 
Node3D getOrientationConstraintTarget ()
 
Vector3 getPivotOffset ()
 Get pivot offset of an object.
 
Node3D getPositionConstraintTarget ()
 
SRTValue3D getRenderTransformation ()
 Gets the value of #RenderTransformationProperty. More...
 
Vector3 getSize ()
 Returns the size of object node. More...
 
Vector3 getStretchScale ()
 Get stretch scale of an object.
 
boolean hasChild (Node child)
 Returns whether or not the child exists. More...
 
void insertChild (int index, Node3D child)
 Adds a child node for object node to given index. More...
 
boolean isPrimitiveLayout ()
 Indicates whether the node has primitive layout behavior. More...
 
Iterable< Node3DiterateChildren ()
 Gets an Iterable object used to iterate the Node3D children. More...
 
Iterable< Node3DiterateChildrenReverse ()
 Gets an Reverse Iterable object used to iterate the Node3D children. More...
 
void layout ()
 Does layout pass starting from this node and iterating recursively all of its children. More...
 
void lookAt (Vector3 position, Vector3 lookAtPoint, Vector3 upVector)
 Sets node transformation so that the node is in a given position looking at the given point. More...
 
void measure (Vector3 availableSize)
 Measures this node. More...
 
void moveToBack ()
 Repositions the node to the beginning of its parent's children, so that it is drawn first.
 
void moveToFront ()
 Repositions the node to the end of its parent's children, so that it is drawn last.
 
Vector3 nGetMaximumBoundingBoxCoordinates ()
 Returns the minimum coordinates for object nodes bounding volume. More...
 
Vector3 nGetMinimumBoundingBoxCoordinates ()
 Returns the maximum coordinates for object nodes bounding volume. More...
 
void removeAllChildren ()
 Removes all child nodes.
 
void removeChild (Node3D node)
 Removes child node. More...
 
void removeChild (int index)
 Removes child node at specified index. More...
 
void setActualSize (Vector3 actualSize)
 Sets actual size. More...
 
void setAllocatedOffset (Vector3 allocatedOffset)
 Set allocated offset for an object.
 
void setAllocatedSize (Vector3 allocatedSize)
 Sets allocated size. More...
 
void setArrangeTransform (Matrix4x4 transform)
 Set arrange transform. More...
 
void setAutoDepth ()
 Sets node to automatically determine depth.
 
void setAutoSize ()
 Sets node to automatically determine width, height and depth.
 
void setCoreDesiredSize (Vector3 value)
 Set core desired size for an object. More...
 
void setDesiredSize (Vector3 size)
 Sets desired size. More...
 
void setFinalTransformation (Matrix4x4 value)
 Sets the value of #FinalTransformationProperty. More...
 
void setLayoutBoundingBoxSize (Vector3 bboxMin, Vector3 bboxMax)
 Set bounding box size for an object.
 
void setLayoutTransformation (SRTValue3D value)
 Sets the value of #LayoutTransformationProperty. More...
 
void setPivotOffset (Vector3 pivotOffset)
 Set pivot offset for an object.
 
void setRenderTransformation (SRTValue3D value)
 Sets the value of #RenderTransformationProperty. More...
 
void setSize (float width, float height, float depth)
 Sets size properties of the node. More...
 
void setStretchScale (Vector3 stretchScale)
 Set stretch scale for an object.
 
- Public Member Functions inherited from Node
Resource acquireResource (String resourceId) throws ObjectNotFoundException
 Acquires a resource from the node or the node's closest ancestor having the resource id in the resource dictionary. More...
 
ResourceManager.AcquireTask acquireResourcesAsync (String resourceId, ResourceManager.AcquireTask.Callback callback)
 Posts an asynchronous task to acquire a resource. More...
 
boolean addAbstractChild (Node child)
 Adds a node as child of this node. More...
 
void addAnonymousResource (Resource resource)
 Adds anonymous resource (such as style) for object node resources. More...
 
MessageSubscriptionToken addMessageFilter (MessageType messageType, MessageSubscriptionFunction messageHandlerFunction)
 Adds a message filter where the filter is a function. More...
 
MessageSubscriptionToken addMessageHandler (MessageType messageType, MessageSubscriptionFunction messageHandlerFunction)
 Adds a message handler where the handler is a function. More...
 
MessageSubscriptionToken addMessageHandler (MessageType messageType, MessageSubscriptionFunction messageHandlerFunction, Node messageSourceFilter)
 Adds a message handler where the handler is a function. More...
 
void addNodeComponent (NodeComponent component)
 Transfers the ownership of a node component to an object node. More...
 
void addNodeComponentWithOwner (NodeComponent component, KanziObject owner)
 Transfers the ownership of a node component to an object node and sets the owner of the node component. More...
 
void addResource (String resourceId, String resourceUrl)
 Adds a resource manager resource to an object node. More...
 
MessageSubscriptionToken addTunnelingMessageFilter (MessageType messageType, MessageSubscriptionFunction messageHandlerFunction)
 Adds a message filter where the filter is a function. More...
 
MessageSubscriptionToken addTunnelingMessageHandler (MessageType messageType, MessageSubscriptionFunction messageHandlerFunction, Node messageSourceFilter)
 Adds a message handler where the handler is a function and you explicitly define the accepted source. More...
 
void attachRecursive ()
 Attaches a node and its children recursively.
 
boolean containsResource (String resourceId)
 Returns if object node resource dictionary contains the resource with given ID. More...
 
void detachRecursive ()
 Detaches a node and its children recursively.
 
void dispatchMessage (MessageType messageType, MessageArguments arguments)
 Dispatches a message from this node with specified arguments. More...
 
String findResourceUrl (String resourceId)
 Tries to find Resource URL for Resource ID from this node. More...
 
Node getAbstractChild (int index)
 Returns node at given child index. More...
 
int getAbstractChildCount ()
 Returns number of child nodes. More...
 
int getAbstractChildIndex (Node node)
 Returns index of given node in list of child nodes. More...
 
float getActualDepth ()
 Gets the value of #ActualDepthProperty. More...
 
float getActualHeight ()
 Gets the value of #ActualHeightProperty. More...
 
float getActualWidth ()
 Gets the value of #ActualWidthProperty. More...
 
float getDepth ()
 Gets the value of #DepthProperty. More...
 
Vector2 getDepthMargin ()
 Gets the value of #DepthMarginProperty. More...
 
float getHeight ()
 Gets the value of #HeightProperty. More...
 
Vector2 getHorizontalMargin ()
 Gets the value of #HorizontalMarginProperty. More...
 
String getLocale ()
 Gets the value of #LocaleProperty. More...
 
String getName ()
 Gets the value of #NameProperty. More...
 
float getOpacity ()
 Gets the value of #OpacityProperty. More...
 
Node getParent ()
 Gets parent of this node. More...
 
String getPath ()
 Gets the value of #PathProperty. More...
 
Resource getStateManager ()
 Gets the value of #StateManagerProperty. More...
 
Resource getStyle ()
 Gets the value of #StyleProperty. More...
 
Vector2 getVerticalMargin ()
 Gets the value of #VerticalMarginProperty. More...
 
float getWidth ()
 Gets the value of #WidthProperty. More...
 
boolean isAttached ()
 Checks if node is attached to ui tree. More...
 
boolean isAttaching ()
 Checks if node is in the process of attaching to ui tree. More...
 
boolean isClipChildren ()
 Gets the value of #ClipChildrenProperty. More...
 
boolean isDetaching ()
 Checks if node is in the process of getting detached from ui tree. More...
 
boolean isEffectivelyEnabled ()
 Returns whether a node and its ancestor nodes are enabled. More...
 
boolean isEffectivelyFocusable ()
 Returns whether a node and its ancestor focus scope nodes are focusable. More...
 
boolean isEffectivelyVisible ()
 Returns whether a node and its ancestor nodes are visible. More...
 
boolean isEnabled ()
 Gets the value of #EnabledProperty. More...
 
boolean isFocusable ()
 Gets the value of the #FocusableProperty. More...
 
boolean isFocused ()
 Sets whether a node is an active focus node and can receive keyboard messages. More...
 
boolean isHitTestable ()
 Gets the value of #HitTestableProperty. More...
 
boolean isHitTestableContainer ()
 Gets the value of #HitTestableContainerProperty. More...
 
boolean isHover ()
 Gets the value of #HoverProperty. More...
 
boolean isInitialized ()
 Checks if initialize() has been called. More...
 
boolean isNamed (String name)
 Checks if node has a given name. More...
 
boolean isVisible ()
 Gets the value of #VisibleProperty. More...
 
Iterable< NodeComponentiterateNodeComponents ()
 Gets an Iterable object used to iterate the Node Components. More...
 
NodeComponent lookupNodeComponentByName (String name)
 Look up a Node Component bu Name. More...
 
KanziObject lookupObject (String path)
 Returns a KanziObject by looking it up with specified path or alias. More...
 
boolean removeAbstractChild (Node child)
 Removes child node from this node. More...
 
void removeAnonymousResource (Resource resource)
 Removes anonymous resource from object node resources. More...
 
void removeMessageHandler (MessageSubscriptionToken token)
 Removes a message subscription. More...
 
void removeNodeComponent (NodeComponent component)
 Removes the ownership of a node component from an object node. More...
 
void removeNodeComponentWithOwner (KanziObject owner)
 Removes all node component bindings with the specified owner. More...
 
void removeResource (String resourceId)
 Removes a resource with given ID from object node resource dictionary. More...
 
void setActualDepth (float value)
 Sets the value of #ActualDepthProperty. More...
 
void setActualHeight (float value)
 Sets the value of #ActualHeightProperty. More...
 
void setActualWidth (float value)
 Sets the value of #ActualWidthProperty. More...
 
void setAutoHeight ()
 Sets node to automatically determine height.
 
void setAutoWidth ()
 Sets node to automatically determine width.
 
void setClipChildren (boolean value)
 Sets the value of #ClipChildrenProperty. More...
 
void setDepth (float value)
 Sets the value of #DepthProperty. More...
 
void setDepthMargin (Vector2 value)
 Sets the value of #DepthMarginProperty. More...
 
void setEnabled (boolean value)
 Sets the value of the #EnabledProperty. More...
 
void setFocusable (boolean value)
 Sets the value of the #FocusableProperty. More...
 
void setFocused (boolean value)
 Sets the value of the #FocusedProperty. More...
 
void setHeight (float value)
 Sets the value of #HeightProperty. More...
 
void setHitTestable (boolean value)
 Sets the value of #HitTestableProperty. More...
 
void setHitTestableContainer (boolean value)
 Sets the value of #HitTestableContainerProperty. More...
 
void setHorizontalMargin (Vector2 value)
 Sets the value of #HorizontalMarginProperty. More...
 
void setHover (boolean value)
 Sets the value of #HoverProperty. More...
 
void setLocale (String value)
 Sets the value of #LocaleProperty. More...
 
void setName (String name)
 Sets the value of #NameProperty. More...
 
void setOpacity (float value)
 Sets the value of #OpacityProperty. More...
 
void setStateManager (Resource value)
 Sets the value of #StateManagerProperty. More...
 
void setStyle (Resource value)
 Sets the value of #StyleProperty. More...
 
void setVerticalMargin (Vector2 value)
 Sets the value of #VerticalMarginProperty. More...
 
void setVisible (boolean value)
 Sets the value of #VisibleProperty. More...
 
void setWidth (float value)
 Sets the value of #WidthProperty. More...
 
Resource tryAcquireResource (String resourceId)
 Acquires a resource from the node or the node's closest ancestor having the resource id in the resource dictionary. More...
 
Node trySetFocus ()
 Tries to move the focus on this node. More...
 
- Public Member Functions inherited from KanziObject
boolean equals (Object object)
 
Domain getDomain ()
 Returns the domain the object belongs to. More...
 
Metaclass getDynamicMetaclass ()
 Returns the metaclass of the dynamic type of the object. More...
 
boolean isStale ()
 Test if the object is stale i.e. More...
 
void releaseOwnership ()
 Release ownership of the backing native object from this object. More...
 
void removeLocalValue (PropertyType propertyType)
 Removes the local value associated with the property. More...
 
boolean takeOwnership ()
 Take ownership of the backing native object in this object. More...
 
- Public Attributes inherited from Node
DynamicPropertyType< Float > ActualDepthProperty
 
DynamicPropertyType< Float > ActualHeightProperty
 
DynamicPropertyType< Float > ActualWidthProperty
 
DynamicPropertyType< Boolean > ClipChildrenProperty
 
DynamicPropertyType< Integer > ContentStretchProperty
 
DynamicPropertyType< Boolean > CreatedFromKZBProperty
 
DynamicPropertyType< Integer > DepthAlignmentProperty
 
DynamicPropertyType< Vector2DepthMarginProperty
 
DynamicPropertyType< Float > DepthProperty = new DynamicPropertyType<>("Node.Depth", Float.class)
 
DynamicPropertyType< Boolean > EnableClickProperty
 
DynamicPropertyType< Boolean > EnabledProperty
 
DynamicPropertyType< Boolean > EnableMultiClickProperty
 
DynamicPropertyType< Boolean > FocusableProperty
 
DynamicPropertyType< Boolean > FocusedProperty
 
DynamicPropertyType< ResourceFontFamilyProperty
 
DynamicPropertyType< Float > HeightProperty
 
DynamicPropertyType< Boolean > HitTestableContainerProperty
 
DynamicPropertyType< Boolean > HitTestableProperty
 
DynamicPropertyType< Integer > HorizontalAlignmentProperty
 
DynamicPropertyType< Vector2HorizontalMarginProperty
 
DynamicPropertyType< Boolean > HoverProperty
 
DynamicPropertyType< String > LocaleProperty
 
DynamicPropertyType< String > NameProperty = new DynamicPropertyType<>("Node.Name", String.class)
 
AbstractMetaclass NodeMetaclass = new AbstractMetaclass("Kanzi.Node")
 
DynamicPropertyType< Float > OpacityProperty
 
DynamicPropertyType< String > PathProperty = new DynamicPropertyType<>("Node.Path", String.class)
 
DynamicPropertyType< Float > Projection2DTo3DScaleProperty
 
DynamicPropertyType< ResourceStateManagerProperty
 
DynamicPropertyType< ResourceStyleProperty
 
DynamicPropertyType< Integer > VerticalAlignmentProperty
 
DynamicPropertyType< Vector2VerticalMarginProperty
 
DynamicPropertyType< Float > VisibleAmountInParentProperty
 
DynamicPropertyType< Boolean > VisibleProperty
 
DynamicPropertyType< Float > WidthProperty = new DynamicPropertyType<>("Node.Width", Float.class)
 
- Public Attributes inherited from Node3D
DynamicPropertyType< Matrix4x4FinalTransformationProperty
 
DynamicPropertyType< Float > FrustumCullMarginProperty
 
DynamicPropertyType< SRTValue3DLayoutTransformationProperty
 
AbstractMetaclass Node3DMetaclass = new AbstractMetaclass("Kanzi.Node3D")
 
DynamicPropertyType< SRTValue3DRenderTransformationProperty
 
- Public Attributes inherited from Scene
DynamicPropertyType< String > CameraProperty
 
DynamicPropertyType< String > HitTestCameraProperty
 
AbstractMetaclass SceneMetaclass = new AbstractMetaclass("Kanzi.Scene")
 
- Protected Member Functions inherited from Node3D
 Node3D (Domain domain, String name, Metaclass metaclass)
 Creates a new node of a type derived from Node3D. More...
 
void arrangeOverride (Vector3 actualSize)
 
void initialize ()
 Initializes the Node3D. More...
 
Vector3 measureOverride (Vector3 availableSize)
 
void onAttached ()
 
void onDetached ()
 
void onNodePropertyChanged (AbstractPropertyType propertyType, PropertyNotificationReason reason)
 

Member Function Documentation

static Scene create ( Domain  domain,
String  name 
)
static

Constructs a Scene node.

Parameters
domainUI Domain where this node belongs.
nameName of the text block node.
static Metaclass getStaticMetaclass ( )
static

Returns the metaclass of this class.

Returns
Static instance of metaclass of this node.