|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IOverlayElement
| 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.xbig.base.INativeObject |
|---|
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Method Detail |
|---|
void initialise()
java.lang.String getName()
void show()
void hide()
boolean isVisible()
boolean isEnabled()
void setEnabled(boolean b)
void setDimensions(float width,
float height)
void setPosition(float left,
float top)
void setWidth(float width)
float getWidth()
void setHeight(float height)
float getHeight()
void setLeft(float left)
float getLeft()
void setTop(float Top)
float getTop()
float _getLeft()
float _getTop()
float _getWidth()
float _getHeight()
void _setLeft(float left)
void _setTop(float top)
void _setWidth(float width)
void _setHeight(float height)
void _setPosition(float left,
float top)
void _setDimensions(float width,
float height)
java.lang.String getMaterialName()
void setMaterialName(java.lang.String matName)
IMaterialPtr getMaterial()
getMaterial in interface IRenderablevoid getWorldTransforms(IMatrix4 xform)
getWorldTransforms in interface IRenderablevoid _positionsOutOfDate()
void _update()
void _updateFromParent()
void _notifyParent(IOverlayContainer parent,
IOverlay overlay)
float _getDerivedLeft()
float _getDerivedTop()
float _getRelativeWidth()
float _getRelativeHeight()
void _getClippingRegion(IRectangle clippingRegion)
int _notifyZOrder(int newZOrder)
void _notifyWorldTransforms(IMatrix4 xform)
void _notifyViewport()
void _updateRenderQueue(IRenderQueue queue)
void visitRenderables(IRenderable.IVisitor visitor,
boolean debugRenderables)
java.lang.String getTypeName()
void setCaption(IUTFString text)
IUTFString getCaption()
void setColour(IColourValue col)
IColourValue getColour()
void setMetricsMode(GuiMetricsMode gmm)
GuiMetricsMode getMetricsMode()
void setHorizontalAlignment(GuiHorizontalAlignment gha)
GuiHorizontalAlignment getHorizontalAlignment()
void setVerticalAlignment(GuiVerticalAlignment gva)
GuiVerticalAlignment getVerticalAlignment()
boolean contains(float x,
float y)
IOverlayElement findElementAt(float x,
float y)
boolean isContainer()
boolean isKeyEnabled()
boolean isCloneable()
void setCloneable(boolean c)
IOverlayContainer getParent()
void _setParent(IOverlayContainer parent)
int getZOrder()
float getSquaredViewDepth(ICamera cam)
getSquaredViewDepth in interface IRenderableILightList getLights()
IRenderable
getLights in interface IRenderablevoid copyFromTemplate(IOverlayElement templateOverlay)
IOverlayElement clone(java.lang.String instanceName)
IOverlayElement getSourceTemplate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||