Java 2 Útikalauz programozóknak 5.0

elte.java2_utikalauz5.java2d
EgyszeruElemek osztály

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Canvas
          extended by elte.java2_utikalauz5.java2d.EgyszeruElemek
Megvalósított interfészek:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

class EgyszeruElemek
extends Canvas
implements ActionListener

peldaprogram az egyszeru elemek hasznalatara.

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

Beágyazott típusok
 
java.awt.Canvas osztálytól örökölt beágyazott típusok
Canvas.AccessibleAWTCanvas
 
java.awt.Component osztálytól örökölt beágyazott típusok
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Mezők
(package private)  Button gomb1
           
(package private)  Button gomb2
           
(package private)  Button gomb3
           
(package private)  Button gomb4
           
(package private)  Button gomb5
           
private static long serialVersionUID
          Verziószám
(package private)  int type
           
 
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
EgyszeruElemek()
           
 
Metódusok
 void actionPerformed(ActionEvent e)
           
 void initScreen()
           
static void main(String[] args)
           
 void paint(Graphics g)
           
 
java.awt.Canvas osztálytól örökölt metódusok
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy, update
 
java.awt.Component osztálytól örökölt metódusok
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate
 
java.lang.Object osztálytól örökölt metódusok
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Mezők részletezése

serialVersionUID

private static final long serialVersionUID
Verziószám

Lásd még:
Konstans mezőértékek

gomb1

Button gomb1

gomb2

Button gomb2

gomb3

Button gomb3

gomb4

Button gomb4

gomb5

Button gomb5

type

int type
Konstruktorok részletezése

EgyszeruElemek

EgyszeruElemek()
Metódusok részletezése

initScreen

public void initScreen()

paint

public void paint(Graphics g)
Felüldefiniálja:
Canvas osztály paint metódusát

main

public static void main(String[] args)

actionPerformed

public void actionPerformed(ActionEvent e)
Megvalósítja:
ActionListener interfész actionPerformed metódusát

Java 2 Útikalauz programozóknak 5.0