|
||||||||||
| 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.JToolBar
ilog.views.maps.beans.IlvMapAnnotationToolBar
public class IlvMapAnnotationToolBar
A toolbar displaying buttons for creating map annotations. Map annotations are graphic objects that are displayed on a map to provide additional visual information. By default this tool bar displays:
| Nested Class Summary | |
|---|---|
static class |
IlvMapAnnotationToolBar.MapGraphicPath
An IlvMapGraphicPath for annotations. |
static class |
IlvMapAnnotationToolBar.MapMarker
An IlvMapMarker annotation extension. |
static class |
IlvMapAnnotationToolBar.MapPolyline
An IlvMapPolyline with annotation extensions. |
class |
IlvMapAnnotationToolBar.ToolBarButton
A JToggleButton that can be associated with and trigger an
IlvManagerViewInteractor. |
| Nested classes/interfaces inherited from class javax.swing.JToolBar |
|---|
JToolBar.AccessibleJToolBar, JToolBar.Separator |
| 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 | |
|---|---|
static String |
ANNOTATION_PROPERTY_NAME
The name of the attribute displayed as a label by the annotation. |
static String |
EXT_ANNOTATION_PROPERTY_NAME
The name of the attribute displayed as an extended description by the annotation. |
static int |
POINT_BUTTON
The index of the point annotation button. |
static int |
POLYGON_BUTTON
The index of the polygon annotation button. |
static int |
POLYLINE_BUTTON
The index of the polyline annotation button. |
| 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, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
IlvMapAnnotationToolBar()
Creates a new IlvMapAnnotationToolBar
with the default set of buttons:
A polyline button
A polygon button
A point button
These buttons are associated with interactors that create graphic annotations
on a map. |
|
| Method Summary | |
|---|---|
protected void |
addImpl(Component comp,
Object constraints,
int index)
|
String |
askForString(String old)
Called at graphic annotation creation to provide a string to be displayed as the annotation label. |
String[] |
askForStrings(String o1,
String o2)
Pops a dialog to ask for the label and the extended description. |
protected JMenuItem |
deleteItem()
Creates a menu item that allows you to delete the annotation. |
IlvMapAnnotationToolBar.ToolBarButton |
getButton(int i)
Returns the nth ToolBarButton button of the toolbar. |
Dimension |
getButtonSize()
Retrieves the button size set by setButtonSize(). |
JPopupMenu |
getPopupMenu()
Returns the popup menu that is displayed for the graphic objects created by this toolbar. |
IlvManagerView |
getView()
Returns the view associated with this annotation toolbar. |
boolean |
isChecking()
Indicates if the point validity is checked or not. |
protected JMenuItem |
labelItem()
Creates a menu item that allows you to change the label of the annotation. |
void |
setButtonSize(Dimension buttonSize)
Forces the button sizes for the buttons contained by this toolbar. |
void |
setChecking(boolean check)
Requests this toolbar to check if the points entered are valid or not. |
void |
setView(IlvManagerView v)
Sets the view for this annotation toolbar. |
protected JMenuItem |
styleItem()
Creates a menu item that allows you to change the style of the annotation. |
| Methods inherited from class javax.swing.JToolBar |
|---|
add, addSeparator, addSeparator, createActionChangeListener, createActionComponent, getAccessibleContext, getComponentAtIndex, getComponentIndex, getMargin, getOrientation, getUI, getUIClassID, isBorderPainted, isFloatable, isRollover, paintBorder, paramString, setBorderPainted, setFloatable, setLayout, setMargin, setOrientation, setRollover, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int POLYLINE_BUTTON
public static final int POLYGON_BUTTON
public static final int POINT_BUTTON
public static String ANNOTATION_PROPERTY_NAME
public static String EXT_ANNOTATION_PROPERTY_NAME
| Constructor Detail |
|---|
public IlvMapAnnotationToolBar()
IlvMapAnnotationToolBar
with the default set of buttons:
| Method Detail |
|---|
public void setView(IlvManagerView v)
v - The view to be associated with this annotation toolbar.public IlvManagerView getView()
protected void addImpl(Component comp,
Object constraints,
int index)
addImpl in class JToolBarpublic IlvMapAnnotationToolBar.ToolBarButton getButton(int i)
ToolBarButton button of the toolbar.
i - The nth button or null if the index is out of range.
You can also retrieve the polyline annotation button by passing IlvMapAnnotationToolBar.POLYLINE_BUTTON as
index, the polygon annotation button by passing IlvMapAnnotationToolBar.POLYGON_BUTTON, or the point annotation
button by passing IlvMapAnnotationToolBar.POINT_BUTTON.
ToolBarButton.protected JMenuItem labelItem()
protected JMenuItem deleteItem()
protected JMenuItem styleItem()
public JPopupMenu getPopupMenu()
JPopupMenu allowing you to change the value attribute
of the IlvGraphic, to delete the annotation, and to change/add a new style.
public boolean isChecking()
true checking is performed, false otherwise.public void setChecking(boolean check)
check - If set to true checking is performed, false otherwise.public String askForString(String old)
old - The old string value.
public String[] askForStrings(String o1,
String o2)
o1 - A label to fill the label field of the dialog or nullo2 - A description to fill the description field of the dialog or null
public Dimension getButtonSize()
public void setButtonSize(Dimension buttonSize)
buttonSize - The forced button size.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||