|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.ui.Border
public abstract class Border
Provides an abstract border.
copyright Enough Software 2004 - 2009
| Field Summary | |
|---|---|
protected int |
borderWidthBottom
width of the border at the bottom |
protected int |
borderWidthLeft
width of the border at the left side |
protected int |
borderWidthRight
width of the border at the right side |
protected int |
borderWidthTop
width of the border at the top |
| Constructor Summary | |
|---|---|
Border(int left,
int right,
int top,
int bottom)
Creates a new border with the specified border widths. |
|
| Method Summary | |
|---|---|
boolean |
animate()
Animates this border. |
void |
animate(Screen screen,
Item parent,
long currentTime,
ClippingRegion repaintRegion)
Animates this background. |
void |
hideNotify()
Informs the border that it is being hidden shortly. |
abstract void |
paint(int x,
int y,
int width,
int height,
Graphics g)
Paints this border. |
void |
setStyle(Style style)
Allows borders to be animated using CSS attribute animations. |
void |
showNotify()
Informs the border that it is being shown shortly or that it is now applied to a new visible item. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int borderWidthTop
protected int borderWidthBottom
protected int borderWidthLeft
protected int borderWidthRight
| Constructor Detail |
|---|
public Border(int left,
int right,
int top,
int bottom)
left - the border width on the left sideright - the border width on the right sidetop - the border width at the topbottom - the border width at the bottom| Method Detail |
|---|
public abstract void paint(int x,
int y,
int width,
int height,
Graphics g)
x - the horizontal start pointy - the vertical start pointwidth - the width of the borderheight - the height of the borderg - the Graphics on which the border should be painted.
public void animate(Screen screen,
Item parent,
long currentTime,
ClippingRegion repaintRegion)
screen - the parent screenparent - the parent item, can be null when the background belongs to a screencurrentTime - the current time in millisecondsrepaintRegion - the repaint area that needs to be updated when this item is animatedItem.addRelativeToContentRegion(ClippingRegion, int, int, int, int)public boolean animate()
animate(Screen, Item, long, ClippingRegion)public void hideNotify()
public void showNotify()
public void setStyle(Style style)
style - the style containing typically only one element
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||