com.bbn.openmap.omGraphics
Class EditableOMAbstractLine

java.lang.Object
  extended by com.bbn.openmap.event.MapMouseAdapter
      extended by com.bbn.openmap.omGraphics.EditableOMGraphic
          extended by com.bbn.openmap.omGraphics.EditableOMAbstractLine
All Implemented Interfaces:
MapMouseListener
Direct Known Subclasses:
EditableOMLine, EditableOMPoly

public abstract class EditableOMAbstractLine
extends EditableOMGraphic

The EditableOMAbstractLine encompasses an OMAbstractLine, providing a mechanism for adding an arrowhead menu in the line editor menu.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.bbn.openmap.omGraphics.EditableOMGraphic
EditableOMGraphic.OMGraphicUndoEvent
 
Field Summary
protected  javax.swing.JMenu arrowheadMenu
           
 
Fields inherited from class com.bbn.openmap.omGraphics.EditableOMGraphic
actionMask, canGrabGraphic, DEBUG, DEBUG_DETAIL, gPoints, GRAB_POINT_DRAWING_ATTRIBUTES_ATTRIBUTE, holder, i18n, lastMouseEvent, listeners, mouseModeServiceList, movingPoint, popupIsUp, projection, SELECTED_GRAB_POINT_DRAWING_ATTRIBUTES_ATTRIBUTE, showGUI, stateMachine, undoStack, xorRendering
 
Constructor Summary
EditableOMAbstractLine()
           
 
Method Summary
 javax.swing.ImageIcon createArrowIcon(java.awt.BasicStroke stroke, int width, int height, int arrowHeadType)
          Given some arrowhead parameters, create an ImageIcon that shows it.
 javax.swing.JMenu getArrowHeadMenu()
           
 java.awt.Component getGUI(GraphicAttributes graphicAttributes)
          If this EditableOMGraphic has parameters that can be manipulated that are independent of other EditableOMGraphic types, then you can provide the widgets to control those parameters here.
 
Methods inherited from class com.bbn.openmap.omGraphics.EditableOMGraphic
_getMovingPoint, addEOMGListener, attachToMovingGrabPoint, cleanMap, createAttributePanel, createGraphic, createUndoEventForCurrentState, detachFromMovingGrabPoint, finalize, fireEvent, fireEvent, fireEvent, fireEvent, generate, getActionMask, getCanGrabGraphic, getGrabPoint, getGrabPoints, getGraphic, getGUI, getMouseModeServiceList, getMovingPoint, getMovingPoint, getProjection, getProjectionPoint, getShowGUI, getStateMachine, getUndoStack, handleInitialMouseEvent, isMouseEventTouching, isMouseEventTouchingTheEdge, isPopupIsUp, isXorRendering, modifyOMGraphicForEditRender, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseMoved, mousePressed, mouseReleased, move, redraw, redraw, redraw, regenerate, removeEOMGListener, render, repaint, repaintRender, reset, resetOMGraphicAfterEditRender, setActionMask, setCanGrabGraphic, setGrabPoint, setGrabPoints, setGrabPoints, setGraphic, setMouseModeServiceList, setMovingPoint, setPopupIsUp, setProjection, setShowGUI, setStateMachine, setUndoStack, setXorRendering, updateCurrentState
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

arrowheadMenu

protected javax.swing.JMenu arrowheadMenu
Constructor Detail

EditableOMAbstractLine

public EditableOMAbstractLine()
Method Detail

getGUI

public java.awt.Component getGUI(GraphicAttributes graphicAttributes)
Description copied from class: EditableOMGraphic
If this EditableOMGraphic has parameters that can be manipulated that are independent of other EditableOMGraphic types, then you can provide the widgets to control those parameters here. By default, returns the GraphicAttributes GUI widgets. If you don't want a GUI to appear when a widget is being created/edited, then don't call this method from the EditableOMGraphic implementation, and return a null Component from getGUI.

Overrides:
getGUI in class EditableOMGraphic
Parameters:
graphicAttributes - the GraphicAttributes that could be used to get the GUI widget from to control those parameters for this EOMG. The GraphicAttributes used to provide the GUI widget, but it doesn't anymore. Subclasses can take this opportunity to reset the GraphicAttributes interface for a new OMGraphic.
Returns:
Component to use to control parameters for this EOMG, generally a JPanel with a toolbar.

getArrowHeadMenu

public javax.swing.JMenu getArrowHeadMenu()

createArrowIcon

public javax.swing.ImageIcon createArrowIcon(java.awt.BasicStroke stroke,
                                             int width,
                                             int height,
                                             int arrowHeadType)
Given some arrowhead parameters, create an ImageIcon that shows it.

Parameters:
stroke - the BasicStroke to draw on the Icon.
width - the width of the icon.
height - the height of the icon.
arrowHeadType - -1 for no arrowhead, use the OMArrowHead directions for other versions.


Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details