org.ogre4j
Interface IOverlayElement

All Superinterfaces:
IAllocatedObject<ISceneObjAllocPolicy>, INativeObject, IRenderable, ISceneObjAllocatedObject, IStringInterface
All Known Subinterfaces:
IBorderPanelOverlayElement, IOverlayContainer, IPanelOverlayElement, ITextAreaOverlayElement
All Known Implementing Classes:
BorderPanelOverlayElement, OverlayContainer, OverlayElement, PanelOverlayElement, TextAreaOverlayElement

public interface IOverlayElement
extends INativeObject, IStringInterface, IRenderable, ISceneObjAllocatedObject


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ogre4j.IRenderable
IRenderable.ICustomParameterMap, IRenderable.IRenderSystemData, IRenderable.IVisitor
 
Method Summary
 void _getClippingRegion(IRectangle clippingRegion)
          Gets the clipping region of the element
 float _getDerivedLeft()
          Gets the 'left' position as derived from own left and that of parents.
 float _getDerivedTop()
          Gets the 'top' position as derived from own left and that of parents.
 float _getHeight()
          Gets the height of this element in relation to the screen (where 1.0 = screen height)
 float _getLeft()
          Gets the left of this element in relation to the screen (where 0 = far left, 1.0 = far right)
 float _getRelativeHeight()
          Gets the 'height' as derived from own height and metrics mode.
 float _getRelativeWidth()
          Gets the 'width' as derived from own width and metrics mode.
 float _getTop()
          Gets the top of this element in relation to the screen (where 0 = far left, 1.0 = far right)
 float _getWidth()
          Gets the width of this element in relation to the screen (where 1.0 = screen width)
 void _notifyParent(IOverlayContainer parent, IOverlay overlay)
          Internal method for notifying the GUI element of it's parent and ultimate overlay.
 void _notifyViewport()
          Internal method to notify the element when the viewport of parent overlay has changed.
 void _notifyWorldTransforms(IMatrix4 xform)
          Internal method to notify the element when it's world transform of parent overlay has changed.
 int _notifyZOrder(int newZOrder)
          Internal method to notify the element when Zorder of parent overlay has changed.
 void _positionsOutOfDate()
          Tell the object to recalculate
 void _setDimensions(float width, float height)
          Sets the width and height of this element in relation to the screen (where 1.0 = screen width)
 void _setHeight(float height)
          Sets the height of this element in relation to the screen (where 1.0 = screen width)
 void _setLeft(float left)
          Sets the left of this element in relation to the screen (where 1.0 = screen width)
 void _setParent(IOverlayContainer parent)
           
 void _setPosition(float left, float top)
          Sets the left and top of this element in relation to the screen (where 1.0 = screen width)
 void _setTop(float top)
          Sets the top of this element in relation to the screen (where 1.0 = screen width)
 void _setWidth(float width)
          Sets the width of this element in relation to the screen (where 1.0 = screen width)
 void _update()
          Internal method to update the element based on transforms applied.
 void _updateFromParent()
          Updates this elements transform based on it's parent.
 void _updateRenderQueue(IRenderQueue queue)
          Internal method to put the contents onto the render queue.
 IOverlayElement clone(java.lang.String instanceName)
           
 boolean contains(float x, float y)
          Returns true if xy is within the constraints of the component
 void copyFromTemplate(IOverlayElement templateOverlay)
           
 IOverlayElement findElementAt(float x, float y)
          Returns true if xy is within the constraints of the component
 IUTFString getCaption()
          Gets the caption for this element.
 IColourValue getColour()
          Gets the colour for this element.
 float getHeight()
          Gets the height of this element in relation to the screen (where 1.0 = screen height)
 GuiHorizontalAlignment getHorizontalAlignment()
          Gets the horizontal alignment for this element.
 float getLeft()
          Gets the left of this element in relation to the screen (where 0 = far left, 1.0 = far right)
 ILightList getLights()
          Gets a list of lights, ordered relative to how close they are to this renderable.
 IMaterialPtr getMaterial()
          See
 java.lang.String getMaterialName()
          Gets the name of the material this element uses.
 GuiMetricsMode getMetricsMode()
          Retrieves the current settings of how the element metrics are interpreted.
 java.lang.String getName()
          Gets the name of this overlay.
 IOverlayContainer getParent()
          Returns the parent container.
 IOverlayElement getSourceTemplate()
           
 float getSquaredViewDepth(ICamera cam)
          Overridden from
 float getTop()
          Gets the top of this element in relation to the screen (where 0 = top, 1.0 = bottom)
 java.lang.String getTypeName()
          Gets the type name of the element.
 GuiVerticalAlignment getVerticalAlignment()
          Gets the vertical alignment for this element.
 float getWidth()
          Gets the width of this element in relation to the screen (where 1.0 = screen width)
 void getWorldTransforms(IMatrix4 xform)
          See
 int getZOrder()
          Returns the zOrder of the element
 void hide()
          Hides this element if it was visible.
 void initialise()
          Initialise gui element
 boolean isCloneable()
           
 boolean isContainer()
          returns false as this class is not a container type
 boolean isEnabled()
           
 boolean isKeyEnabled()
           
 boolean isVisible()
          Returns whether or not the element is visible.
 void setCaption(IUTFString text)
          Sets the caption on elements that support it.
 void setCloneable(boolean c)
           
 void setColour(IColourValue col)
          Sets the colour on elements that support it.
 void setDimensions(float width, float height)
          Sets the dimensions of this element in relation to the screen (1.0 = screen width/height).
 void setEnabled(boolean b)
           
 void setHeight(float height)
          Sets the height of this element in relation to the screen (where 1.0 = screen height)
 void setHorizontalAlignment(GuiHorizontalAlignment gha)
          Sets the horizontal origin for this element.
 void setLeft(float left)
          Sets the left of this element in relation to the screen (where 0 = far left, 1.0 = far right)
 void setMaterialName(java.lang.String matName)
          Sets the name of the material this element will use.
 void setMetricsMode(GuiMetricsMode gmm)
          Tells this element how to interpret the position and dimension values it is given.
 void setPosition(float left, float top)
          Sets the position of the top-left corner of the element, relative to the screen size (1.0 = screen width / height)
 void setTop(float Top)
          Sets the top of this element in relation to the screen (where 0 = top, 1.0 = bottom)
 void setVerticalAlignment(GuiVerticalAlignment gva)
          Sets the vertical origin for this element.
 void setWidth(float width)
          Sets the width of this element in relation to the screen (where 1.0 = screen width)
 void show()
          Shows this element if it was hidden.
 void visitRenderables(IRenderable.IVisitor visitor, boolean debugRenderables)
           
 
Methods inherited from interface org.ogre4j.IStringInterface
copyParametersTo, getParamDictionary_const, getParamDictionary, getParameter, getParameters, setParameter, setParameterList
 
Methods inherited from interface org.ogre4j.IRenderable
_updateCustomGpuParameter, getCastsShadows, getCustomParameter, getNumWorldTransforms, getPolygonModeOverrideable, getRenderOperation, getRenderSystemData, getTechnique, getUseIdentityProjection, getUseIdentityView, getUserAny, postRender, preRender, setCustomParameter, setPolygonModeOverrideable, setRenderSystemData, setUseIdentityProjection, setUseIdentityView, setUserAny
 
Methods inherited from interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Method Detail

initialise

void initialise()
Initialise gui element


getName

java.lang.String getName()
Gets the name of this overlay.


show

void show()
Shows this element if it was hidden.


hide

void hide()
Hides this element if it was visible.


isVisible

boolean isVisible()
Returns whether or not the element is visible.


isEnabled

boolean isEnabled()

setEnabled

void setEnabled(boolean b)

setDimensions

void setDimensions(float width,
                   float height)
Sets the dimensions of this element in relation to the screen (1.0 = screen width/height).


setPosition

void setPosition(float left,
                 float top)
Sets the position of the top-left corner of the element, relative to the screen size (1.0 = screen width / height)


setWidth

void setWidth(float width)
Sets the width of this element in relation to the screen (where 1.0 = screen width)


getWidth

float getWidth()
Gets the width of this element in relation to the screen (where 1.0 = screen width)


setHeight

void setHeight(float height)
Sets the height of this element in relation to the screen (where 1.0 = screen height)


getHeight

float getHeight()
Gets the height of this element in relation to the screen (where 1.0 = screen height)


setLeft

void setLeft(float left)
Sets the left of this element in relation to the screen (where 0 = far left, 1.0 = far right)


getLeft

float getLeft()
Gets the left of this element in relation to the screen (where 0 = far left, 1.0 = far right)


setTop

void setTop(float Top)
Sets the top of this element in relation to the screen (where 0 = top, 1.0 = bottom)


getTop

float getTop()
Gets the top of this element in relation to the screen (where 0 = top, 1.0 = bottom)


_getLeft

float _getLeft()
Gets the left of this element in relation to the screen (where 0 = far left, 1.0 = far right)


_getTop

float _getTop()
Gets the top of this element in relation to the screen (where 0 = far left, 1.0 = far right)


_getWidth

float _getWidth()
Gets the width of this element in relation to the screen (where 1.0 = screen width)


_getHeight

float _getHeight()
Gets the height of this element in relation to the screen (where 1.0 = screen height)


_setLeft

void _setLeft(float left)
Sets the left of this element in relation to the screen (where 1.0 = screen width)


_setTop

void _setTop(float top)
Sets the top of this element in relation to the screen (where 1.0 = screen width)


_setWidth

void _setWidth(float width)
Sets the width of this element in relation to the screen (where 1.0 = screen width)


_setHeight

void _setHeight(float height)
Sets the height of this element in relation to the screen (where 1.0 = screen width)


_setPosition

void _setPosition(float left,
                  float top)
Sets the left and top of this element in relation to the screen (where 1.0 = screen width)


_setDimensions

void _setDimensions(float width,
                    float height)
Sets the width and height of this element in relation to the screen (where 1.0 = screen width)


getMaterialName

java.lang.String getMaterialName()
Gets the name of the material this element uses.


setMaterialName

void setMaterialName(java.lang.String matName)
Sets the name of the material this element will use.


getMaterial

IMaterialPtr getMaterial()
See

Specified by:
getMaterial in interface IRenderable

getWorldTransforms

void getWorldTransforms(IMatrix4 xform)
See

Specified by:
getWorldTransforms in interface IRenderable

_positionsOutOfDate

void _positionsOutOfDate()
Tell the object to recalculate


_update

void _update()
Internal method to update the element based on transforms applied.


_updateFromParent

void _updateFromParent()
Updates this elements transform based on it's parent.


_notifyParent

void _notifyParent(IOverlayContainer parent,
                   IOverlay overlay)
Internal method for notifying the GUI element of it's parent and ultimate overlay.


_getDerivedLeft

float _getDerivedLeft()
Gets the 'left' position as derived from own left and that of parents.


_getDerivedTop

float _getDerivedTop()
Gets the 'top' position as derived from own left and that of parents.


_getRelativeWidth

float _getRelativeWidth()
Gets the 'width' as derived from own width and metrics mode.


_getRelativeHeight

float _getRelativeHeight()
Gets the 'height' as derived from own height and metrics mode.


_getClippingRegion

void _getClippingRegion(IRectangle clippingRegion)
Gets the clipping region of the element


_notifyZOrder

int _notifyZOrder(int newZOrder)
Internal method to notify the element when Zorder of parent overlay has changed.


_notifyWorldTransforms

void _notifyWorldTransforms(IMatrix4 xform)
Internal method to notify the element when it's world transform of parent overlay has changed.


_notifyViewport

void _notifyViewport()
Internal method to notify the element when the viewport of parent overlay has changed.


_updateRenderQueue

void _updateRenderQueue(IRenderQueue queue)
Internal method to put the contents onto the render queue.


visitRenderables

void visitRenderables(IRenderable.IVisitor visitor,
                      boolean debugRenderables)

getTypeName

java.lang.String getTypeName()
Gets the type name of the element. All concrete subclasses must implement this.


setCaption

void setCaption(IUTFString text)
Sets the caption on elements that support it.


getCaption

IUTFString getCaption()
Gets the caption for this element.


setColour

void setColour(IColourValue col)
Sets the colour on elements that support it.


getColour

IColourValue getColour()
Gets the colour for this element.


setMetricsMode

void setMetricsMode(GuiMetricsMode gmm)
Tells this element how to interpret the position and dimension values it is given.


getMetricsMode

GuiMetricsMode getMetricsMode()
Retrieves the current settings of how the element metrics are interpreted.


setHorizontalAlignment

void setHorizontalAlignment(GuiHorizontalAlignment gha)
Sets the horizontal origin for this element.


getHorizontalAlignment

GuiHorizontalAlignment getHorizontalAlignment()
Gets the horizontal alignment for this element.


setVerticalAlignment

void setVerticalAlignment(GuiVerticalAlignment gva)
Sets the vertical origin for this element.


getVerticalAlignment

GuiVerticalAlignment getVerticalAlignment()
Gets the vertical alignment for this element.


contains

boolean contains(float x,
                 float y)
Returns true if xy is within the constraints of the component


findElementAt

IOverlayElement findElementAt(float x,
                              float y)
Returns true if xy is within the constraints of the component


isContainer

boolean isContainer()
returns false as this class is not a container type


isKeyEnabled

boolean isKeyEnabled()

isCloneable

boolean isCloneable()

setCloneable

void setCloneable(boolean c)

getParent

IOverlayContainer getParent()
Returns the parent container.


_setParent

void _setParent(IOverlayContainer parent)

getZOrder

int getZOrder()
Returns the zOrder of the element


getSquaredViewDepth

float getSquaredViewDepth(ICamera cam)
Overridden from

Specified by:
getSquaredViewDepth in interface IRenderable

getLights

ILightList getLights()
Description copied from interface: IRenderable
Gets a list of lights, ordered relative to how close they are to this renderable.

Specified by:
getLights in interface IRenderable

copyFromTemplate

void copyFromTemplate(IOverlayElement templateOverlay)

clone

IOverlayElement clone(java.lang.String instanceName)

getSourceTemplate

IOverlayElement getSourceTemplate()


Copyright © 2007 netAllied GmbH. All Rights Reserved.