haifa.shopsim.UI.shopanim
Class RouteAnimIcon

java.lang.Object
  |
  +--haifa.shopsim.UI.shopanim.ShopAnimIcon
        |
        +--haifa.shopsim.UI.shopanim.RouteAnimIcon
All Implemented Interfaces:
javax.swing.Icon, ShopAnimConstants
Direct Known Subclasses:
RouteEndAnimIcon, RouteStartAnimIcon

public abstract class RouteAnimIcon
extends ShopAnimIcon

A drawing representing a route start or route end.

Version:
1.1

Field Summary
protected  java.awt.Point lineTipPoint
          Signifies the location of the lineTip, relative to the top left corner of the icon.
protected  int numJobsInIcon
           
(package private) static int ROUTE_TIP_RADIUS
           
protected  int routeNumber
           
 
Fields inherited from class haifa.shopsim.UI.shopanim.ShopAnimIcon
height, JOB_CROSS_SIZE, orientation, random, width
 
Fields inherited from interface haifa.shopsim.UI.shopanim.ShopAnimConstants
EAST, NORTH, NOT_SET, NUM_MACHINE_SPOTS_HEIGHT, NUM_MACHINE_SPOTS_WIDTH, SOUTH, WEST
 
Constructor Summary
RouteAnimIcon(int routeNumber_)
           
RouteAnimIcon(int routeNumber_, int orientation_)
           
 
Method Summary
 java.awt.Point getLineTipPoint(int x, int y)
          Returns the point at which a line (representing the route) is to connect.
protected abstract  void reCalcLineTipPoint()
           
 void setIconHeight(int height_)
           
 void setIconWidth(int width_)
           
 void setNumJobsInIcon(int numJobsInIcon_)
           
 
Methods inherited from class haifa.shopsim.UI.shopanim.ShopAnimIcon
drawCross, getIconHeight, getIconWidth, getOrientation, getRandomPoint, paintIcon, setOrientation
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

ROUTE_TIP_RADIUS

static final int ROUTE_TIP_RADIUS

lineTipPoint

protected java.awt.Point lineTipPoint
Signifies the location of the lineTip, relative to the top left corner of the icon.

numJobsInIcon

protected int numJobsInIcon

routeNumber

protected int routeNumber
Constructor Detail

RouteAnimIcon

public RouteAnimIcon(int routeNumber_)

RouteAnimIcon

public RouteAnimIcon(int routeNumber_,
                     int orientation_)
Method Detail

setNumJobsInIcon

public void setNumJobsInIcon(int numJobsInIcon_)

setIconWidth

public void setIconWidth(int width_)
Overrides:
setIconWidth in class ShopAnimIcon

setIconHeight

public void setIconHeight(int height_)
Overrides:
setIconHeight in class ShopAnimIcon

getLineTipPoint

public java.awt.Point getLineTipPoint(int x,
                                      int y)
Returns the point at which a line (representing the route) is to connect.

reCalcLineTipPoint

protected abstract void reCalcLineTipPoint()