|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
wt.clients.lifecycle.administrator.Phase
A component which represents a phase in a life cycle.
Nested Class Summary |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
(package private) Polygon |
arrowPolygon
|
(package private) boolean |
current
|
private static int |
GATE_HEIGHT
|
private static int |
GATE_WIDTH
|
(package private) Image |
offscreen
|
private static int |
PHASE_HEIGHT
|
(package private) CPhaseTemplate |
phaseEntry
|
private int |
phaseWidth
|
(package private) boolean |
promotable
|
(package private) boolean |
selected
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
protected |
Phase(CPhaseTemplate phase_entry)
Constructs a new phase component given a CPhaseTemplate. |
Method Summary | |
Object |
clone()
Returns a clone of this phase component. |
protected boolean |
containsGlobal(int x,
int y)
Returns true if this phase contains the global point x, y. |
protected Polygon |
getArrowPolygon()
Returns a Polygon in the shape of an arrow. |
protected CPhaseTemplate |
getCPhaseTemplate()
Returns the CPhaseTemplate object for this phase component. |
protected String |
getState()
Returns the state of this phase. |
protected boolean |
isCurrent()
Returns true if the phase is the current phase, else false. |
private boolean |
isFinalPhase()
Returns true if this is the final phase in the lifecycle, else false. |
protected boolean |
isSelected()
Returns true if the phase is selected, else false. |
void |
paint(Graphics g)
Paints the phase onto the specified graphics. |
protected void |
setCPhaseTemplate(CPhaseTemplate phase_entry)
Sets the CPhaseTemplate object for this phase component. |
protected void |
setCurrent(boolean current)
Sets the current state of the phase. |
protected void |
setSelected(boolean selected)
Sets the selected state of a phase. |
protected void |
setState(String state)
Sets the state name of the phase. |
String |
toString()
Returns the string representation of this phase, it's state. |
void |
update(Graphics g)
Updates the specified graphics. |
protected void |
updateSize()
Changes the size of a phase depending on whether or not it has a Gate. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
CPhaseTemplate phaseEntry
boolean selected
boolean current
boolean promotable
Polygon arrowPolygon
private int phaseWidth
private static final int PHASE_HEIGHT
private static final int GATE_HEIGHT
private static final int GATE_WIDTH
Image offscreen
Constructor Detail |
protected Phase(CPhaseTemplate phase_entry)
phase_entry
- the client phase templateMethod Detail |
protected void setCPhaseTemplate(CPhaseTemplate phase_entry)
phase_entry
- the client phase templateprotected CPhaseTemplate getCPhaseTemplate()
public void update(Graphics g)
g
- the graphics to updatepublic Object clone()
public void paint(Graphics g)
g
- the graphics to paint the phase uponprotected Polygon getArrowPolygon()
protected void updateSize()
protected void setSelected(boolean selected)
selected
- true if selected, else falseprotected boolean isSelected()
protected void setCurrent(boolean current)
current
- true if the phase is the current phase, else false.protected boolean isCurrent()
protected void setState(String state) throws WTPropertyVetoException, WTException
state
- the name of the state for this phase
WTPropertyVetoException
- if the state is invalid
WTException
- if the state cannot be setprotected String getState()
private boolean isFinalPhase()
public String toString()
protected boolean containsGlobal(int x, int y)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |