org.gjt.universe.gui
Class SystemScreenObjectHandler

java.lang.Object
  |
  +--org.gjt.universe.gui.ScreenObjectHandler
        |
        +--org.gjt.universe.gui.SystemScreenObjectHandler
All Implemented Interfaces:
TurnProcessedListener

public class SystemScreenObjectHandler
extends ScreenObjectHandler
implements TurnProcessedListener

Handles the display of a system in the map.


Field Summary
private  float DEPTH_FACTOR
           
private  int HALO_BASE_RADIUS
           
private  float HALO_STROKE_WIDTH
           
private  CivID player
           
private  java.util.Hashtable playerSystemRelationshipCache
           
 
Constructor Summary
(package private) SystemScreenObjectHandler(CivID player)
           
 
Method Summary
private  void clearRelationshipCache()
           
private  void drawHalo(java.awt.Graphics g, int x, int y, float z, RelationshipType relationshipType, java.awt.Color aColor)
          This method draws a halo at the given location (where a star will be drawn).
 void handleObject(java.awt.Graphics g, int screensize, MapDisplayOptions displayOptions, DisplayMap mapInfo, java.lang.Object obj)
          Draw
private  RelationshipType playerSystemRelationship(CivID cid, SystemID sid)
           
 void turnProcessed()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

player

private CivID player

playerSystemRelationshipCache

private java.util.Hashtable playerSystemRelationshipCache

HALO_BASE_RADIUS

private int HALO_BASE_RADIUS

HALO_STROKE_WIDTH

private float HALO_STROKE_WIDTH

DEPTH_FACTOR

private float DEPTH_FACTOR
Constructor Detail

SystemScreenObjectHandler

SystemScreenObjectHandler(CivID player)
Method Detail

drawHalo

private void drawHalo(java.awt.Graphics g,
                      int x,
                      int y,
                      float z,
                      RelationshipType relationshipType,
                      java.awt.Color aColor)
This method draws a halo at the given location (where a star will be drawn). The characteristics of the halo indicate strategic information about the star.


handleObject

public void handleObject(java.awt.Graphics g,
                         int screensize,
                         MapDisplayOptions displayOptions,
                         DisplayMap mapInfo,
                         java.lang.Object obj)
Draw

Specified by:
handleObject in class ScreenObjectHandler

turnProcessed

public void turnProcessed()
Specified by:
turnProcessed in interface TurnProcessedListener

playerSystemRelationship

private RelationshipType playerSystemRelationship(CivID cid,
                                                  SystemID sid)

clearRelationshipCache

private void clearRelationshipCache()


Copyright © 2001 Universe Dev Team All Rights Reserved.