public class ImageViewer extends Application
ImageViewer implementa a aplicação de exibição de
imagens em um projeto.| Modifier and Type | Field and Description |
|---|---|
static double |
ZOOM_STEP_FACTOR
Fator de passo de zoom.
|
ALGORITHM_FILE_MESSAGE, PREFERENCE_MESSAGE, PROJECT_FILE_MESSAGE| Constructor and Description |
|---|
ImageViewer(String id)
Constrói e exibe o diálogo de execução de algoritmos
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeFile()
Fecha o arquivo dado.
|
BufferedImage |
getCurrentBufferedImage()
This method returns a buffered image with the contents of an image
|
csbase.logic.ClientFile |
getCurrentFile()
Retorna
|
Image |
getCurrentImage()
Retorna a imagem corrente
|
double |
getZoom()
Retorna o zoom.
|
void |
killApplication()
Término ASAP da aplicação.
|
boolean |
openFile(csbase.logic.ClientProjectFile newFile)
Abre o arquivo dado.
|
void |
restoreOriginalImage()
Restaura a imagem original carregada
|
void |
sendMessage(String name,
Object value,
String senderId)
Recebe o arquivo para ser aberto diretamente
|
void |
setCurrentFile(csbase.logic.ClientFile file)
Ajuste o arquivo corrente.
|
void |
setCurrentImage(Image image)
Ajusta a nova imagem
|
void |
setSaveNeeded(boolean flag)
Ajuste de necessidade de salvar arquivo.
|
void |
setZoom(double zoom)
Ajuste do zoom
|
boolean |
userCanKillApplication()
Método que permite sempre ao usuário matar a aplicação.
|
addPreferenceListener, addWindow, buildApplicationFrame, buildApplicationImage, closeDependentWindows, finishApplication, getApplicationCommand, getApplicationCommandDir, getApplicationFrame, getApplicationProject, getClassString, getClassString, getDesktopFrame, getLocale, getPreferences, getResource, getResourceBundle, getStatusBar, getString, getString, handleError, hasClassString, hasString, isConnectedToServer, isVisible, logDetailedApplicationEvent, removeAllPreferenceListeners, removeWindow, savePreferences, setInitialFrameState, setVisible, showError, showError, showException, showExceptionStack, showInformation, showInformation, showMessage, showMessage, showOptionDialog, showOptionDialog, showWarning, showWarning, startApplicationcloseApplication, getApplicationRegistry, getApplicationResourceAsStream, getApplicationResourceAsStream, getApplicationResourceAsURL, getApplicationResourceAsURL, getAuthorMail, getAuthorName, getBooleanSpecificProperty, getDescription, getDoubleSpecificProperty, getFileTypes, getId, getImageIcon, getImageIcon, getImageIcon, getInstanceId, getInstanceIndex, getIntSpecificProperty, getLongSpecificProperty, getLongSpecificProperty, getMainApplicationClass, getName, getStringListSpecificProperty, getStringSpecificProperty, getStringSpecificProperty, getVersion, getVersionNumber, launchApplication, onAsyncMessageReceived, onSyncMessageReceived, postInitializationaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedpublic static final double ZOOM_STEP_FACTOR
public ImageViewer(String id)
id - .public final double getZoom()
public final void setZoom(double zoom)
zoom - zoompublic final Image getCurrentImage()
public final void setSaveNeeded(boolean flag)
flag - indicativo de imagem alterada.public BufferedImage getCurrentBufferedImage()
public final void setCurrentImage(Image image)
image - a nova imagempublic final csbase.logic.ClientFile getCurrentFile()
public boolean openFile(csbase.logic.ClientProjectFile newFile)
newFile - arquivo a ser abertopublic void closeFile()
public void killApplication()
killApplication in class Applicationpublic boolean userCanKillApplication()
userCanKillApplication in class ApplicationTypepublic void sendMessage(String name, Object value, String senderId)
sendMessage in class ApplicationTypename - .value - .senderId - a identificação da aplicação que enviou a mensagem.public void restoreOriginalImage()
public void setCurrentFile(csbase.logic.ClientFile file)
file - novo arquivo.Copyright © 2017. All rights reserved.