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

A

a - Variable in class ch.sahits.game.graphic.display.util.Edge
 
AbstractEditableSahitsComponent<T> - Class in ch.sahits.game.graphic.layout
Component that can hold a single value that can be edited.
AbstractEditableSahitsComponent() - Constructor for class ch.sahits.game.graphic.layout.AbstractEditableSahitsComponent
 
AbstractMultiselectableComponent<T> - Class in ch.sahits.game.graphic.layout
 
AbstractMultiselectableComponent() - Constructor for class ch.sahits.game.graphic.layout.AbstractMultiselectableComponent
 
AbstractSahitsComponent - Class in ch.sahits.game.graphic.layout
 
AbstractSahitsComponent() - Constructor for class ch.sahits.game.graphic.layout.AbstractSahitsComponent
 
AbstractSelectableComponent - Class in ch.sahits.game.graphic.layout
 
AbstractSelectableComponent(FontMetrics) - Constructor for class ch.sahits.game.graphic.layout.AbstractSelectableComponent
 
action - Variable in class ch.sahits.game.graphic.display.util.ClickablePolygon
 
action - Variable in class ch.sahits.game.graphic.layout.Button
 
activateShip(IShip) - Method in class ch.sahits.game.graphic.display.model.CityPlayerProxy
Activate a ship.
activeShip - Variable in class ch.sahits.game.graphic.display.model.CityPlayerProxy
Reference the active ship of the player
add(ISahitsComponent, ISahitsLayoutConstraint) - Method in interface ch.sahits.game.graphic.display.ISahitsContainer
Add a component to the container with a specific constraint
add(ISahitsComponent, ISahitsLayoutConstraint) - Method in class ch.sahits.game.graphic.display.OpenPatricianBackgroundView
 
add(NamedPolygon, Runnable) - Method in class ch.sahits.game.graphic.display.util.ClickablePolygons
Add a new polygon to the list
add(T) - Method in class ch.sahits.game.graphic.layout.AbstractMultiselectableComponent
 
add(AbstractSelectableComponent) - Method in class ch.sahits.game.graphic.layout.SelectableGroup
Add a new selectable to the group
addButton(String) - Method in class ch.sahits.game.graphic.display.start.NewGameView
Create a button with the text label
addChangeListeners(IIndexChangeListener) - Method in class ch.sahits.game.graphic.layout.Slider
 
addCompetitor(IPlayer) - Method in class ch.sahits.game.Client
 
addInput(String) - Method in class ch.sahits.game.graphic.display.start.NewGameView
Create a TextInput field with an optional preset text
addLabel(String) - Method in class ch.sahits.game.graphic.display.start.NewGameView
Creating a label.
addLayoutComponent(ISahitsComponent, ISahitsLayoutConstraint) - Method in interface ch.sahits.game.graphic.display.ISahitsLayoutManager
Add a component with a constraint.
addLayoutComponent(String, Component) - Method in class ch.sahits.game.graphic.layout.MaximalGridLayout
Has no effect, since this layout manager does not use a per-component string.
addLayoutComponent(Component, Object) - Method in class ch.sahits.game.graphic.layout.MaximalGridLayout
Adding a component with a MaximalGridLayoutConstraints
addLayoutComponent(ISahitsComponent, ISahitsLayoutConstraint) - Method in class ch.sahits.game.graphic.layout.SahitsMaximalGridLayout
Adding a ISahitsComponent with a MaximalGridLayoutConstraints
addRadioButton(String, boolean, SelectableGroup) - Method in class ch.sahits.game.graphic.display.start.NewGameView
Add a RadioButton to the view.
addSlider(List<String>) - Method in class ch.sahits.game.graphic.display.start.NewGameView
Add a slider control to the component.
addSpinner(List<String>) - Method in class ch.sahits.game.graphic.display.start.NewGameView
Add a spinner control to the component.
addUpColumnWidth(Container) - Method in class ch.sahits.game.graphic.layout.MaximalGridLayout
Adding up the column width of a container.
addUpColumnWidth(ISahitsContainer) - Method in class ch.sahits.game.graphic.layout.SahitsMaximalGridLayout
Adding up the column width of a ISahitsContainer.
addUpRowHeight(Container) - Method in class ch.sahits.game.graphic.layout.MaximalGridLayout
Adding up the row height of a container.
addUpRowHeight(ISahitsContainer) - Method in class ch.sahits.game.graphic.layout.SahitsMaximalGridLayout
Adding up the row height of a ISahitsContainer.
anchor - Variable in class ch.sahits.game.graphic.layout.MaximalGridLayoutConstraints
 
angleToIndex(double) - Method in class ch.sahits.game.graphic.layout.Slider
Compute the closest index from an angle
area - Variable in class ch.sahits.game.graphic.display.util.ClickablePolygons
 
arrive(IShip) - Method in class ch.sahits.game.graphic.display.model.CityPlayerProxy
A ship arrives in the city

B

b - Variable in class ch.sahits.game.graphic.display.util.Edge
 
background - Variable in class ch.sahits.game.graphic.display.MainGameView
Cached background image
BORDER_SPACING - Static variable in class ch.sahits.game.graphic.display.MainGameView
Width/height of the border
bottomLeft - Variable in class ch.sahits.game.graphic.display.util.PerspectiveImage
 
bottomRight - Variable in class ch.sahits.game.graphic.display.util.PerspectiveImage
 
bounds - Variable in class ch.sahits.game.graphic.display.gameplay.OpenPatricianGameDialog
Top left corner of the frame
bounds - Variable in class ch.sahits.game.graphic.layout.AbstractSahitsComponent
 
Button - Class in ch.sahits.game.graphic.layout
 
Button(FontMetrics) - Constructor for class ch.sahits.game.graphic.layout.Button
 

C

calcSizes() - Method in class ch.sahits.game.graphic.display.OpenPatricianFrame
Compute the size of the drawable rectangle with respect to the frame.
castIntoRange(int) - Method in class ch.sahits.game.graphic.layout.Slider
compute the angle for an index
castValue() - Method in class ch.sahits.game.graphic.layout.Slider
Cast the selected index into a percentage
castValue(double) - Method in class ch.sahits.game.graphic.layout.Slider
Cast the value into a persentage
ch.sahits.game - package ch.sahits.game
 
ch.sahits.game.graphic.display - package ch.sahits.game.graphic.display
 
ch.sahits.game.graphic.display.gameplay - package ch.sahits.game.graphic.display.gameplay
 
ch.sahits.game.graphic.display.model - package ch.sahits.game.graphic.display.model
 
ch.sahits.game.graphic.display.start - package ch.sahits.game.graphic.display.start
 
ch.sahits.game.graphic.display.util - package ch.sahits.game.graphic.display.util
 
ch.sahits.game.graphic.layout - package ch.sahits.game.graphic.layout
 
changeIndex(int) - Method in interface ch.sahits.game.graphic.display.IIndexChangeListener
Change event of the index
changeListener - Variable in class ch.sahits.game.graphic.layout.Slider
 
checkHeight(Container) - Method in class ch.sahits.game.graphic.layout.MaximalGridLayout
check if the size of the children add up to more than the parents size
checkHeight(ISahitsContainer) - Method in class ch.sahits.game.graphic.layout.SahitsMaximalGridLayout
check if the size of the children add up to more than the parents size
checkWidth(Container) - Method in class ch.sahits.game.graphic.layout.MaximalGridLayout
check if the size of the children add up to more than the parents size
checkWidth(ISahitsContainer) - Method in class ch.sahits.game.graphic.layout.SahitsMaximalGridLayout
check if the size of the children add up to more than the parents size
city - Variable in class ch.sahits.game.graphic.display.gameplay.MainView
Model of the city currently displayed.
city - Variable in class ch.sahits.game.graphic.display.gameplay.TradeDialog
Reference to the city view model
city - Variable in class ch.sahits.game.graphic.display.model.CityPlayerProxy
 
cityName - Variable in class ch.sahits.game.graphic.display.gameplay.ViewStatus
 
CityPlayerProxy - Class in ch.sahits.game.graphic.display.model
The CityView is a view model of a city.
CityPlayerProxy(ICity, IPlayer) - Constructor for class ch.sahits.game.graphic.display.model.CityPlayerProxy
Constructor initializing the city and the player
CityPlayerProxy(ICity, IPlayer, IShip) - Constructor for class ch.sahits.game.graphic.display.model.CityPlayerProxy
Constructor initializing the city and the player with one ship in port.
ClickablePolygon - Class in ch.sahits.game.graphic.display.util
 
ClickablePolygon(NamedPolygon, Runnable) - Constructor for class ch.sahits.game.graphic.display.util.ClickablePolygon
 
ClickablePolygons - Class in ch.sahits.game.graphic.display.util
This class represents an ordered list of poligons.
ClickablePolygons() - Constructor for class ch.sahits.game.graphic.display.util.ClickablePolygons
 
Client - Class in ch.sahits.game
Client representation of the game
Client(IPlayer) - Constructor for class ch.sahits.game.Client
 
client - Variable in class ch.sahits.game.graphic.display.gameplay.GameStatus
 
client - Variable in class ch.sahits.game.graphic.display.GameView
 
client - Variable in class ch.sahits.game.graphic.display.OpenPatricianFrame
Client data representation
closeWindow() - Method in class ch.sahits.game.graphic.display.OpenPatricianFrame
 
competitor - Variable in class ch.sahits.game.Client
 
components - Variable in class ch.sahits.game.graphic.display.OpenPatricianBackgroundView
 
compTable - Variable in class ch.sahits.game.graphic.layout.MaximalGridLayout
 
compTable - Variable in class ch.sahits.game.graphic.layout.SahitsMaximalGridLayout
 
computeColumnIndex(int) - Method in class ch.sahits.game.graphic.layout.MaximalGridLayout
Compute the column based on the index of the component
computeColumnIndex(int) - Method in class ch.sahits.game.graphic.layout.SahitsMaximalGridLayout
Compute the column based on the index of the ISahitsComponent
computeHeight(int, Container) - Method in class ch.sahits.game.graphic.layout.MaximalGridLayout
Compute the height of the highest component in the specified row.
computeHeight(int, ISahitsContainer) - Method in class ch.sahits.game.graphic.layout.SahitsMaximalGridLayout
Compute the height of the highest ISahitsComponent in the specified row.
computeHeightScale(Container) - Method in class ch.sahits.game.graphic.layout.MaximalGridLayout
Compute the scale factor that is needed on the components to resize them to the heigth of the container
computeHeightScale(ISahitsContainer) - Method in class ch.sahits.game.graphic.layout.SahitsMaximalGridLayout
Compute the scale factor that is needed on the ISahitsComponents to resize them to the heigth of the ISahitsContainer
computeOffset(int, int) - Method in class ch.sahits.game.graphic.display.util.OffsetCalculator
Compute the absolute offset of the point
computeOffset(int, double, int, double) - Method in class ch.sahits.game.graphic.display.util.OffsetCalculator
Compute the absolute offset of the point in the case that the relative offsets are scaled dynamically.
computeRowIndex(int) - Method in class ch.sahits.game.graphic.layout.MaximalGridLayout
Compute the row based on the index of the component
computeRowIndex(int) - Method in class ch.sahits.game.graphic.layout.SahitsMaximalGridLayout
Compute the row based on the index of the ISahitsComponent
computeWidth(int, Container) - Method in class ch.sahits.game.graphic.layout.MaximalGridLayout
Compute the width of the widest component in the specified column.
computeWidth(int, ISahitsContainer) - Method in class ch.sahits.game.graphic.layout.SahitsMaximalGridLayout
Compute the width of the widest ISahitsComponent in the specified column.
computeWidthScale(Container) - Method in class ch.sahits.game.graphic.layout.MaximalGridLayout
Compute the scale factor that is needed on the components to resize them to the width of the container
computeWidthScale(ISahitsContainer) - Method in class ch.sahits.game.graphic.layout.SahitsMaximalGridLayout
Compute the scale factor that is needed on the ISahitsComponents to resize them to the width of the ISahitsContainer
computeXOffset(int) - Method in class ch.sahits.game.graphic.display.util.OffsetCalculator
Compute the absolute offset of the point X
computeXOffset(int, double) - Method in class ch.sahits.game.graphic.display.util.OffsetCalculator
Compute the absolute offset of the point X in the case that the relative offset is scaled dynamically
computeXPadding(int, int, MaximalGridLayoutConstraints) - Method in class ch.sahits.game.graphic.layout.MaximalGridLayout
Compute the horizontal padding within a cell based upon the alignment of the component
computeXPadding(int, int, MaximalGridLayoutConstraints) - Method in class ch.sahits.game.graphic.layout.SahitsMaximalGridLayout
Compute the horizontal padding within a cell based upon the alignment of the ISahitsComponent
computeYOffset(int) - Method in class ch.sahits.game.graphic.display.util.OffsetCalculator
Compute the absolute offset of the point Y
computeYOffset(int, double) - Method in class ch.sahits.game.graphic.display.util.OffsetCalculator
Compute the absolute offset of the point Y in the case that the relative offset is scaled dynamically
computeYPadding(int, int, MaximalGridLayoutConstraints) - Method in class ch.sahits.game.graphic.layout.MaximalGridLayout
Compute the vertical padding within a cell based upon the alignment of the component
computeYPadding(int, int, MaximalGridLayoutConstraints) - Method in class ch.sahits.game.graphic.layout.SahitsMaximalGridLayout
Compute the vertical padding within a cell based upon the alignment of the ISahitsComponent
contains(String) - Method in class ch.sahits.game.graphic.display.start.StartupView
check if an image is already contained.
createBackground() - Method in class ch.sahits.game.graphic.display.MainGameView
Create the background image
createComponents() - Method in class ch.sahits.game.graphic.display.start.NewGameView
Create the form element to specify the start settings of the new game
createGameView() - Method in class ch.sahits.game.graphic.display.OpenPatricianFrame
 
createNewView() - Method in class ch.sahits.game.graphic.display.GameView
 
createStandaloneServer(OpenPatricianFrame) - Static method in class ch.sahits.game.OpenPatrician
Create the server instance for a standalone game.
createStartButtonClickAction() - Method in class ch.sahits.game.graphic.display.start.NewGameView
Action to be called when the start button is hit.
createStartupView() - Method in class ch.sahits.game.graphic.display.GameView
 
createVisualBounds(String) - Method in class ch.sahits.game.graphic.layout.AbstractSahitsComponent
Create the visual bounds for the string using the set font

D

decSelection() - Method in class ch.sahits.game.graphic.layout.AbstractMultiselectableComponent
 
dialog - Variable in class ch.sahits.game.graphic.display.gameplay.MainView
 
dialog - Variable in class ch.sahits.game.graphic.display.gameplay.OpenPatricianGameDialog.CloseAction
 
dialogScale - Variable in class ch.sahits.game.graphic.display.gameplay.MainView
Scale of the dialog
difficulity - Variable in class ch.sahits.game.graphic.display.start.NewGameView
 
difficulty - Variable in class ch.sahits.game.graphic.display.start.NewGameView
 
downSpinner - Variable in class ch.sahits.game.graphic.layout.Spinner
 
drawCarret - Variable in class ch.sahits.game.graphic.layout.TextInput
 

E

ECellPosition - Enum in ch.sahits.game.graphic.layout
Enumeration of the positions an element can take inside a cell in a MaximalGridLayout.
ECellPosition(float, float) - Constructor for enum ch.sahits.game.graphic.layout.ECellPosition
Constructor converts the enumeration values into the values needed by the methods getLayoutAlignmentX and getLayoutAlignmentY of LayoutManager2
Edge - Class in ch.sahits.game.graphic.display.util
An edge is the conection between two Points.
Edge(Point, Point) - Constructor for class ch.sahits.game.graphic.display.util.Edge
 
edges - Variable in class ch.sahits.game.graphic.display.util.Polygon
 
enabled - Variable in class ch.sahits.game.graphic.display.gameplay.TradeDialog
 
enabled - Variable in class ch.sahits.game.graphic.display.GameView
 
execute() - Method in class ch.sahits.game.graphic.display.util.ClickablePolygon
Execute the action associated with the polygon

F

female - Variable in class ch.sahits.game.graphic.display.start.NewGameView
 
findPolygon(int, int) - Method in class ch.sahits.game.graphic.display.gameplay.MainView
Find the polygon name that contains the coordinates.
findPolygon(int, int) - Method in class ch.sahits.game.graphic.display.start.StartupView
Find the polygon name that contains the coordinates.
findPolygon(Point) - Method in class ch.sahits.game.graphic.display.util.ClickablePolygons
Find the first polygon that has the point inside it.
firstNameLoader - Static variable in class ch.sahits.game.graphic.display.start.NewGameView
 
font - Variable in class ch.sahits.game.graphic.display.start.NewGameView
 
font - Variable in class ch.sahits.game.graphic.layout.AbstractEditableSahitsComponent
 
font - Variable in class ch.sahits.game.graphic.layout.AbstractMultiselectableComponent
 
font - Variable in class ch.sahits.game.graphic.layout.AbstractSelectableComponent
 
font - Variable in class ch.sahits.game.graphic.layout.Button
 
font - Variable in class ch.sahits.game.graphic.layout.Label
 
fontLoader - Variable in class ch.sahits.game.graphic.display.GameView
 
footerPolygons - Variable in class ch.sahits.game.graphic.display.gameplay.TradeDialog
 

G

game - Variable in class ch.sahits.game.Client
 
gameRender(Graphics) - Method in class ch.sahits.game.graphic.display.gameplay.GameStatus
 
gameRender(Graphics) - Method in class ch.sahits.game.graphic.display.gameplay.MainMenu
 
gameRender(Graphics) - Method in class ch.sahits.game.graphic.display.gameplay.MainView
 
gameRender(Graphics) - Method in class ch.sahits.game.graphic.display.gameplay.MapView
 
gameRender(Graphics) - Method in class ch.sahits.game.graphic.display.gameplay.NoticeView
 
gameRender(Graphics) - Method in class ch.sahits.game.graphic.display.gameplay.OpenPatricianGameDialog
 
gameRender(Graphics) - Method in class ch.sahits.game.graphic.display.gameplay.SubMenu
 
gameRender(Graphics) - Method in class ch.sahits.game.graphic.display.gameplay.TradeDialog
 
gameRender(Graphics) - Method in class ch.sahits.game.graphic.display.gameplay.ViewStatus
 
gameRender(Graphics) - Method in class ch.sahits.game.graphic.display.GameView
 
gameRender(Graphics) - Method in interface ch.sahits.game.graphic.display.IUpdatableComponent
Force the panel to render itself.
gameRender(Graphics) - Method in class ch.sahits.game.graphic.display.MainGameView
 
gameRender(Graphics) - Method in class ch.sahits.game.graphic.display.OpenPatricianBackgroundView
 
gameRender(Graphics) - Method in class ch.sahits.game.graphic.display.start.StartupView
 
gameRender(Graphics) - Method in class ch.sahits.game.graphic.layout.AbstractMultiselectableComponent
 
gameRender(Graphics) - Method in class ch.sahits.game.graphic.layout.AbstractSelectableComponent
 
gameRender(Graphics) - Method in class ch.sahits.game.graphic.layout.Button
 
gameRender(Graphics) - Method in class ch.sahits.game.graphic.layout.TextInput
 
GameStatus - Class in ch.sahits.game.graphic.display.gameplay
This view represents the game status such as date and money.
GameStatus(Rectangle, IClient) - Constructor for class ch.sahits.game.graphic.display.gameplay.GameStatus
 
gameStatus - Variable in class ch.sahits.game.graphic.display.MainGameView
View status holding money and time
gameUpdate(Event, Object) - Method in class ch.sahits.game.graphic.display.gameplay.GameStatus
 
gameUpdate(Event, Object) - Method in class ch.sahits.game.graphic.display.gameplay.MainMenu
 
gameUpdate(Event, Object) - Method in class ch.sahits.game.graphic.display.gameplay.MainView
 
gameUpdate(Event, Object) - Method in class ch.sahits.game.graphic.display.gameplay.MapView
 
gameUpdate(Event, Object) - Method in class ch.sahits.game.graphic.display.gameplay.NoticeView
 
gameUpdate(Event, Object) - Method in class ch.sahits.game.graphic.display.gameplay.SubMenu
 
gameUpdate(Event, Object) - Method in class ch.sahits.game.graphic.display.gameplay.TradeDialog
 
gameUpdate(Event, Object) - Method in class ch.sahits.game.graphic.display.gameplay.ViewStatus
 
gameUpdate(Event, Object) - Method in class ch.sahits.game.graphic.display.GameView
 
gameUpdate() - Method in interface ch.sahits.game.graphic.display.IUpdatableComponent
Force the panel to update its state.
gameUpdate(Event, Object) - Method in class ch.sahits.game.graphic.display.MainGameView
 
gameUpdate(Event, Object) - Method in class ch.sahits.game.graphic.display.model.CityPlayerProxy
Handle all the events that are generated from outside (not by the player).
gameUpdate(Event, Object) - Method in class ch.sahits.game.graphic.display.OpenPatricianBackgroundView
 
gameUpdate() - Method in class ch.sahits.game.graphic.display.OpenPatricianFrame
 
gameUpdate(Event, Object) - Method in class ch.sahits.game.graphic.display.OpenPatricianFrame
 
gameUpdate(Event, Object) - Method in class ch.sahits.game.graphic.display.start.StartupView
 
gameUpdate() - Method in class ch.sahits.game.graphic.layout.AbstractMultiselectableComponent
 
gameUpdate() - Method in class ch.sahits.game.graphic.layout.AbstractSelectableComponent
 
gameUpdate() - Method in class ch.sahits.game.graphic.layout.Button
 
gameUpdate() - Method in class ch.sahits.game.graphic.layout.TextInput
 
GameView - Class in ch.sahits.game.graphic.display
This View represents the main game view
GameView(Rectangle, OpenPatricianFrame) - Constructor for class ch.sahits.game.graphic.display.GameView
 
gap - Variable in class ch.sahits.game.graphic.layout.MaximalGridLayout
 
gap - Variable in class ch.sahits.game.graphic.layout.SahitsMaximalGridLayout
 
get(int) - Method in interface ch.sahits.game.graphic.display.ISahitsContainer
Retrieve a component from internal storage at position i.
get(int) - Method in class ch.sahits.game.graphic.display.OpenPatricianBackgroundView
 
getA() - Method in class ch.sahits.game.graphic.display.util.Edge
 
getActiveMainView() - Method in class ch.sahits.game.graphic.display.GameView
Retrieve the main game view that is currently active
getActiveShip() - Method in class ch.sahits.game.graphic.display.model.CityPlayerProxy
Retrieve the players active ship
getAmount(int) - Method in class ch.sahits.game.graphic.display.gameplay.TradeDialog
Retrieve the amount that is to be transferred.
getAnchor() - Method in class ch.sahits.game.graphic.layout.MaximalGridLayoutConstraints
 
getB() - Method in class ch.sahits.game.graphic.display.util.Edge
 
getBottomLeft() - Method in class ch.sahits.game.graphic.display.util.PerspectiveImage
 
getBottomRight() - Method in class ch.sahits.game.graphic.display.util.PerspectiveImage
 
getBounds() - Method in class ch.sahits.game.graphic.display.gameplay.OpenPatricianGameDialog
 
getBounds() - Method in interface ch.sahits.game.graphic.display.ISahitsComponent
Retrieve the bounds of the component
getBounds() - Method in interface ch.sahits.game.graphic.display.ISahitsContainer
Retrieve the bounds of the container
getBounds() - Method in class ch.sahits.game.graphic.layout.AbstractSahitsComponent
Retrieve the bounds
getCity() - Method in class ch.sahits.game.graphic.display.model.CityPlayerProxy
 
getClient() - Method in class ch.sahits.game.graphic.display.OpenPatricianFrame
 
getColumnStart(int, Container) - Method in class ch.sahits.game.graphic.layout.MaximalGridLayout
Compute the x position where the column with the given index starts
getColumnStart(int, ISahitsContainer) - Method in class ch.sahits.game.graphic.layout.SahitsMaximalGridLayout
Compute the x position where the column with the given index starts
getComponentCount() - Method in interface ch.sahits.game.graphic.display.ISahitsContainer
Retrieve the total number of components contained in this container
getComponentCount() - Method in class ch.sahits.game.graphic.display.OpenPatricianBackgroundView
 
getConstraints(Component) - Method in class ch.sahits.game.graphic.layout.MaximalGridLayout
Gets the constraints for the specified component.
getConstraints(ISahitsComponent) - Method in class ch.sahits.game.graphic.layout.SahitsMaximalGridLayout
Gets the constraints for the specified ISahitsComponent.
getDificutlyList() - Method in class ch.sahits.game.graphic.display.start.NewGameView
Compile a list of the difficulty levels
getEdges() - Method in class ch.sahits.game.graphic.display.util.Polygon
 
getFont() - Method in interface ch.sahits.game.graphic.display.ISahitsComponent
Retrieve the font
getFont() - Method in class ch.sahits.game.graphic.layout.AbstractEditableSahitsComponent
 
getFont() - Method in class ch.sahits.game.graphic.layout.AbstractMultiselectableComponent
 
getFont() - Method in class ch.sahits.game.graphic.layout.AbstractSelectableComponent
 
getFont() - Method in class ch.sahits.game.graphic.layout.Button
 
getFont() - Method in class ch.sahits.game.graphic.layout.Label
Retrieve the font
getFontMetrics() - Method in class ch.sahits.game.graphic.layout.AbstractSelectableComponent
 
getGame() - Method in class ch.sahits.game.Client
 
getGameMap() - Method in class ch.sahits.game.Client
 
getGameSpeedList() - Method in class ch.sahits.game.graphic.display.start.NewGameView
Compile a list of game speeds
getHeight() - Method in interface ch.sahits.game.graphic.display.ISahitsContainer
Retrieve the actual height of the container
getHeight() - Method in class ch.sahits.game.graphic.display.OpenPatricianBackgroundView
 
getHomeTowns4Map() - Method in class ch.sahits.game.graphic.display.start.NewGameView
Create a list of town names that are available on the selected map as home towns.
getImageName(StartupView.MouseState) - Method in class ch.sahits.game.graphic.display.start.StartupView
 
getInset() - Method in class ch.sahits.game.graphic.display.gameplay.OpenPatricianGameDialog
Retrieve the insets of the dialog border
getInsets() - Method in interface ch.sahits.game.graphic.display.ISahitsContainer
Retrieve the insets of the container
getInsets() - Method in class ch.sahits.game.graphic.display.OpenPatricianBackgroundView
 
getInsets() - Method in class ch.sahits.game.graphic.layout.AbstractSahitsComponent
Retrieve the insets
getItem(int) - Method in class ch.sahits.game.graphic.layout.AbstractMultiselectableComponent
 
getItemCount() - Method in class ch.sahits.game.graphic.layout.AbstractMultiselectableComponent
 
getLayoutAlignmentX(Container) - Method in class ch.sahits.game.graphic.layout.MaximalGridLayout
If there is a constraint defined by the target, the position is used for the alignment
getLayoutAlignmentY(Container) - Method in class ch.sahits.game.graphic.layout.MaximalGridLayout
If there is a constraint defined by the target, the position is used for the alignment
getMapList() - Method in class ch.sahits.game.graphic.display.start.NewGameView
Retrieve the list of the available maps
getName() - Method in class ch.sahits.game.graphic.display.util.NamedPolygon
 
getName() - Method in class ch.sahits.game.graphic.display.util.Polygon
 
getObjectiveList() - Method in class ch.sahits.game.graphic.display.start.NewGameView
Create a list of objectives to select from
getPlayer() - Method in class ch.sahits.game.Client
 
getPlayer() - Method in class ch.sahits.game.graphic.display.model.CityPlayerProxy
 
getPlayersShips() - Method in class ch.sahits.game.graphic.display.model.CityPlayerProxy
Retrieve the list of all ships of the player currently in the port.
getPolygon() - Method in class ch.sahits.game.graphic.display.util.ClickablePolygon
 
getPositionX() - Method in enum ch.sahits.game.graphic.layout.ECellPosition
 
getPositionY() - Method in enum ch.sahits.game.graphic.layout.ECellPosition
 
getPreferredSize() - Method in interface ch.sahits.game.graphic.display.ISahitsComponent
Retrieve the preferred size of the component.
getPreferredSize() - Method in class ch.sahits.game.graphic.layout.Button
 
getPreferredSize() - Method in class ch.sahits.game.graphic.layout.Label
 
getPreferredSize() - Method in class ch.sahits.game.graphic.layout.RadioButton
 
getPreferredSize() - Method in class ch.sahits.game.graphic.layout.Slider
 
getPreferredSize() - Method in class ch.sahits.game.graphic.layout.Spinner
 
getPreferredSize() - Method in class ch.sahits.game.graphic.layout.TextInput
 
getRandomFirstName() - Static method in class ch.sahits.game.graphic.display.start.NewGameView
 
getRandomLastName() - Static method in class ch.sahits.game.graphic.display.start.NewGameView
 
getRowStart(int, Container) - Method in class ch.sahits.game.graphic.layout.MaximalGridLayout
Compute the y position where the row with the given index starts
getRowStart(int, ISahitsContainer) - Method in class ch.sahits.game.graphic.layout.SahitsMaximalGridLayout
Compute the y position where the row with the given index starts
getSelected() - Method in class ch.sahits.game.graphic.layout.AbstractMultiselectableComponent
 
getSelectedIndex() - Method in class ch.sahits.game.graphic.layout.AbstractMultiselectableComponent
 
getStartYears() - Method in class ch.sahits.game.graphic.display.start.NewGameView
Initialize the list of start years from 1300 to 1400
getText() - Method in class ch.sahits.game.graphic.layout.Button
 
getTopLef() - Method in class ch.sahits.game.graphic.display.util.PerspectiveImage
 
getTopRight() - Method in class ch.sahits.game.graphic.display.util.PerspectiveImage
 
getValue() - Method in class ch.sahits.game.graphic.layout.AbstractEditableSahitsComponent
 
getWidth() - Method in interface ch.sahits.game.graphic.display.ISahitsContainer
Retrieve the actual width of the container
getWidth() - Method in class ch.sahits.game.graphic.display.OpenPatricianBackgroundView
 
group - Variable in class ch.sahits.game.graphic.layout.RadioButton
 

H

H_BORDER - Variable in class ch.sahits.game.graphic.layout.Button
 
handle - Variable in class ch.sahits.game.graphic.layout.Slider
 
hasFocus - Variable in class ch.sahits.game.graphic.layout.TextInput
 
HELP - Static variable in class ch.sahits.game.OpenPatrician
 
historyIndex - Variable in class ch.sahits.game.graphic.display.start.StartupView
 
historySize - Variable in class ch.sahits.game.graphic.display.start.StartupView
 
home - Variable in class ch.sahits.game.graphic.display.start.NewGameView
 
HORIZONTAL_DECO_HEIGHT - Static variable in class ch.sahits.game.graphic.display.MainGameView
Height of the horizontal fries

I

IIndexChangeListener - Interface in ch.sahits.game.graphic.display
Listener interface for index changes
imageNames - Static variable in class ch.sahits.game.graphic.display.gameplay.MainView
 
images - Variable in class ch.sahits.game.graphic.display.start.StartupView
 
img - Variable in class ch.sahits.game.graphic.display.gameplay.MainView
This image holds the background of the currently rendered View
img - Variable in class ch.sahits.game.graphic.display.gameplay.OpenPatricianGameDialog
Frame that is rendered
IMS_FILE - Static variable in class ch.sahits.game.graphic.display.start.StartupView
 
imsLoader - Variable in class ch.sahits.game.graphic.display.start.StartupView
 
incSelection() - Method in class ch.sahits.game.graphic.layout.AbstractMultiselectableComponent
 
initBackgroundImage(ImagesLoader, Point) - Method in class ch.sahits.game.graphic.display.gameplay.OpenPatricianGameDialog
Initialize the background image that is stored as a reference.
initBackgroundImage(ImagesLoader, Point) - Method in class ch.sahits.game.graphic.display.gameplay.TradeDialog
 
initGame(IGame) - Method in class ch.sahits.game.Client
 
initialRenderedImages - Variable in class ch.sahits.game.graphic.display.start.StartupView
Number of images that are initially drawn
initiatePolygons() - Method in class ch.sahits.game.graphic.display.gameplay.OpenPatricianGameDialog
Instanciate the any polygon member variables
initiatePolygons() - Method in class ch.sahits.game.graphic.display.gameplay.TradeDialog
 
initImages() - Method in class ch.sahits.game.graphic.display.start.StartupView
load and initialize the images, and build their 'hot-spots'
initMouseState() - Method in class ch.sahits.game.graphic.display.start.StartupView
 
initOffsets() - Method in class ch.sahits.game.graphic.display.start.StartupView
Compute the offsets for the images to be drawn onto the panel
initPortPolygons(double, Rectangle) - Method in class ch.sahits.game.graphic.display.gameplay.MainView
Setting the positions of the polygons on the screen
initStartPolygons() - Method in class ch.sahits.game.graphic.display.start.StartupView
Setting the positions of the polygons on the screen
insertFirst(String) - Method in class ch.sahits.game.graphic.display.start.StartupView
 
insertImageBefore(String, String) - Method in class ch.sahits.game.graphic.display.start.StartupView
Insert the image before another image.
insertImageLast(String) - Method in class ch.sahits.game.graphic.display.start.StartupView
Inserts an image at the last position
insertImageLast(NamedBufferedImage) - Method in class ch.sahits.game.graphic.display.start.StartupView
 
inset - Variable in class ch.sahits.game.graphic.display.gameplay.OpenPatricianGameDialog
 
insets - Variable in class ch.sahits.game.graphic.layout.AbstractSahitsComponent
 
invalidateLayout(Container) - Method in class ch.sahits.game.graphic.layout.MaximalGridLayout
 
