TextDevice

Inheritance: java.lang.Object, com.aspose.page.Device

All Implemented Interfaces: com.aspose.page.IMultiPageDevice

public class TextDevice extends Device implements IMultiPageDevice

Constructeurs

ConstructeurDescription
TextDevice()

Champs

ChampDescription
DEFAULT_SIZE
EMIT_ERRORS
EMIT_WARNINGS
VERSIONVersion actuelle du dispositif.

Méthodes

MéthodeDescription
closePage()
create()
dispose()
draw(Shape path)Dessine un chemin.
drawArc(float x, float y, float width, float height, float startAngle, float arcAngle)Dessine un arc.
drawImage(BufferedImage image, AffineTransform transform, Color bkg)Dessine une image avec la transformation assignée et l’arrière-plan.
drawLine(float x1, float y1, float x2, float y2)Dessine un segment de ligne.
drawOval(float x, float y, float width, float height)Dessine un ovale.
drawPolygon(float[] xPoints, float[] yPoints, int nPoints)Dessine un polygone.
drawPolygon(int[] xPoints, int[] yPoints, int nPoints)Dessine un polygone.
drawPolyline(float[] xPoints, float[] yPoints, int nPoints)Dessine une polyligne.
drawPolyline(int[] xPoints, int[] yPoints, int nPoints)Dessine une polyligne.
drawRect(float x, float y, float width, float height)Dessine un rectangle.
drawRoundRect(float x, float y, float width, float height, float arcWidth, float arcHeight)Dessine un rectangle arrondi.
drawString(String str, float x, float y)
endDocument()
equals(Object arg0)
fill(Shape path)Remplit un chemin.
fillArc(float x, float y, float width, float height, float startAngle, float arcAngle)Remplit un arc.
fillOval(float x, float y, float width, float height)Remplit une ellipse.
fillPolygon(float[] xPoints, float[] yPoints, int nPoints)Remplit un polygone.
fillPolygon(int[] xPoints, int[] yPoints, int nPoints)Remplit un polygone.
fillRect(float x, float y, float width, float height)Remplit un rectangle.
fillRoundRect(float x, float y, float width, float height, float arcWidth, float arcHeight)Dessine un rectangle arrondi.
getBackground()Obtient l’arrière-plan actuel de la page.
getCharTM()Obtient la transformation actuelle des caractères.
getClass()
getCreator()Obtient le créateur de la sortie du dispositif résultant.
getCurrentPageNumber()
getFont()Obtient la police actuelle.
getOpacity()Obtient l’opacité actuelle.
getOpacityMask()Obtient le masque d’opacité actuel.
getPages()
getPaint()Obtient la peinture actuelle.
getProperties()Obtient les propriétés du dispositif, y compris les métadonnées.
getProperty(String key)Obtient une valeur d’une propriété de chaîne.
getPropertyColor(String key)Obtient une valeur d’une propriété de couleur.
getPropertyDouble(String key)Obtient une valeur d’une propriété double.
getPropertyInt(String key)Obtient une valeur d’une propriété entière.
getPropertyMargins(String key)Obtient une valeur d’une propriété de marges.
getPropertyMatrix(String key)Obtient une valeur d’une propriété de matrice.
getPropertyRectangle(String key)Obtient une valeur d’une propriété de rectangle.
getPropertySize(String key)Obtient une valeur d’une propriété de taille.
getSaveOptions()Renvoie les options d’enregistrement.
getSize()Obtient la taille de la page.
getStroke()Obtient le trait actuel.
getText()
getText(int startPage, int endPage)
getTextRenderingMode()Obtient le mode de rendu du texte actuel.
getTextStrokeWidth()Obtient la largeur du trait du texte actuel.
getTransform()Obtient la transformation actuelle.
hashCode()
initClip()Initialise le découpage du dispositif.
initPageNumbers()
isDirectRGB()
isMainDocument()
isProperty(String key)Obtient la valeur d’une propriété booléenne.
notify()
notifyAll()
openPage(float width, float height)
openPage(String title)
renew()
renewForMerge(boolean mainDocument)
reset()
reset(boolean zeroPageNumbers)
rotate(double theta)Faire pivoter la matrice de transformation actuelle.
rotate(double theta, double x, double y)Faire pivoter la matrice de transformation actuelle autour d’un point.
scale(double x, double y)Met à l’échelle la matrice de transformation actuelle.
setBackground(Color background)Spécifie l’arrière-plan actuel de la page.
setCharTM(AffineTransform charTM)Spécifie la transformation des caractères.
setClip(Shape clipPath)Spécifie le découpage du dispositif.
setCreator(String creator)Spécifie le créateur de la sortie du dispositif résultant.
setFont(ITrFont font)Spécifie une police.
setOpacity(float opacity)Spécifie l’opacité.
setOpacityMask(Paint opacityMask)Spécifie un masque d’opacité.
setPaint(Paint paint)Spécifie une peinture.
setProperties(UserProperties props)Spécifie les propriétés du dispositif, y compris les métadonnées.
setSaveOptions(SaveOptions options)Spécifie les options de gestion du processus de rendu.
setSize(Dimension size)
setStroke(Stroke stroke)Spécifie un trait.
setTextRenderingMode(TextRenderingMode textRenderingMode)Spécifie le mode de rendu du texte.
setTextStrokeWidth(float textStrokeWidth)Spécifie la largeur du trait du texte.
setTransform(AffineTransform transform)Spécifie la transformation actuelle.
shear(double shx, double shy)Cisa la matrice de transformation actuelle.
startDocument()
toString()
transform(AffineTransform transform)Transforme la matrice de transformation actuelle.
translate(double x, double y)Translater la matrice de transformation actuelle.
updatePageParameters(IMultiPageDevice device)
wait()
wait(long arg0)
wait(long arg0, int arg1)
writeComment(String comment)Écrit un commentaire.
writeString(ITrFont font, String str)Écrit une chaîne avec la police spécifiée.
writeWarning(String warning)

TextDevice()

public TextDevice()

DEFAULT_SIZE

public static final Dimension DEFAULT_SIZE

EMIT_ERRORS

public static final String EMIT_ERRORS

EMIT_WARNINGS

public static final String EMIT_WARNINGS

VERSION

public static String VERSION

Version actuelle du dispositif.

closePage()

public void closePage()

Effectue les préparations nécessaires de l’appareil après le rendu de la page.

create()

public Device create()

Crée une copie de cet appareil.

Returns: Device

dispose()

public void dispose()

Libère l’appareil.

draw(Shape path)

public void draw(Shape path)

Dessine un chemin.

Parameters:

ParamètreTypeDescription
pathjava.awt.ShapeUn chemin à dessiner.

drawArc(float x, float y, float width, float height, float startAngle, float arcAngle)

public void drawArc(float x, float y, float width, float height, float startAngle, float arcAngle)

Dessine un arc.

Parameters:

ParamètreTypeDescription
xfloatCoordonnée X du centre de l’arc.
yfloatCoordonnée Y du centre de l’arc.
largeurfloatUne largeur du rectangle circonscrit.
hauteurfloatUne hauteur du rectangle circonscrit.
startAnglefloatUn angle de départ de l’arc.
arcAnglefloatUn angle de l’arc.

drawImage(BufferedImage image, AffineTransform transform, Color bkg)

public void drawImage(BufferedImage image, AffineTransform transform, Color bkg)

Dessine une image avec la transformation assignée et l’arrière-plan.

Parameters:

ParamètreTypeDescription
imagejava.awt.image.BufferedImageUne image à dessiner.
transformjava.awt.geom.AffineTransformUne transformation.
bkgjava.awt.ColorUne couleur d’arrière-plan.

drawLine(float x1, float y1, float x2, float y2)

public void drawLine(float x1, float y1, float x2, float y2)

Dessine un segment de ligne.

Parameters:

ParamètreTypeDescription
x1floatCoordonnée X du début du segment.
y1floatCoordonnée Y du début du segment.
x2floatCoordonnée X de la fin du segment.
y2floatCoordonnée Y de la fin du segment.

drawOval(float x, float y, float width, float height)

public void drawOval(float x, float y, float width, float height)

Dessine un ovale.

Parameters:

ParamètreTypeDescription
xfloatCoordonnée X du centre de l’ovale.
yfloatCoordonnée Y du centre de l’ovale.
largeurfloatUne largeur du rectangle circonscrit.
hauteurfloatUne hauteur du rectangle circonscrit.

drawPolygon(float[] xPoints, float[] yPoints, int nPoints)

public void drawPolygon(float[] xPoints, float[] yPoints, int nPoints)

Dessine un polygone.

Parameters:

ParamètreTypeDescription
xPointsfloat[]Coordonnées X des points.
yPointsfloat[]Coordonnée Y des points.
nPointsintLe nombre de points.

drawPolygon(int[] xPoints, int[] yPoints, int nPoints)

public void drawPolygon(int[] xPoints, int[] yPoints, int nPoints)

Dessine un polygone.

Parameters:

ParamètreTypeDescription
xPointsint[]Coordonnées X des points.
yPointsint[]Coordonnée Y des points.
nPointsintLe nombre de points.

drawPolyline(float[] xPoints, float[] yPoints, int nPoints)

public void drawPolyline(float[] xPoints, float[] yPoints, int nPoints)

Dessine une polyligne.

Parameters:

ParamètreTypeDescription
xPointsfloat[]Coordonnées X des points.
yPointsfloat[]Coordonnée Y des points.
nPointsintLe nombre de points.

drawPolyline(int[] xPoints, int[] yPoints, int nPoints)

public void drawPolyline(int[] xPoints, int[] yPoints, int nPoints)

Dessine une polyligne.

Parameters:

ParamètreTypeDescription
xPointsint[]Coordonnées X des points.
yPointsint[]Coordonnée Y des points.
nPointsintLe nombre de points.

drawRect(float x, float y, float width, float height)

public void drawRect(float x, float y, float width, float height)

Dessine un rectangle.

Parameters:

ParamètreTypeDescription
xfloatCoordonnée X du coin supérieur gauche du rectangle.
yfloatCoordonnée Y du coin supérieur gauche du rectangle.
largeurfloatLa largeur du rectangle.
hauteurfloatLa hauteur du rectangle.

drawRoundRect(float x, float y, float width, float height, float arcWidth, float arcHeight)

public void drawRoundRect(float x, float y, float width, float height, float arcWidth, float arcHeight)

Dessine un rectangle arrondi.

Parameters:

ParamètreTypeDescription
xfloatCoordonnée X du coin supérieur gauche du rectangle.
yfloatCoordonnée Y du coin supérieur gauche du rectangle.
largeurfloatLa largeur du rectangle.
hauteurfloatLa hauteur du rectangle.
arcWidthfloatLa largeur du rectangle circonscrit à l’arc qui arrondit un angle du rectangle.
arcHeightfloatLa hauteur du rectangle circonscrit à l’arc qui arrondit un angle du rectangle.

drawString(String str, float x, float y)

public void drawString(String str, float x, float y)

Dessine une chaîne au point donné.

Parameters:

ParamètreTypeDescription
strjava.lang.String
xfloat
yfloat

endDocument()

public void endDocument()

Effectue les préparations nécessaires de l’appareil après le rendu du document.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParamètreTypeDescription
arg0java.lang.Object

Returns: boolean

fill(Shape path)

public void fill(Shape path)

Remplit un chemin.

Parameters:

ParamètreTypeDescription
pathjava.awt.ShapeUn chemin à remplir.

fillArc(float x, float y, float width, float height, float startAngle, float arcAngle)

public void fillArc(float x, float y, float width, float height, float startAngle, float arcAngle)

Remplit un arc.

Parameters:

ParamètreTypeDescription
xfloatCoordonnée X du centre de l’arc.
yfloatCoordonnée Y du centre de l’arc.
largeurfloatUne largeur du rectangle circonscrit.
hauteurfloatUne hauteur du rectangle circonscrit.
startAnglefloatUn angle de départ de l’arc.
arcAnglefloatUn angle de l’arc.

fillOval(float x, float y, float width, float height)

public void fillOval(float x, float y, float width, float height)

Remplit une ellipse.

Parameters:

ParamètreTypeDescription
xfloatCoordonnée X du centre de l’ovale.
yfloatCoordonnée Y du centre de l’ovale.
largeurfloatUne largeur du rectangle circonscrit.
hauteurfloatUne hauteur du rectangle circonscrit.

fillPolygon(float[] xPoints, float[] yPoints, int nPoints)

public void fillPolygon(float[] xPoints, float[] yPoints, int nPoints)

Remplit un polygone.

Parameters:

ParamètreTypeDescription
xPointsfloat[]Coordonnées X des points.
yPointsfloat[]Coordonnée Y des points.
nPointsintLe nombre de points.

fillPolygon(int[] xPoints, int[] yPoints, int nPoints)

public void fillPolygon(int[] xPoints, int[] yPoints, int nPoints)

Remplit un polygone.

Parameters:

ParamètreTypeDescription
xPointsint[]Coordonnées X des points.
yPointsint[]Coordonnée Y des points.
nPointsintLe nombre de points.

fillRect(float x, float y, float width, float height)

public void fillRect(float x, float y, float width, float height)

Remplit un rectangle.

Parameters:

ParamètreTypeDescription
xfloatCoordonnée X du coin supérieur gauche du rectangle.
yfloatCoordonnée Y du coin supérieur gauche du rectangle.
largeurfloatLa largeur du rectangle.
hauteurfloatLa hauteur du rectangle.

fillRoundRect(float x, float y, float width, float height, float arcWidth, float arcHeight)

public void fillRoundRect(float x, float y, float width, float height, float arcWidth, float arcHeight)

Dessine un rectangle arrondi.

Parameters:

ParamètreTypeDescription
xfloatCoordonnée X du coin supérieur gauche du rectangle.
yfloatCoordonnée Y du coin supérieur gauche du rectangle.
largeurfloatLa largeur du rectangle.
hauteurfloatLa hauteur du rectangle.
arcWidthfloatLa largeur du rectangle circonscrit à l’arc qui arrondit un angle du rectangle.
arcHeightfloatLa hauteur du rectangle circonscrit à l’arc qui arrondit un angle du rectangle.

getBackground()

public Color getBackground()

Obtient l’arrière-plan actuel de la page.

Returns: java.awt.Color - Arrière-plan actuel de la page

getCharTM()

public AffineTransform getCharTM()

Obtient la transformation actuelle des caractères.

Returns: java.awt.geom.AffineTransform - Transformation actuelle des caractères.

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getCreator()

public String getCreator()

Obtient le créateur de la sortie du dispositif résultant.

Returns: java.lang.String - Une valeur de créateur.

getCurrentPageNumber()

public int getCurrentPageNumber()

Obtient le numéro de page actuel.

Returns: int

getFont()

public ITrFont getFont()

Obtient la police actuelle.

Returns: ITrFont - Current font.

getOpacity()

public float getOpacity()

Obtient l’opacité actuelle.

Returns: float - Opacité actuelle.

getOpacityMask()

public Paint getOpacityMask()

Obtient le masque d’opacité actuel.

Returns: java.awt.Paint - Masque d’opacité actuel.

getPages()

public List<String> getPages()

