|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.maps.rover.RoverImageFile
public class RoverImageFile
A named image file, including byte contents.
This is an abstraction of an image file. It may or may not actually be loaded from a filesystem; that is up to the RoverStore implementation.
The distinction between this and RoverImage is that a RoverImage is an image placed on the map, with only a pointer to the RoverImageFile, which contains the contents.
Copyright 2009 Partner Software, Inc.
| Constructor Summary | |
|---|---|
RoverImageFile(byte[] contents)
|
|
RoverImageFile(java.lang.String name,
int id,
java.lang.String guid,
byte[] contents)
|
|
RoverImageFile(VfsFile file)
|
|
| Method Summary | |
|---|---|
java.awt.Image |
createImage()
|
byte[] |
getContents()
|
java.lang.String |
getGuid()
Globally-unique ID (GUID) for this object. |
int |
getId()
Numeric ID for this object. |
java.lang.String |
getName()
Name of this object. |
RoverImageFile |
withId(int id)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RoverImageFile(VfsFile file)
throws java.io.IOException
java.io.IOException
public RoverImageFile(java.lang.String name,
int id,
java.lang.String guid,
byte[] contents)
public RoverImageFile(byte[] contents)
| Method Detail |
|---|
public RoverImageFile withId(int id)
public java.lang.String getGuid()
Identifiable
getGuid in interface Identifiablepublic int getId()
Identifiable
getId in interface Identifiablepublic java.lang.String getName()
Identifiable
getName in interface Identifiablepublic byte[] getContents()
public java.awt.Image createImage()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||