ISahitsComponent - Interface in ch.sahits.game.graphic.display
The ISahitsComponent is a renderable form element whithin a ISahitsContainer.
ISahitsContainer - Interface in ch.sahits.game.graphic.display
This container component is used to hold ISahistsComponents that are rendered within this container.
ISahitsLabel - Interface in ch.sahits.game.graphic.layout
Representing a label
ISahitsLayoutConstraint - Interface in ch.sahits.game.graphic.display
This marker interface defines a constraint that is used in the layouting of a ISahitsComponent within a ISahitsContainer.
ISahitsLayoutManager - Interface in ch.sahits.game.graphic.display
This interfaces defines the layout manager that is to be used for placing the ISahitsComponents in a ISahitsComponent.
isEnabled() - Method in class ch.sahits.game.graphic.display.gameplay.TradeDialog
 
isEnabled() - Method in class ch.sahits.game.graphic.display.GameView
 
isInside(Point) - Method in class ch.sahits.game.graphic.display.util.ClickablePolygon
check if the point is inside the polygon
isSelected() - Method in class ch.sahits.game.graphic.layout.AbstractSelectableComponent
 
IUpdatableComponent - Interface in ch.sahits.game.graphic.display
Interface defines a updatable component.

L

Label - Class in ch.sahits.game.graphic.layout
 
Label(FontMetrics) - Constructor for class ch.sahits.game.graphic.layout.Label
 
lastName - Variable in class ch.sahits.game.graphic.display.start.NewGameView
 
lastNameLoader - Static variable in class ch.sahits.game.graphic.display.start.NewGameView
 
layoutContainer(ISahitsContainer) - Method in interface ch.sahits.game.graphic.display.ISahitsLayoutManager
Compute the layout of the all the children in the parent container.
layoutContainer(Container) - Method in class ch.sahits.game.graphic.layout.MaximalGridLayout
 
layoutContainer(ISahitsContainer) - Method in class ch.sahits.game.graphic.layout.SahitsMaximalGridLayout
 
layoutManager - Variable in class ch.sahits.game.graphic.display.OpenPatricianBackgroundView
 
leave(IShip) - Method in class ch.sahits.game.graphic.display.model.CityPlayerProxy
Ship leave the city
LEFT_PANEL_WIDTH - Static variable in class ch.sahits.game.graphic.display.MainGameView
Width og the left panels inclusive borders
LEFT_STATUS_PANEL_WIDTH - Static variable in class ch.sahits.game.graphic.display.MainGameView
Width of the left panels (without borders)
leftBorder - Variable in class ch.sahits.game.graphic.display.gameplay.TradeDialog.DialogPositions
 
lineHeight - Variable in class ch.sahits.game.graphic.display.gameplay.TradeDialog.DialogPositions
 
loader - Variable in class ch.sahits.game.graphic.display.gameplay.MainView
 
loader - Variable in class ch.sahits.game.graphic.display.gameplay.OpenPatricianGameDialog
 
loader - Variable in class ch.sahits.game.graphic.display.MainGameView
Image loader to retrieve the images
lock - Static variable in class ch.sahits.game.OpenPatrician
 

M

main(String[]) - Static method in class ch.sahits.game.OpenPatrician
 
MainGameView - Class in ch.sahits.game.graphic.display
This is the main in game view.
MainGameView(Rectangle, IClient) - Constructor for class ch.sahits.game.graphic.display.MainGameView
 
MainMenu - Class in ch.sahits.game.graphic.display.gameplay
This represents the view showing the main menu
MainMenu(Rectangle) - Constructor for class ch.sahits.game.graphic.display.gameplay.MainMenu
 
mainMenu - Variable in class ch.sahits.game.graphic.display.MainGameView
View holding the main menu
MainView - Class in ch.sahits.game.graphic.display.gameplay
This represents the main game screen
MainView(Rectangle, ImagesLoader, IClient) - Constructor for class ch.sahits.game.graphic.display.gameplay.MainView
Instantiate the main view with the port scene of the players home town
mainView - Variable in class ch.sahits.game.graphic.display.MainGameView
Main view of the map or the city
male - Variable in class ch.sahits.game.graphic.display.start.NewGameView
 
map - Variable in class ch.sahits.game.graphic.display.start.NewGameView
 
MAP_OVERVIEW_HEIGHT - Static variable in class ch.sahits.game.graphic.display.MainGameView
Height of the map overview
mapOverview - Variable in class ch.sahits.game.graphic.display.MainGameView
View holding the sea or city overview map
MapView - Class in ch.sahits.game.graphic.display.gameplay
View holding an overview of the map
MapView(Rectangle) - Constructor for class ch.sahits.game.graphic.display.gameplay.MapView
 
maxHight - Variable in class ch.sahits.game.graphic.layout.MaximalGridLayout
 
maxHight - Variable in class ch.sahits.game.graphic.layout.SahitsMaximalGridLayout
 
MaximalGridLayout - Class in ch.sahits.game.graphic.layout
Grid layout that sizes the cells according the the biggest sized component in the same row/column.
MaximalGridLayout(int, int) - Constructor for class ch.sahits.game.graphic.layout.MaximalGridLayout
Initialize the layout with the number of columns and rows
MaximalGridLayout(int, int, int, ECellPosition) - Constructor for class ch.sahits.game.graphic.layout.MaximalGridLayout
Initialize the layout with the number of columns and rows and the gaping between them as well as the positioning of the whole if there is any space.
MaximalGridLayout() - Constructor for class ch.sahits.game.graphic.layout.MaximalGridLayout
Default constructor initializing a grid of size 1x1.
MaximalGridLayoutConstraints - Class in ch.sahits.game.graphic.layout
Container to hold the constraints.
MaximalGridLayoutConstraints() - Constructor for class ch.sahits.game.graphic.layout.MaximalGridLayoutConstraints
Default constraint with centered positioning
MaximalGridLayoutConstraints(ECellPosition) - Constructor for class ch.sahits.game.graphic.layout.MaximalGridLayoutConstraints
Layout with custom positioning
maximumLayoutSize(Container) - Method in class ch.sahits.game.graphic.layout.MaximalGridLayout
 
maxWidth - Variable in class ch.sahits.game.graphic.layout.MaximalGridLayout
 
maxWidth - Variable in class ch.sahits.game.graphic.layout.SahitsMaximalGridLayout
 
MENU_HEIGHT - Static variable in class ch.sahits.game.graphic.display.MainGameView
Height of the menu bar
metic - Variable in class ch.sahits.game.graphic.display.start.NewGameView
 
metric - Variable in class ch.sahits.game.graphic.layout.Button
 
metric - Variable in class ch.sahits.game.graphic.layout.Label
 
metric - Variable in class ch.sahits.game.graphic.layout.Slider
 
metric - Variable in class ch.sahits.game.graphic.layout.Spinner
 
metric - Variable in class ch.sahits.game.graphic.layout.TextInput
 
metrics - Variable in class ch.sahits.game.graphic.layout.AbstractSelectableComponent
 
minimumLayoutSize(Container) - Method in class ch.sahits.game.graphic.layout.MaximalGridLayout
 
MINMIMAL_DISPLAY_HEIGHT - Static variable in class ch.sahits.game.graphic.display.MainGameView
The minimal height the display must have
movableAmount - Variable in class ch.sahits.game.graphic.display.gameplay.TradeDialog
The amount that is moved with one click

N

name - Variable in class ch.sahits.game.graphic.display.start.NewGameView
 
name - Variable in class ch.sahits.game.graphic.display.util.NamedPolygon
 
name - Variable in class ch.sahits.game.graphic.display.util.Polygon
 
NamedPolygon - Class in ch.sahits.game.graphic.display.util
Version of the Ploygon that is identified by a name.
NamedPolygon(String) - Constructor for class ch.sahits.game.graphic.display.util.NamedPolygon
 
NamedPolygon(int[], int[], int, String) - Constructor for class ch.sahits.game.graphic.display.util.NamedPolygon
 
names - Static variable in class ch.sahits.game.graphic.display.start.StartupView
 
nbCols - Variable in class ch.sahits.game.graphic.layout.MaximalGridLayout
 
nbCols - Variable in class ch.sahits.game.graphic.layout.SahitsMaximalGridLayout
 
nbRows - Variable in class ch.sahits.game.graphic.layout.MaximalGridLayout
 
nbRows - Variable in class ch.sahits.game.graphic.layout.SahitsMaximalGridLayout
 
NewGameView - Class in ch.sahits.game.graphic.display.start
Rendering view to create a new single player game.
NewGameView(Rectangle, FontMetrics) - Constructor for class ch.sahits.game.graphic.display.start.NewGameView
Construct the view with the specified dimensions and the font metrics
NOTICE_HEIGHT - Static variable in class ch.sahits.game.graphic.display.MainGameView
Height of the notice view
NoticeView - Class in ch.sahits.game.graphic.display.gameplay
This represents the notice view
NoticeView(Rectangle) - Constructor for class ch.sahits.game.graphic.display.gameplay.NoticeView
 
