public final class Look extends Object implements ILook
LookPanel and its containing
ImageLayer.| Modifier and Type | Field and Description |
|---|---|
private LookPanel |
currentLookPanel
A reference to the current
LookPanel. |
private org.apache.log4j.Logger |
logger
Custom class logger.
|
private ArrayList<ILookPanel> |
lookPanels
|
| Modifier | Constructor and Description |
|---|---|
private |
Look() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLookPanel(ILookPanel lookPanel)
Add a new
LookPanel to the list and set it to the current
instance. |
void |
createExtraLookFrame()
This method creates a new instance of
LookExtraFrame. |
javax.media.jai.PlanarImage |
getCurrentImage()
This method gets the original image in the current
LookPanel. |
ILookPanel |
getCurrentLookPanel()
Gets the reference to the currently active
LookPanel instance. |
static ILook |
getInstance() |
ArrayList<ILookPanel> |
getLookPanels() |
void |
removeLookPanel(ILookPanel lookPanel)
Removes a given
LookPanel from the list and sets the the
previously active instance to the current one. |
void |
reset()
This method resets the Look window
|
void |
setCurrentLookPanel(ILookPanel lookPanel)
Set the current
LookPanel and the reference to it's
ImageLayer. |
void |
setImage(RenderedImage img)
This method adds a new image to the currently active
ImageLayer. |
void |
setLookPanels(ArrayList<ILookPanel> lookPanels) |
private final org.apache.log4j.Logger logger
private ArrayList<ILookPanel> lookPanels
public static ILook getInstance()
public ILookPanel getCurrentLookPanel()
LookPanel instance.getCurrentLookPanel in interface ILookpublic void setCurrentLookPanel(ILookPanel lookPanel)
LookPanel and the reference to it's
ImageLayer.
The active look panel instance will get a colored top border, so that the user can determine the currently active instance.
setCurrentLookPanel in interface ILooklookPanel - public void createExtraLookFrame()
LookExtraFrame.createExtraLookFrame in interface ILookpublic javax.media.jai.PlanarImage getCurrentImage()
LookPanel.getCurrentImage in interface ILookPlanarImage instance of the imagepublic void setImage(RenderedImage img)
ImageLayer.setImage in interface ILookimg - the RenderedImagepublic ArrayList<ILookPanel> getLookPanels()
getLookPanels in interface ILookpublic void setLookPanels(ArrayList<ILookPanel> lookPanels)
setLookPanels in interface ILooklookPanels - the lookPanels to setpublic void addLookPanel(ILookPanel lookPanel)
LookPanel to the list and set it to the current
instance.addLookPanel in interface ILooklookPanel - public void removeLookPanel(ILookPanel lookPanel)
LookPanel from the list and sets the the
previously active instance to the current one.removeLookPanel in interface ILooklookPanel - Copyright © 2009–2017 Helmut Ahammer, Philipp Kainz. All rights reserved.