|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.rosuda.pograss.PoGraSS org.rosuda.pograss.PoGraSSmeta
public class PoGraSSmeta
Portable Graphics SubSystem, meta data implementation
Field Summary |
---|
Fields inherited from class org.rosuda.pograss.PoGraSS |
---|
FA_Bold, FA_Ital, FA_MASK_Type, FA_Normal, FF_Mono, FF_SansSerif, FF_Serif, localLayerCache, TA_Center, TA_Left, TA_MASK_Or, TA_Right, version, versionString |
Constructor Summary | |
---|---|
PoGraSSmeta()
|
Method Summary | |
---|---|
void |
addComment(java.lang.String c)
|
void |
begin()
|
void |
defineColor(java.lang.String nam,
int R,
int G,
int B)
|
void |
drawLine(int x1,
int y1,
int x2,
int y2)
|
void |
drawOval(int x,
int y,
int rx,
int ry)
|
void |
drawPolygon(int[] x,
int[] y,
int pts,
boolean closed)
|
void |
drawRect(int x1,
int y1,
int x2,
int y2)
|
void |
drawRoundRect(int x1,
int y1,
int x2,
int y2,
int dx,
int dy)
|
void |
drawString(java.lang.String txt,
int x,
int y)
|
void |
drawString(java.lang.String txt,
int x,
int y,
double ax,
double ay)
draw string with anchor point x,y where ax and ay translate the anchor relative to text extension. |
void |
drawString(java.lang.String txt,
int x,
int y,
double ax,
double ay,
double rot)
addition: rot specifies rotation angle around the anchor. negative values additionally flip the text on the horizontal axis of the text. |
void |
drawString(java.lang.String txt,
int x,
int y,
int a)
draw string with special attributes set (e.g. alignment etc.) |
void |
end()
|
static boolean |
executeMeta(PoGraSS p,
java.lang.String s)
|
void |
fillOval(int x,
int y,
int rx,
int ry)
|
void |
fillPolygon(int[] x,
int[] y,
int pts)
|
void |
fillRect(int x1,
int y1,
int x2,
int y2)
|
void |
fillRoundRect(int x1,
int y1,
int x2,
int y2,
int dx,
int dy)
|
java.lang.String |
getMeta()
|
void |
lineTo(int x,
int y)
|
void |
moveTo(int x,
int y)
|
void |
nextLayer()
|
void |
resetMeta()
|
void |
setBounds(int w,
int h)
|
void |
setBounds(int x,
int y,
int w,
int h)
|
void |
setColor(int R,
int G,
int B)
|
void |
setColor(java.lang.String nam)
|
void |
setFillStyle(int s)
|
void |
setFontFace(int face)
set font face by style |
void |
setFontSize(int pt)
|
void |
setFontStyle(int attr)
|
void |
setLineWidth(int w)
|
void |
setOptionalFace(java.lang.String name)
set optional font face. the underlying system will use the face only if it's available. |
void |
setTitle(java.lang.String t)
|
Methods inherited from class org.rosuda.pograss.PoGraSS |
---|
beginAlphaBlock, defineColor, drawArc, drawImage, drawPolygon, drawPolyline, endAlphaBlock, fallbackAlpha, fillArc, getBounds, getHeightEstimate, getWidthEstimate, internalSupportsAlpha, nextObject, nextObject, oval, passVersionInfo, polygon, rect, resetClip, resetGlobalAlpha, roundRect, setBrushColor, setBrushColor, setBrushColor, setBrushColor, setClip, setColor, setColor, setColor, setFontFace, setFontSize, setGlobalAlpha, setLineWidth, setOutPrintStream, setPenColor, setPenColor, setPenColor, setPenColor, useJointColors |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PoGraSSmeta()
Method Detail |
---|
public void addComment(java.lang.String c)
addComment
in class PoGraSS
public void setTitle(java.lang.String t)
setTitle
in class PoGraSS
public void setBounds(int w, int h)
setBounds
in class PoGraSS
public void setBounds(int x, int y, int w, int h)
setBounds
in class PoGraSS
public void defineColor(java.lang.String nam, int R, int G, int B)
defineColor
in class PoGraSS
public void setColor(int R, int G, int B)
setColor
in class PoGraSS
public void setColor(java.lang.String nam)
setColor
in class PoGraSS
public void drawLine(int x1, int y1, int x2, int y2)
drawLine
in class PoGraSS
public void moveTo(int x, int y)
moveTo
in class PoGraSS
public void lineTo(int x, int y)
lineTo
in class PoGraSS
public void drawRect(int x1, int y1, int x2, int y2)
drawRect
in class PoGraSS
public void fillRect(int x1, int y1, int x2, int y2)
fillRect
in class PoGraSS
public void drawRoundRect(int x1, int y1, int x2, int y2, int dx, int dy)
drawRoundRect
in class PoGraSS
public void fillRoundRect(int x1, int y1, int x2, int y2, int dx, int dy)
fillRoundRect
in class PoGraSS
public void drawOval(int x, int y, int rx, int ry)
drawOval
in class PoGraSS
public void fillOval(int x, int y, int rx, int ry)
fillOval
in class PoGraSS
public void setLineWidth(int w)
public void setFillStyle(int s)
setFillStyle
in class PoGraSS
public void drawString(java.lang.String txt, int x, int y)
drawString
in class PoGraSS
public void drawString(java.lang.String txt, int x, int y, int a)
PoGraSS
drawString
in class PoGraSS
public void drawString(java.lang.String txt, int x, int y, double ax, double ay)
PoGraSS
drawString
in class PoGraSS
public void drawString(java.lang.String txt, int x, int y, double ax, double ay, double rot)
PoGraSS
drawString
in class PoGraSS
public void setFontFace(int face)
PoGraSS
setFontFace
in class PoGraSS
public void setOptionalFace(java.lang.String name)
PoGraSS
PoGraSS.setFontFace(int)
and refine this selection by
setting optional face. It is not guaranteed that this face will be used, keep it in mind.
example: setFontFace(FF_SansSerif); setOptionalFont("Helvetica"); setOptionalFont("Myriad");
setOptionalFace
in class PoGraSS
public void setFontSize(int pt)
public void setFontStyle(int attr)
setFontStyle
in class PoGraSS
public void drawPolygon(int[] x, int[] y, int pts, boolean closed)
drawPolygon
in class PoGraSS
public void fillPolygon(int[] x, int[] y, int pts)
fillPolygon
in class PoGraSS
public void nextLayer()
nextLayer
in class PoGraSS
public void begin()
begin
in class PoGraSS
public void end()
end
in class PoGraSS
public void resetMeta()
public static boolean executeMeta(PoGraSS p, java.lang.String s)
public java.lang.String getMeta()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |