haifa.shopsim.UI.shopanim
Class RouteEndAnimIcon

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

public class RouteEndAnimIcon
extends RouteAnimIcon

A drawing represeting a route end.

Version:
1.1

Field Summary
(package private) static int BOX_CURVE
           
(package private) static float FRACTION_OF_DIM
           
(package private) static int H_DIST_BETWEEN_JOBS
           
(package private) static int HEIGHT_MARGIN
           
private  int heightOfRect
           
(package private)  java.util.Collection pointsWithJobs
          stores Point objects relative to the top left corner of the roundRect that is drawn.
(package private) static int V_DIST_BETWEEN_JOBS
           
(package private) static int WIDTH_MARGIN
           
private  int widthOfRect
           
 
Fields inherited from class haifa.shopsim.UI.shopanim.RouteAnimIcon
lineTipPoint, numJobsInIcon, ROUTE_TIP_RADIUS, 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
RouteEndAnimIcon(int routeNumber_, int orientation_)
          Creates new RouteStartAnimIcon
 
Method Summary
 void paintIcon(java.awt.Component comp, java.awt.Graphics g, int x, int y)
          Should be implemented by the baseclasses.
protected  void reCalcLineTipPoint()
           
 void setIconHeight(int height_)
           
 void setIconWidth(int width_)
           
 void setNumJobsInIcon(int numJobsInIcon_)
           
 
Methods inherited from class haifa.shopsim.UI.shopanim.RouteAnimIcon
getLineTipPoint
 
Methods inherited from class haifa.shopsim.UI.shopanim.ShopAnimIcon
drawCross, getIconHeight, getIconWidth, getOrientation, getRandomPoint, setOrientation
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

FRACTION_OF_DIM

static final float FRACTION_OF_DIM

BOX_CURVE

static final int BOX_CURVE

HEIGHT_MARGIN

static final int HEIGHT_MARGIN

WIDTH_MARGIN

static final int WIDTH_MARGIN

V_DIST_BETWEEN_JOBS

static final int V_DIST_BETWEEN_JOBS

H_DIST_BETWEEN_JOBS

static final int H_DIST_BETWEEN_JOBS

widthOfRect

private int widthOfRect

heightOfRect

private int heightOfRect

pointsWithJobs

java.util.Collection pointsWithJobs
stores Point objects relative to the top left corner of the roundRect that is drawn.
Constructor Detail

RouteEndAnimIcon

public RouteEndAnimIcon(int routeNumber_,
                        int orientation_)
Creates new RouteStartAnimIcon
Method Detail

setIconWidth

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

setIconHeight

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

setNumJobsInIcon

public void setNumJobsInIcon(int numJobsInIcon_)
Overrides:
setNumJobsInIcon in class RouteAnimIcon

paintIcon

public void paintIcon(java.awt.Component comp,
                      java.awt.Graphics g,
                      int x,
                      int y)
Description copied from class: ShopAnimIcon
Should be implemented by the baseclasses. Must not paint outside of the range (x,y) -- (x+width-1,y+height-1).
Overrides:
paintIcon in class ShopAnimIcon

reCalcLineTipPoint

protected void reCalcLineTipPoint()
Overrides:
reCalcLineTipPoint in class RouteAnimIcon