A B C D E F G H I J M N O P R S T W X Y

A

addImage(RawImage, int) - Method in class jezuch.utils.starmapper.encoders.PCXEncoder
 
addImage(RawImage, int) - Method in class jezuch.utils.starmapper.encoders.ImageEncoder
Encodes another image (for a given Stars!
addImageProgressListener(ImageProgressListener) - Method in class jezuch.utils.starmapper2.Starmapper
Adds a ImageProgressListener to a list of listeners interested in drawing progress events.
addPla(StarsMap.StarsPla) - Method in class jezuch.utils.starmapper2.Starmapper
Adds another report to information collected in this Starmapper.
addPla(StarsMap.StarsPla, Player) - Method in class jezuch.utils.starmapper2.Starmapper
Adds another report to information collected in this Starmapper.
addPla(StarsPlaReader, int) - Method in class jezuch.utils.starmapper2.Starmapper
Adds another report to information collected in this Starmapper.
addPla(StarsPlaReader, int, Player) - Method in class jezuch.utils.starmapper2.Starmapper
Adds another report to information collected in this Starmapper.
addPlanet(Planet) - Method in class jezuch.utils.starmapper2.StarsMap
Adds a Planet to list of planets in this map.
addPlanetInfo(PlanetInfo) - Method in class jezuch.utils.starmapper2.StarsMap.StarsPla
Adds a PlanetInfo to this PLA.
addPlayer(Player) - Method in class jezuch.utils.starmapper2.StarsMap
Adds a Player to this map in a first free slot.
addPlayer(Player, int) - Method in class jezuch.utils.starmapper2.StarsMap
Adds Player in specified player slot in this map.
addProgressListener(ProgressListener) - Method in class jezuch.utils.starmapper2.Starmapper
Adds a ProgressListener to a list of listeners interested in progress events.
addStarbaseMapping(String, int) - Method in class jezuch.utils.starmapper2.Player
Adds a starbase mapping to population.
addStarbaseMapping(String, String) - Method in class jezuch.utils.starmapper2.Player
Adds a starbase mapping to another stabase.
applyTo(Rectangle) - Method in class jezuch.utils.starmapper2.ImageParameters.Clip
Applies this clip to given map bounds.

B

BOOLEAN_PARAM_HANDLER - Static variable in class jezuch.utils.starmapper2.Parameters
Generic ParamHandler that checks if the parameter is Boolean.

C

calcHeight(Rectangle) - Method in class jezuch.utils.starmapper2.ImageParameters
Calculates image height by applying "abstract" image dimensions if they are defined.
calcWidth(Rectangle) - Method in class jezuch.utils.starmapper2.ImageParameters
Calculates image width by applying "abstract" image dimensions if they are defined.
checkParam(Object) - Method in interface jezuch.utils.starmapper2.Parameters.ParamHandler
Validates a parameter passed as Object (primitives as wrappers)
clearStarbaseMapping() - Method in class jezuch.utils.starmapper2.Player
Removes all starbase mapping from this Player.
close() - Method in class jezuch.utils.starmapper2.StarsMap.DefaultStarsPlaReader
 
close() - Method in interface jezuch.utils.starmapper2.StarsPlaReader
Close this reader - this usually just closes underlying input stream.
close() - Method in class jezuch.utils.starmapper.encoders.PCXEncoder
 
close() - Method in class jezuch.utils.starmapper.encoders.ImageEncoder
Closes encoder - useful for animated files, like animated GIF.
containsPlanet(Planet) - Method in class jezuch.utils.starmapper2.StarsMap
 
containsPlayer(Player) - Method in class jezuch.utils.starmapper2.StarsMap
 

D

DEFAULT_AR_VALUE - Static variable in class jezuch.utils.starmapper2.PlanetInfo
Default AR's planet's influence range (light years).
dispatch() - Method in class jezuch.utils.starmapper2.event.ImageEvent
Dispatches this event.
dispatchEvent(ImageEvent) - Method in class jezuch.utils.starmapper2.Starmapper
Dispatches an ImageEvent.
drawMap(int) - Method in class jezuch.utils.starmapper2.Starmapper
Request Starmapper to draw a map from a given year with default image parameters.
drawMap(int, ImageParameters) - Method in class jezuch.utils.starmapper2.Starmapper
Requests Starmapper to draw a map from a given year and custom image parameters.

E

east - Variable in class jezuch.utils.starmapper2.ImageParameters.Clip
Eastern edge of this clip.
EncoderException - exception jezuch.utils.starmapper.encoders.EncoderException.
Exception thrown by ImageEncoders to notify of encoding errors.
EncoderException() - Constructor for class jezuch.utils.starmapper.encoders.EncoderException
 
EncoderException(String) - Constructor for class jezuch.utils.starmapper.encoders.EncoderException
 
equals(Object) - Method in class jezuch.utils.starmapper2.Planet
Compares this planet to another object
equals(Object) - Method in class jezuch.utils.starmapper2.StarsMap
Checks if this map is equal to another map; the comparison is done by identity check, so map is equal only to itself.

F

fromYear - Variable in class jezuch.utils.starmapper2.StarsMap.StarsPla
The year thsi PLA comes from

G

getAllPlanets() - Method in class jezuch.utils.starmapper2.StarsMap.StarsPla
 
getBoolean(String) - Method in class jezuch.utils.starmapper2.Parameters
Accessor method for type boolean; returns true if and only if parameter's value is identical to java.lang.Boolean.TRUE.
getBounds() - Method in class jezuch.utils.starmapper2.StarsMap
 
getColonisedPlanets() - Method in class jezuch.utils.starmapper2.StarsMap.StarsPla
 
getColor() - Method in class jezuch.utils.starmapper2.Player
 
getColorModel() - Method in class jezuch.utils.starmapper.encoders.RawImage
 
getData() - Method in class jezuch.utils.starmapper.encoders.RawImage
Returns byte array containing raw pixel data in the indexed color model.
getDefaultColors() - Static method in class jezuch.utils.starmapper2.Starmapper
 
getDefaultValue() - Method in class jezuch.utils.starmapper.encoders.ImageEncoder.Parameter
Returns default value of this parameter.
getException() - Method in class jezuch.utils.starmapper2.event.ImageEvent
 
getHeight() - Method in class jezuch.utils.starmapper.encoders.RawImage
 
getImage() - Method in class jezuch.utils.starmapper2.event.ImageEvent
 
getInt(String) - Method in class jezuch.utils.starmapper2.Parameters
Accessor method for type int; might throw an exception if parameter's value is not an integer or is not set at all.
getMap() - Method in class jezuch.utils.starmapper2.Starmapper
 
getName() - Method in class jezuch.utils.starmapper.encoders.ImageEncoder.Parameter
 
getName() - Method in class jezuch.utils.starmapper.encoders.ImageEncoder
Returns name of this encoder.
getObject(String) - Method in class jezuch.utils.starmapper2.Parameters
Returns parameter's value.
getParameters() - Method in class jezuch.utils.starmapper.encoders.PCXEncoder
 
getParameters() - Method in class jezuch.utils.starmapper.encoders.ImageEncoder
Returns list of parameters accepted by this encoder in Properties passed to initialise() as array of instances of ImageEncoder.Parameter classes.
getPixelsProduced() - Method in class jezuch.utils.starmapper2.event.ImageEvent
 
getPixelsToProduce() - Method in class jezuch.utils.starmapper2.event.ImageEvent
 
getPlanet(String) - Method in class jezuch.utils.starmapper2.StarsMap
 
getPlanetCount() - Method in class jezuch.utils.starmapper2.StarsMap
 
getPlayer(int) - Method in class jezuch.utils.starmapper2.StarsMap
 
getPlayer(String) - Method in class jezuch.utils.starmapper2.StarsMap
 
getPossibleValues() - Method in class jezuch.utils.starmapper.encoders.ImageEncoder.Parameter
Return list of possible parameter's values as array of Strings.
getProducer() - Method in class jezuch.utils.starmapper.encoders.RawImage
Constructs an ImageProducer which can produce pixels for this image - this is a link to the Java's Producer-Consumer interface.
getStarbaseMapping(String) - Method in class jezuch.utils.starmapper2.Player
Returns a population that is mapped to a starbase name.
getString(String) - Method in class jezuch.utils.starmapper2.Parameters
Returns String interpretation of parameter's value.
getValue() - Method in class jezuch.utils.starmapper2.PlanetInfo
Calculates a value of a planet according to this report.
getWidth() - Method in class jezuch.utils.starmapper.encoders.RawImage
 

H

hashCode() - Method in class jezuch.utils.starmapper2.Planet
Generates Planet's hash code.

I

IMAGE_ERROR - Static variable in class jezuch.utils.starmapper2.event.ImageEvent
Event ID indicating an error during drawing
IMAGE_FINISH - Static variable in class jezuch.utils.starmapper2.event.ImageEvent
Event ID indicating that image drawing has finished
IMAGE_IN_PROGRESS - Static variable in class jezuch.utils.starmapper2.event.ImageEvent
Event ID indicating that image is being drawn
IMAGE_START - Static variable in class jezuch.utils.starmapper2.event.ImageEvent
Event ID indicating that image drawing is about to start
ImageEncoder - class jezuch.utils.starmapper.encoders.ImageEncoder.
Starmapper's 1.x image encoding interface (abstract class), which can be subclassed by users to enhance Starmapper by ability to do whatever possible with produced galaxy map; it can be outputted to a file in any image format, it can be even sent over the network, I don't care :) Subclasses of this class must have public constructor with empty argument list, or Starmapper will generate error.
ImageEncoder.Parameter - class jezuch.utils.starmapper.encoders.ImageEncoder.Parameter.
Class containing information for one encoder parameter.
ImageEncoder.Parameter(String, String, String[]) - Constructor for class jezuch.utils.starmapper.encoders.ImageEncoder.Parameter
Constructs new encoder parameter from given name, default value and set of values.
ImageEncoder() - Constructor for class jezuch.utils.starmapper.encoders.ImageEncoder
Every Starmapper's ImageEncoder must have a public no-arg constructor.
imageErrored(ImageEvent) - Method in interface jezuch.utils.starmapper2.event.ProgressListener
Notifies listeners that an error occured during drawing process.
ImageEvent - class jezuch.utils.starmapper2.event.ImageEvent.
An event that indicates progress of image drawing process.
ImageEvent(Starmapper, RawImage, int, int, int) - Constructor for class jezuch.utils.starmapper2.event.ImageEvent
Constructs an ImageEvent from it's source (Starmapper), the image being processed, event ID and information about pixels produced and to be produced.
ImageEvent(Starmapper, RawImage, int, int, int, Exception) - Constructor for class jezuch.utils.starmapper2.event.ImageEvent
Constructs an ImageEvent for image error events.
imageFinished(ImageEvent) - Method in interface jezuch.utils.starmapper2.event.ProgressListener
Notifies listeners that Starmapper has just finished producing pixels for the image.
ImageParameters - class jezuch.utils.starmapper2.ImageParameters.
Objects of this class contain instructions for Starmapper about generation of output image, such as image size, map clip etc.
ImageParameters.Clip - class jezuch.utils.starmapper2.ImageParameters.Clip.
Instances of this class encapsulate a Starmapper's map clip.
ImageParameters.Clip(int, int, int, int) - Constructor for class jezuch.utils.starmapper2.ImageParameters.Clip
Constructs a clip with given bounds in Stars!
ImageParameters() - Constructor for class jezuch.utils.starmapper2.ImageParameters
Construct ImageParameters instace with default values: image size 640x480, do not draw names and without clip.
imageProgress(ImageEvent) - Method in interface jezuch.utils.starmapper2.event.ImageProgressListener
Notifies listeners that new pixels are available in the image being processed.
ImageProgressListener - interface jezuch.utils.starmapper2.event.ImageProgressListener.
Interface that defines callback methods used by Starmapper to notify clients about progress of production of pixels in the image drawing process.
imageStarted(ImageEvent) - Method in interface jezuch.utils.starmapper2.event.ProgressListener
Notifies listeners that Starmapper is about to start producing pixels for the image.
initialise(String, Properties) - Method in class jezuch.utils.starmapper.encoders.PCXEncoder
 
initialise(String, Properties) - Method in class jezuch.utils.starmapper.encoders.ImageEncoder
Initializes encoder - useful for animated files, like animated GIF.
isAR() - Method in class jezuch.utils.starmapper2.Player
 
isRequired() - Method in class jezuch.utils.starmapper.encoders.ImageEncoder.Parameter
Returns true if this parameter is required, that is if it has no default value.

J

jezuch.utils.starmapper.encoders - package jezuch.utils.starmapper.encoders
 
jezuch.utils.starmapper2 - package jezuch.utils.starmapper2
 
jezuch.utils.starmapper2.event - package jezuch.utils.starmapper2.event
 

M

MAP_BORDER - Static variable in class jezuch.utils.starmapper2.ImageParameters.Clip
An "abstract" clip bound that evaluates to corresponding map bound.
MAP_SIZE - Static variable in class jezuch.utils.starmapper2.ImageParameters
An "abstract" image dimension that means "one pixel per map light year".
MAX_AR_POPULATION - Static variable in class jezuch.utils.starmapper2.PlanetInfo
Maximum population in AR's starbase (nominal limit of Death Star).
MAX_POPULATION - Static variable in class jezuch.utils.starmapper2.PlanetInfo
Value of maximum non-overcrowded planet's population in Stars!.
MAX_VALUE - Static variable in class jezuch.utils.starmapper2.PlanetInfo
Base maximum planet's influence range (light years).
mergeWith(StarsMap.StarsPla) - Method in class jezuch.utils.starmapper2.StarsMap.StarsPla
Merges this PLA with another PLA from this map.
MIN_VALUE - Static variable in class jezuch.utils.starmapper2.PlanetInfo
Minimum planet's influence range (light years).

N

name - Variable in class jezuch.utils.starmapper2.Planet
Planet's name
name - Variable in class jezuch.utils.starmapper2.StarsMap
Map's name.
name - Variable in class jezuch.utils.starmapper2.Player
Player's name.
north - Variable in class jezuch.utils.starmapper2.ImageParameters.Clip
Northern edge of this clip.

O

OUT_IMG_DATABAR - Static variable in class jezuch.utils.starmapper2.ImageParameters
A constant value that defines the space between right map edge and right image border, used for list of player names and year timestamp.
owner - Variable in class jezuch.utils.starmapper2.PlanetInfo
Reference to Player that owns the planet according to the reports.

P

Parameters - class jezuch.utils.starmapper2.Parameters.
This class is similar to Properties but accepts more data types than String - int, boolean and Object.
Parameters.ParamHandler - interface jezuch.utils.starmapper2.Parameters.ParamHandler.
Interface that defines a method to validate a reserved parameter.
Parameters() - Constructor for class jezuch.utils.starmapper2.Parameters
Construct Parameters instace with default values.
params - Variable in class jezuch.utils.starmapper2.Parameters
A map that holds all parameters; specific accessors get values from this map and convert (cast) them to correct types and optionally check for correct values.
parseMap(File, String) - Static method in class jezuch.utils.starmapper2.Starmapper
Parses a Stars!
parseMap(Reader, String) - Static method in class jezuch.utils.starmapper2.Starmapper
Parses a Stars!
parseMap(String, String) - Static method in class jezuch.utils.starmapper2.Starmapper
Parses a Stars!
parseMap(URL, String) - Static method in class jezuch.utils.starmapper2.Starmapper
Parses a Stars!
parsePla(File, StarsMap, int) - Static method in class jezuch.utils.starmapper2.Starmapper
Parses a Stars!
parsePla(File, StarsMap, int, boolean) - Static method in class jezuch.utils.starmapper2.Starmapper
Parses a Stars!
parsePla(Reader, StarsMap, int) - Static method in class jezuch.utils.starmapper2.Starmapper
Parses a Stars!
parsePla(Reader, StarsMap, int, boolean) - Static method in class jezuch.utils.starmapper2.Starmapper
Parses a Stars!
parsePla(String, StarsMap, int) - Static method in class jezuch.utils.starmapper2.Starmapper
Parses a Stars!
parsePla(String, StarsMap, int, boolean) - Static method in class jezuch.utils.starmapper2.Starmapper
Parses a Stars!
parsePla(URL, StarsMap, int) - Static method in class jezuch.utils.starmapper2.Starmapper
Parses a Stars!
parsePla(URL, StarsMap, int, boolean) - Static method in class jezuch.utils.starmapper2.Starmapper
Parses a Stars!
PCXEncoder - class jezuch.utils.starmapper.encoders.PCXEncoder.
Internal Starmapper's image encoder using internal PCXWriter.
PCXEncoder() - Constructor for class jezuch.utils.starmapper.encoders.PCXEncoder
 
planet - Variable in class jezuch.utils.starmapper2.PlanetInfo
Reference to Planet that this PlanetInfo describes.
Planet - class jezuch.utils.starmapper2.Planet.
Planet class is a struct-like immutable placeholder for planet name and its locaion in the Stars!
Planet(String, int, int) - Constructor for class jezuch.utils.starmapper2.Planet
Constructs a planet with given name and location.
PlanetInfo - class jezuch.utils.starmapper2.PlanetInfo.
PlanetInfo is a sort of wrapper around Planet, that contains information for that Planet read from a Stars!
PlanetInfo(Planet, Player, String, int, int) - Constructor for class jezuch.utils.starmapper2.PlanetInfo
Creates a planet report for a given planet and parameters.
Player - class jezuch.utils.starmapper2.Player.
Class Player encapsulates a Stars!
Player(String) - Constructor for class jezuch.utils.starmapper2.Player
Construncts a Player with a name, default color and as non-AR race.
Player(String, boolean) - Constructor for class jezuch.utils.starmapper2.Player
Constructs a Player with specified name and as AR or non-AR race.
Player(String, boolean, Color) - Constructor for class jezuch.utils.starmapper2.Player
Constructs a player with all parameters, except starbase map, which is configured separately.
Player(String, Color) - Constructor for class jezuch.utils.starmapper2.Player
Constructs a player with specified name and color and as non-AR race.
population - Variable in class jezuch.utils.starmapper2.PlanetInfo
Population of a Planet referenced by this PlanetInfo according to the reports.
ProgressListener - interface jezuch.utils.starmapper2.event.ProgressListener.
Interface that defines callback methods used by Starmapper to notify clients about progress of image drawing process.
PROPORTIONAL - Static variable in class jezuch.utils.starmapper2.ImageParameters
An "abstract" image dimension that sets the dimension proportionally to the other one; two proportional dimensions are equal to two "map size" dimensions.

R

RawImage - class jezuch.utils.starmapper.encoders.RawImage.
Simple struct-like class holding Starmapper image data.
RawImage(byte[], IndexColorModel, int, int) - Constructor for class jezuch.utils.starmapper.encoders.RawImage
Constructs RawImage from specified raw pixel data, IndexColorModel and size.
RawImage(IndexColorModel, int, int) - Constructor for class jezuch.utils.starmapper.encoders.RawImage
Constructs new empty RawImage with specified IndexColorModel and size.
readPlanetInfo() - Method in class jezuch.utils.starmapper2.StarsMap.DefaultStarsPlaReader
 
readPlanetInfo() - Method in interface jezuch.utils.starmapper2.StarsPlaReader
Generate or read next PlanetInfo.
removeImageProgressListener(ImageProgressListener) - Method in class jezuch.utils.starmapper2.Starmapper
Removes a ImageProgressListener from a list of listeners interested in drawing progress events.
removePlanet(String) - Method in class jezuch.utils.starmapper2.StarsMap
Removes planet with a given name from this map.
removePlanetInfo(Planet) - Method in class jezuch.utils.starmapper2.StarsMap.StarsPla
Removes information associated with a given planet from this PLA.
removePlayer(int) - Method in class jezuch.utils.starmapper2.StarsMap
Removes a player from a given player slot.
removePlayer(Player) - Method in class jezuch.utils.starmapper2.StarsMap
Removes a given player from this map.
removePlayer(String) - Method in class jezuch.utils.starmapper2.StarsMap
Removes first player with given name from this map.
removeProgressListener(ProgressListener) - Method in class jezuch.utils.starmapper2.Starmapper
Removes a ProgressListener from a list of listeners interested in progress events.
reportAge - Variable in class jezuch.utils.starmapper2.PlanetInfo
Age of the report that is represented by this PlanetInfo.
reservedKeys - Variable in class jezuch.utils.starmapper2.Parameters
A map of reserved keys.
reset() - Method in class jezuch.utils.starmapper2.Starmapper
Clears all planet information collected in this Starmapper.

S

sbase - Variable in class jezuch.utils.starmapper2.PlanetInfo
Starbase name that is orbiting this planet according to the reports.
setAR(boolean) - Method in class jezuch.utils.starmapper2.Player
 
setBoolean(String, boolean) - Method in class jezuch.utils.starmapper2.Parameters
Sets parameter as boolean value overwriting previous value.
setColor(Color) - Method in class jezuch.utils.starmapper2.Player
 
setInt(String, int) - Method in class jezuch.utils.starmapper2.Parameters
Sets parameter as int value overwriting previous value.
setObject(String, Object) - Method in class jezuch.utils.starmapper2.Parameters
Sets parameter's value overwriting previous value.
setString(String, String) - Method in class jezuch.utils.starmapper2.Parameters
Sets parameter as String value overwriting previous value.
south - Variable in class jezuch.utils.starmapper2.ImageParameters.Clip
Southern edge of this clip.
Starmapper - class jezuch.utils.starmapper2.Starmapper.
The core class of Starmapper2 Library.
Starmapper(StarsMap) - Constructor for class jezuch.utils.starmapper2.Starmapper
Creates a Starmapper instance based on a given Stars!
StarsMap - class jezuch.utils.starmapper2.StarsMap.
A class that encapsulates Stars!
StarsMap.DefaultStarsPlaReader - class jezuch.utils.starmapper2.StarsMap.DefaultStarsPlaReader.
A default implementation of StarsPlaReader that reads PlanetInfos from reports generated by Stars!.
StarsMap.DefaultStarsPlaReader(Reader) - Constructor for class jezuch.utils.starmapper2.StarsMap.DefaultStarsPlaReader
Constructs a DefaultStarsPlaReader that reads data from a Reader.
StarsMap.DefaultStarsPlaReader(Reader, boolean) - Constructor for class jezuch.utils.starmapper2.StarsMap.DefaultStarsPlaReader
Constructs a DefaultStarsPlaReader that reads data from a Reader.
StarsMap.StarsPla - class jezuch.utils.starmapper2.StarsMap.StarsPla.
A class that encapsulates a Stars!
StarsMap.StarsPla(int) - Constructor for class jezuch.utils.starmapper2.StarsMap.StarsPla
Creates a Stars!
StarsMap.StarsPla(StarsPlaReader, int) - Constructor for class jezuch.utils.starmapper2.StarsMap.StarsPla
Creates a Stars!
StarsMap(String) - Constructor for class jezuch.utils.starmapper2.StarsMap
Creates a map with a given name.
StarsPlaReader - interface jezuch.utils.starmapper2.StarsPlaReader.
This is an interface for readers that read or generate PlanetInfos.

T

toString() - Method in class jezuch.utils.starmapper2.Player
 

W

west - Variable in class jezuch.utils.starmapper2.ImageParameters.Clip
Western edge of this clip.

X

x - Variable in class jezuch.utils.starmapper2.Planet
Planet's horizontal location in the map

Y

y - Variable in class jezuch.utils.starmapper2.Planet
Planet's vertical location in the map

A B C D E F G H I J M N O P R S T W X Y