|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.magicproject.database.DatabaseCard
public class DatabaseCard
Constructor Summary | |
---|---|
DatabaseCard(CardModel cardModel,
Proxy dataProxy,
Proxy... pictureProxies)
Create new instance of DatabaseCard. |
Method Summary | |
---|---|
void |
add(TranslatableData data)
Add a translatable data to this database. |
DatabaseCard |
clone()
|
DatabaseCard |
clone(CardModel cardModel)
Return a clone of this object from the given card model. |
DatabaseCard |
clone(java.lang.String pictureName)
Create a new instance of DatabaseCard with a picture different form the standard one (relative to card name). |
CardModel |
getCardModel()
Return the card model of this card. |
java.lang.String |
getCardName()
The card name. |
Proxy |
getDataProxy()
Return the proxy used to build this object. |
java.awt.Image |
getImage(AbstractCard card)
Return the card's picture as it would be displayed in the board. |
java.awt.Image |
getImage(MonitorListener listener)
Return the card's picture as it would be displayed in the board. |
java.lang.String |
getLocalName()
Return the localized card's name. |
Proxy[] |
getPictureProxies()
Return the proxies used to display picture of this object. |
Proxy |
getPictureProxy()
Return the proxy used to display picture of this object. |
java.lang.String |
getPictureStream()
Return the stream description used to build the picture by this database object. |
java.lang.String |
getProperty(java.lang.String property)
Return the translated data associated to the named property. |
java.lang.String |
getRulesCredit()
Return XML rule designer of the card. |
java.awt.Image |
getScaledImage(AbstractCard card)
Return the scaled card's picture as it would be displayed in the board. |
java.awt.Image |
getScaledImage(MonitorListener listener)
Return the scaled card's picture as it would be displayed in the board. |
boolean |
isConsistent()
Return the new score of this database. |
void |
setConsistent(boolean consistent)
Set the consistence of this database. |
void |
setPictureProxies(Proxy... pictureProxies)
Set the proxy used to display picture of this object. |
java.lang.String |
toString()
|
void |
updateMUI()
Reset the bufferised data. |
void |
updatePaintNotification(MCard card,
java.awt.Graphics g)
This method update and paint on the given card, the progressbar of task of the image attached to this model. |
void |
updatePaintNotification(MonitorListener listener,
java.awt.Graphics g)
This method update and paint on the given listener, the progressbar of task of the image attached to this model. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DatabaseCard(CardModel cardModel, Proxy dataProxy, Proxy... pictureProxies)
cardModel
- the card model containing card name used as iddataProxy
- the proxy where this data came from. If is null
,
the picture would be get using the default art URL.pictureProxies
- the proxies used to get image. If is null
,
dataProxy
would be used.Method Detail |
---|
public CardModel getCardModel()
public Proxy getDataProxy()
public Proxy getPictureProxy()
dataProxy
will be used.
dataProxy
will be used.public Proxy[] getPictureProxies()
dataProxy
will be used.
dataProxy
will be used.public java.lang.String getCardName()
CardModel.getCardName()
public java.lang.String getLocalName()
CardModel.getLocalName()
public java.lang.String getRulesCredit()
CardModel.getRulesCredit()
public void add(TranslatableData data)
data
- translatable data to add.public java.awt.Image getImage(AbstractCard card)
card
- the card requesting it's picture.
public java.awt.Image getScaledImage(AbstractCard card)
card
- the card requesting it's picture.
public java.awt.Image getImage(MonitorListener listener)
listener
- the listener to notify when the picture will be completely loaded.
public java.awt.Image getScaledImage(MonitorListener listener)
listener
- the listener to notify when the picture will be completely loaded.
public java.lang.String getPictureStream()
public DatabaseCard clone(java.lang.String pictureName)
pictureName
- the picture to use with this DatabaseCard
public DatabaseCard clone()
clone
in class java.lang.Object
public DatabaseCard clone(CardModel cardModel)
cardModel
-
public java.lang.String getProperty(java.lang.String property)
property
- the property name.
public void setPictureProxies(Proxy... pictureProxies)
dataProxy
will be used.
pictureProxies
- the new proxies used for picture. Order corresponds to
prefereence.public java.lang.String toString()
toString
in class java.lang.Object
public void setConsistent(boolean consistent)
consistent
- the new consistence of this database.public boolean isConsistent()
public void updatePaintNotification(MCard card, java.awt.Graphics g)
card
- the listener to manage.g
- the graphics used to paint the progressbar.public void updatePaintNotification(MonitorListener listener, java.awt.Graphics g)
listener
- the listener to manage.g
- the graphics used to paint the progressbar.public void updateMUI()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |