|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensourcephysics.cabrillo.tracker.TMat
public class TMat
This is a trackable rectangular background mat that draws itself on a tracker panel behind the video.
| Field Summary | |
|---|---|
protected java.awt.Rectangle |
drawingBounds
|
protected boolean |
isValidMeasure
|
protected java.awt.Rectangle |
mat
|
| Constructor Summary | |
|---|---|
TMat(TrackerPanel panel)
Creates a mat for the specified tracker panel |
|
| Method Summary | |
|---|---|
void |
draw(DrawingPanel panel,
java.awt.Graphics g)
Draws the image mat on the panel. |
java.awt.Paint |
getPaint()
Gets the paint. |
double |
getXMax()
Gets the maximum x needed to draw this object. |
double |
getXMin()
Gets the minimum x needed to draw this object. |
double |
getXOffset()
Gets the x offset of this mat relative to the image origin |
double |
getYMax()
Gets the maximum y needed to draw this object. |
double |
getYMin()
Gets the minimum y needed to draw this object. |
double |
getYOffset()
Gets the y offset of this mat relative to the image origin |
boolean |
isMeasured()
Reports whether information is available to set min/max values. |
boolean |
isVisible()
Gets the visibility of this mat. |
void |
propertyChange(java.beans.PropertyChangeEvent e)
Responds to property change events. |
void |
refresh()
Refreshes this mat. |
void |
setPaint(java.awt.Paint paint)
Sets the paint. |
void |
setVisible(boolean visible)
Shows or hides this mat. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.awt.Rectangle mat
protected boolean isValidMeasure
protected java.awt.Rectangle drawingBounds
| Constructor Detail |
|---|
public TMat(TrackerPanel panel)
panel - the tracker panel| Method Detail |
|---|
public void draw(DrawingPanel panel,
java.awt.Graphics g)
draw in interface Drawablepanel - the drawing panel requesting the drawingg - the graphics context on which to drawpublic java.awt.Paint getPaint()
public void setPaint(java.awt.Paint paint)
paint - the desired paintpublic void setVisible(boolean visible)
visible - true to show this mat.public boolean isVisible()
true if this mat is visiblepublic double getXMin()
getXMin in interface Measurablepublic double getXMax()
getXMax in interface Measurablepublic double getYMin()
getYMin in interface Measurablepublic double getYMax()
getYMax in interface Measurablepublic boolean isMeasured()
isMeasured in interface Measurabletrue if min/max values are validpublic void refresh()
public double getXOffset()
public double getYOffset()
public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange in interface java.beans.PropertyChangeListenere - the property change event
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||