|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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(String c)
|
void |
begin()
|
void |
defineColor(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(String txt,
int x,
int y)
|
void |
drawString(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(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(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,
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)
|
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(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(String name)
set optional font face. the underlying system will use the face only if it's available. |
void |
setTitle(String t)
|
| Methods inherited from class org.rosuda.pograss.PoGraSS |
|---|
beginAlphaBlock, defineColor, drawArc, 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(String c)
addComment in class PoGraSSpublic void setTitle(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(String nam,
int R,
int G,
int B)
defineColor in class PoGraSS
public void setColor(int R,
int G,
int B)
setColor in class PoGraSSpublic void setColor(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 PoGraSSpublic void setLineWidth(int w)
public void setFillStyle(int s)
setFillStyle in class PoGraSS
public void drawString(String txt,
int x,
int y)
drawString in class PoGraSS
public void drawString(String txt,
int x,
int y,
int a)
PoGraSS
drawString in class PoGraSS
public void drawString(String txt,
int x,
int y,
double ax,
double ay)
PoGraSS
drawString in class PoGraSS
public void drawString(String txt,
int x,
int y,
double ax,
double ay,
double rot)
PoGraSS
drawString in class PoGraSSpublic void setFontFace(int face)
PoGraSS
setFontFace in class PoGraSSpublic void setOptionalFace(String name)
PoGraSSPoGraSS.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 PoGraSSpublic 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 PoGraSSpublic void nextLayer()
nextLayer in class PoGraSSpublic void begin()
begin in class PoGraSSpublic void end()
end in class PoGraSSpublic void resetMeta()
public static boolean executeMeta(PoGraSS p,
String s)
public String getMeta()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||