|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.foray.graphic.Graphic4a
org.foray.graphic.EPSGraphic
public class EPSGraphic
An EPS (encapsulated Postscript) graphic.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.axsl.graphic.Graphic |
|---|
org.axsl.graphic.Graphic.Compression, org.axsl.graphic.Graphic.Type |
| Field Summary |
|---|
| Fields inherited from class org.foray.graphic.Graphic4a |
|---|
BIT_DEPTH_4, BIT_DEPTH_COLOR, BIT_DEPTH_GRAYSCALE, BIT_DEPTH_MONOCHROME |
| Constructor Summary | |
|---|---|
EPSGraphic(GraphicServer4a server,
URL url,
BufferedInputStream bis,
boolean isASCII)
Constructor. |
|
| Method Summary | |
|---|---|
int |
absoluteHeightReal()
Returns the absolute height, in millipoints, of the graphic. |
int |
absoluteWidthReal()
Returns the absolute width, in millipoints, of the graphic. |
org.axsl.ps.PsBoundingBox |
getBoundingBox()
|
ColorSpace |
getColorSpace()
|
org.axsl.graphic.Graphic.Compression |
getCompressionType()
|
byte[] |
getContent()
|
org.axsl.graphic.Graphic.Type |
getGraphicType()
|
String |
getMimeType()
|
String |
getName()
|
byte[] |
getPreview()
Returns the embedded preview. |
byte[] |
getRawSamples()
|
Color |
getTransparentColor()
|
boolean |
isInverted()
|
boolean |
isTransparent()
|
protected void |
loadImage()
Load image data and initialize its properties. |
protected void |
parseBasics()
This abstract method is implemented in subclasses to initiate parsing of enough of the image for it to be used in layout. |
int |
pixelHeight()
|
int |
pixelWidth()
|
| Methods inherited from class org.foray.graphic.Graphic4a |
|---|
absoluteHeight, absoluteWidth, canMakeGraphicOutput, close, getBitDepth, getBitsPerComponent, getContentSize, getGraphicOutput, getInputStream, getLinks, getLogger, getRawColorSpace, getServer, getUrl, isImageLoaded, isValid, loadImageWrapper, maxBytesToParseBasics, parseBasicsWrapper, setBasicsParsed, setBitDepth, setContent, setImageLoaded, setInputStream, setLinks, setValid |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.axsl.graphic.Graphic |
|---|
absoluteHeight, absoluteWidth, canMakeGraphicOutput, close, getBitsPerComponent, getContentSize, getGraphicOutput, getLinks, getUrl |
| Constructor Detail |
|---|
public EPSGraphic(GraphicServer4a server,
URL url,
BufferedInputStream bis,
boolean isASCII)
server - The parent graphic server.url - The URL which contains the graphic content.bis - The reusable input stream containing the bytes from url.isASCII - Indicates whether this file format is ASCII (true) or
binary (false).| Method Detail |
|---|
public String getName()
getName in interface org.axsl.graphic.Graphic
protected void loadImage()
throws org.axsl.graphic.GraphicException
Graphic4a
loadImage in class Graphic4aorg.axsl.graphic.GraphicException - an error occured during loadingpublic org.axsl.graphic.Graphic.Type getGraphicType()
getGraphicType in interface org.axsl.graphic.Graphicpublic org.axsl.graphic.Graphic.Compression getCompressionType()
getCompressionType in interface org.axsl.graphic.Graphicpublic String getMimeType()
getMimeType in interface org.axsl.graphic.Graphic
protected void parseBasics()
throws IOException
Graphic4aThis abstract method is implemented in subclasses to initiate parsing of enough of the image for it to be used in layout. This method is responsible to:
Graphic.pixelWidth()Graphic.pixelHeight()The housekeeping work related to resetting the buffer, handling IOExceptions, and managing whether this method should be run are handled elsewhere. In short, this method does not need to address the details handled there.
parseBasics in class Graphic4aIOException - For IO errors during reading of the file.
public byte[] getContent()
throws org.axsl.graphic.GraphicException
getContent in interface org.axsl.graphic.GraphicgetContent in class Graphic4aorg.axsl.graphic.GraphicExceptionpublic byte[] getPreview()
public org.axsl.ps.PsBoundingBox getBoundingBox()
getBoundingBox in interface org.axsl.graphic.EpsGraphic
public byte[] getRawSamples()
throws org.axsl.graphic.GraphicException
getRawSamples in interface org.axsl.graphic.Graphicorg.axsl.graphic.GraphicException
public int absoluteWidthReal()
throws org.axsl.graphic.GraphicException
Graphic4a
absoluteWidthReal in class Graphic4aorg.axsl.graphic.GraphicException - For errors during reading of image file.
public int absoluteHeightReal()
throws org.axsl.graphic.GraphicException
Graphic4a
absoluteHeightReal in class Graphic4aorg.axsl.graphic.GraphicException - For errors during reading of image file.public boolean isInverted()
isInverted in interface org.axsl.graphic.Graphic
public ColorSpace getColorSpace()
throws org.axsl.graphic.GraphicException
getColorSpace in interface org.axsl.graphic.Graphicorg.axsl.graphic.GraphicException
public boolean isTransparent()
throws org.axsl.graphic.GraphicException
isTransparent in interface org.axsl.graphic.Graphicorg.axsl.graphic.GraphicException
public Color getTransparentColor()
throws org.axsl.graphic.GraphicException
getTransparentColor in interface org.axsl.graphic.Graphicorg.axsl.graphic.GraphicException
public int pixelWidth()
throws org.axsl.graphic.GraphicException
pixelWidth in interface org.axsl.graphic.Graphicorg.axsl.graphic.GraphicException
public int pixelHeight()
throws org.axsl.graphic.GraphicException
pixelHeight in interface org.axsl.graphic.Graphicorg.axsl.graphic.GraphicException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||