|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
megamek.client.ui.AWT.Ruler
public class Ruler
Title: Ruler
Description:
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.awt.Dialog |
|---|
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
java.awt.Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
java.awt.Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
(package private) java.awt.Button |
butClose
|
(package private) java.awt.Button |
butFlip
|
static java.awt.Color |
color1
|
static java.awt.Color |
color2
|
(package private) java.awt.GridBagLayout |
gridBagLayout1
|
(package private) java.awt.TextField |
height1
|
(package private) java.awt.TextField |
height2
|
(package private) java.awt.Label |
heightLabel1
|
(package private) java.awt.Label |
heightLabel2
|
(package private) java.awt.Label |
jLabel1
|
(package private) java.awt.Label |
jLabel2
|
(package private) java.awt.Label |
jLabel3
|
(package private) java.awt.Label |
jLabel4
|
(package private) java.awt.Label |
jLabel5
|
(package private) java.awt.Panel |
panel1
|
(package private) java.awt.TextField |
tf_distance
|
(package private) java.awt.TextField |
tf_end
|
(package private) java.awt.TextField |
tf_los1
|
(package private) java.awt.TextField |
tf_los2
|
(package private) java.awt.TextField |
tf_start
|
| Fields inherited from class java.awt.Dialog |
|---|
DEFAULT_MODALITY_TYPE |
| 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 | |
|---|---|
Ruler(java.awt.Frame f,
Client c,
IBoardView b)
|
|
| Method Summary | |
|---|---|
void |
addPoint(Coords c)
|
void |
boardChangedEntity(BoardViewEvent b)
|
void |
boardHexHighlighted(BoardViewEvent b)
Sent when Hex is highlighted. |
void |
boardNewAttack(BoardViewEvent a)
|
(package private) LosEffects.AttackInfo |
buildAttackInfo(Coords c1,
Coords c2,
int h1,
int h2)
Ignores determining if the attack is on land or under water. |
(package private) void |
butClose_actionPerformed(java.awt.event.ActionEvent e)
|
(package private) void |
butFlip_actionPerformed(java.awt.event.ActionEvent e)
|
(package private) void |
cancel()
|
void |
clear()
|
void |
finishedMovingUnits(BoardViewEvent b)
Sent when moving units is finished. |
void |
firstLOSHex(BoardViewEvent b)
Sent when firstLOS is set. |
int |
getDistance()
|
Coords |
getEnd()
|
Coords |
getStart()
|
(package private) void |
height1_keyReleased(java.awt.event.KeyEvent e)
|
(package private) void |
height2_keyReleased(java.awt.event.KeyEvent e)
|
void |
hexCursor(BoardViewEvent b)
Sent when BoardView 'cursor' is set to Hex. |
void |
hexMoused(BoardViewEvent b)
Sent when user clicks, double clicks or drags hex. |
void |
hexSelected(BoardViewEvent b)
Sent when Hex is selected. |
(package private) void |
jbInit()
|
protected void |
processWindowEvent(java.awt.event.WindowEvent e)
|
void |
secondLOSHex(BoardViewEvent b,
Coords c)
Sent when secondLOS is set. |
void |
setDistance(int distance)
|
void |
setEnd(Coords end)
|
void |
setStart(Coords start)
|
void |
setText()
|
void |
unitSelected(BoardViewEvent b)
Sent when Unit is selected. |
boolean |
valid()
|
| Methods inherited from class java.awt.Dialog |
|---|
addNotify, getAccessibleContext, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, paramString, setModal, setModalityType, setResizable, setTitle, setUndecorated, setVisible, show, toBack |
| Methods inherited from class java.awt.Window |
|---|
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, toFront |
| Methods inherited from class java.awt.Container |
|---|
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, update, validate, validateTree |
| Methods inherited from class java.awt.Component |
|---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static java.awt.Color color1
public static java.awt.Color color2
java.awt.Panel panel1
java.awt.GridBagLayout gridBagLayout1
java.awt.Button butFlip
java.awt.Label jLabel1
java.awt.TextField tf_start
java.awt.Label jLabel2
java.awt.TextField tf_end
java.awt.Label jLabel3
java.awt.TextField tf_distance
java.awt.Label jLabel4
java.awt.TextField tf_los1
java.awt.Label jLabel5
java.awt.TextField tf_los2
java.awt.Button butClose
java.awt.Label heightLabel1
java.awt.TextField height1
java.awt.Label heightLabel2
java.awt.TextField height2
| Constructor Detail |
|---|
public Ruler(java.awt.Frame f,
Client c,
IBoardView b)
| Method Detail |
|---|
void jbInit()
throws java.lang.Exception
java.lang.Exceptionprotected void processWindowEvent(java.awt.event.WindowEvent e)
processWindowEvent in class java.awt.Windowvoid cancel()
public Coords getStart()
public void setStart(Coords start)
public void setEnd(Coords end)
public Coords getEnd()
public void clear()
public void addPoint(Coords c)
public void setText()
LosEffects.AttackInfo buildAttackInfo(Coords c1,
Coords c2,
int h1,
int h2)
c1 - c2 - h1 - h2 -
public boolean valid()
public void setDistance(int distance)
public int getDistance()
public void hexMoused(BoardViewEvent b)
BoardViewListener
hexMoused in interface BoardViewListenerb - an eventpublic void hexCursor(BoardViewEvent b)
BoardViewListener
hexCursor in interface BoardViewListenerb - an eventpublic void boardHexHighlighted(BoardViewEvent b)
BoardViewListener
boardHexHighlighted in interface BoardViewListenerb - an eventpublic void hexSelected(BoardViewEvent b)
BoardViewListener
hexSelected in interface BoardViewListenerb - an eventpublic void firstLOSHex(BoardViewEvent b)
BoardViewListener
firstLOSHex in interface BoardViewListenerb - an event
public void secondLOSHex(BoardViewEvent b,
Coords c)
BoardViewListener
secondLOSHex in interface BoardViewListenerb - an eventvoid butFlip_actionPerformed(java.awt.event.ActionEvent e)
void butClose_actionPerformed(java.awt.event.ActionEvent e)
void height1_keyReleased(java.awt.event.KeyEvent e)
void height2_keyReleased(java.awt.event.KeyEvent e)
public void boardChangedEntity(BoardViewEvent b)
public void boardNewAttack(BoardViewEvent a)
public void finishedMovingUnits(BoardViewEvent b)
BoardViewListener
finishedMovingUnits in interface BoardViewListenerb - an eventpublic void unitSelected(BoardViewEvent b)
BoardViewListener
unitSelected in interface BoardViewListenerb - an event
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||