noticeView - Variable in class ch.sahits.game.graphic.display.MainGameView
View holding notices and state information

O

objective - Variable in class ch.sahits.game.graphic.display.start.NewGameView
 
OffsetCalculator - Class in ch.sahits.game.graphic.display.util
This helper class lets you calculate the relative offset in an overlayed image.
OffsetCalculator(int, int) - Constructor for class ch.sahits.game.graphic.display.util.OffsetCalculator
Initialize the offset of the image.
offsets - Variable in class ch.sahits.game.graphic.display.start.StartupView
Storage of the offsets for each image.
offsetter - Variable in class ch.sahits.game.graphic.display.start.StartupView
 
OpenPatrician - Class in ch.sahits.game
 
OpenPatrician() - Constructor for class ch.sahits.game.OpenPatrician
 
OpenPatricianBackgroundView - Class in ch.sahits.game.graphic.display
This RenderablePart implementation is a base implementation for brick walled background on which form elements can be placed.
OpenPatricianBackgroundView(Rectangle, ISahitsLayoutManager) - Constructor for class ch.sahits.game.graphic.display.OpenPatricianBackgroundView
 
OpenPatricianFrame - Class in ch.sahits.game.graphic.display
This is the GUI frame for the OpenPatrician game
OpenPatricianFrame() - Constructor for class ch.sahits.game.graphic.display.OpenPatricianFrame
 
OpenPatricianGameDialog - Class in ch.sahits.game.graphic.display.gameplay
This is a dialog that renderes a wooden frame with an inlaid parchment at a given position.
OpenPatricianGameDialog(Point, ImagesLoader, double) - Constructor for class ch.sahits.game.graphic.display.gameplay.OpenPatricianGameDialog
 
OpenPatricianGameDialog.CloseAction - Class in ch.sahits.game.graphic.display.gameplay
 
OpenPatricianGameDialog.CloseAction(IEventListener) - Constructor for class ch.sahits.game.graphic.display.gameplay.OpenPatricianGameDialog.CloseAction
 

P

pageState - Variable in class ch.sahits.game.graphic.display.start.StartupView
 
paint(Graphics) - Method in interface ch.sahits.game.graphic.display.ISahitsComponent
Draw the component with the appropriate graphic context.
paint(Graphics) - Method in class ch.sahits.game.graphic.layout.Button
 
paint(Graphics) - Method in class ch.sahits.game.graphic.layout.Label
 
paint(Graphics) - Method in class ch.sahits.game.graphic.layout.RadioButton
 
paint(Graphics) - Method in class ch.sahits.game.graphic.layout.Slider
 
paint(Graphics) - Method in class ch.sahits.game.graphic.layout.Spinner
 
paint(Graphics) - Method in class ch.sahits.game.graphic.layout.TextInput
 
paintCurrentLabel(Graphics, int) - Method in class ch.sahits.game.graphic.layout.Slider
Paint the label of the closest labeled value over the handle.
painter - Variable in class ch.sahits.game.graphic.layout.AbstractSahitsComponent
 
paintHorizontalLabel(Graphics, int) - Method in class ch.sahits.game.graphic.layout.Slider
Paint the label over the center of the tracker handle (commonly known as thumb)
paintLabelAt(Graphics, Label, Rectangle) - Method in class ch.sahits.game.graphic.layout.Slider
Paint a label a specific position
paintLabels - Variable in class ch.sahits.game.graphic.layout.Slider
 
paintLabels() - Method in class ch.sahits.game.graphic.layout.Slider
Check if the labels are to be painted
paintLabels(Graphics) - Method in class ch.sahits.game.graphic.layout.Slider
Print all the labels
PerspectiveHelper - Class in ch.sahits.game.graphic.display.util
This utility class provides helpfull methods for easy handling of perspective images.
PerspectiveHelper() - Constructor for class ch.sahits.game.graphic.display.util.PerspectiveHelper
 
PerspectiveImage - Class in ch.sahits.game.graphic.display.util
A perspective image is a rectangular that is distored and becomes a quadrangle.
PerspectiveImage(Point, Point, Point, Point) - Constructor for class ch.sahits.game.graphic.display.util.PerspectiveImage
 
player - Variable in class ch.sahits.game.Client
 
player - Variable in class ch.sahits.game.graphic.display.model.CityPlayerProxy
 
playerShips - Variable in class ch.sahits.game.graphic.display.model.CityPlayerProxy
List holding all ships owned by the player currently present in the city
polygon - Variable in class ch.sahits.game.graphic.display.util.ClickablePolygon
 
Polygon - Class in ch.sahits.game.graphic.display.util
A polynom is a figure consisting of n Edges.
Polygon(String, Edge[]) - Constructor for class ch.sahits.game.graphic.display.util.Polygon
 
Polygon(Edge[]) - Constructor for class ch.sahits.game.graphic.display.util.Polygon
 
polygons - Variable in class ch.sahits.game.graphic.display.gameplay.TradeDialog
 
polygons - Variable in class ch.sahits.game.graphic.display.start.StartupView
Store the polygons for checking against clicking them Using a TreeMap so it may be possible do define polygons that cover the same are but in a different z-order.
polygons - Variable in class ch.sahits.game.graphic.display.util.ClickablePolygons
 
polyNames - Static variable in class ch.sahits.game.graphic.display.gameplay.MainView
 
PORT_SCENE - Static variable in class ch.sahits.game.graphic.display.gameplay.MainView
Indicate that currently the port scene is displayed
portPolygons - Variable in class ch.sahits.game.graphic.display.gameplay.MainView
Store the polygons for checking against clicking them Using a TreeMap so it may be possible do define polygons that cover the same are but in a different z-order.
position - Variable in class ch.sahits.game.graphic.layout.MaximalGridLayout
 
position - Variable in class ch.sahits.game.graphic.layout.SahitsMaximalGridLayout
 
positions - Variable in class ch.sahits.game.graphic.display.gameplay.TradeDialog
Hold all the positiononing information, initialized in initBackgroundImage
positionX - Variable in enum ch.sahits.game.graphic.layout.ECellPosition
 
positionY - Variable in enum ch.sahits.game.graphic.layout.ECellPosition
 
preferredLayoutSize(Container) - Method in class ch.sahits.game.graphic.layout.MaximalGridLayout
Computing the prefered size by adding the sizes of the columns and rows together with the insets
preferredLayoutSize(ISahitsContainer) - Method in class ch.sahits.game.graphic.layout.SahitsMaximalGridLayout
Computing the prefered size by adding the sizes of the columns and rows together with the insets
printUsage() - Static method in class ch.sahits.game.OpenPatrician
 

R

RadioButton - Class in ch.sahits.game.graphic.layout
Implementable selecteable Radio button.
RadioButton(SelectableGroup, JPanel, Font) - Constructor for class ch.sahits.game.graphic.layout.RadioButton
 
RadioButton(SelectableGroup, FontMetrics, Font) - Constructor for class ch.sahits.game.graphic.layout.RadioButton
 
remove(AbstractSelectableComponent) - Method in class ch.sahits.game.graphic.layout.SelectableGroup
Remove a selectable.
removeImage(String) - Method in class ch.sahits.game.graphic.display.start.StartupView
Remove the image with the name.
removeLayoutComponent(Component) - Method in class ch.sahits.game.graphic.layout.MaximalGridLayout
Remove the component from the stored data.
resetDialog() - Method in class ch.sahits.game.graphic.display.gameplay.MainView
Scale the dialog so it has the correct proportions
resetSizeCache() - Method in class ch.sahits.game.graphic.layout.MaximalGridLayout
 
resetSizeCache() - Method in class ch.sahits.game.graphic.layout.SahitsMaximalGridLayout
 
returnBackToStartFromHistory() - Method in class ch.sahits.game.graphic.display.start.StartupView
 
run() - Method in class ch.sahits.game.graphic.display.gameplay.OpenPatricianGameDialog.CloseAction
 
run() - Method in class ch.sahits.game.graphic.display.gameplay.TradeDialog.City2ShipAction
 
run() - Method in class ch.sahits.game.graphic.display.gameplay.TradeDialog.Ship2CityAction
 
run() - Method in class ch.sahits.game.graphic.display.gameplay.TradeDialog.TransferAmountChangeAction
 

S

