|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAbstractDrawCommand
net.refractions.udig.tools.edit.animation.MessageBubble
public class MessageBubble
Creates a semi transparent bubble (OSX like) that show a message to the user and disappears after a few seconds.
Constructor Summary | |
---|---|
MessageBubble(int x,
int y,
java.lang.String message,
short delay)
|
Method Summary | |
---|---|
java.awt.Color |
getBubbleColor()
Returns the color used to draw the Message Bubble |
short |
getFrameInterval()
|
java.awt.Color |
getTextColor()
Returns the color used to draw the Message |
java.awt.Rectangle |
getValidArea()
|
boolean |
hasNext()
|
void |
nextFrame()
|
void |
run(IProgressMonitor monitor)
|
void |
setBubbleColor(java.awt.Color bubbleColor)
Sets the color used to draw the Message Bubble. |
void |
setHorizontalBorder(int horizontalBorder)
Sets the space between the edge of the bubble and the text. |
void |
setHorizontalCornerArc(int horizontalCornerArc)
Sets the horizontal Arc of the bubble corners for the four edges. |
void |
setTextColor(java.awt.Color textColor)
Sets the color used to draw the Message. |
void |
setValid(boolean valid)
|
void |
setVerticalBorder(int verticalBorder)
Sets the space between the edge of the bubble and the text. |
void |
setVerticalCornerArc(int verticalCornerArc)
Sets the vertical Arc of the bubble corners for the four edges. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MessageBubble(int x, int y, java.lang.String message, short delay)
x
- upperLeft of messagey
- upperLeft of messagemessage
- message to displaydelay
- the length of time to show the messageMethod Detail |
---|
public short getFrameInterval()
public boolean hasNext()
public void nextFrame()
public void run(IProgressMonitor monitor) throws java.lang.Exception
java.lang.Exception
public java.awt.Rectangle getValidArea()
public void setHorizontalBorder(int horizontalBorder)
horizontalBorder
- border along the x-axis. In pixels.public void setVerticalBorder(int verticalBorder)
verticalBorder
- border along the y-axis. In pixels.public void setHorizontalCornerArc(int horizontalCornerArc)
horizontalCornerArc
- the horizontal Arc of the bubble corners for the four edges in pixels.public void setVerticalCornerArc(int verticalCornerArc)
verticalCornerArc
- the vertical Arc of the bubble corners for the four edges in pixels.public java.awt.Color getBubbleColor()
public void setBubbleColor(java.awt.Color bubbleColor)
bubbleColor
- the new color to usepublic java.awt.Color getTextColor()
public void setTextColor(java.awt.Color textColor)
bubbleColor
- the new color to usepublic void setValid(boolean valid)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |