| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
net.sf.webphotos.gui.component.PainelFoto
public class PainelFoto
Painel de apresentação da Foto selecionada.
 Ao clicar nele, uma janela de popup é aberta.
 Para saber mais sobre essa janela de visualização procure sobre a classe Visualizador.
| Nested Class Summary | 
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel | 
|---|
| JPanel.AccessibleJPanel | 
| Nested classes/interfaces inherited from class javax.swing.JComponent | 
|---|
| JComponent.AccessibleJComponent | 
| Nested classes/interfaces inherited from class java.awt.Container | 
|---|
| Container.AccessibleAWTContainer | 
| Nested classes/interfaces inherited from class java.awt.Component | 
|---|
| Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy | 
| Field Summary | |
|---|---|
| static int | FOLGADistancia em Pixels entre a figura e a Borda do componente | 
| Fields inherited from class javax.swing.JComponent | 
|---|
| accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW | 
| Fields inherited from class java.awt.Component | 
|---|
| BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT | 
| Fields inherited from interface java.awt.image.ImageObserver | 
|---|
| ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH | 
| Constructor Summary | |
|---|---|
| PainelFoto()Construtor da classe. | |
| Method Summary | |
|---|---|
|  void | clear()Limpa a caixa onde é apresentada a foto. | 
| static Dimension | getDefaultSize()Retorna a dimensão default através da classe Dimension. | 
|  Image | getFoto()Retorna uma foto através do objeto Imagechamado foto. | 
|  JLabel | getLblFotoInfo()Retorna o label da foto. | 
|  String | getNomeArquivo()Retorna o nome ou caminho do arquivo. | 
|  void | loadImage()Carrega uma imagem. | 
|  void | loadImage(String caminhoImagem)Carrega uma imagem. | 
|  void | setFoto(Image foto)Seta o objeto Imagefoto através de outro objeto recebido como parâmetro. | 
|  void | setLblFotoInfo(JLabel lblFotoInfo)Seta o label da foto. | 
|  void | setNomeArquivo(String nomeArquivo)Seta o nome ou caminho do arquivo. | 
| Methods inherited from class javax.swing.JPanel | 
|---|
| getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final int FOLGA
| Constructor Detail | 
|---|
public PainelFoto()
| Method Detail | 
|---|
public void clear()
repaint() e preenche com a cor cinza.
 Caso a foto não exista, apenas encerra.
 E por último, caso a foto exista, seta ela como nula e usa o repaint() para preencher o espaço da foto.
public void loadImage(String caminhoImagem)
caminhoImagem - Caminho da imagem.public void loadImage()
public Image getFoto()
Image chamado foto.
public void setFoto(Image foto)
Image foto através de outro objeto recebido como parâmetro.
foto - Foto.public String getNomeArquivo()
public void setNomeArquivo(String nomeArquivo)
nomeArquivo - Nome do arquivo.public JLabel getLblFotoInfo()
public void setLblFotoInfo(JLabel lblFotoInfo)
lblFotoInfo - Label correspondente a foto.public static Dimension getDefaultSize()
Dimension.
 Passa thumbs como parâmetros para setar os valores de dimensão.
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||