SahitsMaximalGridLayout - Class in ch.sahits.game.graphic.layout
Grid layout that sizes the cells according the the biggest sized ISahitsComponent in the same row/column.
SahitsMaximalGridLayout(int, int) - Constructor for class ch.sahits.game.graphic.layout.SahitsMaximalGridLayout
Initialize the layout with the number of columns and rows
SahitsMaximalGridLayout(int, int, int, ECellPosition) - Constructor for class ch.sahits.game.graphic.layout.SahitsMaximalGridLayout
Initialize the layout with the number of columns and rows and the gaping between them as well as the positioning of the whole if there is any space.
SahitsMaximalGridLayout() - Constructor for class ch.sahits.game.graphic.layout.SahitsMaximalGridLayout
Default constructor initializing a grid of size 1x1.
SelectableGroup - Class in ch.sahits.game.graphic.layout
Group of components that are selectable
SelectableGroup() - Constructor for class ch.sahits.game.graphic.layout.SelectableGroup
 
selectables - Variable in class ch.sahits.game.graphic.layout.AbstractMultiselectableComponent
 
selectables - Variable in class ch.sahits.game.graphic.layout.SelectableGroup
 
selected - Variable in class ch.sahits.game.graphic.layout.AbstractSelectableComponent
 
selectedIndex - Variable in class ch.sahits.game.graphic.layout.AbstractMultiselectableComponent
 
setAction(Runnable) - Method in class ch.sahits.game.graphic.layout.Button
 
setBounds(int, int, int, int) - Method in interface ch.sahits.game.graphic.display.ISahitsComponent
Define the measurements of the component
setBounds(int, int, int, int) - Method in class ch.sahits.game.graphic.layout.AbstractSahitsComponent
 
setBounds(int, int, int, int) - Method in class ch.sahits.game.graphic.layout.Slider
 
setClient(IClient) - Method in class ch.sahits.game.graphic.display.GameView
 
setConstraints(Component, MaximalGridLayoutConstraints) - Method in class ch.sahits.game.graphic.layout.MaximalGridLayout
Sets the constraints for the specified component in this layout.
setConstraints(ISahitsComponent, MaximalGridLayoutConstraints) - Method in class ch.sahits.game.graphic.layout.SahitsMaximalGridLayout
Sets the constraints for the specified ISahitsComponent in this layout.
setDifficulity(Difficulty) - Method in class ch.sahits.game.graphic.display.start.NewGameView
Set the difficulty
setEnabled(boolean) - Method in class ch.sahits.game.graphic.display.gameplay.TradeDialog
 
setEnabled(boolean) - Method in class ch.sahits.game.graphic.display.GameView
 
setFont(Font) - Method in interface ch.sahits.game.graphic.display.ISahitsComponent
Set the font
setFont(ISahitsComponent) - Method in class ch.sahits.game.graphic.display.start.NewGameView
Set the font on the component
setFont(Font) - Method in class ch.sahits.game.graphic.layout.AbstractEditableSahitsComponent
 
setFont(Font) - Method in class ch.sahits.game.graphic.layout.AbstractMultiselectableComponent
 
setFont(Font) - Method in class ch.sahits.game.graphic.layout.AbstractSelectableComponent
 
setFont(Font) - Method in class ch.sahits.game.graphic.layout.Button
 
setFont(Font) - Method in interface ch.sahits.game.graphic.layout.ISahitsLabel
Set the font of the label
setFont(Font) - Method in class ch.sahits.game.graphic.layout.Label
 
setInsets(int, int, int, int) - Method in interface ch.sahits.game.graphic.display.ISahitsComponent
Define the insets of the component
setInsets(int, int, int, int) - Method in class ch.sahits.game.graphic.layout.AbstractSahitsComponent
 
setPaintLabels(boolean) - Method in class ch.sahits.game.graphic.layout.Slider
Set the flag to paint the label
setSelected(int) - Method in class ch.sahits.game.graphic.layout.AbstractMultiselectableComponent
 
setSelected(boolean) - Method in class ch.sahits.game.graphic.layout.AbstractSelectableComponent
 
setSelected(int) - Method in class ch.sahits.game.graphic.layout.Slider
set the selected index to specified value.
setSize(int) - Method in class ch.sahits.game.graphic.layout.TextInput
 
setText(String) - Method in class ch.sahits.game.graphic.layout.Button
 
setText(String) - Method in interface ch.sahits.game.graphic.layout.ISahitsLabel
Set the text of the label
setText(String) - Method in class ch.sahits.game.graphic.layout.Label
 
setText(String) - Method in class ch.sahits.game.graphic.layout.RadioButton
 
setValue(T) - Method in class ch.sahits.game.graphic.layout.AbstractEditableSahitsComponent
 
shipList - Variable in class ch.sahits.game.graphic.display.model.CityPlayerProxy
List holding all ships currently present in the city
size - Variable in class ch.sahits.game.graphic.display.gameplay.TradeDialog.TransferAmountChangeAction
 
size - Variable in class ch.sahits.game.graphic.display.start.StartupView
 
size - Variable in class ch.sahits.game.graphic.layout.TextInput
 
Slider - Class in ch.sahits.game.graphic.layout
A slider component.
Slider(FontMetrics) - Constructor for class ch.sahits.game.graphic.layout.Slider
 
speed - Variable in class ch.sahits.game.graphic.display.start.NewGameView
 
Spinner - Class in ch.sahits.game.graphic.layout
 
Spinner(FontMetrics) - Constructor for class ch.sahits.game.graphic.layout.Spinner
 
START_CLIENT - Static variable in class ch.sahits.game.OpenPatrician
 
START_SERVER - Static variable in class ch.sahits.game.OpenPatrician
 
startedServer - Static variable in class ch.sahits.game.OpenPatrician
 
StartupView - Class in ch.sahits.game.graphic.display.start
 
StartupView(Rectangle) - Constructor for class ch.sahits.game.graphic.display.start.StartupView
 
StartupView.MouseState - Enum in ch.sahits.game.graphic.display.start
 
StartupView.MouseState() - Constructor for enum ch.sahits.game.graphic.display.start.StartupView.MouseState
 
StartupView.PageState - Enum in ch.sahits.game.graphic.display.start
 
StartupView.PageState() - Constructor for enum ch.sahits.game.graphic.display.start.StartupView.PageState
 
startYear - Variable in class ch.sahits.game.graphic.display.start.NewGameView
 
state - Variable in class ch.sahits.game.graphic.display.start.StartupView
 
SubMenu - Class in ch.sahits.game.graphic.display.gameplay
This view represents the sub menu view
SubMenu(Rectangle) - Constructor for class ch.sahits.game.graphic.display.gameplay.SubMenu
 
subMenu - Variable in class ch.sahits.game.graphic.display.MainGameView
View holding the sub menu (ship or city) menu

T

testAndExecute(Point) - Method in class ch.sahits.game.graphic.display.util.ClickablePolygons
Find the polygon that contains the point and if such a polygon exists execute its action
testClick(Point) - Method in interface ch.sahits.game.graphic.display.IUpdatableComponent
Test if there was a mouse click on the component
testClick(Point) - Method in class ch.sahits.game.graphic.layout.Button
 
testClick(MouseEvent) - Method in class ch.sahits.game.graphic.layout.RadioButton
 
testClick(Point) - Method in class ch.sahits.game.graphic.layout.RadioButton
 
testClick(MouseEvent) - Method in class ch.sahits.game.graphic.layout.Slider
 
testClick(Point) - Method in class ch.sahits.game.graphic.layout.Slider
 
testClick(MouseEvent) - Method in class ch.sahits.game.graphic.layout.Spinner
 
testClick(Point) - Method in class ch.sahits.game.graphic.layout.Spinner
 
testClick(Point) - Method in class ch.sahits.game.graphic.layout.TextInput
 
testKey(KeyEvent) - Method in class ch.sahits.game.graphic.display.OpenPatricianFrame
Handle key presses
testKeyPress(KeyEvent) - Method in interface ch.sahits.game.graphic.display.IUpdatableComponent
Check the updatable components if the key press was in one of them
testKeyPress(KeyEvent) - Method in class ch.sahits.game.graphic.layout.AbstractMultiselectableComponent
 
testKeyPress(KeyEvent) - Method in class ch.sahits.game.graphic.layout.AbstractSelectableComponent
Key events are not handled
testKeyPress(KeyEvent) - Method in class ch.sahits.game.graphic.layout.Button
 
testKeyPress(KeyEvent) - Method in class ch.sahits.game.graphic.layout.TextInput
 
