|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectexamples.postcard.Postcard
Represents a postcard. This class is simply an aggregation of
Nested Class Summary | |
(package private) class |
Postcard.PrivilegedImageDecoding
This privileged action decodes an image from a byte array. |
(package private) class |
Postcard.PrivilegedImageEncoding
This privileged action stores an image into a byte array. |
Field Summary | |
private Date |
date_
Holds the date when the image was taken or obtained. |
static int |
DEFAULT_IMAGE_HEIGHT
The heigth of the default image. |
static int |
DEFAULT_IMAGE_WIDTH
The width of the default image. |
private byte[] |
imageData_
Holds the image. |
private String |
location_
Holds the location where the picture was taken or obtained. |
private String |
url_
Holds the server's URL where the picture was taken or obtained. |
Constructor Summary | |
Postcard(BufferedImage image,
String location,
String url)
Stamps the given image in the upper right corner with the following information: current date and time server's ingate URL servers location name of the agent distingished name in the owner certificate The stamp is written in the lower left corner with white color. |
Method Summary | |
private void |
debug(Object debugInfo)
|
Date |
getDate()
|
BufferedImage |
getImage()
|
String |
getLocation()
|
String |
getURL()
|
private void |
stampImage(BufferedImage img)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private byte[] imageData_
private String location_
private String url_
private Date date_
public static final int DEFAULT_IMAGE_WIDTH
public static final int DEFAULT_IMAGE_HEIGHT
Constructor Detail |
public Postcard(BufferedImage image, String location, String url)
Method Detail |
public Date getDate()
public BufferedImage getImage()
public String getLocation()
public String getURL()
private void stampImage(BufferedImage img)
private void debug(Object debugInfo)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |