A B C D E F G H I K L M N O P Q R S T U V W X Y

S

sampleReceived(int) - Method in interface ch.aplu.util.SoundSampleListener
Event callback method called by the sound recording thread each time a new sound sample is copied into the sound sample buffer.
save() - Method in class ch.aplu.jgamegrid.GGBackground
Saves the current background to an extra buffer.
scale(BufferedImage, int, int) - Static method in class ch.aplu.jgamegrid.GGImage
 
setActEnabled(boolean) - Method in class ch.aplu.jgamegrid.Actor
Enable/disable the invocation of act() in every simulation cycle.
setActEnabled(boolean) - Method in class ch.aplu.jgamegrid.GameGrid
Enables/disables the simulation cycle momentarily.
setActorCollisionEnabled(boolean) - Method in class ch.aplu.jgamegrid.Actor
Enable/disable the detection of collisions with the actor collision candidates.
setActOrder(Class...) - Method in class ch.aplu.jgamegrid.GameGrid
Set the act order of objects in the scene.
setActorOnBottom(Actor) - Method in class ch.aplu.jgamegrid.GameGrid
Puts the given actor at first place in the corresponding scene list, in order to act last and to be drawn on the bottom of other actors of the same class.
setActorOnTop(Actor) - Method in class ch.aplu.jgamegrid.GameGrid
Puts the given actor at last place in the corresponding scene list, in order to act first and to be drawn on top of other actors of the same class.
setBgColor(Color) - Method in class ch.aplu.jgamegrid.GameGrid
Sets the color of the background.
setBgColor(int, int, int) - Method in class ch.aplu.jgamegrid.GameGrid
Sets the color of the background.
setBgColor(Color) - Method in class ch.aplu.jgamegrid.GGBackground
Sets the given new background color.
setBgImagePath(String) - Method in class ch.aplu.jgamegrid.GameGrid
Sets the path to the background image file.
setBgImagePos(Point) - Method in class ch.aplu.jgamegrid.GameGrid
Sets the x-y-coordinate of the upper left corner of the background image with respect to the playground pixel coordinates.
setBgImagePosX(int) - Method in class ch.aplu.jgamegrid.GameGrid
Sets the x-coordinate of the upper left corner of the background image with respect to the playground pixel coordinates.
setBgImagePosY(int) - Method in class ch.aplu.jgamegrid.GameGrid
Sets the y-coordinate of the upper left corner of the background image with respect to the playground pixel coordinates.
setButtonEnabled(boolean) - Method in class ch.aplu.util.ModelessOptionPane
Enable/disable the button (if any).
setCardAlignment(Hand.CardAlignment) - Method in class ch.aplu.jcardgame.Hand
Selects the card alignment used for showInRow() and showInColumn().
setCellSize(int) - Method in class ch.aplu.jgamegrid.GameGrid
Sets the size of a cell.
setChecked(boolean) - Method in class ch.aplu.jgamegrid.GGCheckButton
Sets the button in the checked/unchecked state.
setCollisionCircle(int, Point, int) - Method in class ch.aplu.jgamegrid.Actor
Selects the circle (in pixel units) relative to the sprite image that is used for collision detection.
setCollisionCircle(Point, int) - Method in class ch.aplu.jgamegrid.Actor
Same as setCollisionCircle(int spriteId, Point center, int radius) for spriteId = 0.
setCollisionCircle(Location, Point, int) - Method in class ch.aplu.jgamegrid.GGTileMap
Selects the circle (in pixel units) relative to the tile center that is used for collision detection.
setCollisionImage(int) - Method in class ch.aplu.jgamegrid.Actor
Selects collision detection on non-transparent pixels of the image.
setCollisionImage() - Method in class ch.aplu.jgamegrid.Actor
Same as setCollisionImage(int spriteId) for spriteId = 0.
setCollisionLine(int, Point, Point) - Method in class ch.aplu.jgamegrid.Actor
Selects the line segment (in pixel units) relative to the sprite image that is used for collision detection.
setCollisionLine(Point, Point) - Method in class ch.aplu.jgamegrid.Actor
Same as setCollisionLine(int spriteId, Point startPoint, Point endPoint) for spriteId = 0.
setCollisionLine(Location, Point, Point) - Method in class ch.aplu.jgamegrid.GGTileMap
Selects the line segment (in pixel units) relative to the tile that is used for collision detection.
setCollisionRectangle(int, Point, int, int) - Method in class ch.aplu.jgamegrid.Actor
Selects the rectangle (in pixel units) relative to the sprite image that is used for collision detection.
setCollisionRectangle(Point, int, int) - Method in class ch.aplu.jgamegrid.Actor
Same as setCollisionRectangle(int spriteId, Rectangle rect) for spriteId = 0
setCollisionRectangle(Location, Point, int, int) - Method in class ch.aplu.jgamegrid.GGTileMap
Selects the rectangle (in pixel units) relative to the tile that is used for collision detection.
setCollisionSpot(int, Point) - Method in class ch.aplu.jgamegrid.Actor
Selects the hot spot (in pixel units) relative to the sprite image that is used for collision detection.
setCollisionSpot(Point) - Method in class ch.aplu.jgamegrid.Actor
Same as setCollisionSpot(int spriteId, Point spot) for spriteId = 0.
setCollisionSpot(Location, Point) - Method in class ch.aplu.jgamegrid.GGTileMap
Selects the hot spot relative to the sprite image that is used for collision detection.
setDirection(double) - Method in class ch.aplu.jgamegrid.Actor
Sets the moving direction.
setDirection(Location.CompassDirection) - Method in class ch.aplu.jgamegrid.Actor
Sets the moving direction to the given compass direction.
setDoubleClickDelay(int) - Method in class ch.aplu.jgamegrid.GameGrid
Sets the time delay the system uses to distinct click and double-click mouse events.
setEnabled(boolean) - Method in class ch.aplu.jgamegrid.GGButtonBase
Enable/Disable button actions.
setFont(Font) - Method in class ch.aplu.jgamegrid.GGBackground
Sets the font for displaying text with setText()
setGameGrid(GameGrid) - Method in class ch.aplu.jcardgame.Hand
Selects the game grid instance where to display the hand's card.
setGridColor(Color) - Method in class ch.aplu.jgamegrid.GameGrid
Sets the color of the grid and reconstructs the background.
setHorzMirror(boolean) - Method in class ch.aplu.jgamegrid.Actor
If set, the sprite image shown is mirrored horizontally.
setHotspotArea(Point, int, int) - Method in class ch.aplu.jgamegrid.GGButton
Selects the rectangle (in pixel units) relative to the button image as active mouse area.
setHotspotArea(Point, int, int) - Method in class ch.aplu.jgamegrid.GGToggleButton
Selects the rectangle (in pixel units) relative to the button image as active mouse area.
setImage(String, int, int) - Method in class ch.aplu.jgamegrid.GGTileMap
Sets the tile image of the tile with given indices.
setImage(String, Location) - Method in class ch.aplu.jgamegrid.GGTileMap
Sets the tile image of the tile with given map location.In order the image fits exactly on the tile, its size in number of pixels should be tileHeight x tileWidth given when constructing the tile map.
setLineWidth(int) - Method in class ch.aplu.jgamegrid.GGBackground
Sets the current line width in pixels.
setLocation(Location) - Method in class ch.aplu.jgamegrid.Actor
Assigns the current location to the given location.
setLocationOffset(Point) - Method in class ch.aplu.jgamegrid.Actor
Sets a pixel offset in x- any y-direction relative to the current location.
setMouseEnabled(boolean) - Method in class ch.aplu.jgamegrid.GameGrid
Enable/disable all mouse event callbacks.
setMouseTouchCircle(int, Point, int) - Method in class ch.aplu.jgamegrid.Actor
Selects the circle (in pixel units) relative to the sprite image that is used for mouse touch detection.
setMouseTouchCircle(Point, int) - Method in class ch.aplu.jgamegrid.Actor
Same as setMouseTouchCircle(int spriteId, Point center, int radius) for all sprites of this actor.
setMouseTouchEnabled(boolean) - Method in class ch.aplu.jgamegrid.Actor
Enable/disable the detection of mouse interactions.
setMouseTouchImage(int) - Method in class ch.aplu.jgamegrid.Actor
Selects the non-transparent pixels of the sprite image for mouse touch detection.
setMouseTouchImage() - Method in class ch.aplu.jgamegrid.Actor
Same as setMouseTouchImage(int spriteId) for all sprites of this actor.
setMouseTouchRectangle(int, Point, int, int) - Method in class ch.aplu.jgamegrid.Actor
Selects the rectangle (in pixel units) relative to the sprite image that is used for mouse touch detection.
setMouseTouchRectangle(Point, int, int) - Method in class ch.aplu.jgamegrid.Actor
Same as setTouchRectangle(int spriteId, Rectangle rect) for all sprites of this actor.
setNbHorzCells(int) - Method in class ch.aplu.jgamegrid.GameGrid
Sets the horizontal number of cells.
setNbVertCells(int) - Method in class ch.aplu.jgamegrid.GameGrid
Sets the vertical number of cells.
setOnBottom() - Method in class ch.aplu.jgamegrid.Actor
Sets the actor at the last place in the scene of the actor class.
setOnTop() - Method in class ch.aplu.jgamegrid.Actor
Sets the actor at the first place in the scene of the actor class.
setPaintColor(Color) - Method in class ch.aplu.jgamegrid.GGBackground
Sets the given new paint color (for drawing and filling).
setPaintMode() - Method in class ch.aplu.jgamegrid.GGBackground
Set the paint mode of the graphics context to overwrite with current color.
setPaintOrder(Class...) - Method in class ch.aplu.jgamegrid.GameGrid
Set the paint order of objects in the game grid.
setPixelLocation(Point) - Method in class ch.aplu.jgamegrid.Actor
Moves the center of the actor to the given pixel coordinates.
setPosition(int, int) - Method in class ch.aplu.jgamegrid.GameGrid
Move the location of the game grid window to the given screen position.
setPosition(Point) - Method in class ch.aplu.jgamegrid.GGTileMap
Sets the current position of the upper left vertex with respect to the playground coordinate system (origin at upper left vertex, x-coordinate to the left, y-coordinate downwards).
setSceneOrder(ArrayList<Actor>) - Method in class ch.aplu.jgamegrid.GameGrid
Sets the act and paint order of the actors in the given list by rearraging their scene list to the order in the given list.
setSelected(boolean) - Method in class ch.aplu.jgamegrid.GGRadioButton
Sets the button in the selected/deselected state.
setSimulationPeriod(int) - Method in class ch.aplu.jgamegrid.GameGrid
Sets the period of the simulation loop (>10 ms).
setSlowDown(int) - Method in class ch.aplu.jgamegrid.Actor
Slows down the calling of act() by the given factor.
setSortType(Hand.SortType) - Method in class ch.aplu.jcardgame.Hand
Sets the compare type of cards used for sorting to one of the enumeration values defined in the SortType enumeration.
setStatusText(String) - Method in class ch.aplu.jgamegrid.GameGrid
Replaces the text in the status bar by the given text using the default font and text color of JOptionPane.
setStatusText(String, Font, Color) - Method in class ch.aplu.jgamegrid.GameGrid
Replaces the text in the status bar by the given text using the given font and text color.
setTargetArea(Location) - Method in class ch.aplu.jcardgame.Hand
Same as setTargetArea(targetLocation, cardOrientation, slideStep) with cardOrientation = CardOrientation.NORTH, slideStep = 10 and onTop = true.
setTargetArea(Location, Hand.CardOrientation) - Method in class ch.aplu.jcardgame.Hand
Same as setTargetArea(targetLocation, cardOrientation, slideStep) with slideStep = 10 and onTop = true.
setTargetArea(Location, Hand.CardOrientation, int) - Method in class ch.aplu.jcardgame.Hand
Same as setTargetArea(targetLocation, cardOrientation, slideStep) with onTop = true.
setTargetArea(Location, Hand.CardOrientation, int, boolean) - Method in class ch.aplu.jcardgame.Hand
Sets the transferring attributes for all cards in the current hand.
setText(String) - Method in class ch.aplu.util.ModelessOptionPane
Display the given text.
setText(String, boolean) - Method in class ch.aplu.util.ModelessOptionPane
Same as setText() but select whether to adjust size of dialog.
setTileCollisionEnabled(Location, boolean) - Method in class ch.aplu.jgamegrid.GGTileMap
Enable/disable the detection of collisions with the given tile.
setTitle(String) - Method in class ch.aplu.jgamegrid.GameGrid
Set the title in the window's title bar.
setTitle(String) - Method in class ch.aplu.util.ModelessOptionPane
Same as showTitle().
setToggled(boolean) - Method in class ch.aplu.jgamegrid.GGToggleButton
Sets the button in the toggled/untoggled state.
setTouchEnabled(boolean) - Method in class ch.aplu.jcardgame.Hand
Enables or disables mouse touch events.
setTransparency(BufferedImage, Color, int) - Static method in class ch.aplu.jgamegrid.GGImage
Sets the transparency of the given color to given value.
setVerso(boolean) - Method in class ch.aplu.jcardgame.Card
Determines if the card's face or cover (back) will be shown.
setVerso(boolean) - Method in class ch.aplu.jcardgame.Hand
Sets the isVerso attribute to all cards in the card list.
setVertMirror(boolean) - Method in class ch.aplu.jgamegrid.Actor
If set, the sprite image shown is mirrored vertically.
setVisible(boolean) - Method in class ch.aplu.util.ModelessOptionPane
Show/hide the dialog.
setVisible(boolean) - Static method in class ch.aplu.util.QuitPane
Show/hide the dialog.
setVolume(int) - Method in class ch.aplu.util.SoundPlayer
Set the volume to the give value (range 0..1000).
setX(int) - Method in class ch.aplu.jgamegrid.Actor
Assigns an new current horizontal cell coordinate.
setXORMode(Color) - Method in class ch.aplu.jgamegrid.GGBackground
Sets the paint mode to alternate between the current color and the given color.
setY(int) - Method in class ch.aplu.jgamegrid.Actor
Assigns an new current vertical cell coordinate.
shear(BufferedImage, double, double) - Static method in class ch.aplu.jgamegrid.GGImage
 
shift(boolean, boolean) - Method in class ch.aplu.jcardgame.Hand
Shifts (rolls) the card list forward or backward.
shiftSceneOrder(ArrayList<Actor>, boolean) - Method in class ch.aplu.jgamegrid.GameGrid
Shifts (rolls) the actors of the given actor list in the corresponding scene list forward or backward.
show() - Method in class ch.aplu.jgamegrid.Actor
Turns on the visibility of the sprite with id 0.
show(int) - Method in class ch.aplu.jgamegrid.Actor
Turns on the visibility of the sprite with given id.
show() - Method in class ch.aplu.jgamegrid.GameGrid
Shows the game grid after initialisation or when hided.
show() - Method in class ch.aplu.jgamegrid.GGButtonBase
 
show(int) - Method in class ch.aplu.jgamegrid.GGButtonBase
 
showHeapSize() - Static method in class ch.aplu.jcardgame.Deck
Displays the current memory heap size in System.out.
showNextSprite() - Method in class ch.aplu.jgamegrid.Actor
Increases the id of the currently visible sprite and makes this sprite visible.
showPreviousSprite() - Method in class ch.aplu.jgamegrid.Actor
Decreases the id of the currently visible sprite and makes this sprite visible.
showStatusBar(boolean) - Method in class ch.aplu.jgamegrid.GameGrid
Shows or hides the status bar.
showTitle(String) - Method in class ch.aplu.util.ModelessOptionPane
Show the given title in the title bar.
shrink(BufferedImage, double) - Static method in class ch.aplu.jgamegrid.GGImage
 
shuffle(boolean) - Method in class ch.aplu.jcardgame.Hand
Shuffles the card list (random permutation of cards).
simulationPeriod - Variable in class ch.aplu.jgamegrid.GameGrid
Simulation period (in ms).
Size - Class in ch.aplu.util
The size of a window.
Size(int, int) - Constructor for class ch.aplu.util.Size
Construct a Size instance.
slideToTarget(Location, int) - Method in class ch.aplu.jcardgame.Card
Same as slideToTarget(targetLocation, slideStep, blocking) with blocking = true.
slideToTarget(Location, int, boolean) - Method in class ch.aplu.jcardgame.Card
If the card is handless and visible, moves the card actor from current location to the given location using the given number of steps per GameGrid's simulation cycle.
slideToTarget(Location, int, boolean, boolean) - Method in class ch.aplu.jcardgame.CardCover
Slides the card cover actor from the current location to the given target location using the given step.
sort(Hand.SortType, boolean) - Method in class ch.aplu.jcardgame.Hand
Sorts the card list with given sort type.
SoundConverter - Interface in ch.aplu.util
Interface for easy integration of a sound converter to SoundPlayer and SoundPlayerExt classes.
SoundPlayer - Class in ch.aplu.util
Class for playing sound files using file streaming in a separate thread.
SoundPlayer(InputStream, int) - Constructor for class ch.aplu.util.SoundPlayer
Construct a sound player attached to given input stream using the given mixer index (sound device).
SoundPlayer(InputStream) - Constructor for class ch.aplu.util.SoundPlayer
Same as SoundPlayer(is, mixerIndex) using the default sound device.
SoundPlayer(Object, String, int) - Constructor for class ch.aplu.util.SoundPlayer
Construct a sound player attached to given pathname from a JAR archive using the given mixer index (sound device).
SoundPlayer(Object, String) - Constructor for class ch.aplu.util.SoundPlayer
Same as SoundPlayer(obj, audioPathname, mixerIndex) using the default sound device.
SoundPlayer(File, int) - Constructor for class ch.aplu.util.SoundPlayer
Construct a sound player attached to given File instance using the given mixer index (sound device).
SoundPlayer(File) - Constructor for class ch.aplu.util.SoundPlayer
Same as SoundPlayer(audioFile, mixerIndex) using the default sound device.
SoundPlayer(String, int) - Constructor for class ch.aplu.util.SoundPlayer
Construct a sound player attached to given pathname (relative or fully qualified) using the given mixer index (sound device).
SoundPlayer(String) - Constructor for class ch.aplu.util.SoundPlayer
Same as SoundPlayer(audioPathname, mixerIndex) using the default sound device.
SoundPlayerExt - Class in ch.aplu.util
Class for playing sound files using file streaming in a separate thread.
SoundPlayerExt(Object, String, int) - Constructor for class ch.aplu.util.SoundPlayerExt
Construct a sound player attached to given pathname from a JAR archive using the given mixer index (sound device).
SoundPlayerExt(Object, String) - Constructor for class ch.aplu.util.SoundPlayerExt
Same as SoundPlayerExt(obj, audioPathname, mixerIndex) using the default sound device.
SoundPlayerExt(InputStream) - Constructor for class ch.aplu.util.SoundPlayerExt
Same as SoundPlayerEx(inputStream, mixerIndex) using the default sound device.
SoundPlayerExt(InputStream, int) - Constructor for class ch.aplu.util.SoundPlayerExt
Construct a sound player attached to given input stream using the given mixer index (sound device).
SoundPlayerExt(File) - Constructor for class ch.aplu.util.SoundPlayerExt
Same as SoundPlayerEx(audioFile, mixerIndex) using the default sound device.
SoundPlayerExt(File, int) - Constructor for class ch.aplu.util.SoundPlayerExt
Construct a sound player attached to given File instance using the given mixer index (sound device).
SoundPlayerExt(String) - Constructor for class ch.aplu.util.SoundPlayerExt
Same as SoundPlayerEx(audioPathname, mixerIndex) using the default sound device.
SoundPlayerExt(String, int) - Constructor for class ch.aplu.util.SoundPlayerExt
Construct a sound player attached to given pathname (relative or fully qualified) using the given mixer index (sound device).
SoundPlayerListener - Interface in ch.aplu.util
The listener interface for receiving StreamingPlayer notification.
SoundRecorder - Class in ch.aplu.util
Class for recording sound and save it to a WAV file.
SoundRecorder(AudioFormat) - Constructor for class ch.aplu.util.SoundRecorder
Create a recorder instance with given audioFormat using the default sound device.
SoundRecorder(int, AudioFormat) - Constructor for class ch.aplu.util.SoundRecorder
Create a recorder instance with given audioFormat using the default sound device.
SoundRecorder(AudioFormat, int) - Constructor for class ch.aplu.util.SoundRecorder
 
SoundRecorder(int, AudioFormat, int) - Constructor for class ch.aplu.util.SoundRecorder
Create a recorder instance with given audioFormat using the given mixer index (sound device).
SoundSampleListener - Interface in ch.aplu.util
Declaration of a SoundRecorder callback method.
SOUTH - Static variable in class ch.aplu.jgamegrid.Location
The compass direction for south.
SOUTHEAST - Static variable in class ch.aplu.jgamegrid.Location
The compass direction for southeast.
SOUTHWEST - Static variable in class ch.aplu.jgamegrid.Location
The compass direction for southwest.
start() - Method in class ch.aplu.util.BaseAlarmTimer
Set the timer to the preset alarm time and start it.
start(long) - Method in class ch.aplu.util.BaseAlarmTimer
Set the timer to the given preset alarm time and start it.
start() - Method in class ch.aplu.util.BaseTimer
Reset the timer to zero and start it.
startBtnA - Static variable in class ch.aplu.jgamegrid.GGButton
Standard button labeled 'Start', textcolor black, background color white
startBtnB - Static variable in class ch.aplu.jgamegrid.GGButton
Standard button labeled 'Start', textcolor white, background color black
started() - Method in class ch.aplu.jgamegrid.GGNavigationAdapter
Event callback method called when the run button is hit.
started() - Method in interface ch.aplu.jgamegrid.GGNavigationListener
Event callback method called when the run button is hit.
stepped() - Method in class ch.aplu.jgamegrid.GGNavigationAdapter
Event callback method called when the step button is hit.
stepped() - Method in interface ch.aplu.jgamegrid.GGNavigationListener
Event callback method called when the step button is hit.
stop() - Method in class ch.aplu.util.BaseAlarmTimer
Stop the timer and store the current time.
stop() - Method in class ch.aplu.util.BaseTimer
Stop the timer and store the current value.
stop() - Method in class ch.aplu.util.SoundPlayer
Stop playing.
stopBtnA - Static variable in class ch.aplu.jgamegrid.GGButton
Standard button labeled 'Stop', textcolor black, background color white
stopBtnB - Static variable in class ch.aplu.jgamegrid.GGButton
Standard button labeled 'Stop', textcolor white, background color black
stopCapture() - Method in class ch.aplu.util.SoundRecorder
Stop the capturing process and return after the capture thread terminates.
stopEvents() - Method in class ch.aplu.util.BaseAlarmTimer
Force to stop the callback calls by terminating the timer's polling thread.
stopGameThread() - Method in class ch.aplu.jgamegrid.GameGrid
Stops the game thread to avoid any CPU consumption.
sub(GGVector) - Method in class ch.aplu.jgamegrid.GGVector
Returns a new vector that is the vector difference of the current vector and the given vector.
subtract(Complex) - Method in class ch.aplu.util.Complex
Define a complex subtract method.
subtract(Complex, Complex) - Static method in class ch.aplu.util.Complex
Define a static subtract method that creates a a new Complex object equal to cvalue1 - cvalue2.

A B C D E F G H I K L M N O P Q R S T U V W X Y