Package gaiasky.scene.view
Class PointView
java.lang.Object
gaiasky.scene.view.AbstractView
gaiasky.scene.view.BaseView
gaiasky.scene.view.RenderView
gaiasky.scene.view.PointView
- All Implemented Interfaces:
IPointRenderable,IRenderable
An entity view that implements the
IPointRenderable methods.-
Field Summary
Fields inherited from class gaiasky.scene.view.RenderView
extra, particleSet, starSetFields inherited from class gaiasky.scene.view.AbstractView
entity -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidblend()voiddepth()protected voidContains actions to take after a new entity has been set.protected voidentityCheck(com.badlogic.ashley.core.Entity entity) Checks whether the given entity is suitable for this view.protected voidThis method is called when the entity of this view is cleared.Methods inherited from class gaiasky.scene.view.RenderView
getDistToCamera, getOpacity, getRadius, textColour, textColourMethods inherited from class gaiasky.scene.view.BaseView
componentsCheck, getBase, getBody, getComponent, getComponentType, hasCt, isForceLabel, isVisible, isVisible, setColor, setForcelabel, setForceLabel, setVisible, setVisibleMethods inherited from class gaiasky.scene.view.AbstractView
check, clearEntity, getEntity, isEmpty, isValid, setEntityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gaiasky.render.api.IRenderable
getComponentType, getDistToCamera, getOpacity
-
Constructor Details
-
PointView
public PointView()Creates an empty line view.
-
-
Method Details
-
entityCheck
protected void entityCheck(com.badlogic.ashley.core.Entity entity) Description copied from class:AbstractViewChecks whether the given entity is suitable for this view. This method should throw aRuntimeExceptionif the entity is not suitable.- Overrides:
entityCheckin classBaseView- Parameters:
entity- The entity.
-
entityChanged
protected void entityChanged()Description copied from class:AbstractViewContains actions to take after a new entity has been set. This method is typically used to initialize the view components.- Overrides:
entityChangedin classRenderView
-
entityCleared
protected void entityCleared()Description copied from class:AbstractViewThis method is called when the entity of this view is cleared. It should set all component references to null.- Overrides:
entityClearedin classRenderView
-
blend
public void blend()- Specified by:
blendin interfaceIPointRenderable
-
depth
public void depth()- Specified by:
depthin interfaceIPointRenderable
-