|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.kosi.gui.view.game.CardDimension
The CarDimension object contains the current dimensions of a card.
ChangeLog:
$Log: CardDimension.java,v $ Revision 1.5 2001/06/14 14:41:01 jiriki Code maintanance (Updated docs, removed unused code, improved code style)
Constructor Summary | |
CardDimension(int height,
int width)
Creates a new CardDimension object. |
Method Summary | |
void |
addChangeListener(javax.swing.event.ChangeListener listener)
Add a change listener, that is notified, when the card dimension changes- |
protected void |
fireStateChanged()
Fire a change event for this card dimension object. |
int |
getHeight()
Returns the current height of the card. |
int |
getMaxHeight()
Returns the maximum height for cards. |
double |
getMinHVisibleRatio()
Returns the current minimum ratio horizontally visible. |
int |
getMinimumHVisible()
Returns the current minimum amount horizontally visible. |
int |
getMinimumVVisible()
Returns the current minimum amount vertically visible. |
double |
getMinVVisibleRatio()
Returns the current minimum ratio vertically visible. |
int |
getWidth()
Returns the current width of the card. |
double |
getWidthHeightRatio()
Return the width / height ratio of the card. |
void |
removeChangeListener(javax.swing.event.ChangeListener listener)
Remove a change listener. |
void |
updateSize(int height)
Set the new height for a card. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CardDimension(int height, int width)
height
- of the card image.width
- of the card image.Method Detail |
public int getHeight()
public int getWidth()
public int getMinimumHVisible()
public int getMinimumVVisible()
public double getMinHVisibleRatio()
public double getMinVVisibleRatio()
public double getWidthHeightRatio()
public int getMaxHeight()
public void updateSize(int height)
height
- New height.public void addChangeListener(javax.swing.event.ChangeListener listener)
listener
- ChangeListener for this cardDimension,public void removeChangeListener(javax.swing.event.ChangeListener listener)
listener
- Listener to be removed.protected void fireStateChanged()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |