public class RHVideoComponent extends RHComponent implements java.awt.event.MouseListener, java.awt.event.MouseMotionListener
Modifier and Type | Field and Description |
---|---|
static int |
Shape_Ellipse |
static int |
Shape_NONE |
static int |
Shape_Rectangle |
g2, itsBuffImage, itsImage, itsTracker, xScale, yScale
Constructor and Description |
---|
RHVideoComponent(TrackerEngine trackEng,
int wid,
int hei)
Standard constructor for the Tracker class.
|
Modifier and Type | Method and Description |
---|---|
void |
drawTShape(java.awt.Graphics g)
draws the tRect if needed
|
java.awt.Shape |
makeShapeFromPoints(java.awt.Point sPt,
java.awt.Point ePt,
int shapeType)
creates an rectangular shape from two corner Points
|
void |
mouseClicked(java.awt.event.MouseEvent e)
handle a mouseClicked Event
|
void |
mouseDragged(java.awt.event.MouseEvent e)
handle a mouseDragged Event
|
void |
mouseEntered(java.awt.event.MouseEvent e)
handle a mouseEntered Event
|
void |
mouseExited(java.awt.event.MouseEvent e)
handle a mouseExited Event
|
void |
mouseMoved(java.awt.event.MouseEvent e)
handle a mouseMoved Event
|
void |
mousePressed(java.awt.event.MouseEvent ev)
handle a mousePressed Event
|
void |
mouseReleased(java.awt.event.MouseEvent e)
handle a mouseReleased Event
|
void |
paint(java.awt.Graphics g)
repaint the whole composition and blit to the JPanel.
|
void |
pickLabelColors()
report color in pixel
|
void |
pickPixelValue()
report byte value in pixel
|
void |
recordEllipse()
turn on tracing of Area of interest using the mouse - ellipse
|
void |
recordPolygon()
turn on tracing of Area of interest using the mouse - polygon
|
void |
recordRects()
turn on tracing of Area of interest using the mouse - rectangle
|
void |
showVideo(boolean displayV)
turn on live video display
|
void |
traceEllipse()
turn on tracing a rectangle in the window using the mouse - ellipse
|
void |
tracePolygon()
turn on tracing a rectangle in the window using the mouse - polygon
|
void |
tracePt()
turn on locating a particular point in the window - point
|
void |
traceRect()
turn on tracing a rectangle in the window using the mouse - rectangle
|
getXScale, getYScale, orderPointsForRect, scale, scale, setImage, setScale, unscale, unscale
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate
public static final int Shape_NONE
public static final int Shape_Rectangle
public static final int Shape_Ellipse
public RHVideoComponent(TrackerEngine trackEng, int wid, int hei)
trackEng
- the videotracker that plots to this JPanelpublic void paint(java.awt.Graphics g)
paint
in class RHComponent
g
- the graphics world of the plotting canvaspublic void drawTShape(java.awt.Graphics g)
public void showVideo(boolean displayV)
displayV
- show or notpublic void recordRects()
public void recordEllipse()
public void recordPolygon()
public void tracePt()
public void traceRect()
public void traceEllipse()
public void tracePolygon()
public void pickLabelColors()
public void pickPixelValue()
public java.awt.Shape makeShapeFromPoints(java.awt.Point sPt, java.awt.Point ePt, int shapeType)
sPt
- start PointePt
- end Pointpublic void mousePressed(java.awt.event.MouseEvent ev)
mousePressed
in interface java.awt.event.MouseListener
ev
- the MouseEventpublic void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
e
- the MouseEventpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
e
- the MouseEventpublic void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
e
- the MouseEventpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
e
- the MouseEventpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
e
- the MouseEventpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
e
- the MouseEventRH, 2017