public class PresenterPanel
extends javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static java.awt.BasicStroke |
dashedStroke |
boolean |
drawFrame |
java.awt.FontMetrics |
fontMetrics |
static int |
kFrameLook |
static int |
kOriginLook |
static int |
labelGap |
int |
strHeight |
static int |
X |
static int |
Y |
static int |
Z |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
PresenterPanel()
Constructor for the Presenter class
|
Modifier and Type | Method and Description |
---|---|
void |
drawBGImage(java.awt.Graphics2D g2d,
java.awt.Image theImage)
adds a background image to the panel
|
void |
drawFrame(java.awt.Graphics2D g2d)
draw a frame around the PreenterPanel's active drawing area
|
int |
getBotLabelPos()
returns the y coordinate for labels on the bottom of the frame
|
java.awt.Rectangle |
getCoordMapRect()
gets the Presenter that owns the Panel
|
com.lobsterman.JavaGrinders.spatial.GridSpace3D |
getGridSpace3D()
returns the GridSpace used in mapping the points
|
int |
getLeftLabelPos(java.lang.String theStr)
returns the y coordinate for labels on the top of the frame
|
int |
getRightLabelPos()
returns the y coordinate for labels on the bottom of the frame
|
int |
getTopLabelPos()
returns the y coordinate for labels on the top of the frame
|
void |
paintComponent(java.awt.Graphics g)
paint method
|
void |
setBGImage(java.awt.Image theImage)
sets the Presenter that owns the Panel
|
void |
setCoordMapRect(java.awt.Rectangle theMapRect)
sets the Presenter that owns the Panel
|
void |
setGrid(int theAxis,
Grid theGrid)
sets the grid used in mapping the points
|
void |
setGridSpace3D(com.lobsterman.JavaGrinders.spatial.GridSpace3D theVisualSpace)
sets the GridSpace used in mapping the points
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final int kFrameLook
public static final int kOriginLook
public static final int X
public static final int Y
public static final int Z
public java.awt.FontMetrics fontMetrics
public int strHeight
public static final int labelGap
public static java.awt.BasicStroke dashedStroke
public boolean drawFrame
public java.awt.Rectangle getCoordMapRect()
public void setCoordMapRect(java.awt.Rectangle theMapRect)
public com.lobsterman.JavaGrinders.spatial.GridSpace3D getGridSpace3D()
public void setGrid(int theAxis, Grid theGrid)
theAxis
- the axis to settheGrid
- the gridspace that defines the coordinate systempublic void setGridSpace3D(com.lobsterman.JavaGrinders.spatial.GridSpace3D theVisualSpace)
theVisualSpace
- the GridSpace that defines the coordinate systempublic void setBGImage(java.awt.Image theImage)
theImage
- the background color to setpublic void drawBGImage(java.awt.Graphics2D g2d, java.awt.Image theImage)
g2d
- the graphics port to usetheImage
- the background color to setpublic int getTopLabelPos()
public int getBotLabelPos()
public int getLeftLabelPos(java.lang.String theStr)
public int getRightLabelPos()
public void drawFrame(java.awt.Graphics2D g2d) throws java.lang.Exception
java.lang.Exception
public void paintComponent(java.awt.Graphics g)
paintComponent
in class javax.swing.JComponent
Copyright 2016