Java 2 Útikalauz programozóknak 5.0

elte.java2_utikalauz5.java2d
TalalatVizsgalat osztály

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

class TalalatVizsgalat
extends Canvas
implements MouseListener

peldaprogram az egerrel valo kivalasztasokra.

Mióta:
Java 2 Útikalauz programozóknak
Forrásfájl:
TalalatVizsgalat.java
Letöltés:
TalalatVizsgalat.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)  boolean first
           
(package private)  Rectangle2D kekTeglalap
           
(package private)  int selected
           
private static long serialVersionUID
          Verziószám
(package private)  int x
           
(package private)  int y
           
(package private)  Rectangle2D zoldTeglalap
           
 
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
TalalatVizsgalat()
           
 
Metódusok
 void initScreen()
           
static void main(String[] args)
           
 void mouseClicked(MouseEvent e)
           
 void mouseEntered(MouseEvent e)
           
 void mouseExited(MouseEvent e)
           
 void mousePressed(MouseEvent e)
           
 void mouseReleased(MouseEvent e)
           
 void paint(Graphics g)
           
 void update(Graphics g)
           
 
java.awt.Canvas osztálytól örökölt metódusok
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy
 
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

x

int x

y

int y

selected

int selected

first

boolean first

kekTeglalap

Rectangle2D kekTeglalap

zoldTeglalap

Rectangle2D zoldTeglalap
Konstruktorok részletezése

TalalatVizsgalat

TalalatVizsgalat()
Metódusok részletezése

mouseClicked

public void mouseClicked(MouseEvent e)
Megvalósítja:
MouseListener interfész mouseClicked metódusát

mouseEntered

public void mouseEntered(MouseEvent e)
Megvalósítja:
MouseListener interfész mouseEntered metódusát

mouseExited

public void mouseExited(MouseEvent e)
Megvalósítja:
MouseListener interfész mouseExited metódusát

mousePressed

public void mousePressed(MouseEvent e)
Megvalósítja:
MouseListener interfész mousePressed metódusát

mouseReleased

public void mouseReleased(MouseEvent e)
Megvalósítja:
MouseListener interfész mouseReleased metódusát

update

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

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)

Java 2 Útikalauz programozóknak 5.0