Package mgui.interfaces.maps
Class Camera3D.CameraLightSource
java.lang.Object
mgui.interfaces.AbstractInterfaceObject
mgui.interfaces.maps.Camera3D.CameraLightSource
- All Implemented Interfaces:
AttributeListener
,AttributeObject
,InterfaceObject
,NamedObject
,TreeObject
,CleanableObject
,IconObject
- Enclosing class:
- Camera3D
public class Camera3D.CameraLightSource extends AbstractInterfaceObject implements AttributeObject, AttributeListener, IconObject
-
Field Summary
Fields Modifier and Type Field Description AttributeList
attributes
protected javax.swing.Icon
light_icon
org.jogamp.java3d.DirectionalLight
source
Fields inherited from class mgui.interfaces.AbstractInterfaceObject
isDestroyed, tree_nodes
-
Constructor Summary
Constructors Constructor Description CameraLightSource(org.jogamp.java3d.DirectionalLight s, org.jogamp.vecmath.Vector2d o)
-
Method Summary
Modifier and Type Method Description void
attributeUpdated(AttributeEvent e)
Called when an Attribute's value has been updated.Attribute<?>
getAttribute(java.lang.String attrName)
Returns a specific attribute for this object.AttributeList
getAttributes()
Returns the list of current attributes for this object.java.lang.Object
getAttributeValue(java.lang.String name)
Gets the value of attributename
, ornull
if it does not exist.java.awt.Color
getColour()
boolean
getIsEnabled()
java.lang.String
getName()
Gets the name for this object.javax.swing.Icon
getObjectIcon()
Returns theIcon
associated with this object.double
getRotX()
double
getRotY()
org.jogamp.java3d.DirectionalLight
getSource()
protected void
init2()
void
setAttribute(java.lang.String attrName, java.lang.Object newValue)
Sets a value for a specific attribute.void
setAttributes(AttributeList thisList)
Sets the list of attributes for this object.void
setColour(java.awt.Color colour)
void
setDirection(org.jogamp.vecmath.Vector3f d)
protected void
setIcon()
void
setIsEnabled(boolean b)
void
setName(java.lang.String name)
Sets the name for this object.void
setRotX(double r)
void
setRotY(double r)
void
setTreeNode(InterfaceTreeNode treeNode)
Sets the children for this node'sInterfaceTreeNode
.java.lang.String
toString()
Methods inherited from class mgui.interfaces.AbstractInterfaceObject
clean, destroy, getTreeLabel, isDestroyed, issueTreeNode, updateTreeNodes
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
light_icon
protected javax.swing.Icon light_icon -
source
public org.jogamp.java3d.DirectionalLight source -
attributes
-
-
Constructor Details
-
CameraLightSource
public CameraLightSource(org.jogamp.java3d.DirectionalLight s, org.jogamp.vecmath.Vector2d o)
-
-
Method Details
-
init2
protected void init2() -
setIcon
protected void setIcon() -
setDirection
public void setDirection(org.jogamp.vecmath.Vector3f d) -
setRotX
public void setRotX(double r) -
getRotX
public double getRotX() -
setName
public void setName(java.lang.String name)Description copied from interface:NamedObject
Sets the name for this object.- Specified by:
setName
in interfaceNamedObject
- Overrides:
setName
in classAbstractInterfaceObject
-
getName
public java.lang.String getName()Description copied from interface:NamedObject
Gets the name for this object.- Specified by:
getName
in interfaceNamedObject
- Overrides:
getName
in classAbstractInterfaceObject
- Returns:
-
setRotY
public void setRotY(double r) -
getRotY
public double getRotY() -
setColour
public void setColour(java.awt.Color colour) -
getColour
public java.awt.Color getColour() -
setIsEnabled
public void setIsEnabled(boolean b) -
getIsEnabled
public boolean getIsEnabled() -
getSource
public org.jogamp.java3d.DirectionalLight getSource() -
getAttribute
Description copied from interface:AttributeObject
Returns a specific attribute for this object.- Specified by:
getAttribute
in interfaceAttributeObject
- Returns:
-
getAttributes
Description copied from interface:AttributeObject
Returns the list of current attributes for this object.- Specified by:
getAttributes
in interfaceAttributeObject
- Returns:
-
getAttributeValue
public java.lang.Object getAttributeValue(java.lang.String name)Description copied from interface:AttributeObject
Gets the value of attributename
, ornull
if it does not exist.- Specified by:
getAttributeValue
in interfaceAttributeObject
- Parameters:
name
- Name of the attribute- Returns:
- the value of attribute
name
, ornull
if it does not exist
-
setAttribute
public void setAttribute(java.lang.String attrName, java.lang.Object newValue)Description copied from interface:AttributeObject
Sets a value for a specific attribute.- Specified by:
setAttribute
in interfaceAttributeObject
-
setAttributes
Description copied from interface:AttributeObject
Sets the list of attributes for this object.- Specified by:
setAttributes
in interfaceAttributeObject
-
setTreeNode
Description copied from interface:TreeObject
Sets the children for this node'sInterfaceTreeNode
.- Specified by:
setTreeNode
in interfaceTreeObject
- Overrides:
setTreeNode
in classAbstractInterfaceObject
-
attributeUpdated
Description copied from interface:AttributeListener
Called when an Attribute's value has been updated.- Specified by:
attributeUpdated
in interfaceAttributeListener
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
getObjectIcon
public javax.swing.Icon getObjectIcon()Description copied from interface:IconObject
Returns theIcon
associated with this object.- Specified by:
getObjectIcon
in interfaceIconObject
- Returns:
-