Returns: java.util.List<java.lang.String>

getPaint()

public Paint getPaint()

Obtient la peinture actuelle.

Returns: java.awt.Paint - Peinture actuelle.

getProperties()

public UserProperties getProperties()

Obtient les propriétés du dispositif, y compris les métadonnées.

Returns: UserProperties - Device properties.

getProperty(String key)

public String getProperty(String key)

Obtient une valeur d’une propriété de chaîne.

Parameters:

ParamètreTypeDescription
cléjava.lang.StringLe nom de la propriété.

Returns: java.lang.String - La valeur de la propriété.

getPropertyColor(String key)

public Color getPropertyColor(String key)

Obtient une valeur d’une propriété de couleur.

Parameters:

ParamètreTypeDescription
cléjava.lang.StringLe nom de la propriété.

Returns: java.awt.Color - La valeur de la propriété.

getPropertyDouble(String key)

public double getPropertyDouble(String key)

Obtient une valeur d’une propriété double.

Parameters:

ParamètreTypeDescription
cléjava.lang.StringLe nom de la propriété.

Returns: double - La valeur de la propriété.

getPropertyInt(String key)

public int getPropertyInt(String key)

Obtient une valeur d’une propriété entière.

Parameters:

ParamètreTypeDescription
cléjava.lang.StringLe nom de la propriété.

Returns: int - La valeur de la propriété.

getPropertyMargins(String key)

public Insets getPropertyMargins(String key)

Obtient une valeur d’une propriété de marges.

Parameters:

ParamètreTypeDescription
cléjava.lang.StringLe nom de la propriété.

Returns: java.awt.Insets - La valeur de la propriété.

getPropertyMatrix(String key)

public AffineTransform getPropertyMatrix(String key)

Obtient une valeur d’une propriété de matrice.

Parameters:

ParamètreTypeDescription
cléjava.lang.StringLe nom de la propriété.

Returns: java.awt.geom.AffineTransform - La valeur de la propriété.

getPropertyRectangle(String key)

public Rectangle getPropertyRectangle(String key)

Obtient une valeur d’une propriété de rectangle.

Parameters:

ParamètreTypeDescription
cléjava.lang.StringLe nom de la propriété.

Returns: java.awt.Rectangle - La valeur de la propriété.

getPropertySize(String key)

public Dimension getPropertySize(String key)

Obtient une valeur d’une propriété de taille.

Parameters:

ParamètreTypeDescription
cléjava.lang.StringLe nom de la propriété.

Returns: java.awt.Dimension - La valeur de la propriété.

getSaveOptions()

public SaveOptions getSaveOptions()

Renvoie les options d’enregistrement.

Returns: SaveOptions - The save options.

getSize()

public Dimension getSize()

Obtient la taille de la page.

Returns: java.awt.Dimension - Taille de la page.

getStroke()

public Stroke getStroke()

Obtient le trait actuel.

Returns: java.awt.Stroke - Trait actuel.

getText()

public String getText()

Returns: java.lang.String

getText(int startPage, int endPage)

public String getText(int startPage, int endPage)

Parameters:

ParamètreTypeDescription
startPageint
endPageint

Returns: java.lang.String

getTextRenderingMode()

public TextRenderingMode getTextRenderingMode()

Obtient le mode de rendu du texte actuel.

Returns: TextRenderingMode - Current text rendering mode.

getTextStrokeWidth()

public float getTextStrokeWidth()

Obtient la largeur du trait du texte actuel.

Returns: float - Largeur actuelle du trait du texte.

getTransform()

public AffineTransform getTransform()

Obtient la transformation actuelle.

Returns: java.awt.geom.AffineTransform - Transformation actuelle.

hashCode()

public native int hashCode()

Returns: int

initClip()

public void initClip()

Initialise le découpage du dispositif.

initPageNumbers()

public void initPageNumbers()

Initialise le nombre de pages à rendre.

