![]() | [using it] | Interface Manipulation Package v4.0 (2008-06-25) | ![]() | ©copyright | ![]() |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
imp.gui.IComponent
imp.gui.BorderContainer
imp.gui.ImageViewer
public class ImageViewer
Defines an image-viewer with basic functionality.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.BaselineResizeBehavior |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
TOOL_TIP_TEXT_KEY, 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 |
Method Summary | |
---|---|
ImageViewer |
echo(String string)
Shows a string in the display line and return this. |
RgbImage |
getImage()
Returns the displayed image. |
int |
getIndex()
Returns the displayed image index in the image-sequence. |
GraphicsViewer |
getViewer()
Returns the current image viewer. |
void |
outputValue(int image)
Called when a new image is input. |
void |
outputValue(String value)
Called when an image mouse interaction is output. |
ImageViewer |
setAnimation(int samplingPeriod)
Sets the animation and return this. |
ImageViewer |
setImage(RgbImage image)
Sets the displayed image and return this. |
ImageViewer |
setImages(String[] images)
Sets the displayed image sequence and return this. |
Methods inherited from class imp.gui.BorderContainer |
---|
getCenter, getEast, getNorth, getSouth, getWest, setCenter, setEast, setHorizontalSlider, setNorth, setSouth, setWest |
Methods inherited from class imp.gui.IComponent |
---|
getBgcolor, getColor, getTextFont, getTitle, getTooltip, grab, refresh, setBgcolor, setColor, setHeight, setTextFont, setTitle, setTooltip, setWidth |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public ImageViewer echo(String string)
public RgbImage getImage()
public int getIndex()
public GraphicsViewer getViewer()
public void outputValue(int image)
image
- The image index in the image-sequence .public void outputValue(String value)
value
- The mouse interaction value.public ImageViewer setAnimation(int samplingPeriod)
samplingPeriod
- A positive sampling-period in milliseconds. The 0 value stops the animation.public ImageViewer setImage(RgbImage image)
image
- The image to display. public ImageViewer setImages(String[] images)
images
- The images URLs.