|
||||||||||
PREV CLASS 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
org.atzberger.mango.atz3d.JPanel_Model_View_RenderPanel
public class JPanel_Model_View_RenderPanel
Interface panel to display the render view. Provides ability to rotate the camera view and zoom.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
javax.swing.JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
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 | |
---|---|
Atz3D_Renderer_SELM |
atz3D_Renderer_SELM
|
Atz3D_Camera |
camera
|
Atz3D_Camera |
camera_on_click
|
int |
flagInterfaceMode
|
int |
flagMouseDraggedOn
|
protected SELM_InteractionRenderView[] |
interactionRenderList
|
static int |
interfaceMode_External_Control
|
static int |
interfaceMode_Move
|
static int |
interfaceMode_Navigation
|
static int |
interfaceMode_Null
|
static int |
interfaceMode_Zoom
|
Atz3D_Model |
model3D
|
double |
mouseClickedPositionX
|
double |
mouseClickedPositionX_last
|
double |
mouseClickedPositionY
|
double |
mouseClickedPositionY_last
|
double |
mousePositionOnClickX
|
double |
mousePositionOnClickY
|
protected SELM_RenderView[] |
renderViewList
|
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 | |
---|---|
JPanel_Model_View_RenderPanel()
Creates new form JPanel_Model_View_RenderPanel |
Method Summary | |
---|---|
void |
addRenderView(SELM_RenderView renderViewToAdd)
|
void |
genRotationMatrixZAxis(double theta,
double[] matrix)
Generates a rotation matrix about the z-axis |
int |
getHeight()
|
int[] |
getRenderScreenCenterX0()
|
int |
getRenderScreenHeight()
|
java.awt.Dimension |
getRenderScreenSize()
|
int |
getRenderScreenWidth()
|
java.awt.Dimension |
getSize()
|
int |
getWidth()
|
void |
interface_Move_mouseDragged(java.awt.event.MouseEvent e)
|
void |
interface_Move_VRP_mouseDragged(java.awt.event.MouseEvent e,
int dirFlag)
|
void |
interface_Navigation_mouseDragged(java.awt.event.MouseEvent e)
|
void |
interface_Navigation_rotation_mouseDragged(java.awt.event.MouseEvent e)
|
void |
interface_Scale_CameraWindow(double scaleFactor)
|
void |
interface_Scale_CameraWindow(double scaleFactor,
Atz3D_Camera baseCamera)
|
void |
interface_Zoom_mouseDragged(java.awt.event.MouseEvent e)
|
void |
interface_Zoom_VRP_mouseDragged(java.awt.event.MouseEvent e,
int dirFlag)
|
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseDragged(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mouseMoved(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
mouseWheelMoved(java.awt.event.MouseWheelEvent e)
|
void |
paint_new_new_way(java.awt.Graphics g)
Paints the display |
void |
paint_new_way(java.awt.Graphics g)
Paints the display |
void |
paint_test1(java.awt.Graphics g)
|
void |
paint(java.awt.Graphics g)
Paint the render view |
void |
rebuildEntireModel()
Rebuilds the entire model to be rendered |
void |
rebuildModelComponent()
Rebuilds the entire model to be rendered |
void |
removeAllRenderView()
|
void |
removeAllRenderView(java.lang.String tag)
|
void |
renderViewsToModel3D(Atz3D_Model model3D)
|
void |
resetCameraView()
Resets the camera to default view |
void |
setAxisInfo(boolean flagVisible,
java.lang.String[] axisLabels_in,
java.awt.Color axisColor_in,
java.awt.Color axisLabelColor_in)
|
void |
setBackgroundColor(java.awt.Color bk1,
java.awt.Color bk2)
|
void |
setInterfaceMode(int mode)
Sets the state of the interface controls |
void |
setRenderBackgroundColors(java.awt.Color bk1,
java.awt.Color bk2)
|
void |
setSize(java.awt.Dimension size)
|
void |
syncCanvasSizeWithContainer()
Paints the display |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
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, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, 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 |
Methods inherited from class java.awt.Container |
---|
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 |
Methods inherited from class java.awt.Component |
---|
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, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, 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, show, 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 final int interfaceMode_Null
public static final int interfaceMode_External_Control
public static final int interfaceMode_Navigation
public static final int interfaceMode_Move
public static final int interfaceMode_Zoom
public Atz3D_Camera camera
public Atz3D_Camera camera_on_click
public Atz3D_Model model3D
public Atz3D_Renderer_SELM atz3D_Renderer_SELM
public int flagInterfaceMode
protected SELM_InteractionRenderView[] interactionRenderList
protected SELM_RenderView[] renderViewList
public int flagMouseDraggedOn
public double mouseClickedPositionX
public double mouseClickedPositionY
public double mousePositionOnClickX
public double mousePositionOnClickY
public double mouseClickedPositionX_last
public double mouseClickedPositionY_last
Constructor Detail |
---|
public JPanel_Model_View_RenderPanel()
Method Detail |
---|
public void resetCameraView()
public void setInterfaceMode(int mode)
public void paint(java.awt.Graphics g)
paint
in class javax.swing.JComponent
public void rebuildEntireModel()
public void rebuildModelComponent()
public void paint_new_way(java.awt.Graphics g)
public void paint_new_new_way(java.awt.Graphics g)
public void syncCanvasSizeWithContainer()
public void genRotationMatrixZAxis(double theta, double[] matrix)
public void paint_test1(java.awt.Graphics g)
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void interface_Move_mouseDragged(java.awt.event.MouseEvent e)
public void interface_Move_VRP_mouseDragged(java.awt.event.MouseEvent e, int dirFlag)
public void interface_Zoom_mouseDragged(java.awt.event.MouseEvent e)
public void interface_Zoom_VRP_mouseDragged(java.awt.event.MouseEvent e, int dirFlag)
public void interface_Navigation_mouseDragged(java.awt.event.MouseEvent e)
public void interface_Navigation_rotation_mouseDragged(java.awt.event.MouseEvent e)
public void mouseWheelMoved(java.awt.event.MouseWheelEvent e)
mouseWheelMoved
in interface java.awt.event.MouseWheelListener
public void interface_Scale_CameraWindow(double scaleFactor, Atz3D_Camera baseCamera)
public void interface_Scale_CameraWindow(double scaleFactor)
public void renderViewsToModel3D(Atz3D_Model model3D)
public void addRenderView(SELM_RenderView renderViewToAdd)
public void removeAllRenderView()
public void removeAllRenderView(java.lang.String tag)
public void setBackgroundColor(java.awt.Color bk1, java.awt.Color bk2)
public java.awt.Dimension getSize()
getSize
in class java.awt.Component
public void setSize(java.awt.Dimension size)
setSize
in class java.awt.Component
public int getWidth()
getWidth
in class javax.swing.JComponent
public int getHeight()
getHeight
in class javax.swing.JComponent
public java.awt.Dimension getRenderScreenSize()
public int getRenderScreenWidth()
public int getRenderScreenHeight()
public int[] getRenderScreenCenterX0()
public void setRenderBackgroundColors(java.awt.Color bk1, java.awt.Color bk2)
public void setAxisInfo(boolean flagVisible, java.lang.String[] axisLabels_in, java.awt.Color axisColor_in, java.awt.Color axisLabelColor_in)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |