yu.ac.bg.etf.javaqx.opengl
Class GLJQComponent

java.lang.Object
  extended byyu.ac.bg.etf.javaqx.core.AbstractDisposable
      extended byyu.ac.bg.etf.javaqx.qswing.JQComponent
          extended byyu.ac.bg.etf.javaqx.opengl.GLJQComponent
All Implemented Interfaces:
Disposable, GLConstants, JQComponentProperties

public abstract class GLJQComponent
extends JQComponent
implements GLConstants

OpenGL Component.

Version:
0.2.0
Author:
Slobodan Vrkacevic (slobodan.vrkacevic@gmail.com)

Field Summary
 
Fields inherited from class yu.ac.bg.etf.javaqx.qswing.JQComponent
listenerList
 
Fields inherited from interface yu.ac.bg.etf.javaqx.opengl.GLConstants
GL_COLOR_BUFFER_BIT, GL_DEPTH_BUFFER_BIT, GL_DEPTH_TEST, GL_LEQUAL, GL_MODELVIEW, GL_NICEST, GL_PERSPECTIVE_CORRECTION_HINT, GL_PROJECTION, GL_QUADS, GL_SMOOTH, GL_TRIANGLES
 
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQComponentProperties
PROPERTY_BACKGROUND, PROPERTY_COMPONENT_ORIENTATION, PROPERTY_CONTEXT_MENU, PROPERTY_ENABLED, PROPERTY_FIXED_SIZE, PROPERTY_FOCUSABLE, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_INSETS, PROPERTY_LOCALE, PROPERTY_MAXIMUM_SIZE, PROPERTY_MINIMUM_SIZE, PROPERTY_NAME, PROPERTY_OPAQUE, PROPERTY_PREFERRED_SIZE, PROPERTY_RESOURCE_BUNDLE_NAME, PROPERTY_STATUS_TIP_TEXT, PROPERTY_STYLE_SHEET, PROPERTY_TOOL_TIP_TEXT, PROPERTY_VISIBLE, PROPERTY_WHATS_THIS_TEXT
 
Constructor Summary
protected GLJQComponent()
          Constructs new GLJQComponent object.
 
Method Summary
protected  void glBegin(int mode)
           
protected  void glClear(int mask)
           
protected  void glClearColor(float r, float g, float b, float a)
           
protected  void glClearDepth(float depth)
           
protected  void glColor3f(float r, float g, float b)
           
protected  void glDepthFunc(int func)
           
protected  void glEnable(int cap)
           
protected  void glEnd()
           
protected  void glHint(int target, int mode)
           
protected  void glLoadIdentity()
           
protected  void glMatrixMode(int mode)
           
protected  void glRotatef(float angle, float x, float y, float z)
           
protected  void glShadeModel(int mode)
           
protected  void glTranslatef(float x, float y, float z)
           
protected  void gluPerspective(double fovy, double aspect, double zNear, double zFar)
           
protected  void glVertex3f(float x, float y, float z)
           
protected  void glViewport(int x, int y, int width, int height)
           
protected abstract  void initializeGL()
           
protected abstract  void paintGL()
           
protected abstract  void resizeGL(int width, int height)
           
 void updateGL()
          Updates the component.
 
Methods inherited from class yu.ac.bg.etf.javaqx.qswing.JQComponent
addComponentListener, addFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, disableEvents, disposeComponent, disposeObject, enableEvents, eventEnabled, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getClientProperty, getComponentListeners, getComponentOrientation, getContextMenu, getCursor, getEventMask, getFocusListener, getFont, getFontMetrics, getForeground, getHeight, getInsets, getKeyListeners, getLocale, getLocation, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getOwnedComponents, getOwner, getParent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getResourceBundleName, getSize, getStatusTipText, getStyleSheet, getToolTipText, getToolTipText, getWhatsThisText, getWidth, getX, getY, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFontSet, isForegroundSet, isLeftToRight, isLocaleSet, isOpaque, isOwnerOf, isPainting, isResizable, isResourceBundleNameSet, isUpdatesEnabled, isValid, isVisible, localizeObject, localizeString, localizeString, localizeStrings, paintComponent, paramString, processComponentEvent, processContextMenuEvent, processFocusEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, processStyleChange, putClientProperty, removeComponentListener, removeFocusListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, removeStyleSheet, repaint, repaint, repaint, requestFocus, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setContextMenu, setCursor, setDefaultResourceBundleName, setDisplayable, setEnabled, setFixedSize, setFixedSize, setFocusable, setFont, setForeground, setInsets, setInsets, setLeftToRightComponentOrientation, setLocale, setLocation, setLocation, setMaximumSize, setMaximumSize, setMinimumSize, setMinimumSize, setName, setOpaque, setPreferredSize, setPreferredSize, setResizable, setResourceBundleName, setRightToLeftComponentOrientation, setSize, setSize, setStatusTipText, setStyleSheet, setStyleSheet, setToolTipText, setUpdatesEnabled, setVisible, setWhatsThisText, toString, unsetComponentOrientation, update, update, update, updateComponentOrientation, updateLocalization, validate
 
Methods inherited from class yu.ac.bg.etf.javaqx.core.AbstractDisposable
addDisposeListener, dispose, disposedCheck, disposedErrorString, finalize, isDisposed, removeDisposeListener
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GLJQComponent

protected GLJQComponent()
Constructs new GLJQComponent object.

Method Detail

updateGL

public void updateGL()
Updates the component.


initializeGL

protected abstract void initializeGL()

resizeGL

protected abstract void resizeGL(int width,
                                 int height)

paintGL

protected abstract void paintGL()

glVertex3f

protected void glVertex3f(float x,
                          float y,
                          float z)

glColor3f

protected void glColor3f(float r,
                         float g,
                         float b)

glClearColor

protected void glClearColor(float r,
                            float g,
                            float b,
                            float a)

glShadeModel

protected void glShadeModel(int mode)

glClearDepth

protected void glClearDepth(float depth)

glHint

protected void glHint(int target,
                      int mode)

glEnable

protected void glEnable(int cap)

glDepthFunc

protected void glDepthFunc(int func)

glClear

protected void glClear(int mask)

glLoadIdentity

protected void glLoadIdentity()

glTranslatef

protected void glTranslatef(float x,
                            float y,
                            float z)

glRotatef

protected void glRotatef(float angle,
                         float x,
                         float y,
                         float z)

glBegin

protected void glBegin(int mode)

glEnd

protected void glEnd()

glViewport

protected void glViewport(int x,
                          int y,
                          int width,
                          int height)

glMatrixMode

protected void glMatrixMode(int mode)

gluPerspective

protected void gluPerspective(double fovy,
                              double aspect,
                              double zNear,
                              double zFar)


Copyright © 2007 ETF and contributors. All Rights Reserved.