Skip navigation links
A C D E F G I K L M N O P Q R S T W X Y Z 

A

addSprite(Sprite) - Method in class cslib.window.SimpleWindow
Adds a sprite to the window.
apply(Color[][], double[]) - Method in class cslib.images.ImageFilter
Filtrerar bilden i matrisen inPixels och returnerar resultatet i en ny matris.
atExit(int, int) - Method in class cslib.maze.Maze
Checks if the point x,y is at (or near) the exit.

C

clear() - Method in class cslib.window.SimpleWindow
Clears the window.
clearPlane() - Method in class cslib.fractal.MandelbrotGUI
Clears the image plane.
close() - Method in class cslib.window.SimpleWindow
Closes the window.
CLOSE_EVENT - Static variable in class cslib.window.SimpleWindow
 
computeIntensity(Color[][]) - Method in class cslib.images.ImageFilter
Beräknar intensiteten hos alla pixlarna i pixels, returnerar resultatet i en ny matris.
convolve(short[][], int, int, short[][], int) - Method in class cslib.images.ImageFilter
Faltar punkten p[i][j] med faltningskärnan kernel.
cslib.examples - package cslib.examples
Programexempel.
cslib.fractal - package cslib.fractal
Fraktaler (MandelbrotGUI).
cslib.images - package cslib.images
Bildbehandling.
cslib.maze - package cslib.maze
Labyrint (Maze).
cslib.shapes - package cslib.shapes
Geometriska figurer och lista av figurer (Shape och ShapeList).
cslib.square - package cslib.square
Kvadrater (Square).
cslib.window - package cslib.window
Lättanvänt stöd för att skapa ritfönster.

D

delay(int) - Static method in class cslib.window.SimpleWindow
Wait for a specified time.
disableInput() - Method in class cslib.fractal.MandelbrotGUI
Disables user input.
draw(SimpleWindow) - Method in class cslib.maze.Maze
Draws the maze in a window.
draw(SimpleWindow) - Method in class cslib.shapes.Shape
Ritar upp figuren i ett fönster.
draw(SimpleWindow) - Method in class cslib.shapes.ShapeList
Ritar upp figurerna i listan.
draw(SimpleWindow) - Method in class cslib.square.Square
Ritar kvadraten i fönstret w.
drawImage(Image) - Method in class cslib.window.SimpleWindow
Draws a bitmap image at the current position.

E

enableInput() - Method in class cslib.fractal.MandelbrotGUI
Enables user input.
erase(SimpleWindow) - Method in class cslib.square.Square
Raderar bilden av kvadraten i fönstret w.

F

findHit(int, int) - Method in class cslib.shapes.ShapeList
Tar reda på en figur som ligger nära punkten xc,yc.
forward(double) - Method in class cslib.window.Sprite
Flyttar bilden relativt nuvarande position i nuvarande riktning.

G

getArea() - Method in class cslib.square.Square
Tar reda på kvadratens area.
getCommand() - Method in class cslib.fractal.MandelbrotGUI
Returns a command triggered by the user.
getDirection() - Method in class cslib.window.Sprite
Returnerar riktningen i grader moturs från positiva x-axeln.
getEventType() - Method in class cslib.window.SimpleWindow
Returns the type of the last event.
getExtraText() - Method in class cslib.fractal.MandelbrotGUI
Returns the string that the user has typed in the "Extra" field.
getHeight() - Method in class cslib.fractal.MandelbrotGUI
Returns the image height.
getHeight() - Method in class cslib.window.SimpleWindow
Returns the height of the window.
getKey() - Method in class cslib.window.SimpleWindow
Returns the key that was pressed on a key event.
getLineColor() - Method in class cslib.window.SimpleWindow
Returns the current line color.
getLineWidth() - Method in class cslib.window.SimpleWindow
Returns the current line width.
getMaximumImag() - Method in class cslib.fractal.MandelbrotGUI
Returns the maximum imaginary value.
getMaximumReal() - Method in class cslib.fractal.MandelbrotGUI
Returns the maximum real value.
getMidX() - Method in class cslib.window.Sprite
Returnerar x-positionen av mitten på bilden.
getMidY() - Method in class cslib.window.Sprite
Returnerar y-positionen av mitten på bilden.
getMinimumImag() - Method in class cslib.fractal.MandelbrotGUI
Returns the minimum imaginary value.
getMinimumReal() - Method in class cslib.fractal.MandelbrotGUI
Returns the minimum real value.
getMode() - Method in class cslib.fractal.MandelbrotGUI
Returns the image mode.
getMouseX() - Method in class cslib.window.SimpleWindow
Returns the mouse x coordinate at the last mouse click.
getMouseY() - Method in class cslib.window.SimpleWindow
Returns the mouse y coordinate at the last mouse click.
getName() - Method in class cslib.images.ImageFilter
Tar reda på filtrets namn.
getNumberOfArguments() - Method in class cslib.images.ImageFilter
Tar reda på antalet argument filtret behöver.
getResolution() - Method in class cslib.fractal.MandelbrotGUI
Returns the image resolution.
getSide() - Method in class cslib.square.Square
Tar reda på kvadratens sida.
getWidth() - Method in class cslib.fractal.MandelbrotGUI
Returns the image width.
getWidth() - Method in class cslib.window.SimpleWindow
Returns the width of the window.
getX() - Method in class cslib.square.Square
Tar reda på x-koordinaten för kvadratens läge.
getX() - Method in class cslib.window.SimpleWindow
Returns the pen's x coordinate.
getX() - Method in class cslib.window.Sprite
Returnerar x-positionen av bilden.
getXEntry() - Method in class cslib.maze.Maze
Returns the x coordinate of the entry point.
getY() - Method in class cslib.square.Square
Tar reda på y-koordinaten för kvadratens läge.
getY() - Method in class cslib.window.SimpleWindow
Returns the pen's y coordinate.
getY() - Method in class cslib.window.Sprite
Returnerar y-positionen av bilden.
getYEntry() - Method in class cslib.maze.Maze
Returns the y coordinate of the entry point.

I

ImageFilter - Class in cslib.images
Superklassen till alla filterklasser.
ImageFilter(String, int) - Constructor for class cslib.images.ImageFilter
Skapar ett filterobjekt med ett givet namn och antalet argument filtret behöver.
insert(Shape) - Method in class cslib.shapes.ShapeList
Lägger in en figur i listan.
isVisible() - Method in class cslib.window.Sprite
Ger true om bilden är synlig.

K

KEY_EVENT - Static variable in class cslib.window.SimpleWindow
 

L

lineTo(int, int) - Method in class cslib.window.SimpleWindow
Moves the pen to a new position while drawing a line.

M

main(String[]) - Static method in class cslib.examples.SimpleWindowTestCloseEvent
 
main(String[]) - Static method in class cslib.examples.SimpleWindowTestNonBlocking
 
main(String[]) - Static method in class cslib.examples.SpriteTest
 
MandelbrotGUI - Class in cslib.fractal
The graphical user interface for the Mandelbrot assignment.
MandelbrotGUI() - Constructor for class cslib.fractal.MandelbrotGUI
Creates a graphical user interface with the default width.
MandelbrotGUI(int) - Constructor for class cslib.fractal.MandelbrotGUI
Creates a graphical user interface with the specified width.
Maze - Class in cslib.maze
Describes a maze.
Maze(int) - Constructor for class cslib.maze.Maze
Creates a maze with number nbr.
Maze(String, int, int) - Constructor for class cslib.maze.Maze
Creates a maze based on an image file (.png or .jpg).
MODE_BW - Static variable in class cslib.fractal.MandelbrotGUI
Black and White mode.
MODE_COLOR - Static variable in class cslib.fractal.MandelbrotGUI
Color mode.
MOUSE_EVENT - Static variable in class cslib.window.SimpleWindow
 
move(int, int) - Method in class cslib.square.Square
Flyttar kvadraten avståndet dx i x-led, dy i y-led.
moveMidTo(int, int) - Method in class cslib.window.Sprite
Flyttar mittpunkten av bilden till positionen (x, y).
moveTo(int, int) - Method in class cslib.window.SimpleWindow
Moves the pen to a new position.
moveTo(int, int) - Method in class cslib.window.Sprite
Flyttar bilden till angiven punkt (x, y).
moveToAndDraw(SimpleWindow, int, int) - Method in class cslib.shapes.Shape
Raderar bilden av figuren, flyttar figuren till newX,newY och ritar upp den på sin nya plats i fönstret.

N

near(int, int) - Method in class cslib.shapes.Shape
Undersöker om punkten xc,yc ligger "nära" figuren.

O

open() - Method in class cslib.window.SimpleWindow
Opens the window.

P

paintComponent(Graphics) - Method in class cslib.window.Sprite
Överskuggar hur bilden ritas.
putData(Color[][], int, int) - Method in class cslib.fractal.MandelbrotGUI
Draws an image on the complex plane.

Q

QUIT - Static variable in class cslib.fractal.MandelbrotGUI
Quit command.

R

RENDER - Static variable in class cslib.fractal.MandelbrotGUI
Render command.
RESET - Static variable in class cslib.fractal.MandelbrotGUI
Reset command.
resetPlane() - Method in class cslib.fractal.MandelbrotGUI
Resets the axis limits to their default values.
RESOLUTION_HIGH - Static variable in class cslib.fractal.MandelbrotGUI
High resolution.
RESOLUTION_LOW - Static variable in class cslib.fractal.MandelbrotGUI
Low resolution.
RESOLUTION_MEDIUM - Static variable in class cslib.fractal.MandelbrotGUI
Medium resolution.
RESOLUTION_VERY_HIGH - Static variable in class cslib.fractal.MandelbrotGUI
Very high resolution.
RESOLUTION_VERY_LOW - Static variable in class cslib.fractal.MandelbrotGUI
Very low resolution.
rotate(double) - Method in class cslib.window.Sprite
Roterar spriten ett relativt vinkelvärde.

S

setDirection(double) - Method in class cslib.window.Sprite
Roterar spriten till ett absolut vinkelvärde.
setExitOnLastClose(boolean) - Static method in class cslib.window.SimpleWindow
 
setLineColor(Color) - Method in class cslib.window.SimpleWindow
Sets the line color.
setLineWidth(int) - Method in class cslib.window.SimpleWindow
Sets the line width.
setSide(int) - Method in class cslib.square.Square
Ändra kvadratens sida till side.
setVisible(boolean) - Method in class cslib.window.Sprite
Visar eller gömmer bilden, beroende på parameterns värde.
Shape - Class in cslib.shapes
Beskriver en figur som har ett läge.
Shape(int, int) - Constructor for class cslib.shapes.Shape
Skapar en figur med ett givet läge.
ShapeList - Class in cslib.shapes
Beskriver en lista av figurobjekt (objekt av klassen Shape).
ShapeList() - Constructor for class cslib.shapes.ShapeList
Skapar en tom lista.
SimpleWindow - Class in cslib.window
A simple window to draw in, used in "Objektorienterad programmering och Java".
SimpleWindow(int, int, String) - Constructor for class cslib.window.SimpleWindow
Creates a window and makes it visible.
SimpleWindowTestCloseEvent - Class in cslib.examples
 
SimpleWindowTestCloseEvent() - Constructor for class cslib.examples.SimpleWindowTestCloseEvent
 
SimpleWindowTestNonBlocking - Class in cslib.examples
 
SimpleWindowTestNonBlocking() - Constructor for class cslib.examples.SimpleWindowTestNonBlocking
 
Sprite - Class in cslib.window
Hanterar en Sprite som kan ritas, flyttas och roteras i SimpleWindow.
Sprite(String, int, int) - Constructor for class cslib.window.Sprite
Skapar en ikon från en bild specificerad i filepath av angiven bredd och höjd.
SpriteTest - Class in cslib.examples
 
SpriteTest() - Constructor for class cslib.examples.SpriteTest
 
Square - Class in cslib.square
 
Square(int, int, int) - Constructor for class cslib.square.Square
Skapar en kvadrat med övre, vänstra hörnet i x,y och med sidlängden side.

T

TIMEOUT_EVENT - Static variable in class cslib.window.SimpleWindow
 
TIMEOUT_FOREVER - Static variable in class cslib.window.SimpleWindow
 

W

waitForEvent() - Method in class cslib.window.SimpleWindow
Waits forever for event (mouse click or key press).
waitForEvent(int) - Method in class cslib.window.SimpleWindow
Waits for event (mouse click or key press) or timeout.
waitForMouseClick() - Method in class cslib.window.SimpleWindow
Waits for a mouse click.
wallAtLeft(int, int, int) - Method in class cslib.maze.Maze
Check if you, when you're in x,y and heading in a given direction, have a wall directly to the left.
wallInFront(int, int, int) - Method in class cslib.maze.Maze
Check if you, when you're in x,y and heading in a given direction, have a wall directly in front.
writeText(String) - Method in class cslib.window.SimpleWindow
Writes a string at the current position.

X

x - Variable in class cslib.shapes.Shape
x-koordinat för figurens läge.

Y

y - Variable in class cslib.shapes.Shape
y-koordinat för figurens läge.

Z

ZOOM - Static variable in class cslib.fractal.MandelbrotGUI
Zoom command.
A C D E F G I K L M N O P Q R S T W X Y Z 
Skip navigation links