public class PvScenegraph extends java.awt.Panel implements PvDisplayOverlayIf, java.awt.event.AdjustmentListener
Modifier and Type | Field and Description |
---|---|
static int |
BGCOLOR
Indices of specific colors in color array m_color.
|
static int |
HBGCOLOR |
static int |
HTXTBGCOLOR |
static int |
HTXTCOLOR |
static int |
MODE_OVERLAY |
static int |
MODE_PANEL |
static int |
OUTLINE |
static int |
TXTCOLOR |
Constructor and Description |
---|
PvScenegraph() |
Modifier and Type | Method and Description |
---|---|
void |
adjustmentValueChanged(java.awt.event.AdjustmentEvent event) |
int |
getIconInd()
Get index of icon resp. field with currently picked node.
|
java.lang.String |
getNodeID()
Get ID of current picked node.
|
int |
getNodeInd()
Get index of current picked node.
|
java.lang.String |
getNodeStatus()
Get status of directory nodes (open/close).
|
int |
getPanelMode()
Get flag if running as self-contained panel or as overlay of another container panel.
|
java.awt.Dimension |
getPreferredSize()
Gets the preferred size of this component.
|
void |
init() |
void |
mouseClicked(java.awt.event.MouseEvent mouseEvent) |
void |
mouseDragged(java.awt.event.MouseEvent mouseEvent) |
void |
mouseEntered(java.awt.event.MouseEvent mouseEvent) |
void |
mouseExited(java.awt.event.MouseEvent mouseEvent) |
void |
mouseMoved(java.awt.event.MouseEvent mouseEvent) |
void |
mousePressed(java.awt.event.MouseEvent mouseEvent) |
void |
mouseReleased(java.awt.event.MouseEvent mouseEvent) |
void |
paint(java.awt.Graphics g) |
void |
paintOverlay(java.awt.Graphics g,
int xInset,
int yInset,
int width,
int height)
Draw scenegraph as overlay in JavaView display.
|
void |
selectColors(int bgColor,
int txtColor,
int hbgColor,
int htxtColor)
Select color of special items using index in color array.
|
void |
selectFonts(int titleFont,
int nodeFont)
Select color of special items using index in color array.
|
void |
setColors(java.awt.Color[] color)
Set colors, index identified using COLOR_xyz .
|
void |
setDisplay(PvDisplay disp)
Set component of graphics context.
|
void |
setFonts(java.awt.Font[] font)
Set fonts, index identified using FONT_xyz .
|
void |
setNodeIcons(java.awt.Image[] nodeImg,
int numIcons)
Set icons of tree nodes and other gui elements.
|
void |
setNodeParms(int iVersion,
java.lang.String[] parmArray,
int numParms)
Set list of tree nodes and node parameters, each node is given as string.
|
void |
setPanelMode(int panelMode)
Set flag if running as self-contained panel or as overlay of another container panel.
|
void |
setParent() |
void |
setTitle(java.lang.String title)
Set title string.
|
void |
update(java.awt.Graphics g) |
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, isValidateRoot, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, validate
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static int BGCOLOR
public static int TXTCOLOR
public static int HBGCOLOR
public static int HTXTCOLOR
public static int HTXTBGCOLOR
public static int OUTLINE
public static final int MODE_PANEL
public static final int MODE_OVERLAY
public void init()
public int getPanelMode()
public void setPanelMode(int panelMode)
setPanelMode
in interface PvDisplayOverlayIf
public java.awt.Dimension getPreferredSize()
getPreferredSize
in interface PvDisplayOverlayIf
getPreferredSize
in class java.awt.Container
public void setParent()
public int getNodeInd()
public int getIconInd()
public java.lang.String getNodeID()
public java.lang.String getNodeStatus()
public void setTitle(java.lang.String title)
public void setColors(java.awt.Color[] color)
color
- array of colors for gui elementspublic void selectColors(int bgColor, int txtColor, int hbgColor, int htxtColor)
bgColor
- index of background color of canvashbgColor
- index of highlighted background color of canvastxtColor
- index of text color of canvashtxtColor
- index of highlighted text color of canvaspublic void setFonts(java.awt.Font[] font)
font
- array of fonts for gui textpublic void selectFonts(int titleFont, int nodeFont)
titleFont
- font for titlenodeFont
- font for node labelspublic void setNodeIcons(java.awt.Image[] nodeImg, int numIcons)
nodeImg
- icons of nodes and gui elementspublic void setNodeParms(int iVersion, java.lang.String[] parmArray, int numParms)
iVersion
- version number of formatting of node stringsparmArray
- array of nodes, each node given as formatted stringnumParms
- number of nodes in arraypublic void mouseClicked(java.awt.event.MouseEvent mouseEvent)
mouseClicked
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent mouseEvent)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent mouseEvent)
mouseExited
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent mouseEvent)
mouseReleased
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent mouseEvent)
mousePressed
in interface java.awt.event.MouseListener
public void mouseDragged(java.awt.event.MouseEvent mouseEvent)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void mouseMoved(java.awt.event.MouseEvent mouseEvent)
mouseMoved
in interface java.awt.event.MouseMotionListener
public void update(java.awt.Graphics g)
update
in class java.awt.Container
public void paint(java.awt.Graphics g)
paint
in class java.awt.Container
public void paintOverlay(java.awt.Graphics g, int xInset, int yInset, int width, int height)
paintOverlay
in interface PvDisplayOverlayIf
public void adjustmentValueChanged(java.awt.event.AdjustmentEvent event)
adjustmentValueChanged
in interface java.awt.event.AdjustmentListener
public void setDisplay(PvDisplay disp)
setDisplay
in interface PvDisplayOverlayIf
"