znak_fun_tryg.CanvasKat
function windowTitle()
{
parent.document.title="znak_fun_tryg.CanvasKat";
}
Package
Class
Use
Tree
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Class znak_fun_tryg.CanvasKat
java.lang.Object
java.awt.Component
java.awt.Canvas
znak_fun_tryg.CanvasKat
All Implemented Interfaces: javax.accessibility.Accessible, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.io.Serializable
Enclosing class:znak_fun_tryg
public class znak_fun_tryg.CanvasKatextends java.awt.Canvasimplements java.awt.event.MouseMotionListener, java.awt.event.MouseListener
Klasa wyprowadzona z klasy Canvas. Przedstawia okrąg
z umieszczonym na nim kątem wodzącym, który użytkownik
może zmianiać.
Klasa apletu implementuje interfejsy MouseListener
oraz MouseMotionListener.
See Also:Interface MouseListener,
Interface MouseMotionListener,
Canvas,
Serialized Form
Field Summary
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor Summary
znak_fun_tryg.CanvasKat()
Method Summary
void
init()
Metoda ustala podstawowe atrybuty kanwy jak
rozmiar, tło oraz inicjuje interfejsy MouseMotionListener
i MouseListener.
void
mouseClicked(java.awt.event.MouseEvent e)
Klasa interfejsu MouseListener..
void
mouseDragged(java.awt.event.MouseEvent e)
Klasa interfejsu MouseListener.
void
mouseEntered(java.awt.event.MouseEvent e)
Klasa interfejsu MouseListener.
void
mouseExited(java.awt.event.MouseEvent e)
Klasa interfejsu MouseListener.
void
mouseMoved(java.awt.event.MouseEvent e)
Klasa interfejsu MouseListener.
void
mousePressed(java.awt.event.MouseEvent e)
Klasa interfejsu MouseListener.
void
mouseReleased(java.awt.event.MouseEvent e)
Klasa interfejsu MouseListener.
void
paint(java.awt.Graphics gg)
Metoda wywołuje funkcję rysującą rysuj(x_pos,y_pos),
której argumentami są współrzędne kursora myszy.
void
rysuj(int x_wsp,
int y_wsp)
Metoda rysuje na grafice kanwy układ współrzędnych,
punkt o współrzędnych (x, y) oraz kąt wodzący.
Methods inherited from class java.awt.Canvas
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy, update
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, 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, 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, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Constructor Detail
znak_fun_tryg.CanvasKat
public znak_fun_tryg.CanvasKat()
Method Detail
init
public void init()
Metoda ustala podstawowe atrybuty kanwy jak
rozmiar, tło oraz inicjuje interfejsy MouseMotionListener
i MouseListener.
See Also:Interface MouseListener,
Interface MouseMotionListener
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
Klasa interfejsu MouseListener..
Specified by:mouseClicked in interface java.awt.event.MouseListener
See Also:Interface MouseListener
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent e)
Klasa interfejsu MouseListener.
Specified by:mouseDragged in interface java.awt.event.MouseMotionListener
See Also:Interface MouseListener
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent e)
Klasa interfejsu MouseListener.
Specified by:mouseEntered in interface java.awt.event.MouseListener
See Also:Interface MouseListener
mouseExited
public void mouseExited(java.awt.event.MouseEvent e)
Klasa interfejsu MouseListener.
Specified by:mouseExited in interface java.awt.event.MouseListener
See Also:Interface MouseListener
mouseMoved
public void mouseMoved(java.awt.event.MouseEvent e)
Klasa interfejsu MouseListener.
Specified by:mouseMoved in interface java.awt.event.MouseMotionListener
See Also:Interface MouseListener
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
Klasa interfejsu MouseListener.
Specified by:mousePressed in interface java.awt.event.MouseListener
See Also:Interface MouseListener
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
Klasa interfejsu MouseListener.
Specified by:mouseReleased in interface java.awt.event.MouseListener
See Also:Interface MouseListener
paint
public void paint(java.awt.Graphics gg)
Metoda wywołuje funkcję rysującą rysuj(x_pos,y_pos),
której argumentami są współrzędne kursora myszy.
Następnie wywołuje funkcję przerysuj().
rysuj
public void rysuj(int x_wsp,
int y_wsp)
Metoda rysuje na grafice kanwy układ współrzędnych,
punkt o współrzędnych (x, y) oraz kąt wodzący.
Parameters:x_wsp - określa położenie rzędnej punktu na okręguy_wsp - określa położenie odciętej punktu na okręgu
Package
Class
Use
Tree
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Wyszukiwarka
Podobne podstrony:
znak fun tryg canvaskatznak fun trygznak fun trygfun logarytm canvasmoj6fun kwadrat canvasmoj2fun kwadrat canvasmoj2fun logarytm canvasmoj6fun kwadrat canvasmoj2fun wykladnicza canvasmoj5fun wykladnicza canvasmoj5fun sin canvasmoj1fun sin canvasmoj1trygAstrologus Twój znak Strzelecao canvasmojZnak pokoju VirginSiódmy znak Seventh Sign, The (1988) (napisy)więcej podobnych podstron