isDirectRGB()

public boolean isDirectRGB()

Indique si l’appareil utilise le mode RGB direct, c’est-à-dire RGB.

Returns: boolean

isMainDocument()

public boolean isMainDocument()

Returns: boolean

isProperty(String key)

public boolean isProperty(String key)

Obtient la valeur d’une propriété booléenne.

Parameters:

ParamètreTypeDescription
cléjava.lang.StringLe nom de la propriété.

Returns: boolean - La valeur de la propriété.

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

openPage(float width, float height)

public boolean openPage(float width, float height)

Effectue la préparation nécessaire de l’appareil avant le rendu de la page.

Parameters:

ParamètreTypeDescription
largeurfloat
hauteurfloat

Returns: boolean

openPage(String title)

public boolean openPage(String title)

Effectue la préparation nécessaire de l’appareil avant le rendu de la page.

Parameters:

ParamètreTypeDescription
titrejava.lang.String

Returns: boolean

renew()

public void renew()

Réinitialise l’appareil à son état initial pour l’ensemble du document. Utilisé pour réinitialiser le flux de sortie.

renewForMerge(boolean mainDocument)

public void renewForMerge(boolean mainDocument)

Parameters:

ParamètreTypeDescription
mainDocumentboolean

reset()

public void reset()

Réinitialise l’appareil à son état initial pour une page.

reset(boolean zeroPageNumbers)

public void reset(boolean zeroPageNumbers)

Parameters:

ParamètreTypeDescription
zeroPageNumbersboolean

rotate(double theta)

public void rotate(double theta)

Faire pivoter la matrice de transformation actuelle. Appelle writeTransform(Transform). Faire pivoter avec un angle positif theta fait tourner les points de l’axe x positif vers l’axe y positif.

Parameters:

ParamètreTypeDescription
thetadoubleAngle en radians sur lequel pivoter.

rotate(double theta, double x, double y)

public void rotate(double theta, double x, double y)

Faire pivoter la matrice de transformation actuelle autour d’un point.

Parameters:

ParamètreTypeDescription
thetadoubleUn angle de rotation en radians.
xdoubleCoordonnée X du point.
ydoubleCoordonnée Y du point.

scale(double x, double y)

public void scale(double x, double y)

Met à l’échelle la matrice de transformation actuelle. Appelle writeTransform(Transform).

Parameters:

ParamètreTypeDescription
xdoubleUne échelle sur l’axe X.
ydoubleUne échelle sur l’axe Y.

setBackground(Color background)

public void setBackground(Color background)

Spécifie l’arrière-plan actuel de la page.

Parameters:

ParamètreTypeDescription
arrière-planjava.awt.ColorUn arrière-plan de la page.

setCharTM(AffineTransform charTM)

public void setCharTM(AffineTransform charTM)

Spécifie la transformation des caractères.

Parameters:

ParamètreTypeDescription
charTMjava.awt.geom.AffineTransform\u0421haracters transformée des caractères.

setClip(Shape clipPath)

public void setClip(Shape clipPath)

Spécifie le découpage du dispositif.

Parameters:

ParamètreTypeDescription
clipPathjava.awt.ShapeUn chemin de découpe.

setCreator(String creator)

public void setCreator(String creator)

Spécifie le créateur de la sortie du dispositif résultant.

Parameters:

ParamètreTypeDescription
créateurjava.lang.StringUne valeur de créateur.

setFont(ITrFont font)

public void setFont(ITrFont font)

Spécifie une police.

Parameters:

ParamètreTypeDescription
fontITrFontUne police.

setOpacity(float opacity)

public void setOpacity(float opacity)

Spécifie l’opacité.

Parameters:

ParamètreTypeDescription
opacitéfloatUne opacité.

setOpacityMask(Paint opacityMask)

public void setOpacityMask(Paint opacityMask)

Spécifie un masque d’opacité.

Parameters:

ParamètreTypeDescription
opacityMaskjava.awt.PaintUn masque d’opacité.

setPaint(Paint paint)

public void setPaint(Paint paint)

Spécifie une peinture.

Parameters:

ParamètreTypeDescription
paintjava.awt.PaintUne peinture.

setProperties(UserProperties props)

public void setProperties(UserProperties props)

Spécifie les propriétés du dispositif, y compris les métadonnées.

Parameters:

ParamètreTypeDescription
propsUserPropertiesPropriétés de l’appareil.

setSaveOptions(SaveOptions options)

public void setSaveOptions(SaveOptions options)

Spécifie les options de gestion du processus de rendu.

Parameters:

ParamètreTypeDescription
optionsSaveOptionsOptions pour gérer le processus de rendu.

setSize(Dimension size)

public void setSize(Dimension size)

Spécifie la taille de la page.

Parameters:

ParamètreTypeDescription
taillejava.awt.Dimension

setStroke(Stroke stroke)

public void setStroke(Stroke stroke)

Spécifie un trait.

Parameters:

ParamètreTypeDescription
strokejava.awt.StrokeUn trait.

setTextRenderingMode(TextRenderingMode textRenderingMode)

public void setTextRenderingMode(TextRenderingMode textRenderingMode)

Spécifie le mode de rendu du texte.

Parameters:

ParamètreTypeDescription
textRenderingModeTextRenderingModeMode de rendu du texte.

setTextStrokeWidth(float textStrokeWidth)

public void setTextStrokeWidth(float textStrokeWidth)

Spécifie la largeur du trait du texte.

Parameters:

ParamètreTypeDescription
textStrokeWidthfloatLargeur du trait de texte.

setTransform(AffineTransform transform)

public void setTransform(AffineTransform transform)

Spécifie la transformation actuelle.

Parameters:

ParamètreTypeDescription
transformjava.awt.geom.AffineTransformUne transformation..

shear(double shx, double shy)

public void shear(double shx, double shy)

Applique un cisaillement à la matrice de transformation actuelle. Appelle writeTransform(Transform).

Parameters:

ParamètreTypeDescription
shxdoubleUn cisaillement sur l’axe X.
shydoubleUn cisaillement sur l’axe Y.

startDocument()

public void startDocument()

Effectue les préparations nécessaires de l’appareil avant de commencer le rendu du document.

toString()

public String toString()

Renvoie le nom du type d’appareil.

Returns: java.lang.String

transform(AffineTransform transform)

public void transform(AffineTransform transform)

Transforme la matrice de transformation actuelle. Appelle writeTransform(Transform).

Parameters:

ParamètreTypeDescription
transformjava.awt.geom.AffineTransformTransformation à appliquer.

translate(double x, double y)

public void translate(double x, double y)

Effectue une translation de la matrice de transformation actuelle. Appelle writeTransform(Transform).

Parameters:

ParamètreTypeDescription
xdoubleTranslation sur l’axe X.
ydoubleTranslation sur l’axe Y.

updatePageParameters(IMultiPageDevice device)

public void updatePageParameters(IMultiPageDevice device)

Met à jour les paramètres de page à partir d’un autre appareil multipage.

Parameters:

ParamètreTypeDescription
deviceIMultiPageDevice

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParamètreTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParamètreTypeDescription
arg0long
arg1int

writeComment(String comment)

public void writeComment(String comment)

Écrit un commentaire.

Parameters:

ParamètreTypeDescription
commentairejava.lang.StringUn commentaire à écrire.

writeString(ITrFont font, String str)

public void writeString(ITrFont font, String str)

Écrit une chaîne avec la police spécifiée.

Parameters:

ParamètreTypeDescription
fontITrFontPolice spécifiée.
strjava.lang.StringLa chaîne.

writeWarning(String warning)

public void writeWarning(String warning)

Parameters:

ParamètreTypeDescription
avertissementjava.lang.String