|
||||||||||
| PREV CLASS Documentation homepage 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
ilog.views.maps.beans.IlvJAreaOfInterestPanel
public class IlvJAreaOfInterestPanel
Panel to manage stored areas.
| 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.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| 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 | |
|---|---|
IlvJAreaOfInterestPanel()
Creates a new IlvJAreaOfInterestPanel. |
|
IlvJAreaOfInterestPanel(IlvManagerView pview,
boolean allowAdd,
boolean allowRemove,
boolean allowRename)
Creates a panel to manage stored areas. |
|
| Method Summary | |
|---|---|
static IlvAreaOfInterest |
createLocationFromView(IlvManagerView view,
int previewMaxSize,
boolean askName)
Creates an area of interest from the view current parameters. |
JButton |
getGoButton()
Returns the go Button. |
JList |
getList()
Returns the list of areas. |
JButton |
getLowerButton()
Returns the lower Button. |
JButton |
getRaiseButton()
Returns the raise Button. |
JButton |
getRefreshButton()
Returns the refresh Button. |
JButton |
getRemoveButton()
Returns the remove Button. |
JButton |
getRenameButton()
Returns the rename Button. |
JToolBar |
getToolbar()
Returns the toolbar. |
IlvManagerView |
getView()
Returns the view. |
boolean |
isShowLabels()
Indicates whether or not the area of interest labels will be displayed. |
static Image |
makePreview(IlvManagerView view,
int previewMaxSize)
Creates a preview image of the view. |
static void |
refreshPreview(IlvManagerView view,
IlvAreaOfInterest area,
int previewMaxSize)
Refreshes the preview image for a particular area by taking a snapshot on the specified view. |
void |
setShowLabels(boolean showLabels)
Determines whether or not the area of interest labels will be displayed. |
void |
setView(IlvManagerView pview)
Sets the view. |
void |
valueChanged(ListSelectionEvent e)
Called whenever the selected area changes. |
| 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 |
| Constructor Detail |
|---|
public IlvJAreaOfInterestPanel()
IlvJAreaOfInterestPanel.
public IlvJAreaOfInterestPanel(IlvManagerView pview,
boolean allowAdd,
boolean allowRemove,
boolean allowRename)
pview - View the areas must be picked from/applied to.allowAdd - If true, will enable adding areas.allowRemove - If true, will enable removing areasallowRename - If true, will enable renaming areas.| Method Detail |
|---|
public JList getList()
public JToolBar getToolbar()
public JButton getRemoveButton()
public JButton getRefreshButton()
public JButton getGoButton()
public JButton getRaiseButton()
public JButton getLowerButton()
public JButton getRenameButton()
public IlvManagerView getView()
public void setView(IlvManagerView pview)
pview -
public static void refreshPreview(IlvManagerView view,
IlvAreaOfInterest area,
int previewMaxSize)
view - View from which to take snapshot.area - Area of interest to update.previewMaxSize - Dimension of either width or height of image created.public void valueChanged(ListSelectionEvent e)
valueChanged in interface ListSelectionListenerListSelectionListener.valueChanged(javax.swing.event.ListSelectionEvent)
public static Image makePreview(IlvManagerView view,
int previewMaxSize)
view - View to draw.previewMaxSize - Maximum dimension of the image.
previewMaxSize is positive.
public static IlvAreaOfInterest createLocationFromView(IlvManagerView view,
int previewMaxSize,
boolean askName)
view - The manager view.previewMaxSize - Size of the preview image or 0 if no images are needed.askName - true to display a modal dialog asking the user for the area name.
public void setShowLabels(boolean showLabels)
showLabels - true to display labels.public boolean isShowLabels()
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||