All Packages Class Hierarchy This Package Previous Next Index
Class com.lotspiech.poker.applet.CardPanel
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----javax.swing.JComponent
|
+----javax.swing.JPanel
|
+----com.lotspiech.poker.applet.CardPanel
- public class CardPanel
- extends JPanel
- implements ActionListener, ImageObserver
This bean holds a card image, and the associated hold button.
Copyright 2001, 2002 by Jeffrey B. Lotspiech. This program is open source;
it is licensed under the Common Public License Version 0.5.
- Author:
- Jeffrey B. Lotspiech
-
bottomMargin
-
-
card
-
-
cardback
-
-
club
-
-
COPYRIGHT
-
-
diamond
-
-
discarded
-
-
heart
-
-
ivjHeldLabel
-
-
ivjHold
-
-
metrics
-
-
red
-
-
spade
-
-
topMargin
-
-
CardPanel()
- Constructor
-
CardPanel(boolean)
- CardComponent constructor comment.
-
CardPanel(LayoutManager)
- CardComponent constructor comment.
-
CardPanel(LayoutManager, boolean)
- CardComponent constructor comment.
-
actionPerformed(ActionEvent)
- Method to handle events for the ActionListener interface.
-
connEtoC1(ActionEvent)
- connEtoC1: (Hold.action.actionPerformed(java.awt.event.ActionEvent) --> CardComponent.hold_ActionPerformed(Ljava.awt.event.ActionEvent;)V)
-
getHeldLabel()
- Return the HeldLabel property value.
-
getHold()
- Return the Hold property value.
-
getImages(JApplet)
- This method was created in VisualAge.
-
handleException(Throwable)
- Called whenever the part throws an exception.
-
hold_ActionPerformed(ActionEvent)
- Comment
-
imageUpdate(Image, int, int, int, int, int)
- imageUpdate method comment.
-
initConnections()
- Initializes connections
-
initialize()
- Initialize the class.
-
isDiscarded()
- This method was created in VisualAge.
-
main(String[])
- main entrypoint - starts the part when it is run as an application
-
paintComponent(Graphics)
- This method was created in VisualAge.
-
paintWild(Graphics, Rectangle)
- This method was created in VisualAge.
-
setCard(Card)
- This method was created in VisualAge.
COPYRIGHT
private static final String COPYRIGHT
topMargin
private static final int topMargin
bottomMargin
private static final int bottomMargin
heart
private static Image heart
diamond
private static Image diamond
spade
private static Image spade
club
private static Image club
cardback
private static Image cardback
red
private static Color red
card
private Card card
metrics
private FontMetrics metrics
discarded
private boolean discarded
ivjHold
private JButton ivjHold
ivjHeldLabel
private JLabel ivjHeldLabel
CardPanel
public CardPanel()
- Constructor
CardPanel
public CardPanel(LayoutManager layout)
- CardComponent constructor comment.
- Parameters:
- layout - java.awt.LayoutManager
CardPanel
public CardPanel(LayoutManager layout,
boolean isDoubleBuffered)
- CardComponent constructor comment.
- Parameters:
- layout - java.awt.LayoutManager
- isDoubleBuffered - boolean
CardPanel
public CardPanel(boolean isDoubleBuffered)
- CardComponent constructor comment.
- Parameters:
- isDoubleBuffered - boolean
actionPerformed
public void actionPerformed(ActionEvent e)
- Method to handle events for the ActionListener interface.
- Parameters:
- e - java.awt.event.ActionEvent
connEtoC1
private void connEtoC1(ActionEvent arg1)
- connEtoC1: (Hold.action.actionPerformed(java.awt.event.ActionEvent) --> CardComponent.hold_ActionPerformed(Ljava.awt.event.ActionEvent;)V)
- Parameters:
- arg1 - java.awt.event.ActionEvent
getHeldLabel
private JLabel getHeldLabel()
- Return the HeldLabel property value.
- Returns:
- javax.swing.JLabel
getHold
private JButton getHold()
- Return the Hold property value.
- Returns:
- javax.swing.JButton
getImages
public static void getImages(JApplet applet)
- This method was created in VisualAge.
handleException
private void handleException(Throwable exception)
- Called whenever the part throws an exception.
- Parameters:
- exception - java.lang.Throwable
hold_ActionPerformed
public void hold_ActionPerformed(ActionEvent actionEvent)
- Comment
imageUpdate
public boolean imageUpdate(Image img,
int infoflags,
int x,
int y,
int width,
int height)
- imageUpdate method comment.
- Overrides:
- imageUpdate in class Component
initConnections
private void initConnections()
- Initializes connections
initialize
private void initialize()
- Initialize the class.
isDiscarded
public boolean isDiscarded()
- This method was created in VisualAge.
- Returns:
- boolean
main
public static void main(String args[])
- main entrypoint - starts the part when it is run as an application
- Parameters:
- args - java.lang.String[]
paintComponent
public void paintComponent(Graphics g)
- This method was created in VisualAge.
- Parameters:
- card - com.lotspiech.poker.Card
- Overrides:
- paintComponent in class JComponent
paintWild
public void paintWild(Graphics g,
Rectangle R)
- This method was created in VisualAge.
- Parameters:
- g - java.awt.Graphics
- R - java.awt.Rectangle
setCard
public void setCard(Card card)
- This method was created in VisualAge.
- Parameters:
- card - com.lotspiech.poker.Card
All Packages Class Hierarchy This Package Previous Next Index