testMove(int, int) - Method in class ch.sahits.game.graphic.display.OpenPatricianFrame
Handle the mouse movement (e.g.
testPress(int, int) - Method in class ch.sahits.game.graphic.display.OpenPatricianFrame
Check the mouse clicks
text - Variable in class ch.sahits.game.graphic.layout.Button
 
text - Variable in class ch.sahits.game.graphic.layout.Label
 
text - Variable in class ch.sahits.game.graphic.layout.RadioButton
 
TEXT_BACK_NEXT - Static variable in class ch.sahits.game.graphic.display.start.StartupView
 
TEXT_CREDITS - Static variable in class ch.sahits.game.graphic.display.start.StartupView
 
TEXT_FOCUS_BACK - Static variable in class ch.sahits.game.graphic.display.start.StartupView
 
TEXT_FOCUS_CREDITS - Static variable in class ch.sahits.game.graphic.display.start.StartupView
 
TEXT_FOCUS_HISTORY - Static variable in class ch.sahits.game.graphic.display.start.StartupView
 
TEXT_FOCUS_LOAD - Static variable in class ch.sahits.game.graphic.display.start.StartupView
 
TEXT_FOCUS_NEW - Static variable in class ch.sahits.game.graphic.display.start.StartupView
 
TEXT_FOCUS_NEXT - Static variable in class ch.sahits.game.graphic.display.start.StartupView
 
TEXT_FOCUS_OPTIONS - Static variable in class ch.sahits.game.graphic.display.start.StartupView
 
TEXT_HISTORY - Static variable in class ch.sahits.game.graphic.display.start.StartupView
 
TEXT_INSET - Variable in class ch.sahits.game.graphic.layout.Spinner
 
TEXT_INSET - Variable in class ch.sahits.game.graphic.layout.TextInput
 
TEXT_UNFOCUSED - Static variable in class ch.sahits.game.graphic.display.start.StartupView
 
textImageIndex - Variable in class ch.sahits.game.graphic.display.start.StartupView
Index of the text image in the StartupView.images List
TextInput - Class in ch.sahits.game.graphic.layout
 
TextInput(FontMetrics) - Constructor for class ch.sahits.game.graphic.layout.TextInput
 
titleHeigth - Variable in class ch.sahits.game.graphic.display.gameplay.TradeDialog.DialogPositions
 
TOP_STATUS_HEIGHT - Static variable in class ch.sahits.game.graphic.display.MainGameView
Height of the top status bar
topLef - Variable in class ch.sahits.game.graphic.display.util.PerspectiveImage
 
topRight - Variable in class ch.sahits.game.graphic.display.util.PerspectiveImage
 
toString() - Method in class ch.sahits.game.graphic.display.util.Edge
 
toString() - Method in class ch.sahits.game.graphic.display.util.NamedPolygon
 
toString() - Method in class ch.sahits.game.graphic.display.util.Polygon
 
toString() - Method in class ch.sahits.game.graphic.layout.RadioButton
 
TradeDialog - Class in ch.sahits.game.graphic.display.gameplay
Trade dialog for buying/selling from/to the city involving either a ship or the branch office.
TradeDialog(Point, ImagesLoader, double, CityPlayerProxy) - Constructor for class ch.sahits.game.graphic.display.gameplay.TradeDialog
 
TradeDialog.City2ShipAction - Class in ch.sahits.game.graphic.display.gameplay
Action of buying stuff from the city onto the ship
TradeDialog.City2ShipAction(EWare) - Constructor for class ch.sahits.game.graphic.display.gameplay.TradeDialog.City2ShipAction
 
TradeDialog.DialogPositions - Class in ch.sahits.game.graphic.display.gameplay
This class holds the positions where different elements are placed on the dialog.
TradeDialog.DialogPositions(double, int, int, int, int, int, int, int, int) - Constructor for class ch.sahits.game.graphic.display.gameplay.TradeDialog.DialogPositions
 
TradeDialog.ETransferAmount - Enum in ch.sahits.game.graphic.display.gameplay
Enumeration over the transferable amount
TradeDialog.ETransferAmount() - Constructor for enum ch.sahits.game.graphic.display.gameplay.TradeDialog.ETransferAmount
 
TradeDialog.Ship2CityAction - Class in ch.sahits.game.graphic.display.gameplay
Action of selling stuff to the city from the ship
TradeDialog.Ship2CityAction(EWare) - Constructor for class ch.sahits.game.graphic.display.gameplay.TradeDialog.Ship2CityAction
 
TradeDialog.TransferAmountChangeAction - Class in ch.sahits.game.graphic.display.gameplay
Action to change the chunck size that is to be moved.
TradeDialog.TransferAmountChangeAction(TradeDialog.ETransferAmount) - Constructor for class ch.sahits.game.graphic.display.gameplay.TradeDialog.TransferAmountChangeAction
 

U

unselectOthers(AbstractSelectableComponent) - Method in class ch.sahits.game.graphic.layout.SelectableGroup
Unselect all other selectables than the the passed
updatables - Variable in class ch.sahits.game.graphic.display.OpenPatricianBackgroundView
 
update - Variable in class ch.sahits.game.graphic.layout.AbstractMultiselectableComponent
 
updateArea(Polygon) - Method in class ch.sahits.game.graphic.display.util.ClickablePolygons
 
updateCouter - Variable in class ch.sahits.game.graphic.layout.TextInput
 
updateMouseState(String) - Method in class ch.sahits.game.graphic.display.start.StartupView
 
updateSelected(boolean) - Method in class ch.sahits.game.graphic.layout.RadioButton
Update the selected state
updateValue(String) - Method in class ch.sahits.game.graphic.layout.TextInput
 
upSpinner - Variable in class ch.sahits.game.graphic.layout.Spinner
 

V

V_BORDER - Variable in class ch.sahits.game.graphic.layout.Button
 
validInput() - Method in class ch.sahits.game.graphic.display.start.NewGameView
check if the input is valid and one may proceed.
value - Variable in class ch.sahits.game.graphic.layout.AbstractEditableSahitsComponent
 
valueForXPosition(int) - Method in class ch.sahits.game.graphic.layout.Slider
 
valueOf(String) - Static method in enum ch.sahits.game.graphic.display.gameplay.TradeDialog.ETransferAmount
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum ch.sahits.game.graphic.display.start.StartupView.MouseState
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum ch.sahits.game.graphic.display.start.StartupView.PageState
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum ch.sahits.game.graphic.layout.ECellPosition
Returns the enum constant of this type with the specified name.
values() - Static method in enum ch.sahits.game.graphic.display.gameplay.TradeDialog.ETransferAmount
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum ch.sahits.game.graphic.display.start.StartupView.MouseState
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum ch.sahits.game.graphic.display.start.StartupView.PageState
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum ch.sahits.game.graphic.layout.ECellPosition
Returns an array containing the constants of this enum type, in the order they are declared.
view - Variable in class ch.sahits.game.graphic.display.OpenPatricianFrame
 
viewChanged - Variable in class ch.sahits.game.graphic.display.start.StartupView
 
viewState - Variable in class ch.sahits.game.graphic.display.gameplay.MainView
Use low level byte to indicate what is displayed instead of an enum.
ViewStatus - Class in ch.sahits.game.graphic.display.gameplay
This view represents the status view of the main view
ViewStatus(Rectangle, IClient) - Constructor for class ch.sahits.game.graphic.display.gameplay.ViewStatus
 
viewStatus - Variable in class ch.sahits.game.graphic.display.MainGameView
Status view of the fleet or city

W

ware - Variable in class ch.sahits.game.graphic.display.gameplay.TradeDialog.City2ShipAction
 
ware - Variable in class ch.sahits.game.graphic.display.gameplay.TradeDialog.Ship2CityAction
 
windowClosed(WindowEvent) - Method in class ch.sahits.game.graphic.display.OpenPatricianFrame
 
windowClosing(WindowEvent) - Method in class ch.sahits.game.graphic.display.OpenPatricianFrame
 

X

xBuy - Variable in class ch.sahits.game.graphic.display.gameplay.TradeDialog.DialogPositions
 
xCity - Variable in class ch.sahits.game.graphic.display.gameplay.TradeDialog.DialogPositions
 
xOff - Variable in class ch.sahits.game.graphic.display.util.OffsetCalculator
 
xPrice - Variable in class ch.sahits.game.graphic.display.gameplay.TradeDialog.DialogPositions
 
xSell - Variable in class ch.sahits.game.graphic.display.gameplay.TradeDialog.DialogPositions
 
xShip - Variable in class ch.sahits.game.graphic.display.gameplay.TradeDialog.DialogPositions
 
xWare - Variable in class ch.sahits.game.graphic.display.gameplay.TradeDialog.DialogPositions
 

Y

yOff - Variable in class ch.sahits.game.graphic.display.util.OffsetCalculator
 

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

Copyright © 2011 Sahits GmbH. All Rights Reserved.