edu.isi.gamebots.examples
Class ExampleVizTool.VizMap

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--edu.isi.gamebots.examples.UTMapUI
                          |
                          +--edu.isi.gamebots.examples.ExampleVizTool.VizMap
All Implemented Interfaces:
GamebotsConstants, ImageObserver, MenuContainer, Serializable
Enclosing class:
ExampleVizTool

protected class ExampleVizTool.VizMap
extends edu.isi.gamebots.examples.UTMapUI

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Nested classes inherited from class edu.isi.gamebots.client.GamebotsConstants
GamebotsConstants.TeamColorMap
 
Field Summary
protected  List actorSets
           
protected  Vector3D center
           
protected  Object centerLock
           
protected static Color COLOR_AXIS
           
protected static Color COLOR_BACKGROUND
           
protected static Color COLOR_NAVPOINT
           
protected static Color COLOR_PICKUP
           
protected static Color COLOR_TEAM_DEFAULT
           
protected static Color COLOR_TEAM_GOLD
           
protected static double minSymbolSize
           
protected static Ellipse2D navPointCircle
           
protected static Ellipse2D playerCircle
           
protected  double scale
           
protected  Object scaleLock
           
protected  double symbolScale
           
protected static double symbolSize
           
protected static Line2D xAxis
           
protected static Line2D yAxis
           
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface edu.isi.gamebots.client.GamebotsConstants
ACTOR_CLASS, ACTOR_ID, ACTOR_REACHABLE, ARG_ALT, ARG_AMOUNT, ARG_GLOBAL, ARG_TARGET, ARG_TEXT, ARG_WALK, BEG, BUMP, CHANGEWEAPON, CHECKREACH, DAMAGE, DEATH_DAMAGE_TYPE, DEATH_KILLER, DEFAULT_BOT_PORT, DEFAULT_VIZ_PORT, DIE, DOM, DOMPOINTS, END, FALSE, FINISHED, GAMESTATE, GETPATH, INFO, INIT, INV, ITEM, ITEM_ID, JUMP, KILL, LOCATION, MESSAGE, MOV, NAV, NODE_DOMINATION, NODE_INVENTORY, NODE_MOVER, NODE_NAVIGATION, OWNER, PATH, PING, PLAYER, PLAYER_AMMO, PLAYER_ARMOR, PLAYER_HEALTH, PLAYER_NAME, PLAYER_RADIUS, PLAYER_TEAM, PLAYER_WEAPON, PONG, ROTATE, ROTATION, RUNTO, SEE, SELF, SETWALK, SHOOT, STOP, STOP_SHOOT, STRAFE, TEAM_ANY, TEAM_BLUE, TEAM_GOLD, TEAM_GREEN, TEAM_NONE, TEAM_RED, TRUE, TURNTO, VELOCITY, WALL, WEAPON_1, WEAPON_2
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
protected ExampleVizTool.VizMap()
           
 
Method Summary
 void addActorSet(Set actors)
           
 void addActorSet(Set actors, Object lock)
           
protected  void drawActor(Graphics2D g, edu.isi.gamebots.examples.UTActor actor)
           
protected  void drawNavPoint(Graphics2D g, edu.isi.gamebots.examples.UTActor navPoint)
           
protected  void drawPickup(Graphics2D g, edu.isi.gamebots.examples.UTActor pickup)
           
protected  void drawPlayer(Graphics2D g, edu.isi.gamebots.examples.UTPawn player)
           
protected  void drawPlayerSymbol(Graphics2D g, double pitch, double yaw)
           
 double getScale()
           
protected  void paintComponent(Graphics g)
           
protected  boolean paintComponent2D(Graphics2D g)
           
 void removeActorSet(Set actors)
           
 void setCenter(Vector3D center, Object lock)
           
 void setScale(double scale)
           
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

minSymbolSize

protected static final double minSymbolSize
See Also:
Constant Field Values

symbolSize

protected static final double symbolSize
See Also:
Constant Field Values

COLOR_TEAM_GOLD

protected static final Color COLOR_TEAM_GOLD

COLOR_TEAM_DEFAULT

protected static final Color COLOR_TEAM_DEFAULT

COLOR_BACKGROUND

protected static final Color COLOR_BACKGROUND

COLOR_AXIS

protected static final Color COLOR_AXIS

COLOR_PICKUP

protected static final Color COLOR_PICKUP

COLOR_NAVPOINT

protected static final Color COLOR_NAVPOINT

xAxis

protected static final Line2D xAxis

yAxis

protected static final Line2D yAxis

playerCircle

protected static final Ellipse2D playerCircle

navPointCircle

protected static final Ellipse2D navPointCircle

scaleLock

protected Object scaleLock

scale

protected double scale

symbolScale

protected double symbolScale

centerLock

protected Object centerLock

center

protected Vector3D center

actorSets

protected List actorSets
Constructor Detail

ExampleVizTool.VizMap

protected ExampleVizTool.VizMap()
Method Detail

paintComponent

protected void paintComponent(Graphics g)
Overrides:
paintComponent in class edu.isi.gamebots.examples.UTMapUI

drawPlayerSymbol

protected void drawPlayerSymbol(Graphics2D g,
                                double pitch,
                                double yaw)
Overrides:
drawPlayerSymbol in class edu.isi.gamebots.examples.UTMapUI

addActorSet

public void addActorSet(Set actors,
                        Object lock)

addActorSet

public void addActorSet(Set actors)

removeActorSet

public void removeActorSet(Set actors)

setCenter

public void setCenter(Vector3D center,
                      Object lock)

getScale

public double getScale()

setScale

public void setScale(double scale)

paintComponent2D

protected boolean paintComponent2D(Graphics2D g)

drawActor

protected void drawActor(Graphics2D g,
                         edu.isi.gamebots.examples.UTActor actor)

drawPlayer

protected void drawPlayer(Graphics2D g,
                          edu.isi.gamebots.examples.UTPawn player)

drawPickup

protected void drawPickup(Graphics2D g,
                          edu.isi.gamebots.examples.UTActor pickup)

drawNavPoint

protected void drawNavPoint(Graphics2D g,
                            edu.isi.gamebots.examples.UTActor navPoint)