Uses of Class
jrummikub.model.Position

Packages that use Position
jrummikub.control.turn   
jrummikub.model   
jrummikub.view   
jrummikub.view.impl   
 

Uses of Position in jrummikub.control.turn
 

Methods in jrummikub.control.turn with parameters of type Position
private  void HumanTurnControl.handClick(Position pos)
           
private  void HumanTurnControl.tableClick(Position position)
           
 

Method parameters in jrummikub.control.turn with type arguments of type Position
 int HumanTurnControl.HandStonePositionComparator.compare(Pair<Stone,Position> pair1, Pair<Stone,Position> pair2)
           
 int HumanTurnControl.HandStonePositionComparator.compare(Pair<Stone,Position> pair1, Pair<Stone,Position> pair2)
           
 

Uses of Position in jrummikub.model
 

Fields in jrummikub.model declared as Position
(package private)  Position Table.StoneInfo.setPosition
           
 

Fields in jrummikub.model with type parameters of type Position
protected  java.util.HashMap<E,Pair<E,Position>> StoneTray.objects
           
 

Methods in jrummikub.model that return Position
private  Position StoneTray.getNewPosition(E object, Position position, StoneTray.Direction newDirection, E currentObject, Position currentPosition)
           
 Position StoneTray.getPosition(E object)
           
 Position IStoneTray.getPosition(E object)
          Returns the position of an object that is already on the tray
 

Methods in jrummikub.model that return types with arguments of type Position
protected  Pair<Position,StoneTray.Direction> StoneTray.fixInvalidDrop(E object, Position pos, StoneTray.Direction dir)
          Checks whether the object may be placed on the given position, computes new position if not
protected  Pair<Position,StoneTray.Direction> Hand.fixInvalidDrop(Stone stone, Position pos, StoneTray.Direction dir)
           
 java.util.Iterator<Pair<E,Position>> StoneTray.iterator()
           
 

Methods in jrummikub.model with parameters of type Position
 void StoneTray.drop(E object, Position position)
           
 void IStoneTray.drop(E object, Position position)
          Adds object to the tray
private  void StoneTray.drop(E object, Position position, StoneTray.Direction direction)
          Subroutine to "drop" to consider and determine the direction the objects dropped one collides with position-wise evade in
private  void StoneTray.dropUnchecked(E object, Position position, StoneTray.Direction direction)
          Subroutine to "drop" to execute the actual drop
protected  Pair<Position,StoneTray.Direction> StoneTray.fixInvalidDrop(E object, Position pos, StoneTray.Direction dir)
          Checks whether the object may be placed on the given position, computes new position if not
protected  Pair<Position,StoneTray.Direction> Hand.fixInvalidDrop(Stone stone, Position pos, StoneTray.Direction dir)
           
private  StoneTray.Direction StoneTray.getMoveDirection(E object, Position position, Pair<E,Position> blocking)
          Returns the direction to move the object in
private  boolean StoneTray.getMoveOrientation(E object, Position position, Pair<E,Position> blocking)
          Will the object be moved horizontally or vertically
private  Position StoneTray.getNewPosition(E object, Position position, StoneTray.Direction newDirection, E currentObject, Position currentPosition)
           
private  boolean StoneTray.objectsOverlap(E object1, Position position1, E object2, Position position2)
          Tests whether two objects overlap
private  void Table.splitSet(StoneSet set, Position setPosition, int stonePosition)
          Splits a stone set at a specified position
 

Method parameters in jrummikub.model with type arguments of type Position
private  StoneTray.Direction StoneTray.getMoveDirection(E object, Position position, Pair<E,Position> blocking)
          Returns the direction to move the object in
private  boolean StoneTray.getMoveOrientation(E object, Position position, Pair<E,Position> blocking)
          Will the object be moved horizontally or vertically
 

Constructors in jrummikub.model with parameters of type Position
Table.StoneInfo(StoneSet set, Position setPosition, int stonePosition)
           
 

Uses of Position in jrummikub.view
 

Methods in jrummikub.view that return types with arguments of type Position
 IEvent1<Position> IClickable.getClickEvent()
          the click event is emitted when the player clicks on the table/hand/etc.
 

Method parameters in jrummikub.view with type arguments of type Position
 void IHandPanel.setStones(java.lang.Iterable<Pair<Stone,Position>> stones)
          Set the player's stones to display on the board
 void ITablePanel.setStoneSets(java.lang.Iterable<Pair<StoneSet,Position>> stoneSets)
          Sets the stone sets lying on the table
 

Uses of Position in jrummikub.view.impl
 

Fields in jrummikub.view.impl with type parameters of type Position
private  Event1<Position> AbstractStonePanel.clickEvent
           
private  java.util.List<Pair<StoneSet,Position>> TablePanel.pauseStoneSets
           
private  java.lang.Iterable<Pair<Stone,Position>> AbstractStonePanel.stones
           
private  java.lang.Iterable<Pair<StoneSet,Position>> TablePanel.stoneSets
           
 

Methods in jrummikub.view.impl that return Position
(package private)  Position StonePainter.calculatePosition(int x, int y)
           
 

Methods in jrummikub.view.impl that return types with arguments of type Position
private  java.util.List<Pair<Stone,Position>> View.createDecorationStones()
           
 Event1<Position> AbstractStonePanel.getClickEvent()
           
protected  java.lang.Iterable<Pair<Stone,Position>> AbstractStonePanel.getStones()
          Returns the list of stones and positions currently set
 

Methods in jrummikub.view.impl with parameters of type Position
private  Stone AbstractStonePanel.getStoneAt(Position pos)
          Gets the stone at the specified position
protected  boolean StoneCollectionPanel.handleOtherClickEvent(Position pos)
           
protected  boolean TablePanel.handleOtherClickEvent(Position pos)
           
protected  boolean AbstractStonePanel.handleOtherClickEvent(Position pos)
          Overwrite this method to signal if special zone was clicked
protected  void TablePanel.handleOtherMoveEvent(Position pos)
           
protected  void AbstractStonePanel.handleOtherMoveEvent(Position pos)
          Overwrite this method to signal if special zone was hovered
(package private)  void StonePainter.paintStone(java.awt.Graphics2D g, Stone stone, Position p, StonePainter.StoneState state, boolean hovered)
          Paints a stone
private  void TablePanel.paintStoneSet(java.awt.Graphics2D g, StoneSet stoneSet, Position pos, java.awt.geom.Area connectorArea, java.awt.geom.Area hoveredConnectorArea)
           
 

Method parameters in jrummikub.view.impl with type arguments of type Position
 void HandPanel.setStones(java.lang.Iterable<Pair<Stone,Position>> stones)
           
protected  void AbstractStonePanel.setStones(java.lang.Iterable<Pair<Stone,Position>> stones)
          Sets the list of stones that can be clicked on
 void TablePanel.setStoneSets(java.lang.Iterable<Pair<StoneSet,Position>> stoneSets)