Java 2 Útikalauz programozóknak 5.0

elte.java2_utikalauz5.java2d
SzovegKijeloles osztály

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

class SzovegKijeloles
extends Canvas
implements MouseListener, MouseMotionListener

peldaprogram szovegek kijelolesere.

Mióta:
Java 2 Útikalauz programozóknak
Forrásfájl:
SzovegKijeloles.java
Letöltés:
SzovegKijeloles.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)  int oldx1
           
(package private)  int oldx2
           
(package private)  int oldy1
           
(package private)  int oldy2
           
private static long serialVersionUID
          Verziószám
(package private)  int x1
           
(package private)  int x2
           
(package private)  int y1
           
(package private)  int y2
           
 
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
SzovegKijeloles()
           
 
Metódusok
 void initScreen()
           
static void main(String[] args)
           
 void mouseClicked(MouseEvent e)
           
 void mouseDragged(MouseEvent e)
           
 void mouseEntered(MouseEvent e)
           
 void mouseExited(MouseEvent e)
           
 void mouseMoved(MouseEvent e)
           
 void mousePressed(MouseEvent e)
           
 void mouseReleased(MouseEvent e)
           
 void paint(Graphics g)
           
 void SzovegKijeloles()
           
 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

x1

int x1

x2

int x2

y1

int y1

y2

int y2

oldx1

int oldx1

oldx2

int oldx2

oldy1

int oldy1

oldy2

int oldy2
Konstruktorok részletezése

SzovegKijeloles

SzovegKijeloles()
Metódusok részletezése

SzovegKijeloles

public void SzovegKijeloles()

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

mouseDragged

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

mouseMoved

public void mouseMoved(MouseEvent e)
Megvalósítja:
MouseMotionListener interfész mouseMoved 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