|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--quicktime.QTObject | +--quicktime.util.QTHandleRef | +--quicktime.qd.Region
The Region represents an arbitary area or set of areas on the drawing coordinate plane. Methods are implemented for a corresponding QuickDraw structure used by QuickTime. Refer to Region in QuickTime documentation.
Fields inherited from interface quicktime.jdirect.QuickTimeLib |
JDirect_MacOSX, libraryInstance, name |
Fields inherited from interface quicktime.jdirect.QTStreamingLib |
JDirect_MacOSX, libraryInstance |
Constructor Summary | |
Region()
Allocates a new empty region. |
|
Region(PixMap pMap)
Converts a specified BitMap or PixMap to a region. |
|
Region(QDRect r)
Allocates a new region specified by a rectangle. |
Method Summary | |
java.lang.Object |
clone()
Copies the mathematical structure of the implicit region into a newly created region. |
void |
close()
Completes the collection of lines or frames that define the Region. |
Region |
copy()
Copies the mathematical structure of the implicit region into a newly created region. |
Region |
diff(Region regionB)
Calculates the subtracts the specified explicit region from the implicit region and creates a new region representing that structure. |
boolean |
empty()
Determines whether a region is empty or not. |
boolean |
equalRgn(Region rgn)
Compares two regions for sizes, shapes, and locations. |
static Region |
fromGraphicsImporter(GraphicsImporter gi)
Determines the current clipping region. |
static Region |
fromGraphicsImporterDefault(GraphicsImporter gi)
Determines the default clipping region. |
static Region |
fromMovieBounds(Movie m)
This method allows your application to determine a movie's boundary region. |
static Region |
fromMovieClip(Movie m)
This method allows your application to determine a movie's clipping region. |
static Region |
fromMovieControllerBadge(MovieController mc,
Region movieRgn,
boolean returnBadgeRgn)
This method allows you to display a controller's badge. |
static Region |
fromMovieControllerBounds(MovieController mc)
This method returns the actual region occupied by the controller and its movie, if the movie is attached to the controller. |
static Region |
fromMovieControllerClip(MovieController mc)
This method allows you to obtain information describing a movie controller's clipping regions. |
static Region |
fromMovieControllerWindow(MovieController mc,
QDGraphics window)
This method allows your application to determine the window region that is actually in use by a controller and its movie. |
static Region |
fromMovieDisplayBounds(Movie m)
This method allows your application to determine a movie's display boundary region. |
static Region |
fromMovieDisplayClip(Movie m)
This method allows your application to determine a movie's current display clipping region. |
static Region |
fromMovieSegment(Movie m,
int time,
int duration)
This method allows your application to determine a movie's display boundary region during a specified segment. |
static Region |
fromPresentationClip(Presentation p,
Stream s)
This method allows your application to determine a Presentation's clipping region. |
static Region |
fromTrackBounds(Track t)
This method allows the media to limit the size of the track boundary rectangle. |
static Region |
fromTrackClip(Track t)
This method allows your application to determine the clipping region of a track. |
static Region |
fromTrackDisplay(Track t)
This method allows your application to determine the region a track occupies in a movie's graphics world. |
static Region |
fromTrackMovieBounds(Track t)
This method allows your application to determine the region the track occupies in a movie's boundary region. |
static Region |
fromTrackSegment(Track t,
int time,
int duration)
This method allows your application to determine the region a track occupies in a movie's graphics world during a specified segment. |
static Region |
fromVideoChannel(VisualChannel vc)
Allows you to retrieve a channels clipping region. |
QDRect |
getBounds()
Returns a copy of the bounding rectangle of the Region. |
QDRect |
getRgnBBox()
Returns a copy of the bounding rectangle of the Region. |
int |
getSize()
Returns size of the Region. |
void |
inset(int dh,
int dv)
Moves all points on the region boundary horizontally and vertically by adding the respective parameters to those points. |
void |
map(QDRect srcRect,
QDRect dstRect)
Takes the implicit region with one rectangle, maps and scales it to another rectangle. |
void |
offset(int dh,
int dv)
Moves the region horizontally and vertically by adding the respective parameters to all of the region. |
void |
open(QDGraphics graphics)
Begins the recording of lines or frames in the specified QDGraphics that when closed will define a Region. |
boolean |
pointIn(QDPoint pt)
Checks whether the pixel below and to the right of the point is within the region. |
void |
rect(QDRect r)
Resets the mathematical structure to the specified rectangle. |
boolean |
rectIn(QDRect srcRect)
Checks whether the specified rectangle intersects the region. |
Region |
sect(QDRect r)
Calculates the intersection of this region and the incoming QDRect and creates a new region representing that structure. |
Region |
sect(Region regionB)
Calculates the intersection of two regions and creates a new region representing that structure. |
void |
setEmpty()
Resets the mathematical structure to the rectangle (0,0,0,0). |
void |
setRect(int x,
int y,
int width,
int height)
Resets the mathematical structure to the specified coordinates and sizes. |
java.lang.String |
toString()
Print information about this object. |
Region |
union(QDRect rect)
Calculates the union of this region and the incoming rect, and creates a new region representing that structure. |
Region |
union(Region regionB)
Calculates the union of two regions and creates a new region representing that structure. |
Region |
xor(Region regionB)
Calculates the difference between the union and intersection of two regions and creates a new region representing that structure. |
Methods inherited from class quicktime.util.QTHandleRef |
copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyToArray, copyToArray, copyToArray, copyToArray, copyToArray, copyToArray, copyToArray, fromCompressionDialogState, fromSCSequence, getBytes, inMemory, isLocked, lock, lockHigh, moveHigh, toQTPointer, toQTPointer, unlock |
Methods inherited from class quicktime.QTObject |
disposeQTObject, equals, ID |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Region() throws QTException
public Region(QDRect r) throws QTException
r
- the specified rectanglepublic Region(PixMap pMap) throws QTException
pMap
- the specified pixmapMethod Detail |
public static Region fromGraphicsImporter(GraphicsImporter gi) throws QTException
gi
- the GraphicsImporterGraphicsImporter.getClip()
public static Region fromGraphicsImporterDefault(GraphicsImporter gi) throws QTException
gi
- the GraphicsImporterGraphicsImporter.getClip()
public static Region fromMovieDisplayClip(Movie m) throws QTException
m
- the MovieMovie.getDisplayClipRgn()
public static Region fromMovieDisplayBounds(Movie m) throws QTException
m
- the MovieMovie.getDisplayBoundsRgn()
public static Region fromMovieClip(Movie m) throws QTException
m
- the Moviequicktime.std.movies.Movie#getMovieClipRgn
public static Region fromPresentationClip(Presentation p, Stream s) throws QTException
p
- the Presentations
- the StreamPresentation.getClip(quicktime.streaming.Stream)
public static Region fromMovieBounds(Movie m) throws QTException
m
- the MovieMovie.getBoundsRgn()
public static Region fromMovieSegment(Movie m, int time, int duration) throws QTException
m
- the Movietime
- Specifies the starting time of the movie segment to consider.duration
- Specifies the length of the segment to consider.Movie.getSegmentDisplayBoundsRgn(int, int)
public static Region fromMovieControllerBounds(MovieController mc) throws QTException
mc
- the MovieControllerMovieController.getBoundsRgn()
public static Region fromMovieControllerWindow(MovieController mc, QDGraphics window) throws QTException
mc
- the MovieControllerwindow
- Specifies the window. This may NOT be null.MovieController.getWindowRgn(quicktime.qd.QDGraphics)
public static Region fromMovieControllerClip(MovieController mc) throws QTException
mc
- the MovieControllerMovieController.getClip()
public static Region fromMovieControllerBadge(MovieController mc, Region movieRgn, boolean returnBadgeRgn) throws QTException
mc
- the MovieControllermovieRgn
- Specifies the boundary region of the controller's movie.MovieController.drawBadge(quicktime.qd.Region, boolean)
public static Region fromTrackClip(Track t) throws QTException
t
- the TrackTrack.getClipRgn()
public static Region fromTrackDisplay(Track t) throws QTException
t
- the TrackTrack.getDisplayBoundsRgn()
public static Region fromTrackMovieBounds(Track t) throws QTException
t
- the TrackTrack.getMovieBoundsRgn()
public static Region fromTrackBounds(Track t) throws QTException
t
- the TrackTrack.getBoundsRgn()
public static Region fromTrackSegment(Track t, int time, int duration) throws QTException
t
- the Tracktime
- Specifies the starting time of the track segment to consider.duration
- Specifies the length of the segment to consider. Set this parameter to 0 to
consider an instant in time.Track.getSegmentDisplayBoundsRgn(int, int)
public static Region fromVideoChannel(VisualChannel vc) throws QTException
vc
- the VisualChannelVisualChannel.getClip()
public int getSize()
getSize
in class QTHandleRef
quicktime.util.QTHandleRef
public QDRect getRgnBBox()
public QDRect getBounds()
public void open(QDGraphics graphics) throws QDException
graphics
- the QDGraphics object to record.public void close() throws QDException
public void rect(QDRect r)
r
- the specified rectanglepublic Region copy() throws QTException
public java.lang.Object clone()
public void setEmpty()
public void setRect(int x, int y, int width, int height)
x
- the specified leftmost position.y
- the specified topmost position.width
- the specified width.height
- the specified height.public void offset(int dh, int dv)
dh
- the specified horizontal offset.dv
- the specified vertical offset.public void inset(int dh, int dv)
dh
- the specified horizontal inset.dv
- the specified vertical inset.public Region sect(Region regionB) throws QTException
regionB
- the specified intersecting region.public Region sect(QDRect r) throws QTException
r
- the specified intersecting rect.public Region union(Region regionB) throws QTException
regionB
- the specified region to union with.public Region union(QDRect rect) throws QTException
rect
- the specified rect to union with.public Region diff(Region regionB) throws QTException
regionB
- the specified region to find difference with.public Region xor(Region regionB) throws QTException
regionB
- the specified region to xor with.public boolean rectIn(QDRect srcRect)
srcRect
- the specified source rectanglepublic boolean equalRgn(Region rgn)
obj
- the specified comparision regionpublic boolean empty()
public void map(QDRect srcRect, QDRect dstRect)
srcRect
- the specified source rectangledstRect
- the specified destination rectanglepublic boolean pointIn(QDPoint pt)
pt
- the specified point.public java.lang.String toString()
toString
in class QTHandleRef
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |