|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectarcade.ads.AdsManager
public class AdsManager
Ads manager helps ads distributor to place ads in their framework. It can add new ads, remove ads, update and render ads. It can also check ads' validity. It can move to the next or the previous ads. It supports fancy operation like ads rotation, flip, etc...
Field Summary | |
---|---|
static java.util.List<BasicAds> |
ads
|
static int |
index
|
Constructor Summary | |
---|---|
AdsManager()
Initialize ads pool |
|
AdsManager(int xMin,
int xMax,
int yMin,
int yMax)
Set up displaying area |
Method Summary | |
---|---|
void |
add(BasicAds ad)
add one ad to the rear of the list |
void |
fitWindow()
adjust ads so that it fits in the window |
BasicAds |
getCurrentAd()
|
java.sql.Time |
getTime()
get current time |
static void |
nextAds()
move to the next ads |
static void |
prevAds()
move to the previous ads |
void |
remove(BasicAds ad)
remove a specific ad |
void |
removeFirst()
remove the first ad |
void |
removeLast()
remove the last ad |
void |
render()
render ads |
java.lang.String |
retrieve()
retrieve new ads from web server |
void |
rotate()
rotate ads |
void |
runAdsManager()
|
void |
setAds(java.lang.String file)
|
void |
setGraphics(java.awt.Graphics gs)
|
void |
setTime(java.sql.Time time)
set timer |
void |
stoprotate()
|
void |
update()
update ads |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.util.List<BasicAds> ads
public static int index
Constructor Detail |
---|
public AdsManager()
public AdsManager(int xMin, int xMax, int yMin, int yMax)
xMin
- xMax
- yMin
- yMax
- Method Detail |
---|
public void runAdsManager()
public void add(BasicAds ad)
ad
- public void removeFirst()
public void removeLast()
public void remove(BasicAds ad)
ad
- public void rotate()
public void stoprotate()
public void fitWindow()
public void update()
public void render()
public java.lang.String retrieve()
public BasicAds getCurrentAd()
public static void nextAds()
public static void prevAds()
public void setTime(java.sql.Time time)
time
- public java.sql.Time getTime()
public void setGraphics(java.awt.Graphics gs)
public void setAds(java.lang.String file)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |