sample
Class UkkoSample.Ukko

java.lang.Object
  extended by fi.jyu.mit.graphics.BasicShape
      extended by fi.jyu.mit.graphics.BasicDrawableCollection
          extended by fi.jyu.mit.graphics.DrawableCollection
              extended by sample.UkkoSample.Ukko
All Implemented Interfaces:
Drawable, Transformable
Enclosing class:
UkkoSample

public static class UkkoSample.Ukko
extends DrawableCollection

Ukko-luokka josta saadaa viite toiseen käteen

Author:
vesal

Constructor Summary
UkkoSample.Ukko(double dx, double dy)
          Alustetaan ukko haluttuun paikkaa
UkkoSample.Ukko(double dx, double dy, double s, double deg, Color color)
          Alustetaan ukko haluttuun paikkaan ja kokoon
 
Method Summary
 Drawable getKasi()
           
 
Methods inherited from class fi.jyu.mit.graphics.DrawableCollection
add, getDrawable, getIndex, remove
 
Methods inherited from class fi.jyu.mit.graphics.BasicDrawableCollection
drawShape, getDrawables, justAdd, justRemove, redraw, registerSpace, unRegisterSpace
 
Methods inherited from class fi.jyu.mit.graphics.BasicShape
changeTransform, draw, getColor, getPoint, getRotator, getRotator, getTransform, getTransform, initGraphics, move, rotate, scale, setColor, setColor, setParent, setRotator, setTransform, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UkkoSample.Ukko

public UkkoSample.Ukko(double dx,
                       double dy)
Alustetaan ukko haluttuun paikkaa

Parameters:
dx - ukon pään keskipiste
dy - ukon pään keskipiste

UkkoSample.Ukko

public UkkoSample.Ukko(double dx,
                       double dy,
                       double s,
                       double deg,
                       Color color)
Alustetaan ukko haluttuun paikkaan ja kokoon

Parameters:
dx - ukon pään keskipiste
dy - ukon pään keskipiste
s - ukon skaalauskerroin
deg - ukon kiertokulma Z-akselin suhteen
color - ukon väri
Method Detail

getKasi

public Drawable getKasi()
Returns:
palautetaan viite ukon toisen käteen