fi.jyu.mit.graphics
Class Axis

java.lang.Object
  extended by fi.jyu.mit.graphics.BasicShape
      extended by fi.jyu.mit.graphics.Axis
All Implemented Interfaces:
Drawable, Transformable

public class Axis
extends BasicShape

Luokka akseleille

Author:
Markus Kivioja

Field Summary
static int X
          X koordinaattia kuvaava vakio
static int Y
          Y koordinaattia kuvaava vakio
static int Z
          Z koordinaattia kuvaava vakio
 
Constructor Summary
Axis(double xLength, double yLength, double zLength)
          Luo uudet akselit
Axis(double xLength, double yLength, double zLength, double x, double y, double z)
          Luo uudet akselit
 
Method Summary
protected  void drawShape(Graphics g, Matrix a)
          Pirtää kuvion annetulla Graphics-oliolla ja muunnosmatriisilla
 
Methods inherited from class fi.jyu.mit.graphics.BasicShape
changeTransform, draw, getColor, getPoint, getRotator, getRotator, getTransform, getTransform, initGraphics, move, redraw, 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
 

Field Detail

X

public static final int X
X koordinaattia kuvaava vakio

See Also:
Constant Field Values

Y

public static final int Y
Y koordinaattia kuvaava vakio

See Also:
Constant Field Values

Z

public static final int Z
Z koordinaattia kuvaava vakio

See Also:
Constant Field Values
Constructor Detail

Axis

public Axis(double xLength,
            double yLength,
            double zLength,
            double x,
            double y,
            double z)
Luo uudet akselit

Parameters:
xLength - x-akselin pituus
yLength - y-akselin pituus
zLength - z-akselin pituus
x - akselien leikkauspisteen x-koordinaatti
y - akselien leikkauspisteen y-koordinaatti
z - akselien leikkauspisteen z-koordinaatti

Axis

public Axis(double xLength,
            double yLength,
            double zLength)
Luo uudet akselit

Parameters:
xLength - x-akselin pituus
yLength - y-akselin pituus
zLength - z-akselin pituus
Method Detail

drawShape

protected void drawShape(Graphics g,
                         Matrix a)
Description copied from class: BasicShape
Pirtää kuvion annetulla Graphics-oliolla ja muunnosmatriisilla

Specified by:
drawShape in class BasicShape
Parameters:
g - Graphics-olio
a - muunnosmatriisi