|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.lilik.capturemjpeg.AxisURL
public class AxisURL
This class can handle URL generation for a specific host (Axis camera).
Use the getURL()
method to obtain a valid
url string. See
for a description of all the accepted parameters.
Constructor Summary | |
---|---|
AxisURL(String host)
Creates a AxisURL for the specified host host must be an IP or an hostname,
without http:// or any trailing slash. |
Method Summary | |
---|---|
String |
getURL()
Transforms the AxisURL object in a correct URL string |
AxisURL |
setCamera(int camera)
Selects the source camera (valid for video servers with more than a camera). |
AxisURL |
setColorLevel(int colorLevel)
Sets the desired level of color/grayscale. |
AxisURL |
setDesiredFPS(int desiredFPS)
Sets the desired framerate. |
AxisURL |
setQuad(boolean quad)
Generates a quad image. |
AxisURL |
setRequiredFPS(int requiredFPS)
Sets the required framerate. |
AxisURL |
setResolution(int width,
int height)
Sets the desired resolution. |
AxisURL |
setRotation(int rotation)
Rotates the image clockwise (0, 90, 180, 270). |
AxisURL |
setShowClock(boolean showClock)
Show/hides the timestamp. |
AxisURL |
setShowDate(boolean showDate)
Show/hides the date. |
AxisURL |
setShowText(boolean showText)
Show/hides the text. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AxisURL(String host)
AxisURL
for the specified host
host
must be an IP or an hostname,
without http:// or any trailing slash.
host
- the hostname or ipMethod Detail |
---|
public String getURL()
AxisURL
object in a correct URL string
public AxisURL setDesiredFPS(int desiredFPS)
des_fps
parameter into the url.
desiredFPS
- the framerate
this
public AxisURL setRequiredFPS(int requiredFPS)
req_fps
parameter into the url.
requiredFPS
- the framerate
this
public AxisURL setResolution(int width, int height)
resolution
parameter into the url.
width
- desired width of the imageheight
- desired height of the image
this
public AxisURL setCamera(int camera)
camera
parameter into the url.
camera
- the number of the camera to be shown.
this
public AxisURL setColorLevel(int colorLevel)
colorlevel
parameter into the url.
If you pass a colorlevel out of the bounds it will be automatically adjusted to the minimum or the maximum accordingly.
colorLevel
- the desired color level
this
public AxisURL setShowClock(boolean showClock)
clock
parameter into the url.
showClock
- whether to show the timestamp.
this
public AxisURL setShowDate(boolean showDate)
date
parameter into the url.
showDate
- whether to show the date.
this
public AxisURL setQuad(boolean quad)
quad
parameter into the url.
quad
- whether to show a quad image.
this
public AxisURL setShowText(boolean showText)
text
parameter into the url.
showText
- whether to show the text.
this
public AxisURL setRotation(int rotation)
rotation
parameter into the url.
If the provided rotation parameter is not valid, it will be rounded to the nearest valid one.
rotation
- angle of rotation to be applied.
this
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |