|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--PickMarker
Graphical representation of a Phase. PickMarker is an Observer: its update() method will be called whenever the Phase it represents is modifed.
Model = Phase Class
Controller = ZoomedWFPanel Class
View = PickMarker Class
Field Summary | |
java.lang.String |
description
|
Constructor Summary | |
PickMarker(WFPanel wfPanel,
Phase phase)
Create a PickMarker of an existing phase |
|
PickMarker(WFPanel wfPanel,
java.awt.Point pnt)
Create a PickMarker and create a new Phase at the given point in the WFPanel |
Method Summary | |
boolean |
contains(int x,
int y)
|
boolean |
contains(java.awt.Point pt)
|
void |
draw(java.awt.Graphics g)
|
int |
getX()
|
int |
gety()
|
boolean |
isNew()
|
void |
redraw()
Force a redraw. |
void |
set(Phase phase)
Set/reset the phase for this marker |
void |
setActive(boolean tf)
|
void |
setBackgroundColor(java.awt.Color clr)
|
void |
setLocation(int x)
Move the pick marker to this location on the x-axis and repaint to show the move. |
void |
setLocation(int x,
int y)
Put marker at this location in parent container coordinates (pixels). |
void |
setLocation(java.awt.Point pnt)
Put marker at this location in parent container coordinates (pixels). |
void |
setNew(boolean tf)
Set/unset isNew flag. |
void |
setTextColor(java.awt.Color clr)
|
void |
translate(int x,
int y)
Translate the pick marker by this (x, y) offset and repaint to show the move. |
void |
undraw()
|
void |
update(java.util.Observable ob,
java.lang.Object arg)
MVC support. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public java.lang.String description
Constructor Detail |
public PickMarker(WFPanel wfPanel, Phase phase)
public PickMarker(WFPanel wfPanel, java.awt.Point pnt)
Method Detail |
public void set(Phase phase)
public void setNew(boolean tf)
public void setLocation(int x, int y)
public void setLocation(java.awt.Point pnt)
public int getX()
public int gety()
public boolean isNew()
public void setBackgroundColor(java.awt.Color clr)
public void setTextColor(java.awt.Color clr)
public void setActive(boolean tf)
public boolean contains(int x, int y)
public boolean contains(java.awt.Point pt)
public void redraw()
public void setLocation(int x)
public void translate(int x, int y)
public void draw(java.awt.Graphics g)
public void undraw()
public void update(java.util.Observable ob, java.lang.Object arg)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |