|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc for Elexis version 2.1.7.dev vom 17.03.2013 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectag.ion.noa.graphic.GraphicInfo
public class GraphicInfo
Information to be used for graphic operations.
| Constructor Summary | |
|---|---|
GraphicInfo(java.io.InputStream imageInputStream,
int width,
boolean widthPixel,
int height,
boolean heightPixel,
short verticalAlignment,
short horizontalAlignment,
com.sun.star.text.TextContentAnchorType anchor)
Constructs new GraphicInfo. |
|
GraphicInfo(java.lang.String url,
int width,
boolean widthPixel,
int height,
boolean heightPixel,
short verticalAlignment,
short horizontalAlignment,
com.sun.star.text.TextContentAnchorType anchor)
Constructs new GraphicInfo. |
|
| Method Summary | |
|---|---|
void |
cleanUp()
Cleans up the graphic info (i.e. deletes temporary file is it was used). |
com.sun.star.text.TextContentAnchorType |
getAnchor()
Returns the anchor of the image, or null. |
int |
getHeight()
Returns the height of the image in tenth millimeter. |
short |
getHorizontalAlignment()
Returns the horizontal alignment of the image. |
java.lang.String |
getUrl()
Returns the url of the image. |
short |
getVerticalAlignment()
Returns the vertical alignment of the image. |
int |
getWidth()
Returns the width of the image in tenth millimeter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GraphicInfo(java.io.InputStream imageInputStream,
int width,
boolean widthPixel,
int height,
boolean heightPixel,
short verticalAlignment,
short horizontalAlignment,
com.sun.star.text.TextContentAnchorType anchor)
throws NOAException
imageInputStream - the input stream of the image (this will create a temporary file)
Also closes the stream.width - the width in pixelwidthPixel - if the width is described as pixels, otherwise it is
assumed that the width is in thenth millimeterheight - the height in pixelheightPixel - if the height is described as pixels, otherwise it is
assumed that the height is in thenth millimeterverticalAlignment - the vertical alignment.
Possible values are described in VertOrientationhorizontalAlignment - the horizontal alignment.
Possible values are described in HoriOrientationanchor - the anchor type of the image.
Possible values are described in TextContentAnchorType
NOAException - if creation by input stream fails
public GraphicInfo(java.lang.String url,
int width,
boolean widthPixel,
int height,
boolean heightPixel,
short verticalAlignment,
short horizontalAlignment,
com.sun.star.text.TextContentAnchorType anchor)
url - the url of the image in the file systemwidth - the width in pixelwidthPixel - if the width is described as pixels, otherwise it is
assumed that the width is in thenth millimeterheight - the height in pixelheightPixel - if the height is described as pixels, otherwise it is
assumed that the height is in thenth millimeterverticalAlignment - the vertical alignment.
Possible values are described in VertOrientationhorizontalAlignment - the horizontal alignment.
Possible values are described in HoriOrientationanchor - the anchor type of the image.
Possible values are described in TextContentAnchorType| Method Detail |
|---|
public java.lang.String getUrl()
public int getWidth()
public int getHeight()
public short getVerticalAlignment()
VertOrientation
public short getHorizontalAlignment()
HoriOrientation
public com.sun.star.text.TextContentAnchorType getAnchor()
TextContentAnchorType
public void cleanUp()
|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc for Elexis version 2.1.7.dev vom 17.03.2013 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||