Java 2 Útikalauz programozóknak 5.0

elte.java2_utikalauz5.java3d
LightingDemo osztály

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Frame
                  extended by elte.java2_utikalauz5.java3d.LightingDemo
Megvalósított interfészek:
ItemListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

class LightingDemo
extends Frame
implements ItemListener

Világításra példaprogram.

Mióta:
Java 2 Útikalauz programozóknak 5.0
Forrásfájl:
LightingDemo.java
Letöltés:
LightingDemo.jar

Beágyazott típusok
(package private)  class LightingDemo.ColorCube
           
(package private)  class LightingDemo.MyImageComponent2D
           
(package private)  class LightingDemo.UniverseBuilder
           
 
java.awt.Frame osztálytól örökölt beágyazott típusok
Frame.AccessibleAWTFrame
 
java.awt.Window osztálytól örökölt beágyazott típusok
Window.AccessibleAWTWindow
 
java.awt.Container osztálytól örökölt beágyazott típusok
Container.AccessibleAWTContainer
 
java.awt.Component osztálytól örökölt beágyazott típusok
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Mezők
(package private)  AmbientLight ambient
           
(package private)  CheckboxMenuItem ambientMenu
           
(package private)  boolean ambientOn
           
(package private)  AmbientLight brightAmbient
           
(package private)  CheckboxMenuItem brightAmbientMenu
           
(package private)  boolean brightAmbientOn
           
(package private)  int height1
           
(package private)  int height2
           
(package private)  LightingDemo.MyImageComponent2D myImage1
           
(package private)  LightingDemo.MyImageComponent2D myImage2
           
(package private)  PointLight orangePoint
           
(package private)  CheckboxMenuItem orangePointMenu
           
(package private)  boolean orangePointOn
           
(package private)  DirectionalLight redDirectional
           
(package private)  CheckboxMenuItem redDirectionalMenu
           
(package private)  boolean redDirectionalOn
           
private static long serialVersionUID
          Verziószám
(package private)  int width1
           
(package private)  int width2
           
(package private)  DirectionalLight yellowDirectional
           
(package private)  CheckboxMenuItem yellowDirectionalMenu
           
(package private)  boolean yellowDirectionalOn
           
 
java.awt.Frame osztálytól örökölt mezők
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
java.awt.Component osztálytól örökölt mezők
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
java.awt.image.ImageObserver interfésztől örökölt mezők
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Konstruktorok
LightingDemo()
           
 
Metódusok
 BranchGroup createSceneGraph()
           
 void itemStateChanged(ItemEvent event)
           
static void main(String[] args)
           
protected  void processWindowEvent(WindowEvent esemény)
          Ablakesemény feldolgozása, bezáráskor kilépés.
 
java.awt.Frame osztálytól örökölt metódusok
addNotify, finalize, getAccessibleContext, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, paramString, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
java.awt.Window osztálytól örökölt metódusok
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, setLocationRelativeTo, show, toBack, toFront
 
java.awt.Container osztálytól örökölt metódusok
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate, validateTree
 
java.awt.Component osztálytól örökölt metódusok
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
java.lang.Object osztálytól örökölt metódusok
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
java.awt.MenuContainer interfésztől örökölt metódusok
getFont, postEvent
 

Mezők részletezése

ambientOn

boolean ambientOn

brightAmbientOn

boolean brightAmbientOn

redDirectionalOn

boolean redDirectionalOn

yellowDirectionalOn

boolean yellowDirectionalOn

orangePointOn

boolean orangePointOn

ambientMenu

CheckboxMenuItem ambientMenu

brightAmbientMenu

CheckboxMenuItem brightAmbientMenu

redDirectionalMenu

CheckboxMenuItem redDirectionalMenu

yellowDirectionalMenu

CheckboxMenuItem yellowDirectionalMenu

orangePointMenu

CheckboxMenuItem orangePointMenu

ambient

AmbientLight ambient

brightAmbient

AmbientLight brightAmbient

redDirectional

DirectionalLight redDirectional

yellowDirectional

DirectionalLight yellowDirectional

orangePoint

PointLight orangePoint

width1

int width1

height1

int height1

myImage1

LightingDemo.MyImageComponent2D myImage1

width2

int width2

height2

int height2

myImage2

LightingDemo.MyImageComponent2D myImage2

serialVersionUID

private static final long serialVersionUID
Verziószám

Lásd még:
Konstans mezőértékek
Konstruktorok részletezése

LightingDemo

public LightingDemo()
Metódusok részletezése

main

public static void main(String[] args)

processWindowEvent

protected void processWindowEvent(WindowEvent esemény)
Ablakesemény feldolgozása, bezáráskor kilépés.

Felüldefiniálja:
Window osztály processWindowEvent metódusát
Paraméterek:
esemény - A fellépett esemény

createSceneGraph

public BranchGroup createSceneGraph()

itemStateChanged

public void itemStateChanged(ItemEvent event)
Megvalósítja:
ItemListener interfész itemStateChanged metódusát

Java 2 Útikalauz programozóknak 5.0