|
||||||||||
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.AbstractButton
javax.swing.JButton
jwo.landserf.gui.Thumbnail
Small panel for displaying thumbnail versions of spatial objects.
Nested Class Summary |
Nested classes inherited from class javax.swing.JButton |
JButton.AccessibleJButton |
Nested classes inherited from class javax.swing.AbstractButton |
AbstractButton.AccessibleAbstractButton, AbstractButton.ButtonChangeListener |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
static int |
HEIGHT
Width of thumbnail (image + border + title text) |
static int |
WIDTH
Width of thumbnail (image + border) |
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 javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, PROPERTIES, SOMEBITS |
Constructor Summary | |
Thumbnail(SpatialObject spObj)
Creates a thumbnail consisting of image and title. |
|
Thumbnail(SpatialObject spObj,
boolean showTitle)
Creates a thumbnail consisting of image and optional title. |
Method Summary | |
int |
getSelection()
Reports the current selection state of the thumbnail. |
SpatialObject |
getSpatialObject()
Reports the spatial object associated with the thumbnail view. |
void |
paintComponent(Graphics g)
Draws the currently selected image type. |
void |
setMagnification(float magnification)
Sets the magnification factor for the image. |
void |
setSelection(int selection)
Sets the current selection state and updates the border colour accordingly. |
void |
setSpatialObject(SpatialObject spObj)
Sets the spatial object associated with the thumbnail view. |
void |
updateThumb()
Updates the thumbnail image. |
Methods inherited from class javax.swing.JButton |
configurePropertiesFromAction, getAccessibleContext, getUIClassID, isDefaultButton, isDefaultCapable, paramString, removeNotify, setDefaultCapable, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int WIDTH
public static final int HEIGHT
Constructor Detail |
public Thumbnail(SpatialObject spObj)
spObj
- Spatial object to display as thumbnail.public Thumbnail(SpatialObject spObj, boolean showTitle)
spObj
- Spatial object to display as thumbnail.showTitle
- Title displayed if true.Method Detail |
public void updateThumb()
public void setMagnification(float magnification)
magnification
- Magnification factor.public void setSelection(int selection)
selection
- New selection state (NOT_SELECTED, PRIMARY or SECONDARY).public int getSelection()
public SpatialObject getSpatialObject()
public void setSpatialObject(SpatialObject spObj)
spObj
- Spatial object to show in thumbnail.public void paintComponent(Graphics g)
g
- Graphics context in which to draw.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |