org.stellarium.ui.render
Class Image

java.lang.Object
  extended by org.stellarium.ui.render.Image

public class Image
extends java.lang.Object

manage an image for display from scripts

Version:
Java
Author:
Jerome Beau

Nested Class Summary
static class Image.IMAGE_POSITIONING
           
 
Field Summary
private  float coefAlpha
           
private  float coefLocation
           
private  float coefRotation
           
private  float coefScale
           
private  float endAlpha
           
private  float endRotation
           
private  float endScale
           
private  float endXPos
           
private  float endYPos
           
private  boolean flagAlpha
           
private  boolean flagLocation
           
private  boolean flagRotation
           
private  boolean flagScale
           
private  float imageAlpha
           
private  java.lang.String imageName
           
private  Image.IMAGE_POSITIONING imagePosType
           
private  float imageRatio
           
private  float imageRotation
           
private  float imageScale
           
private  STexture imageTex
           
private  float imageXPos
           
private  float imageYPos
           
private  float multAlpha
           
private  float multLocation
           
private  float multRotation
           
private  float multScale
           
private  float startAlpha
           
private  float startRotation
           
private  float startScale
           
private  float startXPos
           
private  float startYPos
           
 
Constructor Summary
Image(java.lang.String filename, java.lang.String name, Image.IMAGE_POSITIONING positionType)
           
 
Method Summary
(package private)  void draw(NavigatorIfc nav, Projector prj)
           
(package private)  java.lang.String getName()
           
(package private)  boolean imageLoaded()
          was texture loaded from disk?
 void setAlpha(float alpha, float duration)
           
 void setLocation(float xpos, boolean deltax, float ypos, boolean deltay, float duration)
           
 void setRotation(float rotation, float duration)
           
 void setScale(float scale, float duration)
           
(package private)  boolean update(int deltaTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

imageTex

private STexture imageTex

imageName

private java.lang.String imageName

imagePosType

private Image.IMAGE_POSITIONING imagePosType

imageScale

private float imageScale

imageAlpha

private float imageAlpha

imageRotation

private float imageRotation

imageRatio

private float imageRatio

imageXPos

private float imageXPos

imageYPos

private float imageYPos

flagAlpha

private boolean flagAlpha

flagScale

private boolean flagScale

flagRotation

private boolean flagRotation

flagLocation

private boolean flagLocation

coefAlpha

private float coefAlpha

coefScale

private float coefScale

coefRotation

private float coefRotation

multAlpha

private float multAlpha

multScale

private float multScale

multRotation

private float multRotation

startAlpha

private float startAlpha

startScale

private float startScale

startRotation

private float startRotation

endAlpha

private float endAlpha

endScale

private float endScale

endRotation

private float endRotation

coefLocation

private float coefLocation

multLocation

private float multLocation

startXPos

private float startXPos

startYPos

private float startYPos

endXPos

private float endXPos

endYPos

private float endYPos
Constructor Detail

Image

public Image(java.lang.String filename,
             java.lang.String name,
             Image.IMAGE_POSITIONING positionType)
      throws StellariumException
Throws:
StellariumException
Method Detail

getName

java.lang.String getName()

imageLoaded

boolean imageLoaded()
was texture loaded from disk?

Returns:

setAlpha

public void setAlpha(float alpha,
                     float duration)

setScale

public void setScale(float scale,
                     float duration)

setRotation

public void setRotation(float rotation,
                        float duration)

setLocation

public void setLocation(float xpos,
                        boolean deltax,
                        float ypos,
                        boolean deltay,
                        float duration)

update

boolean update(int deltaTime)

draw

void draw(NavigatorIfc nav,
          Projector prj)