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
Constructor Summary |
RouteEndAnimIcon(int routeNumber_,
int orientation_)
Creates new RouteStartAnimIcon |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
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.
RouteEndAnimIcon
public RouteEndAnimIcon(int routeNumber_,
int orientation_)
- Creates new RouteStartAnimIcon
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